next-action
Skill138 starsChanged 5 months agoMITView on GitHub
Use when the user wants a next-action recommendation based on current state — reads handoff/git/lessons/STATE and proposes top-3 by impact. Trigger: '/next', 'what should I do next', 'next action'. Proposes only, never executes.
In this repository19 other files it gives its agents.
- clean-roomSkill
- code-autopsySkill
- collab-auditSkill
- doc-driftSkill
- eval-leakage-auditSkill
- freezeSkill
- full-auditSkill
- goal-lockSkill
- integration-intakeSkill
- pre-pushSkill
- project-checkSkill
- project-initSkill
- project-overviewSkill
- scopeSkill
- session-checkpointSkill
- session-startSkill
- setupSkill
- skill-opsSkill
- stepbackSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Read the following 5 sources.
- Distinctive: line 118
no mock deception: never conclude "nothing to do" without actually reading files.
- Very specific: line 119
no silent brokenness: if a source fails to read, state ⚠️ failed to read [source name] explicitly.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/next — Next Action Recommender
Dominant Variable
Is the proposed action actually high-impact based on current project state? — it must come from measured files, not guesses.
Purpose
Reads current project state and proposes the top 3 next actions by impact. Different from stepback (direction check) — stepback asks "am I doing the right thing right now", this asks "what should I do next". Different from session-start (handoff load) — session-start restores the prior session, this recommends actions from current state.
Discard if: right after session start (session-start already loaded the handoff + output state). User already gave a specific task.
Key Assumptions
- Project has a CLAUDE.md — if broken: propose from git status alone (reduced scope).
- Is a git repository — if broken: propose from filesystem scan alone.
Trigger
/next- "what should I do next"
- "next action"
Workflow
Step 1: Collect State (parallel, 30s cap)
Read the following 5 sources. Skip missing files.
memory/session-handoff-LATEST.md— "What to do now" sectiongit status --short— uncommitted changed filesgit log --oneline -5— recent work flowtasks/lessons.md—conf≥0.7lessons stale 30+ days (need re-application)docs/STATE.mdor~/.claude/STATE.md— PENDING blockers
Step 2: Derive Candidates
Extract action candidates from collected data. Check each candidate's own underlying source for freshness (the specific lesson's seen date, the specific commit referenced) — not just whether the handoff file as a whole is old:
- Handoff "what to do now" → candidate as-is, but verify the specific file/commit it references is still current
- Uncommitted files → "commit + push" or "needs verification"
- PENDING blocker trigger satisfied → "resolve blocker"
- Stale lesson → "re-apply/verify lesson"
- git log pattern → "continue ongoing work" or "pivot direction"
Step 3: Sort by Impact
Narrow candidates to 3. Sort criteria:
- Urgency — resolve blocker > verify uncommitted > handoff item
- Dependency — prerequisites for other work take priority
- Timeliness — time-sensitive items (data collection after market close, pre-deploy verification, etc.)
Step 4: Output
## Next Actions
1. **[action]** — [1-line rationale. State which source it came from]
2. **[action]** — [rationale]
3. **[action]** — [rationale]
Tell me the number and I'll start that work in the next message.Output then stop immediately — this skill's own execution ends here (Invariant 1). If the user picks a number, the main session starts that work on the next turn; this skill does not continue and execute it itself.
Scope Boundary
| Does | Does NOT |
| [READ] Read handoff/git/lessons/STATE | Execute the proposed action directly |
| [READ] Propose top-3 actions by impact | Modify code or create files |
| [READ] State the evidence source for each proposal | Start work without user confirmation |
Invariants (never violate)
- Proposal only, never execute: recommend an action but never start it directly. Only proceed once the user picks. Violation → work executed without user intent.
- Evidence-based proposals: derive candidates only from git status/Glob/Read results. Never guess "this is probably needed". Violation → phantom proposals for nonexistent files/issues.
- 3-item cap: even with 10 candidates, narrow to 3. Prevents choice overload. Violation → user can't choose and defaults to "just handle it yourself".
- 10-line cap: output exceeding 10 lines is over-explaining. Violation → no longer distinguishable from stepback.
Error Recovery
| Failure Type | Recovery |
tool_failure | Skip the source that failed to read, propose from the rest (note: partial_read) |
missing_data | If both handoff and STATE are absent, propose from git status alone (note: minimal_mode) |
Rationalization Table
| Rationalization | Rebuttal |
| "5 recommendations would be more useful" | Beyond 3 is choice overload. 3 is the optimal number for action conversion (note: cap_violation) |
| "Just executing right away is faster" | Violates Invariant 1. Proposal and execution are different skills' jobs (note: scope_creep) |
| "Handoff alone is enough, why check git too?" | Handoff is a past snapshot. Current git status is the real state (note: stale_source) |
Truthful Reporting
- no mock deception: never conclude "nothing to do" without actually reading files.
- no silent brokenness: if a source fails to read, state
⚠️ failed to read [source name]explicitly.
Principles
- Current state is truth — the filesystem is authoritative, not memory
- Proposal is light, execution is heavy — this skill stays on the light side
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

