跳到主要内容
知仓学习社ZHICANG

gsd_resume-work

Resume work from previous session with full context restoration

不碰外部(只输出文字)无严重或高危命中davepoon/buildwithclaude

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

<objective>

Restore complete project context from a previous session — handling both manual pause (from /gsd:pause-work) and auto-compact (from the PreCompact hook) handoffs identically.

</objective>

<process>

  1. Detect handoff state.

Check for .planning/HANDOFF.json via Read tool. If missing, the session has no handoff — announce "No handoff found" and proceed to normal /gsd:progress routing.

  1. Load STATE.md.

Read .planning/STATE.md to restore the big-picture project position. If missing, reconstruct from .planning/ROADMAP.md and the latest phase directory's SUMMARY.md files; if reconstruction fails, surface the error and stop.

  1. Read the handoff.

Parse .planning/HANDOFF.json. Extract phase, plan, task, status, source, uncommitted_files, decisions, context_notes, next_action. Per HANDOFF schema, all fields are always present (empty arrays / null for unset).

  1. Present project status.

Emit a compact status block covering:

  • Milestone + percent complete (from STATE.md frontmatter progress.percent).
  • Current phase name and number.
  • Plan / task position from the handoff.
  • Handoff source (manual-pause vs auto-compact) and timestamp.
  • Top 3 decisions and any blockers from the handoff.
  • Uncommitted files summary.
  • The next_action string verbatim — it's the resumption hint.
  1. Route to the next action.

Offer 1-3 concrete options based on handoff state. Common patterns:

  • If task was mid-execute: offer /gsd:execute-phase with the current phase.
  • If phase is at plan boundary: offer /gsd:plan-phase or /gsd:execute-phase for the next phase.
  • If there are uncommitted files that look in-progress: call attention to them before offering continuation.
  1. Clean up the handoff (LIFE-01).

After routing — once steps 1-5 have completed without error — remove the handoff file:

   node "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/cache/gsd-plugin/current}/bin/gsd-tools.cjs" checkpoint --clear

If the command is unavailable for any reason, fall back to direct removal:

   rm -f .planning/HANDOFF.json

Do not abort the resume if cleanup fails — it's hygiene, not correctness. The next session's SessionStart will overwrite a stale handoff anyway (per D-05 from Phase 4: latest snapshot wins).

</process>

<rules>

  • Step 6 runs last, after all context is loaded and the user has been shown status. A failed/aborted resume (steps 1-5 error out) leaves HANDOFF.json on disk for recovery (per D-08).
  • If HANDOFF.json is absent in step 1, skip everything — don't attempt to clean up what isn't there. checkpoint --clear is idempotent but unnecessary work.
  • The skill is the single owner of HANDOFF.json deletion. The SessionStart hook must NOT delete — it only detects (per D-10).

</rules>

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 3,470
本站分层T1
该仓技能数381
原文件路径plugins/gsd/skills/resume-work/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 381 个技能