/miyo:miyo-taskfrom miyo
Schedules prompts for Claude Code, Codex, or OpenCode to run at set times and write results to files. Manages recurring automations via the `miyo task` CLI.
Ships in miyo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
miyo task: scheduled promptsA Miyo task is a saved prompt, a schedule, the agent that runs it, and the file or
folder it writes its result to. At each occurrence the Miyo app starts that agent on
this computer without a terminal, hands it the prompt, and then checks that the run
wrote to its output. Nobody reads the agent's reply as it arrives, so the file is the
result. The app's Automations tab only shows tasks. Only miyo task creates or changes one,
so when the user asks for a task, you write it.
The CLI ships with the Miyo desktop app, which also runs the local service that
stores and runs tasks. Invocation differs by OS below; the miyo subcommands are
identical everywhere.
1. Invoke miyo by its full path
Don't rely on miyo being on PATH. An agent that wasn't started from a terminal (an
editor running it over ACP, say) can inherit a bare environment that never sources the
user's shell rc files, so a plain miyo fails on a perfectly good install. Invoke the
CLI by its full install path instead. The form depends on the shell:
| Shell | Full invocation (replaces miyo) |
|---|---|
| macOS / Linux (bash, zsh) | ~/.miyo/bin/miyo |
| Windows PowerShell | & "$env:LOCALAPPDATA\Miyo\bin\miyo\miyo.exe" |
| Windows cmd | "%LOCALAPPDATA%\Miyo\bin\miyo\miyo.exe" |
The examples below write plain miyo for brevity; swap in the full form for your shell
(%LOCALAPPDATA% only expands in cmd, so PowerShell must use $env:LOCALAPPDATA). Each
command runs in a fresh shell, so don't stash it in a variable. Write the path out.
If that path doesn't exist, fall back to a bare miyo, since a non-standard install may
still be on PATH. Only when both fail is Miyo actually missing: tell the user to
install it from https://miyo.md/ and launch the app once. First launch installs the
miyo CLI. If miyo task answers Unknown command: task, the installed Miyo is older
than tasks, so ask the user to update the app.
2. Is the service up?
Don't run a separate health probe. The first real command (usually miyo task list)
is the readiness check. If the service is down it exits 1 with "Cannot connect to
Miyo service / Is the Miyo app running?". That means the app isn't running: ask the
user to open it. Inside a sandboxed agent such as Codex, that local connection counts
as network access and may need the user's approval the first time.
miyo task list|create|update|enable|disable|run|delete. miyo task --help gives
the flags, and <task> is a task's id or its exact name.
User: "Every weekday at 9, add what I left unfinished yesterday to today's daily note."
1. Know where the result goes. Every task writes its result to a file in one of the user's folders. Here the user said: today's daily note. When the user hasn't said where the result should go, ask them before creating anything.
2. Find the folder. A run starts in its folder, which has to be registered with
Miyo. miyo folders lists them. Look inside the right one so the prompt can name real
paths (here, daily notes named Daily/YYYY-MM-DD.md).
3. Create it, with yourself as the runner. Claude Code:
miyo task create \
--name "Loose ends" \
--agent claude-code --agent-path "$(command -v claude)" \
--folder "/Users/me/Notes" \
--output "Daily" \
--rule "DTSTART:20261001T090000\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR" \
--prompt "Append to today's daily note, Daily/YYYY-MM-DD.md, creating it if it doesn't exist yet. Read yesterday's daily note (on a Monday, read Friday's) and list what I left unfinished: unchecked boxes and TODO lines. Add them at the end of today's note under a '## Loose ends' heading, one per line, or 'Nothing left open.' if there are none. Don't change anything else in either note. Finish with one line saying what you changed, and what was refused or failed if anything you needed was."
The output is Daily, the folder, because today's note has a new name every day.
Codex writes --agent codex --agent-path "$(command -v codex)" in the same place, and
OpenCode --agent opencode --agent-path "$(command -v opencode)". It prints the saved
task and its next three runs:
No --timezone given, so the task runs in this machine's time zone, America/Los_Angeles.
Created task "Loose ends" (c0c2fbe8-0750-4e08-9e5c-a2bc15b0c8b7)
Agent: claude-code Enabled: no
Agent path: /Users/me/.local/bin/claude
PATH: /Users/me/.local/bin:/opt/homebrew/bin:/usr/bin:/bin
Folder: /Users/me/Notes
Output: Daily
Rule: DTSTART:20261001T090000\nRRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR Time zone: America/Los_Angeles
Prompt: Append to today's daily note, Daily/YYYY-MM-DD.md, ...
Next runs: 2026-10-01 09:00, 2026-10-02 09:00, 2026-10-05 09:00
Check Next runs against what the user asked for (Thursday, Friday, then Monday here)
and tell them. Miyo saved the task switched off.
4. Offer a test run. It is how you find out what the run isn't allowed to do. Ask the user whether to try it now, and say first that a test run writes for real: here it appends to today's note. If they agree:
miyo task run "Loose ends"
Ran "Loose ends" (1cc185b1-f659-4a8f-8a6c-eaf2e0c37d90)
Agent: Claude Code Took: 41.2s
Outcome: succeeded
Wrote: Daily/2026-09-30.md
Added 3 loose ends to Daily/2026-09-30.md.
Read the last line as well as the outcome. A run that was refused something can still write its file and succeed; "When a run is refused something" below says what to do.
5. Switch it on once the user says so, and not before:
miyo task enable "Loose ends"
Name yourself: --agent claude-code, codex, or opencode. If you are none of
them, ask the user which one to use, and check it is installed. OpenCode has to be
2.x: Miyo refuses an OpenCode 1.x executable and says to update it.
Take --agent-path from your own shell ("$(command -v claude)"; PowerShell:
(Get-Command claude).Source). If that prints an alias or nothing, find the real file
or ask the user for it. The task runs with your shell's PATH, so create it from a shell
where the agent starts; the PATH: line in the output shows what it got.
--rule is an RRULE with a DTSTART line, written as one string with a literal \n
between the two lines. What Miyo adds to standard RRULE:
DTSTART:YYYYMMDDTHHMMSS is local wall-clock time in the task's time zone. Never add
Z or TZID; the service refuses both.date +%Y%m%d) for a repeating task, and the day itself for a one-time
task (RRULE:FREQ=DAILY;COUNT=1).--timezone unless the user asks for another zone.FREQ=DAILY with BYHOUR and BYMINUTE. The service
refuses FREQ=HOURLY or FREQ=MINUTELY combined with BYHOUR or BYMINUTE.A fresh agent runs the prompt later, with no memory of this conversation and nobody to answer its questions. Make it self-contained: what to read (paths relative to the folder), which file to write, and what to write when there is nothing to report.
A run never stops to ask, so anything the user's agent would normally ask about is refused, and the agent carries on without it. The run can still write its file and read "succeeded", so look for refusals in the test run's last line:
When the test run was refused something the task needs:
--folder is the absolute path miyo folders shows for a registered folder. The
service refuses one that isn't registered.--output can't be the folder itself. When the file's name changes from run to run,
such as today's daily note, give the folder that holds it.Relay these plainly when you create a task; they are what the user can rely on:
share: "auto". If it is
set, warn them that every run of the task will be shared publicly.miyo task list before changing it, and name it by id when
two tasks could match.run waits until the agent finishes, which can take minutes, so give the command a
long timeout. It exits 0 only when the run succeeded, which means it wrote to its
output, and 1 when it wrote nothing, failed, was cancelled, or the task was already
running. "Nothing written" means the prompt needs fixing: make it name the file to
write and say how.run stops before the agent finishes, because your shell timed out or the CLI
said "Cannot connect to Miyo service" partway through a long run, the run carries on
in Miyo and its outcome lands in Activity. If miyo task list still answers, the app
is running; tell the user where to find the result rather than asking them to open
Miyo.enable checks the schedule and the agent path again, so a one-time task whose time
has passed can't be switched back on. Give it a new --rule instead.1 with the service's reason. Read it, fix the one thing it
names, and try again rather than guessing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scheduling, automation, cron, recurring-tasks, prompt-scheduling
npx claudepluginhub brevilabs/miyo-releases --plugin miyo3 skills in this plugin
/miyo-parseConvert a document (PDF, EPUB, Word .docx, or PowerPoint .pptx) or the text in an image (PNG, JPEG, WebP, AVIF, JPEG XL) into Markdown/plain text with the local `miyo parse` CLI, so you can read, quote, or feed its contents onward. Reach for this whenever the user points at one of those and wants its text — "read this PDF", "what does this contract say", "pull the text out of report.pdf", "convert this PDF to Markdown", "summarize this PDF", "read this ebook/epub", "what's in book.epub", "read this Word doc", "what's in proposal.docx", "what's in this deck", "summarize slides.pptx", "what does this screenshot say", "copy the text out of receipt.jpg". Works on any file path and needs **no** running Miyo app or service — it parses in-process. This is document *conversion*, distinct from searching the user's indexed notes (that's the `miyo-search` skill). Command: `miyo parse`./miyo-searchSearch and read the user's personal knowledge base from the command line with the local `miyo` CLI — their own notes and documents, plus their saved ChatGPT / Claude conversations. Reach for this whenever a request could be answered from something the user wrote, saved, decided, or discussed before, even when they don't mention "Miyo," "notes," or a filename: "what did I decide about X", "find my doc on Y", "what did I ask ChatGPT about Z", "summarize what I have on …", "did I already write something about …". Also for listing/inspecting their indexed files and folders. Commands: `miyo search`, `miyo files`, `miyo folders`. (To convert a PDF to text, use the separate `miyo-parse` skill.)Other plugins' skills for the same job