You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/pilot is a Claude Code skill that runs your backlog one decision at a time. It scans the places where small work piles up, then hands you one card at a time: approve, deny, snooze, rethink, or type something else. Claude does the work behind each choice in the background while you decide the next one.
It suits bad brain days, mobile use, and anyone with a pile of low-risk maintenance (dependency updates, security alerts, error reports, inbox triage) that never gets done.
Use: copy pilot-prompt.md and paste it into a Claude Code session. Claude interviews you about your tools and builds a starter skill around a single source of work. Add more sources once it earns your trust.
Build me a personal Claude Code skill called pilot, invoked as /pilot. It runs my backlog one decision at a time: it scans for work that has piled up, shows me one card per turn, and does the work behind each choice while I decide the next. It's for days when I can't do deep work but can still make simple calls.
Step 1: Interview me first
Ask one question per turn, each with your recommended answer. Never bundle several questions into one turn, even when they look independent; wait for my answer before asking the next. Look things up yourself (installed CLIs, MCP servers, logged-in accounts) instead of asking me. Find out:
Where work piles up for me. Candidates: GitHub (open PRs, Dependabot alerts, issues), error trackers (Sentry etc.), email, a notes/task app, a calendar. Pick the one source that is (a) readable automatically via a CLI or MCP server you can actually reach, (b) full of items I keep abandoning, and (c) where most items need only a yes/no from me. Confirm the pick with me. We start with one source only.
Where pilot may act. E.g. which GitHub orgs/repos, which folders. Everything outside that list is off limits.
How I judge risk. Offer this default: every action is judged on reversibility (how hard is the undo?), blast radius (what else does it touch: production, other people, published things?) and forward-binding (does it lock in a direction, like a new dependency or precedent?). See https://www.nathanarthur.com/writing/hills-to-die-on. Let me accept it or swap in my own.
Then build the skill and do a first run with me.
Step 2: What to build
Put it in my personal skills folder: $CLAUDE_CONFIG_DIR/skills/pilot/ if that variable is set, otherwise ~/.claude/skills/pilot/. If a pilot skill already exists there, don't read or change it; ask me for a different name.
SKILL.md — the behavior spec below, with my answers filled in (source, allowed scope, risk model).
sweep.sh — a script that queries the source and prints every candidate item, one per line, with a stable id and enough detail to write a card. The skill runs it at the start of each session. Never truncate its output; write it to a file and read the file.
dismissed.json — the ledger of denied and snoozed items.
decisions.md — the card-facts log (see below). Starts empty except for its format.
A short "Adding a source" section in SKILL.md: a new source is a new block in sweep.sh plus a line on how to act on its items. Nothing else should need to change.
Step 3: The behavior spec for SKILL.md
The loop
Run sweep.sh. Drop anything in dismissed.json that is still dismissed.
Order the queue: urgent first (security alerts, failing builds, anything with a deadline), then easy before hard — quick obvious decisions before anything nuanced, so early wins come first.
Show one card per turn using the AskUserQuestion tool. Never show a menu of several tasks.
Act on my answer, then show the next card immediately.
Stop when I say stop/done/pause in "Other", or when the queue is empty.
The card
Each card offers four options. The verbs are fixed; the descriptions are tailored to the task.
Approve — do it. The description states exactly what will happen, including any irreversible effect.
Snooze — hide it until a date (default: a sensible interval for the task type), then show it again.
Deny — drop it from pilot's queue. Don't show it again unless the underlying item changes (store a signature such as its last-updated timestamp; a changed signature makes it eligible again). Deny is local only: it never touches the item itself (no closing PRs, dismissing alerts, archiving mail). If closing the item is the right move, that's its own card whose Approve says so.
Rethink — "not quite right." Run the Rethink interview below.
The built-in "Other" slot is the free-form steer and the exit. Mark the option you recommend with "(Recommended)" and put it first. Don't argue for it.
Write for the hesitation, not the summary. The goal is the least effort for me to say "yes, go ahead" — short and sufficient. Before each card, ask: what would make me pause before clicking Approve? Say exactly that.
The question text is the decision itself, one or two sentences, with real names: "Merge #82, which bumps lodash to 4.17.21 in my-app?"
Every card turn has two parts, in this order: a short markdown fact block as normal text output, then the AskUserQuestion call. Never skip the fact block, and never move the facts into the question text (the question box renders as one unbroken line). One bold label per line, one clause each, at most ~4 lines. More than that means the decision isn't isolated yet; split it.
Use the risk model: state a dimension only when it is high or non-obvious. All low collapses to one clause ("local edit, revertable, nothing published"). A high dimension goes first.
Every card stands alone. Assume I remember nothing from earlier turns. No bare ids (#1231 alone), no "the PR from before", no "it" across turns. Name the thing every time.
No history, no "why this matters", no narrating how you found it.
What you may do without asking
After Approve, do reversible work freely, without narrating sub-steps.
The Approve click is the only gate for irreversible actions. Never push, merge, send, publish, delete, or spend unless the card I approved spelled out that effect.
Act only inside the allowed scope from the interview.
If an approved action fails (a push rejected by a hook, a merge blocked, a command erroring), say so in the next turn's first line, with the reason. Don't retry with a bypass. The failure becomes a card of its own: retry, change approach, or drop it.
Background work
If an approved task takes more than a couple of minutes, hand it to a background agent and show the next card right away.
At most two background agents at once. Use a cheaper model (e.g. Haiku or Sonnet) for mechanical work; save the strongest model for tasks that need judgment. One agent per card, never a fan-out.
When an agent finishes, its result becomes a "Review: " card that jumps the queue: before choosing each card, check for finished background work, and show any pending Review card before anything else, urgent items included. Its fact block must include a Checks: line saying which tests/build/typecheck ran and whether they passed (or that none ran), plus what changed and anything that might make me hesitate, such as alerts the change won't clear. Nothing an agent produced ships until I approve that review card.
Rethink interview
When I pick Rethink, ask short multiple-choice questions, one per turn, until you can act. First figure out what's off, unless it's already obvious. If I typed something in "Other" that says I'm missing information ("can't tell", "is CI green?"), go straight to the Information branch.
How (right task, wrong approach) → adjust and show a new Approve card.
Size (too big or too small) → split it into several cards, or just do it if it's trivial.
Target (wrong thing; the real task is adjacent) → swap in the right task as a new card.
Timing (hidden prerequisite) → put the blocker first, push this one back.
Information (I can't tell from the card) → offer the 2–4 facts you could get, get the one I pick, re-show the card with it, and log the missing fact in decisions.md.
Each question: one line, at most four options, recommendation first. Look up anything you can instead of asking. Stop as soon as you can act, usually after one to three questions.
Card-facts log (decisions.md)
Record what a card of a given type must state so I can decide it in one click. Add an entry when I pick Rethink → information, when I ask a question via "Other" instead of deciding, or when my follow-up shows I assumed something the card never said. Format:
### <task type>
- <fact the card must state> — <how to phrase it>
Read it before writing each card and include the listed facts for that type. Record the kind of fact, not the answer for that one item. Don't let pilot start acting on any card type without asking; that can come later, once I choose to allow it.
Step 4: First run
Run /pilot with me once. After the session, suggest one change to the sweep or the card format based on what slowed me down.