agent-md-refactor
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits…
Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state',
Claude Code
$ npx -y skills add softaworks/agent-toolkit --skill session-handoff --agent claude-code
Codex
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a codex -y
Cursor
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a cursor -y
Gemini CLI
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a gemini-cli -y
GitHub Copilot
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a github-copilot -y
OpenCode
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a opencode -y
Windsurf
$ npx skills add softaworks/agent-toolkit --skill session-handoff -a windsurf -y
name: session-handoff description: "Creates comprehensive handoff documents for seamless AI agent session transfers. Triggered when: (1) user requests handoff/memory/context save, (2) context window approaches capacity, (3) major task milestone completed, (4) work session ending, (5) user says 'save state', 'create handoff', 'I need to pause', 'context is getting full', (6) resuming work with 'load handoff', 'resume from', 'continue where we left off'. Proactively suggests handoffs after substantial work (multiple file edits, complex debugging, architecture decisions). Solves long-running agent context exhaustion by enabling fresh agents to continue with zero ambiguity."
Creates comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves the long-running agent context exhaustion problem.
Determine which mode applies:
**Creating a handoff?** User wants to save current state, pause work, or context is getting full.
**Resuming from a handoff?** User wants to continue previous work, load context, or mentions an existing handoff.
**Proactive suggestion?** After substantial work (5+ file edits, complex debugging, major decisions), suggest: > "We've made significant progress. Consider creating a handoff document to preserve this context for future sessions. Say 'create handoff' when ready."
Run the smart scaffold script to create a pre-filled handoff document:
python scripts/create_handoff.py [task-slug]
Example: `python scripts/create_handoff.py implementing-user-auth`
**For continuation handoffs** (linking to previous work):
python scripts/create_handoff.py "auth-part-2" --continues-from 2024-01-15-auth.md
The script will:
Open the generated file and fill in all `[TODO: ...]` sections. Prioritize these sections:
1. **Current State Summary** - What's happening right now 2. **Important Context** - Critical info the next agent MUST know 3. **Immediate Next Steps** - Clear, actionable first steps 4. **Decisions Made** - Choices with rationale (not just outcomes)
Use the template structure in [references/handoff-template.md](references/handoff-template.md) for guidance.
Run the validation script to check completeness and security:
python scripts/validate_handoff.py <handoff-file>
The validator checks:
**Do not finalize a handoff with secrets detected or score below 70.**
Report to user:
List handoffs in the current project:
python scripts/list_handoffs.py
This shows all handoffs with dates, titles, and completion status.
Before loading, check how current the handoff is:
python scripts/check_staleness.py <handoff-file>
Staleness levels:
The script checks:
Read the relevant handoff document completely before taking any action.
If handoff is part of a chain (has "Continues from" link), also read the linked previous handoff for full context.
Follow the checklist in [references/resume-checklist.md](references/resume-checklist.md):
1. Verify project directory and git branch match 2. Check if blockers have been resolved 3. Validate assumptions still hold 4. Review modified files for conflicts 5. Check environment state
Start with "Immediate Next Steps" item #1 from the handoff document.
Reference these sections as you work:
As you work:
For long-running projects, chain handoffs together to maintain context lineage:
handoff-1.md (initial work)
↓
handoff-2.md --continues-from handoff-1.md
↓
handoff-3.md --continues-from handoff-2.mdEach handoff in the chain:
When resuming from a chain, read the most recent handoff first, then reference predecessors as needed.
Handoffs are stored in: `.claude/handoffs/`
Naming convention: `YYYY-MM-DD-HHMMSS-[slug].md`
Example: `2024-01-15-143022-implementing-auth.md`
| Script | Purpose | |--------|---------| | `create_handoff.py [slug] [--continues-from <file>]` | Generate new handoff with smart scaffolding | | `list_handoffs.py [path]` | List available handoffs in a project | | `validate_handoff.py <file>` | Check completeness, quality, and secu
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits…
Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for…
Generate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document…
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or…
This skill should be used when creating a Claude Code slash command. Use when users ask to "create a command", "make a slash…
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…