一键导入
ds-project-checkpoint
Sweep the session for durable context and route each piece to its owning file, so the session can be cleared or ended safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sweep the session for durable context and route each piece to its owning file, so the session can be cleared or ended safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Design a target architecture for a new system — module boundaries, dependency rules, seams, and build order — from its requirements. Reports a blueprint; changes nothing.
Analyze an existing codebase's architecture and produce a sequenced refactoring plan — assess module boundaries, dependency structure, and layering, then lay out ordered, risk-tagged steps. Language-agnostic. Reports a plan; changes nothing.
Turn a goal or another command's output into an ordered task roadmap.
Find the root cause of a failure with the scientific method — reproduce, isolate, fix, then prove it.
Interview the user relentlessly about a plan or design until reaching shared understanding.
Run an extremely strict maintainability + single-source-of-truth review of code changes — abstraction quality, file sprawl, spaghetti-condition growth, and duplicate/competing implementations. Reports findings by default; `--fix` applies the mechanical, unambiguous ones — structural/code-judo restructurings rest on judgment and stay reported.
基于 SOC 职业分类
| name | ds-project-checkpoint |
| description | Sweep the session for durable context and route each piece to its owning file, so the session can be cleared or ended safely. |
| disable-model-invocation | true |
When invoked, make sure nothing durable is lost before /clear or the end of a session — the counterpart to /ds-project-resume. Sweep the conversation for context a fresh agent will need, write each piece to its right home, update the plan state, and confirm it's safe to clear. Run it after any session — this guards the decisions and facts that otherwise live only in the conversation.
--handoff — also write a full handoff to .project/handoff.md (richer than the ## Now block: context, what was tried, gotchas). Use it when the next session needs more than the plan state — handing off to another person, or a long pause..project/ if needed..project/DECISIONS.md (create it on first write): one entry per decision — the question, the chosen answer, a one-line rationale; plain Markdown, leave existing entries intact..project/PROJECT.md. Never rewrite or refresh existing sections, never touch human-authored prose or constraints. If PROJECT.md is absent, or the map looks broadly stale (more than a one-line fact), don't edit it — flag it ("run /ds-project-map").DECISIONS.md, then flag SPEC.md as stale ("no longer reflects decision X — re-run /ds-spec"). Never edit SPEC.md — it is a structured artifact owned by /ds-spec.## Now section of .project/PLAN.md (step 5).## Roadmap statuses in PLAN.md (step 5).DECISIONS.md entry and each PROJECT.md additive line, show the exact write and get explicit approval before writing it — one item at a time; approval on one item is never approval of another (honor a batch approval if the user asks). The PLAN.md updates in step 5 are checkpoint's own state and need no approval.PLAN.md (automatic):
## Roadmap task statuses to match reality ([ ] / [~] / [x]).## Now: State (where things stand, 2–4 lines), Next (the single next action), Open questions (anything unresolved that blocks progress), and a short Watch line for non-blocking things to keep an eye on, if any.## Now/roadmap and report "nothing durable to route."--handoff: also write .project/handoff.md (current goal, what's done, what remains, key decisions, gotchas). Reference existing artifacts (PLAN.md, DECISIONS.md, commits) by path rather than duplicating them. Redact secrets/PII — the handoff is plaintext a fresh session will read.DECISIONS.md, a map fact to PROJECT.md, state to PLAN.md ## Now — never summarize all of it into one file.## Now, not a new notes file. EXPLORE.md stays a scratchpad — durable findings route to DECISIONS.md/PROJECT.md, never back into it.DECISIONS.md or duplicate an entry.DECISIONS.md, PROJECT.md). PLAN.md is checkpoint's own — overwrite it without prompting./ds-project-map refreshes PROJECT.md; only /ds-spec regenerates SPEC.md. Checkpoint appends the occasional PROJECT.md fact and otherwise flags drift.## Now is short and current — overwrite it, do not append. Don't copy the roadmap into ## Now; state is "where on the roadmap are we", not a duplicate of it.The updated ## Now block, a list of what was routed and where (decisions appended, PROJECT.md facts added, files flagged stale), and a one-line "safe to clear" confirmation — plus the handoff path, if written.