From smart-dev
Generates structured handover Markdown files capturing Claude Code session state, git status, decisions, tasks, and files for new session continuation. Auto-triggers at 85% context or manual invoke.
How this skill is triggered — by the user, by Claude, or both
Slash command
/smart-dev:auto-handoverThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a comprehensive handover document that captures the current session state for seamless continuation in a new session.
Generate a comprehensive handover document that captures the current session state for seamless continuation in a new session.
Read CLAUDE.md in the project root and look for HandoverPath: configuration
If found, use {project_root}/{HandoverPath}/ as the output directory
If not found, use {project_root}/handover/ as fallback, creating it if needed
Filename: {feature-or-task}-{phase(if any)}-{status}.md
epic-3.2-availability, guid-migration, security-remediation)phase2, phase3). Omit if N/A.in-progress, complete, blocked, etc.epic-3.2-availability-phase3-complete.mdguid-migration-complete.mdsecurity-remediation-phase2-in-progress.mdOne file per feature (overwrite rule): Before writing the new handover file, check the output directory for any existing file whose name starts with the same {feature-or-task} prefix. If found, delete it — the new file replaces it. This prevents file accumulation when the same feature progresses through phases.
epic-3.2-availability-phase3-complete.md should first delete any existing epic-3.2-availability-*.mdCollect the following information (use your full conversation context — this is why it's important to run this BEFORE context is lost):
/tmp/claude-context-pct.txt if it exists — include the percentage in metadataWrite the document with this exact structure:
---
auto_continue: false
threshold_triggered: {percentage from temp file, or "manual" if invoked manually}
created_at: {ISO 8601 timestamp}
session_branch: {current git branch}
feature: {feature name if in feature-dev workflow, otherwise "general"}
phase: {current phase number if in feature-dev workflow, otherwise "N/A"}
working_directory: {absolute path to project}
worktree: {worktree path if applicable, otherwise omit}
---
# Session Handover: {Short Description}
## Context
{1-2 sentences: What was the user working on? What was the overall goal of this session?}
## Key Decisions Made
{Bullet list of architectural, design, or implementation decisions made during this session.
Each decision should include WHY it was made, not just WHAT was decided.}
## Key Learnings
{Bullet list of important discoveries, gotchas, or patterns found during this session.
Focus on things that would be lost if context were cleared — things not documented elsewhere.}
## What Was Completed
{Numbered list of completed work items. Include file paths for each item.
Be specific — "Implemented X in Y file" not just "Worked on X".}
## Important Files
{Markdown table with columns: File Path | Purpose | Status (new/modified/reviewed)}
## Current State
{Describe the exact state right now:
- Are there uncommitted changes? What are they?
- Do tests pass? Which ones were run?
- Is the build clean?
- Any errors or issues currently unresolved?}
## What Needs To Continue
{Ordered list of remaining work items with enough detail to resume without prior context.
Each item should be actionable — not "finish the feature" but "implement the validation logic in X file for Y scenario".}
## Resume Instructions
{Step-by-step instructions for the next session to pick up exactly where this one left off:
1. What branch/worktree to be on
2. What to read first to get oriented
3. What command to run to verify state
4. What task to start with}
rm -f /tmp/claude-handover-warned.txt /tmp/claude-auto-handover-blocked.txt /tmp/claude-context-gate-lock.txt /tmp/claude-context-growth.txt /tmp/claude-context-warned-warn.txt /tmp/claude-context-warned-urge.txt (resets context gate + legacy warnings for future sessions).pre-compact-metadata.txt from the handover directory if it exists (the full handover supersedes it)After generating the handover, inform the user:
✅ Handover saved to: {file path}
When ready, run /clear to reset context, then /resume-handover to continue.
Check user preference: If this was triggered automatically (not manually), ask the user:
npx claudepluginhub coolwuu/smart-dev-plugin --plugin smart-devSaves session state at end of session and resumes it at start of next session. Useful when context is running out, wrapping up, or continuing previous work.
Creates structured handoff documents that capture session state, active goals, and artifact context for seamless continuation. Useful before clearing context or at end of session.
Documents session context to progress.md and copies a kickoff prompt to clipboard before context limits. Use for handoffs, session cleanup, or preparing to continue later.