Learn a task in an app on the person's Mac by watching them do it there, save it as a skill that belongs to that Mac, run it later (also on a schedule) and repair it. Use when the person says "let me show you", "смотри как я делаю", "научу тебя" about an app on their computer, when a demonstration's recording arrives from the hub ("[Computer] The person finished showing…"), when a result ends with "While you waited, the person did this in…", or when you run or fix a skill that names apps and ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Teach On Computer?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/legostin-teach-on-computer)
---
name: teach-on-computer
description: Learn a task in an app on the person's Mac by watching them do it there, save it as a skill that belongs to that Mac, run it later (also on a schedule) and repair it. Use when the person says "let me show you", "смотри как я делаю", "научу тебя" about an app on their computer, when a demonstration's recording arrives from the hub ("[Computer] The person finished showing…"), when a result ends with "While you waited, the person did this in…", or when you run or fix a skill that names apps and a computer.
---
# Learning from the person in an app on their Mac
The person can show you a task in an app instead of explaining it. They do it at the Mac itself, in the real app,
with their own mouse and keyboard. The Piomio app on that Mac records what they do in that one app and nothing else:
the controls they click, the menu items they choose, what they type (a password never), what they say while doing it,
and the places they frame with Highlight. You turn that into a skill: instructions you follow with understanding, not
a replay of clicks. The skill belongs to the Mac it was taught on.
## 1. Starting a demonstration
- The person offers to show, or you are stuck in an app: call `computer_teach {app, machine, goal}` with the goal in
their words (`scope: "step"` for one step you could not do). `computer_apps` lists the Macs and their apps.
- A small bar appears on that Mac, above every window, with your name, the goal and Start. **Nothing is recorded
until the person presses Start there.** Tell them in one short sentence to go to that Mac, press Start and do the
task as they usually do; then wait. The call returns at once, without the recording. Your tools in that app wait
while they show: do not use it.
- They press Done on the bar. The recording arrives as a hub message "[Computer] The person finished showing you…"
with the steps in words and its files in your workspace (`downloads/rec-….md`, `.json`, `.jpg` pictures of what
they framed). From Teach in the computer's live view it comes without you asking first: then find out in one
question what it was for.
- Instead of a recording you may hear that they cancelled, never pressed Start (they may not be at that Mac), or
pressed Done with nothing shown. Then there is nothing to learn from: say so in a sentence and ask whether to try
again or to be told the steps in words. Never write a skill from an empty recording.
- "Update the Piomio app on <Mac>": that Mac's app is too old to record. Tell the person; until it is updated, ask
them to describe the steps.
- Not every app can be shown: apps closed to agents (terminals, password managers, Piomio itself) and apps agents
only look at (the person's browsers, code editors, System Settings). For a website use your own browser and
`browser_teach`.
## 2. Reading a recording
Each step names its control the way `computer_snapshot` names it, so you find the same control later by role and
name.
| In the recording | Means |
| --- | --- |
| `In Mail (com.apple.mail), version 16.0` | the app: its name, its bundle id and its version. They go into `apps` |
| `Window «Inbox»` | the window they worked in; a new line when they moved to another |
| `Clicked button «Save»`, `Double-clicked row «Invoice 12»` | a control pressed; a row or a cell is usually an example, not a constant |
| `Chose File > Export as PDF… (cmd+shift+e)` | a menu item, by its titles from the menu bar down; the shortcut is how they reached it. Use the path with `computer_menu`, not the shortcut |
| `Typed «…» into text field «Subject»` | what the field held when they left it |
| `Typed a secret into … (not recorded)` | a password. You never have it and never type it: that step stays the person's |
| `Pressed enter`, `Pressed down ×3` | a key that is not text. Return may send or confirm: see consequences below |
| `Answered the save panel: «report.pdf»` | an open or save panel: `computer_file` with a path on that Mac |
| `Pointed at this place (look here): «…»` | they framed it on purpose: it matters. Their words nearby say why; ask if nothing does |
| `The person said: "…"` | their own words, placed where they said them |
| `… — an action with consequences (computer_submit)` | it sends, deletes, pays or publishes: it never runs through `computer_click` or `computer_menu` |
## 3. Turning it into a skill
1. Retell what you saw in three to six short lines, in the person's language, as a colleague would ("Открываешь
счёт, выгружаешь в PDF на рабочий стол, прикладываешь к письму бухгалтеру").
2. Ask only what is not clear, one question at a time, with quick replies (`show_choices`) where answers are short:
what changes from run to run (which invoice, the date, the recipient) and what stays; what their words and frames
mean when that is not obvious.
3. For every step with consequences ask whether you may do it without asking next time, with the limit you saw
("Нажимать «Отправить» в Почте без тебя?" — Да / Спрашивать каждый раз). Only what they agree to in their own
words goes into `allow`. A `Pressed enter` that sent or confirmed something is such a step too: find the button
it stands for and ask about that button.
4. Check each step against what works with the app behind the person's windows, which is how you work (section 4),
and say plainly which steps will need them.
5. Call `hub_skill_save` with:
- `name`: short, lowercase, words joined by `-` (`invoice-to-pdf`); `description`: one line saying when to use it,
in the person's language;
- `instructions` (Markdown, English or the person's language), in this shape:
```
# <Task>
App: Mail (com.apple.mail) 16.0 on <the Mac's name>. Taught by the person on <date>.
## Inputs
- invoice: which invoice (ask if they do not say) …
## Steps
1. computer_app Mail. 2. Double-click row «<invoice>». 3. Menu File > Export as PDF… 4. computer_file ~/Desktop/<invoice>.pdf …
(exact roles and names from the recording; menu items as paths)
## Checks
- Before sending, read «To» (the person framed it: "только бухгалтеру").
## Result
- Where the file is and whom it went to.
## With consequences
- «Send» in Mail: computer_submit; allowed without asking.
## Needs the person
- Signing in (a password field), and steps that need the whole screen.
## When something differs
- Ask the person to take over in the live view (or computer_teach scope step) instead of guessing; report what you saw.
```
- `files`: the recording's files from your workspace (`computer_journal export {id}` brings them when you have
none);
- `apps`: every app of the recording, `[{id, name, version}]`, exactly as its `In …` lines give them (the hub's
message repeats them ready to paste);
- `machine`: the computer's id, as the hub's message and `computer_app`'s answer give it. It is required with
`apps`;
- `allow`: `[{app, label, maxAmount, currency}]` for the steps they agreed to: `app` is one of `apps`, `label` the
control's name exactly as recorded, `maxAmount` and `currency` only for a payment.
6. The person sees a card that names the apps, the Mac and each allowed press, and taps to save; nothing is saved
without it. After "saved", offer once to try it now, and if it is a regular thing, to put it on a schedule.
## 4. What works in the background, and what needs the whole screen
You work in the app's window while it stays behind what the person is doing. There:
- **Works**: reading the window (`computer_snapshot`, `computer_text`, `computer_look`), pressing buttons and links,
filling fields, picking rows, plain keys, and menu items of the app itself (File > New).
- **Does not**: a click on a spot with no control, a drag, a ⌘ shortcut sent as keys (choose its menu item with
`computer_menu` instead), and menu items that act on the front window. An app that is behind others switches Save,
Save As, Export, Print and Close off.
- For those, `computer_screen {reason}` asks for the whole screen: the person confirms **on the Mac itself**, a red
frame goes up, and they cannot use the Mac meanwhile. No rule approves it ahead, so a run on a schedule stops there
until they are at the Mac.
- A file panel is answered with `computer_file`, and each answer is the person's card.
- A locked Mac does nothing, and nothing unlocks it.
So write the steps the background way where there is one (a menu path instead of a shortcut, a button instead of a
spot), and put what is left under "Needs the person". If the task cannot be done without those steps, tell the person
before saving that it will not run unattended.
## 5. Running a taught skill
- Load it (`skill_load`). Its text ends with where it works: the Mac's name and id, whether it is offline or no
longer paired, and the exact calls the person approved ahead:
`computer_app {app: "<bundle id>", machine: "<id>"}` and
`computer_submit {app: "<bundle id>", machine: "<id>", label: "…"}`. **Pass `app` and `machine` exactly so** (the
bundle id, the computer's id, not their names): a name matches no rule, and the person is asked instead.
- The skill works only on its Mac: in a task that follows it, another computer is refused. If that Mac is offline,
say so and stop; do not try the task elsewhere.
- Then do the steps: `computer_snapshot`, find the control by the role and name the skill gives (a name may differ a
little: a date or a count inside it changes), act, take a new snapshot (refs hold only until the window changes),
check what the skill says to check.
- Steps with consequences always go through `computer_submit`, with `amount` and `currency` when money is spent: an
approved step applies only with the same app, computer and label, and within its limit; otherwise the person gets
a card.
- When the person wants to see how it went: `computer_look` with `share: true`, then `show_images` with the path.
- On a schedule: `trigger_create` with `skill` set to the skill's name and a prompt that says what to do. The trigger
takes the skill's Mac as its computer and waits while that Mac is off. A background run of a taught skill may click
and type by itself; what has consequences still needs the approved step or the person's tap, and what needs the
whole screen or a file panel waits for them.
- There is no `computer.*` API for a skill's script. A script may call these tools as `tools.computer_*` (its third
argument), each call checked like your own; they answer with text, at most 4000 characters, so the script narrows
`computer_snapshot` with `role` or `name` and reads the ref out of its line. Write one only for a long mechanical
task that a run by hand has proven.
## 6. Repairing it
- When you get stuck (the app changed, a sheet you do not know), ask the person to take the app over in the live
view, or call `computer_teach` with `scope: "step"`. They may also just do it at the Mac while you wait.
- What they did comes back at the end of your next result ("While you waited, the person did this in <app>…") or as
a recording. Take a new `computer_snapshot` and carry on from where things stand; never start the task over (a
letter sent twice is worse than a slow run).
- When the task is done, if that changed a step, offer to update the skill: `hub_skill_save` with `replaces` set to
its name and the corrected instructions. It stays on its Mac, and the person confirms on the card again.
## Privacy
Only the app the person named is recorded, from Start to Done, and nothing typed into a password field keeps its
value. What they showed stays on the hub for 30 days. "Забудь, что я показывал" → `computer_journal forget` with
`day: "today"` (or `all`, or one `id`); say what was forgotten. What the person does in an app while you work there is
not kept at all: you hear it once, in your next result.