一键导入
session-continuation
Project-agnostic guidance for continuing work across Claude sessions. Ensures context recovery, task resumption, and state reconciliation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Project-agnostic guidance for continuing work across Claude sessions. Ensures context recovery, task resumption, and state reconciliation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | session-continuation |
| description | Project-agnostic guidance for continuing work across Claude sessions. Ensures context recovery, task resumption, and state reconciliation. |
Guide Claude sessions to resume work intelligently by recovering context, identifying in-progress tasks, and reconciling state from previous sessions.
BEFORE accepting user's work request, ALWAYS run these checks:
git status
Look for:
backlog/tasks/: Indicates MCP bypass (tasks created via Write instead of MCP tools)
# Find orphaned In Progress tasks
mcp__backlog__task_list(status="In Progress")
# Find stale Done tasks needing archive
mcp__backlog__task_list(status="Done", limit=20)
Look for:
task_complete(id) or reset to "To Do" with task_edit(id, status="To Do")task_complete(id) to move to completed/ folderPresent hygiene check results BEFORE starting new work:
Example Report:
Session startup hygiene check:
Git status:
- 2 uncommitted files: draft-1.md (1,200 words), research.md (updated citations)
- Recommendation: Commit these before starting new work?
Backlog state:
- 2 tasks In Progress: task-35.2 (first draft), task-36.1 (research)
- 15 tasks Done (not archived)
- Recommendation: Complete task-35.2 or reset to To Do? Archive Done tasks?
Please confirm cleanup approach before I proceed.
This protocol prevents:
Critical: Assess before acting. Never assume clean slate.
Complete all cleanup actions before proceeding to context recovery.
# If MCP resources available:
Read backlog://workflow/overview
# If only tools available:
Call: mcp__backlog__get_workflow_overview()
Why: Understand project-specific task management conventions before searching.
Always read project documentation to understand current state:
# Project root documentation
Read(file_path="/CLAUDE.md")
# If working in subdirectory, read that CLAUDE.md too
Read(file_path="/path/to/subdir/CLAUDE.md")
# Example: Working on Essay 6
Read(file_path="/essays/06-skills-crisis-build-vs-buy/CLAUDE.md")
What to look for:
# Option 1: List all in-progress (after hygiene cleanup)
mcp__backlog__task_list(status="In Progress")
# Option 2: Search by keyword
mcp__backlog__task_search(query="<project-specific term>")
# Option 3: List recent tasks
mcp__backlog__task_list(limit=10)
Priority order: In Progress → assigned to you → recently modified → high priority
Before responding to user, synthesize:
Report findings. Don't start work until user confirms direction.
1. Broad search first:
mcp__backlog__task_list(status="In Progress", limit=20)
2. Narrow by assignment:
mcp__backlog__task_list(assignee="<your-name>", limit=10)
3. Keyword search for topic:
mcp__backlog__task_search(query="essay", status="In Progress")
4. View full context:
mcp__backlog__task_view(id="task-XX")
From task metadata:
From task notes:
From acceptance criteria:
Before continuing work:
Read task plan (task_view → Implementation Plan section)
Check implementation notes (task_view → Notes section)
Review git history
git log --oneline -10
git diff
Identify continuation point
Scenario A: Task marked "In Progress" with commits
Scenario B: Task marked "In Progress" with uncommitted changes
Scenario C: Task marked "In Progress" with no changes
Scenario D: Multiple tasks "In Progress"
Common pattern: User pastes final message from previous session:
Example handoff:
"Completed: task-35.1 (research compilation)
In Progress: task-35.2 (first draft - 40% done)
Blocked: task-35.3 (waiting for draft completion)
Next: Finish draft, then move to critique"
Your response:
Verify against current state:
mcp__backlog__task_view(id="task-35.2")
git status
Reconcile discrepancies:
Extract actionable items:
Report reconciliation: "Verified: task-35.1 is complete with commit abc123. Task-35.2 shows draft-1.md at 2,100 words (target 4,000-5,000). Resuming draft generation from Section 3."
User says: "Continue where we left off"
Your protocol:
Example response: "Found task-35.2 (first draft) marked In Progress. Git shows draft-1.md with 2,100 words uncommitted. Last commit was research completion. Recommend: Continue draft to 4,000-5,000 words, then commit. Proceed?"
Before closing conversation, document:
Completed work:
In-progress work:
Blocked work:
Recommended next actions:
## Session Summary
**Completed:**
- [task-35.1] Research compilation → commit abc123
- [task-35.5] Editorial standards → commit def456
**In Progress:**
- [task-35.2] First draft (2,100/4,000 words, Section 3 incomplete)
Resume: Continue Section 3, then Sections 4-5
**Blocked:**
- [task-35.3] Critique (waiting for draft completion)
Unblock: After task-35.2 completes
**Next Session:**
1. Finish task-35.2 (first draft)
2. Commit draft when complete
3. Start task-35.3 (critique)
Update task notes with this summary:
mcp__backlog__task_edit(
id="task-35.2",
notesAppend=["Session ended: 2,100 words complete. Resume at Section 3."]
)
Indicators:
1. Assess legitimacy:
2. Update task state:
If work exists but incomplete:
mcp__backlog__task_edit(
id="task-XX",
notesAppend=["Resuming after interruption. Found partial work in <file>."]
)
If task should be reset:
mcp__backlog__task_edit(
id="task-XX",
status="To Do",
notesAppend=["Reset to To Do - no progress evidence found."]
)
If task should be completed:
mcp__backlog__task_complete(id="task-XX")
# Then add completion notes
3. Handle uncommitted changes:
If changes are valuable:
git add <files>
git commit -m "[task-XX] Recovered work from previous session"
If changes are experimental/broken:
git stash save "WIP from previous session"Every new session, before responding to user:
git status to check uncommitted work and untracked filestask_list(status="In Progress") to find orphaned taskstask_list(status="Done", limit=20) to check for backlog clutterbacklog://workflow/overview or call get_workflow_overview()/CLAUDE.md (project overview)CLAUDE.md if working in specific componenttask_view(id=...) to verifyNever assume:
Always verify:
This skill is project-agnostic. Combine with project-specific skills:
Key principle: Never duplicate work. Always recover context before acting.
Project-agnostic workflow guidance for Backlog.md MCP task management. Covers search-first protocol, scope assessment, task creation standards, lifecycle management, and cross-session coordination.
Backlog management with the bd (beads) utility for issue tracking. Use when creating issues, claiming work, updating task status, closing completed work, or syncing the backlog with git.
How to create new Agent Skills following the open standard. Use when authoring new skills, extending agent capabilities, or packaging specialized knowledge into reusable formats.
Project-agnostic skill for git commit hygiene, linking tasks to commits, and maintaining clean repository state.
Git hygiene for multi-agent collaborative work. Use when performing version control operations, syncing with remote, committing changes, or ensuring work is properly shared with the team.
Execution skill for delegated tasks. Use this skill when you are a subagent that has been delegated a task by the tech lead. You must be diligent, hygienic, and deliver work that is "done" and "stable" according to the specification.