plugins/clade/skills/next/SKILL.md
\"What should I work on next?\" — two modes. Fast mode (default): one-shot recommendation from docs + git state, ≤10 lines, no interview. Deep mode (`/next deep` or when user asks to explore priorities): multi-round interview to surface the best move.
npx skillsauth add shenxingy/claude-code-kit nextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This workflow runs directly in Codex. Do not launch the claude CLI or
delegate the workflow to Clade's MCP bridge.
Codex compatibility rules:
AGENTS.md files for repository instructions. If a project
has only CLAUDE.md, treat it as legacy project guidance and read it too..clade/ (or ~/.clade/ for personal
state). Existing legacy Claude state may be read for migration, but do not
create new vendor-specific state./skill-name reference means the corresponding Codex $skill-name skill,
or the same workflow invoked naturally when explicit skill invocation is not
available.<plugin-root>/... are relative to the installed Clade plugin
containing this SKILL.md; resolve that root before invoking a helper.You help the user pick the best next move. Two modes, picked automatically unless the user forces one.
Fast mode (default for drive-by asks like "下一步做什么"):
fast / quick, OR it's a short single-line question with no context about priorities being unclear.Deep mode (full multi-round interview):
deep, OR they explicitly say they're stuck / unsure / want to explore.If in doubt, start in fast mode and offer deep mode at the end: Want to go deeper? /next deep — the user can always escalate, but forcing them through 3 rounds for a casual ask wastes their time.
All estimates use AI-agent speed, not human programmer speed (see Time Scale Reference below).
| Human estimate | Codex equivalent | |---|---| | "a few hours" | 5–15 min (one focused session) | | "half a day" | 20–40 min | | "1 day" | 1–2 hours of agent time | | "1 week" | 3–6 hours across sessions | | "2+ weeks" | multi-session /loop, needs phasing |
When the user mentions effort, translate it: "you said 'a day of work' — that's probably one 30-min /loop run."
Execution task: Requirements are clear, outcome is known. Just run it. Discovery task: Requirements are fuzzy or outcome is uncertain. Run a 10–20 min spike first to reduce unknowns before committing to a full implementation.
Always distinguish these. A discovery task disguised as an execution task is the #1 cause of stalled autonomous runs.
Use when the user fired /next casually or with fast. Do all of this silently, then output.
TODO.md, PROGRESS.md, GOALS.md if present (≤1 Read each; skip missing).git log --oneline -10 and git status -sb for momentum signal.Output template (≤15 lines, no headers beyond these):
→ Top pick: {task}
Type: {Execution | Discovery (needs spike)}
Why: {one clause, referencing what you saw in docs/git}
Done when: {observable criterion}
Estimate: {one agent-session equivalent}
→ Runner-up: {task} — {when to pick this instead}
Parking lot: {1–3 items noted but not urgent, one line each} (omit if none)
Want to go deeper? /next deep
Then STOP. Don't ask a question. Don't run rounds. If the user agrees, they'll say so; if they want alternatives, they'll escalate with /next deep or name a different pick.
Skip Framing / Round 1 / Round 2 / Round 3 / Final Synthesis sections below — those belong to deep mode only.
Runs only when the user invoked /next deep, or fast-mode judgment said "this isn't a drive-by — they actually want to think."
Before asking anything, read the project docs silently:
GOALS.md — vision, phases, north starPROGRESS.md — what worked, what broke, current momentumTODO.md — backlog (prioritization, in-progress, stalled items)BRAINSTORM.md — unprocessed inboxBuild a mental model:
If any file is missing, that itself is a signal.
Before scanning the backlog, do a framing check. Ask 1–2 questions to validate the problem space — NOT to score tasks, but to check if the backlog itself is tracking the right things.
Ask one or two of these (pick the most relevant):
Wait for the user's answers. This often surfaces the real priority before Round 1 even starts.
Ask 4–5 targeted questions, one per angle. Present as a numbered list; ask the user to answer all before you continue.
Cover BOTH immediate and longer-horizon angles.
Angles (pick the most relevant given context):
Rules:
Pick 2–3 most interesting threads from Round 1 — ones with tension, uncertainty, or outsized impact.
For each thread, ask a follow-up that challenges assumptions or surfaces hidden constraints:
Follow-up angles:
Ask 2–3 follow-ups. NOT all of the above — only the ones relevant to what the user said.
Narrow to the top 2 candidates. Stress-test the front-runner:
After 3 rounds, synthesize into a structured plan optimized for Codex autonomous runs:
## Next Steps Plan
**Top pick**: [task name]
Type: [Execution | Discovery → spike first]
Why: [1–2 sentences from the conversation]
Risk: [main risk or open question]
Done when: [concrete, observable acceptance criteria]
Agent estimate: [e.g. "one 20-min session" / "2–3 sessions" / "needs /loop"]
Confidence: [1–5, with reason]
Parallelizable: [yes/no — if yes, which subtasks split into worktrees?]
IF Discovery task:
Spike first: [10–20 min agent run to answer: "X?" before committing]
Spike done when: [what the spike produces — a design doc, proof of concept, list of constraints]
**Runner-up**: [task name]
When to choose this instead: [condition — e.g. "if top pick blocked by X"]
Agent estimate: [same format]
**Sequencing**:
→ Do [A] first (it unblocks B), then [B] can run independently.
OR
→ [A] and [B] are independent — run in parallel worktrees.
OR
→ Spike [A] first (15 min), then decide between [B] and [C] based on findings.
**Parking lot** (surfaced but not urgent):
- [item] — [why it surfaced, why not now]
Then ask: "Want me to write this into TODO.md and BRAINSTORM.md?"
If yes:
TODO.md at appropriate priority with checkbox and agent-time estimate in brackets:
- [ ] Task name [~20 min agent run, confidence 4/5]- [ ] Spike: explore X approach [~15 min, unblocks task above]BRAINSTORM.md tagged [next-session YYYY-MM-DD]git log + file structure to infer context, then ask what the project is for before starting.clade/blockers.md3-strike rule: If the same approach fails 3 times, switch to BLOCKED — do not retry indefinitely.
development
Orchestrate a fleet of parallel `codex exec` workers with you (Claude Code) as the supervisor — spawn one per isolated git worktree, dispatch headless, verify each INDEPENDENTLY, PR/merge. The manual "codex-ultracode" pattern for fanning out real implementation, research, or review work onto Codex. Bakes in the hard gotchas (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers on — orchestrate codex, codex workers, codex fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (use the `second-opinion-codex` agent), NOT for web-UI worker decomposition (use `/orchestrate`).
development
Create and manage git worktrees for parallel Codex sessions
development
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
documentation
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)