From smart-dev
Save current session state to a handover document for seamless continuation in a new session. Invoke manually or triggered automatically when context window reaches 85%.
npx claudepluginhub coolwuu/smart-dev-plugin --plugin smart-devThis skill uses the workspace's default tool permissions.
Generate a comprehensive handover document that captures the current session state for seamless continuation in a new session.
Implements Playwright E2E testing patterns: Page Object Model, test organization, configuration, reporters, artifacts, and CI/CD integration for stable suites.
Guides Next.js 16+ Turbopack for faster dev via incremental bundling, FS caching, and HMR; covers webpack comparison, bundle analysis, and production builds.
Discovers and evaluates Laravel packages via LaraPlugins.io MCP. Searches by keyword/feature, filters by health score, Laravel/PHP compatibility; fetches details, metrics, and version history.
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: