/autopilot:nextfrom autopilot
Scans projects, plans, backlog, and proposals to recommend the next highest-priority task. Use via "/next" or "what should I work on".
Ships in autopilot. 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.
Read when SKILL.md points to them.
Routing overlap? If this intent better matches a sibling skill, redirect per references/routing-tiebreaks.md (prefer backlog scanning over strategic prioritization debate).
Scan all work sources, present categorized results, converge to a single recommendation.
!cat .claude/next-config.md 2>/dev/null || true
| Trigger | When | Notes |
|---|---|---|
| Auto | After autopilot:project-lifecycle completes | Replaces old Backlog Pickup |
| Manual | User types /next | Any time |
| Deep | /next --deep | Forces C-level scan |
Read .claude/next-state.json to determine depth.
| Level | Condition | Scope | Time |
|---|---|---|---|
| A | Default | Structured data (INDEX/BACKLOG/plans/proposals) | Seconds |
| B | Last A > 12 hours ago | A + skill sizes, knowledge staleness, MEMORY.md size | 10-30s |
| C | /next --deep | B + git log cold zones, TODO/FIXME stats, deploy drift | 1-2 min |
Update .claude/next-state.json after each scan with ISO timestamps.
Process accumulated digests and improvement-queue without user interaction. Details: references/phase0-hygiene.md
Paths below come from bash scripts/resolve-project-paths.sh --field <index|backlog>.
| Category | Source | Method |
|---|---|---|
| Dev | <index> | Find in-progress projects' next Phase |
<index> rows with Version active | The plan registry (check-plan-graduation.js's plan_unregistered gate) — plans in design/implementation stage | |
<backlog> | Check if trigger conditions are met | |
docs/proposals/ | List pending proposals | |
| Maintenance | improvement-queue.json | Pending items (from Phase 0) |
[B] skills/*/SKILL.md | Skills > 200 lines | |
| [B] MEMORY.md | > 170 lines | |
[B] ~/.autopilot/distill/scan-state.json | mtime > 14 days OR file missing (scan never ran) → list "distill frequency scan overdue" under Maintenance | |
| Knowledge | session-digests/ | Phase 0 results |
[B] knowledge/*.md | last-verified > 30 days | |
| Tech Debt | <backlog> tech-debt | List all (even unmet triggers) |
[C] src/ | TODO/FIXME count | |
[C] git log --since="30 days ago" | Untouched src/ subdirectories |
P1: In-progress project's next Phase (interrupted work is highest priority)
P2: Backlog XS/S/M-effort with met trigger conditions (quick wins)
P3: Active plans (designed, awaiting implementation)
P4: Maintenance — improvement-queue + stale knowledge (XS/S effort)
P5: Backlog L/XL-effort (human gate) with met trigger conditions
P6: Proposals (need evaluation first)
P7: Tech debt / unmet-trigger Backlog (list only)
-- Global Scan (<A/B/C> level) --
[Dev]
- <item> — <source>, <size>
[Maintenance]
- <item> — <type> (S)
[Knowledge]
- <N> session digests processed (<M> recorded, <K> skipped)
[Tech Debt]
- <item> — backlog, trigger: <condition>
---
Recommendation: <highest priority item>
Reason: <why this one>
Size: <S/L>
Next: confirm then invoke autopilot:dev-flow
If all sources empty: suggest /next --deep or propose new features.
autopilot:dev-flow with selected taskautopilot:dev-flow with user's choice| Skill | Relationship |
|---|---|
autopilot:dev-flow | Execution engine — /next selects task, dev-flow takes over |
autopilot:project-lifecycle | Invokes /next after archiving |
digest-review (absorbed) | Absorbed into Phase 0 |
improvement-queue (absorbed) | Absorbed into Phase 0 (references/phase0-hygiene.md) |
memory-health (absorbed) | B-level partially calls its checks; see autopilot:learn skill, Knowledge Health Audit section |
When a depth-0 brain picks the next item WITHOUT the user (CEO mode idle
transition), the pick is a proxy decision and goes through
scripts/next-pick.js: parse extracts
machine-readable candidate rows from the resolved <backlog>, pick ranks them
deterministically from a materialized record (user class-weights outrank every
system signal; L/XL-effort or urgent (!/急) rows, board-tagged, and hard-problem rows queue
ask-first and are NEVER auto-picked) and appends the pick + record to the
decision ledger for the round-end report. Interactive /next keeps this skill's
judgment flow — the script is the autonomous path's deterministic subset.
A row's age_days comes from its Since date (parse --today YYYY-MM-DD fixes the reference day).
Backlog Effort values are XS–XL with an optional !/急 urgent suffix; the retired values Fix/H are rejected. Migrate a backlog with node scripts/migrate-backlog-entries.js --rename-effort --apply.
autopilot:dev-flow — task execution after selectionautopilot:learn — called when Phase 0 finds high-value digestsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cookys/autopilot --plugin autopilot32 skills in this plugin
/agent-callContact an already-running persistent coding-agent session via fleet v2 (fallback: Claude SendMessage + outbox). Use when: "通知 <host>", "跟 <host> 說", naming a fleet member/pane. Not for: opinions (→ consult), hetero review (→ hetero-review), new workers (→ /l4–/l6).
/auditCompare two existing implementations for feature parity and missing items. Use when: "compare X with Y", "verify X matches Y", "比對 X 和 Y". Not for: future plan review, single-bug debug, writing tests.
/brainstormPre-code Socratic design exploration that surfaces 2-3 approaches and gates coding until approved. Use when: "help me think through X", "還沒想清楚", "我不確定要怎麼做". Not for: existing options (→ think-tank), external research (→ survey), chosen approach/quick fix (→ dev-flow).
/ceo-agentFull delegation — you own the goal end-to-end, user just wants results. Triggers: "CEO mode", "get it done", "you decide", "handle everything", "I trust you", "take over", "full authority", "just do it", "搞定 X", "幫我處理", "全權處理", "你決定". Not for: research-only (→ survey), participatory planning (→ dev-flow), or parallel task dispatch.
/debugEvidence-first debugging for correctness bugs, crashes, and flaky tests. Use when: diagnosing bugs, crashes, or intermittent failures. Not for: performance/latency/memory issues (→ profiling).
/dev-flowStart here before writing any code — sizes the task (XS/S/M/L/XL, bug, urgent `!`), sets up branch and session rules. Use when: "I'm starting on X", "quick fix for Y", "continuing from yesterday", "hotfix needed", "let's implement X", "skip to coding", "我要開始做 X", "快速修一下", "接續昨天的進度", resuming a feature branch, or any task that touches code. Not for: debugging (→ debug), authoring a plan doc (→ references/plan-template.md), pre-code design exploration (→ brainstorm), or code review (→ quality-pipeline).
Other plugins' skills for the same job