mh-cto-sdlc-context-save
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-13
- Stars
- ★ 2
- Forks
- 0
02 资源文件 2
- 其他customize.toml222 B
- 参考文档mh-skill-manifest.yaml215 B
03 SKILL.md 正文
Context Save
Session-abort recovery (D32/OQ5-B): This skill writes the session_state block into the story file. A future story-kickoff run will detect this block and offer a clean resume path. Without context-save, an interrupted session is invisible — the next developer walks in cold with no recovery information.
Elite character: Abandoning a session without saving context is the equivalent of a surgeon leaving the operating room without notes. The next practitioner has to guess what was done, what was decided, and what remains. Context save is not bookkeeping — it is respect for continuity.
Step 1 — Confirm In-Progress Story
Read _mh-output/cto/sdlc/sprint-status.yaml. Find the current in-progress story.
If no story is in-progress:
- "No story is currently in-progress. Context save only applies to an active session."
- Check for
reviewstories: "A story is in review. Run/mh-cto-sdlc-code-reviewto complete it."
Step 2 — Elicit Session State
Ask the following to build the session_state block. These are short, specific questions:
Q1 — Last known-good state: "What is the last point in the implementation where all tests were passing?"
Listen for: specific behavior name, specific test name, or "none yet — no green state reached."
Q2 — Work in progress: "What were you working on when the session ended? One sentence."
Q3 — Known divergence: "Did anything unexpected happen that future-you should know about? A decision made, an assumption broken, a shortcut taken?"
Q4 — Next action: "If you were starting fresh tomorrow, what is the first thing you would do?"
These four questions produce a context block that any developer or AI agent can act on without reading the full implementation history.
Step 3 — Write Session State
Update .mh-state/stories/{story-id}/story.md — dev-agent-record:
status: in-progress
session_state:
saved_at: '{YYYY-MM-DD HH:MM}'
last_green_state: '{verbatim from Q1}'
work_in_progress: '{verbatim from Q2}'
divergence_notes: "{verbatim from Q3, or 'none'}"
resume_action: '{verbatim from Q4}'
last_updated: '{YYYY-MM-DD}'
The story file status remains in-progress. The story is not abandoned — it is paused with a recovery map.
Step 4 — Verify Recoverability
Read back the session_state block. Ask: "Would a developer with no prior context be able to resume this story from this state?"
If no: prompt for clarification on the weakest field. The session_state is not complete until it is self-contained.
If yes: confirm: "Session state saved. Story '{name}' is paused at: '{last_green_state}'. Resume with /mh-cto-sdlc-story-kickoff — it will detect this session state and offer the resume path."
Step 5 — Optional: Mid-Sprint Status Check
Optionally, produce a brief mid-sprint status if requested:
Sprint status as of {date}:
Done: {N} stories
In-progress: 1 story (paused — context saved)
Ready-for-dev: {N} stories
Backlog: {N} stories
Next story to pick up: "{next ready-for-dev story name}"
Step 6 — Present Summary
Context saved for story '{name}'.
Last green state: {value} Resume action: {value}
Story status: in-progress (paused)
To resume: Run /mh-cto-sdlc-story-kickoff — it will detect this session state and offer a clean resume.
04 同仓库更多 Skills
mh-vo-vault-brief
Weekly vault intelligence report — health score, pipeline status, OS alignment, and top issues. Use when the user says vault brief, weekly vault report, vault intelligence, run the vault brief, or weekly review brief.
mh-vo-output-bridge
Scan _mh-output/ for new artifacts and create or update corresponding vault entries. Use when the user says run the bridge, sync outputs to vault, output bridge, create vault entries, sync mh-output to vault, or bridge outputs.
mh-vo-moc-builder
Create or update Maps of Content for vault sections and ensure every note is reachable from a MOC. Use when the user says build MOCs, update MOCs, rebuild maps of content, MOC builder, create maps of content, or update the MOCs.
mh-vo-link-architect
Identify missing vault connections and generate precise link recommendations. Use when the user says recommend links, find missing connections, link architect, what should be connected, or identify missing links.
mh-vo-base-builder
Generate Obsidian Bases (.base files) for live database views of vault data. Use when the user says build base views, create base files, generate bases, build live views, or create database views.
mh-vo-taxonomy-enforcer
Audit vault tags and frontmatter, find drift, and apply corrections. Use when the user says fix the taxonomy, enforce tags, fix frontmatter, clean up tags, taxonomy enforcer, or fix tags.