一键导入
whats-next
Analyze the current conversation and create a handoff document for continuing this work in a fresh context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze the current conversation and create a handoff document for continuing this work in a fresh context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Save current session state mid-session — faster than /whats-next, designed for crash recovery
Apply engineering principles to code or design — DRY, KISS, SRP, YAGNI, phased delivery
Surface assumptions collaboratively before proceeding — beginner's mind, invoked depth
Gather requirements through adaptive questioning before executing any task
Evaluate decisions across three time horizons
Drill to root cause by asking why repeatedly
基于 SOC 职业分类
| name | whats-next |
| description | Analyze the current conversation and create a handoff document for continuing this work in a fresh context |
| allowed-tools | Read Write Shell WebSearch WebFetch |
Create a comprehensive, detailed handoff document that captures all context from the current conversation. This allows continuing the work in a fresh context with complete precision.
PRIORITY: Comprehensive detail and precision over brevity. The goal is to enable someone (or a fresh AI session) to pick up exactly where you left off with zero information loss.
Before creating anything, check whether the session's work is already fully persisted:
git status and git log --oneline -5 — is the working tree clean? Are all changes committed?If all work is committed and there's no in-flight state: tell the user the session is fully persisted and no handoff is needed. If a stale whats-next.md (project-scoped) exists, ask whether to delete it.
If there is genuine in-flight state: proceed to Step 1.
Adapt the level of detail to the task type (coding, research, analysis, writing, configuration, etc.) but maintain comprehensive coverage:
Original Task: Identify what was initially requested (not new scope or side tasks)
Work Completed: Document everything accomplished in detail
Work Remaining: Specify exactly what still needs to be done
Attempted Approaches: Capture everything tried, including failures
Critical Context: Preserve all essential knowledge
Current State: Document the exact current state
Write to whats-next.md (project-scoped) at the project root.
Before writing the handoff, evaluate the session output against these triggers. If two or more fire, surface a recommendation before proceeding:
| Trigger | Signal |
|---|---|
| Argumentative output | An essay, proposal, brief, or plan was drafted or significantly revised this session |
| Decision with trade-offs | A non-trivial technical or design choice was made (architecture, tool, scope, framing) |
| External-facing output | Work is being prepared to share, publish, or submit |
| Unchallenged direction | The session has produced uniformly agreeable outputs — no pushback, no alternatives considered |
| Load-bearing claim | The work rests on a claim that wasn't verified or challenged during the session |
| Scope expansion | The task broadened mid-session beyond what was originally requested |
| Surprising conclusion | The session arrived at a conclusion that would have been non-obvious at the start |
If two or more triggers fire:
"Spar conditions detected: [list which triggers]. Want to run
/sparon [specific target] before closing? It would take ~5 minutes and this is the highest-value moment — the output is fresh and a spar here prevents carrying a weak argument into the next session."
Do not run the spar automatically. Always ask first.
If the session was purely mechanical — no arguments, no decisions, no output that could be wrong — skip entirely.
Before writing the handoff, identify assumptions this session is carrying that a fresh session should question rather than inherit:
If any assumptions are worth surfacing, include an <assumptions_carried> section in the handoff. If the session was straightforward with no framing decisions, skip it.
Write whats-next.md (project-scoped) using this structure:
<original_task>
[The specific task that was initially requested — be precise about scope]
</original_task>
<work_completed>
[Comprehensive detail of everything accomplished:
- Artifacts created/modified/analyzed (with specific references)
- Specific changes, additions, or findings (with details and locations)
- Actions taken (commands, searches, API calls, tool usage, etc.)
- Key discoveries or insights
- Decisions made and reasoning
- Side tasks completed]
</work_completed>
<work_remaining>
[Detailed breakdown of what needs to be done:
- Specific tasks with precise locations or references
- Exact targets to create, modify, or analyze
- Dependencies and ordering
- Validation or verification steps needed]
</work_remaining>
<attempted_approaches>
[Everything tried, including failures:
- Approaches that didn't work and why
- Errors, blockers, or limitations encountered
- Dead ends to avoid
- Alternative approaches considered but not pursued]
</attempted_approaches>
<critical_context>
[All essential knowledge for continuing:
- Key decisions and trade-offs
- Constraints, requirements, or boundaries
- Important discoveries, gotchas, or edge cases
- Environment, configuration, or setup details
- Assumptions requiring validation
- References to documentation, sources, or resources]
</critical_context>
<current_state>
[Exact state of the work:
- Status of deliverables (complete/in-progress/not started)
- What's finalized vs. what's temporary or draft
- Temporary changes or workarounds in place
- Current position in workflow or process
- Any open questions or pending decisions]
</current_state>
<assumptions_carried>
[Optional — only include if this session made framing decisions or carried assumptions
that the next session should question rather than inherit.]
</assumptions_carried>
<open_threads>
[Optional — only include if the session left multiple threads open in a depth-first stack.
Format:
- `[bottom]` Parent topic — status
- `[open]` Subtopic — what's waiting
The next session should return to each thread in reverse order (innermost first).]
</open_threads>