# Skills and routines A skill is a set of instructions Gary follows whenever a task calls for it. A routine tells a Gary when to run a job: on a schedule, or when something happens. Both are on every plan. Start with a one-time task. Correct the result until it's right, save the method as a skill, and then put it on a routine. ## What a skill is A skill tells Gary how to do one kind of job well: the steps, the format you want back, and what Gary shouldn't do. Gary loads a skill only when a task needs it. Every Gary starts with skills for Word, Excel, PowerPoint, and PDF files. More are in the library, and you can teach Gary your own. ## Add a skill from the library 1. Choose your initials at the top of the sidebar, then choose **Skills**. 2. Under **Library**, find the skill. Use **Search skills** to filter the list. 3. Choose **Add**. The skill moves to the list of what your Gary can do. To take a skill away, choose **Remove** beside it. Each skill shows where it came from: "Part of its job", "Added from the library", or "It wrote this one". ## Teach Gary a skill There are three ways to teach a skill. **Describe it.** Open **Skills** and choose **Teach a skill**. Describe the job: the steps, the format you want back, and what Gary shouldn't do. Gary writes the skill and shows it to you before adding it. **Save a finished task.** When Gary has done a job the way you want it, ask Gary to save how it did it. **Show it.** Do the job once on Gary's computer while Gary watches. 1. Open Gary's computer and choose **Take control**. 2. Tell Gary what you're about to show it. 3. Do the job once. 4. Choose **I'm done**. Gary lists the steps it recorded and saves them as a skill. Gary records what happens on its computer's screen for up to 10 minutes. It doesn't record sound. For a password or a code, use Vault so that the value never appears on the screen. See [Vault and secure sign-in](/vault). ::: cards ### Save a finished task Turns a job Gary just did into a skill. > Save how you did that as a skill called "Weekly account health". Include the sources, the output format, and the rule that you never contact a customer. ### Teach by showing Records a job you do on Gary's computer. > Watch me file this expense report on your computer. Save the steps as a skill, then file the other six the same way and show me before you submit. ### Reply style Teaches Gary how you write to customers. > I'd like to teach you a skill: replying to customer email. Keep it under 120 words, answer the question in the first sentence, and never promise a date. ### Ask what you repeat Lists what you've asked for more than twice and offers a skill for each. > What have I asked you for more than twice this month? Offer me a skill for each one. ::: ## Skills Gary offers Gary also writes skills without being asked. After you ask for the same kind of thing a few times, Gary writes a skill for it and offers it to you with a description of what it does. :::: window teal **Gary** · 4:10 PM That's your third supplier comparison this month, so I wrote a skill for it. ::: card New skill Supplier pricing - **Does** — Prices a parts list at your three suppliers, delivered - **Never** — Orders anything [Add skill] [Not now] ::: :::: Gary adds a skill only after you choose **Add skill**. ## Use, read, and change a skill - **Use one.** Ask for it by name, or type `/` in the message box and pick it. - **Read one.** Open **Skills** and choose the skill to read its instructions. - **Change one.** Edit the instructions there, or tell Gary what to do differently. Gary shows you what changed. A skill belongs to the Gary you add it to. To give another Gary the same skill, open **Skills** for that Gary and add it there. ## Create a routine Ask the Gary that should own the job. There is no form to fill in. 1. Ask Gary to do the job once, and correct the result until it's right. 2. Ask Gary to repeat it. Say when, what should count as worth reporting, and what Gary shouldn't do. 3. Gary confirms the schedule. A **Created routine** marker in the chat opens the routine. ::: cards ### Morning briefing Runs every weekday and sums up what needs you. > Every weekday at 8 AM, sum up what changed in my inbox, calendar, and Slack since yesterday and flag what needs me. Don't reply to anyone. ### Backup check Checks last night's backup and reports only a failure. > Every morning at 7, check last night's backup on the NAS. Message me only if it failed or didn't run. ### Price watch Checks a price until a date you set. > Check the price of this flight every hour until June 1. Tell me only when it drops below $420. ### Friday wrap Writes a weekly summary from your connected apps. > Every Friday at 4 PM, list the issues I closed in Linear this week and the ones still open, in one message. ::: A routine runs on Gary's computer in the cloud, so it runs while your laptop is closed. ## Schedules Ask for a schedule in plain words, such as "every weekday at 8 AM" or "every 2 hours". A routine can run every day, every weekday, every week, every month, every few hours, or once at a time you name. Open the routine to check **Schedule** and **Time zone**. Routines use your own time zone unless you pick another, such as the office where the work belongs. A new routine waits for its next scheduled time. To try it right away, choose **Run now**. ## Start a routine on an event A routine can start when something happens. ::: rows - ![Mail](icon:bell) **An email arrives** — Gary reads new mail in your inbox and starts on the messages that match the routine `Right away` - ![Webhook](icon:key) **Another system calls** — Your store, your monitoring, or your home automation sends a webhook `Right away` - ![Clock](icon:clock) **A page changes** — Gary checks a page or a price as often as every five minutes `Every 5 minutes` - ![Script](icon:computer) **A script finds work** — A command runs on Gary's computer and starts Gary only when it finds something `Uses no credits` ::: For a webhook, ask Gary for one. The routine's page shows the address to call and a secret to sign the call with. Gary treats what a webhook or an email says as information, not as instructions from you. ::: cards 2 ### Log invoices as they arrive Starts when a matching email reaches your inbox. > When an invoice arrives in my inbox, check it against its purchase order and log it in the AP sheet. Don't pay anything. ### Find what broke the build Starts when your build system calls a webhook. > Give me a webhook for failed builds. When it's called, read the log, find the commit that broke it, and tell me in one message. ::: ## See and change your routines Routines are listed in two places: - Choose your Gary's name at the top of its chat, then look under **Routines**. - Open **Tasks**, then choose **Up next**. Routines are under **Scheduled**, with the runs coming in the next 7 days. Choose a routine to open it. | Control | What it does | | --- | --- | | **Active** | Pauses the routine, or turns it back on. | | **Edit routine** | Changes the instruction, the schedule or event, the time zone, the model, or the end date. | | **Run now** | Runs it once right away. It does real work and counts toward your usage. | | **Run history** | Lists each run: Reported, Nothing to report, Failed, Skipped, Waiting, or Running. | | **Delete routine** | Stops future runs. This can't be undone. | You can also ask Gary in chat to change, pause, or delete a routine. ## Where results arrive A routine reports in the chat where you created it, in a thread labeled with the routine's name. You get a notification on your phone when it reports. A run that finds nothing to report sends no message. Its entry in **Run history** reads "Nothing to report". To get a message every time, say so when you create the routine. When a run needs your approval, the approval card arrives like any other, and that run waits for your answer. See [Approvals and privacy](/approvals-and-privacy). ## Limits on routines - Each Gary can hold 10 routines. - Scheduled runs are at least 5 minutes apart. - A routine that runs more often than every hour needs an end date, at most 31 days away. - After three failed runs in a row, Gary pauses the routine and tells you why. Fix the instruction and turn **Active** back on. - A routine uses your plan like any other work. A routine that starts from a script uses nothing until the script finds work. See [Usage limits and extra use](/usage-limits). ## On iPhone Routines are on your Gary's page, under **Routines**, with the same **Active** switch, **Edit routine**, **Run now**, and **Delete routine**. Skills are in **Settings**, under **Skills**.