Reusable session management and workflow system for Claude Code projects
Current Version: v2.2.0 (November 2025) - Autonomous modes for all skills!
NEW: All 6 skills now support autonomous operation!
-
Autonomous modes - Auto-detect and auto-execute with minimal prompting
- triaging-bugs: Auto-triage with severity detection (10-20x faster)
- triaging-features: Auto-approve/reject with scope detection (8-15x faster)
- scheduling-work-items: Auto-create sprints with velocity planning (2-5x faster)
- scheduling-features: Auto-create feature sprints with epic grouping
- scheduling-implementation-plan: Auto-schedule plans to sprints
- fixing-bugs: Auto-select highest priority bug to fix
-
Shared utilities - Reusable autonomous helper functions
- scripts/autonomous-helpers.sh with 6 shared functions
- Eliminates code duplication across skills
- Single source of truth for detection algorithms
-
Aggressiveness levels - Conservative, moderate, and aggressive
- Aggressive: Triage skills (easy to undo)
- Moderate: Scheduling skills (needs velocity data)
- Conservative: Polish skills (complex decisions)
See CHANGELOG.md for full details β
NEW: Complete sprints with retrospectives and validation!
- completing-sprints skill - Systematic sprint completion workflow
- Interactive mode (human-led) and Autonomous mode (Claude-led)
- Auto-detect completion from project state (yaml, roadmap, plans, git)
- Handle incomplete items (backlog/next sprint/keep)
- Generate retrospectives with statistics and notes
- Track velocity and completion rates
- validate-sprint-data.sh script - Data consistency validation
- Validates sprint docs β YAML β ROADMAP.md consistency
- Auto-fix mode for correctable issues
- Integrated into completing-sprints workflow
- Complete sprint lifecycle: create β work β complete β retrospect β repeat
See CHANGELOG.md for full details β
NEW: Schedule bugs AND features together in sprints!
- scheduling-work-items skill - Unified sprint planning with bugs and features
- Prioritize across bugs vs features (P0 bug vs Must-Have feature)
- Capacity planning with total work items
- ROADMAP.md shows unified bugs + features view
- triaging-bugs updated - Now supports sprint assignment
- Three workflows: Assign to Sprint, Fix Immediately, or Mark Triaged
- Quick bug-only sprint assignment during triage
- Bug status lifecycle - Extended schema with
scheduledstatus andsprint_id
See CHANGELOG.md for full details β
- Feature management extension - Feature request workflow with sprint planning
- scheduling-implementation-plan - Bridge standalone plans into sprints
Core skills:
- Bug reporting skills (included) - Report bugs, triage, fix autonomously
- Testing infrastructure extension - Set up E2E tests in 5-10 minutes
- Build/deploy extension - iOS/Android deployment pipelines
See EXTENSIONS.md for details β
Major improvements based on 2+ weeks of real-world usage:
- HANDOFF.md system - Replaces SESSION-STATUS.md with < 100 line hard limit
- Automated validation - Scripts enforce documentation constraints (no more bloat!)
- BLOCKERS.md - "What NOT to try" knowledge base prevents duplicate work
- Git hooks - Pre-commit validation catches issues before they commit
- Archive automation - Preserve history without documentation bloat
- 86% size reduction in session handoff docs (485 β 65 lines in HN2 project)
This toolkit provides a complete session management system for working with Claude Code as your development partner. It ensures:
- Seamless handoffs between sessions (even when context is lost)
- Quality gates enforced at every step
- Recovery procedures when things go wrong
- Consistent workflow across all sessions
- Progress tracking that survives context loss
- Documentation that stays lean through automation (v2.0)
- Bug tracking & testing automation through skills and extensions (v2.1)
| File | Purpose | When to Use |
|---|---|---|
START-HERE.md |
First session comprehensive onboarding | Once, at project start |
CONTINUE-SESSION.md |
Quick context loading with pre-flight checks | Every continuing session |
END-SESSION.md |
Mandatory handoff checklist with structured templates | Before ending ANY session |
HANDOFF.md |
NEW Session-to-session handoff (< 100 lines) | Created in project dir, updated every session |
BLOCKERS.md |
NEW Known issues & failed approaches | Created in project dir, updated as needed |
RECOVERY.md |
Comprehensive troubleshooting guide (9 scenarios) | When stuck or broken |
PROMPTS.md |
Copy-paste prompts for each session type | Reference for starting sessions |
USER-GUIDE.md |
NEW Maintenance guide for humans | Weekly/monthly maintenance |
Note: SESSION-STATUS.md is deprecated in v2.0 (replaced by HANDOFF.md + BLOCKERS.md)
| File | Purpose |
|---|---|
scripts/validate-docs.sh |
NEW Validates documentation size limits |
scripts/archive-handoff.sh |
NEW Archives old handoff versions |
scripts/pre-commit |
NEW Git hook for automatic validation |
scripts/install-git-hooks.sh |
NEW One-command hook installation |
git-hooks/pre-commit |
Legacy git hook (v1.0, still functional) |
git-hooks/setup-git-hooks.sh |
Legacy hook installer (v1.0) |
| File | Purpose |
|---|---|
SETUP.md |
How to adapt this toolkit to your project |
PROJECT-CONFIG.md |
Template for project-specific configuration |
QUICK-START.md |
15-minute quick start guide |
PLACEHOLDER-REFERENCE.md |
Complete list of all placeholders to customize |
| File | Purpose |
|---|---|
case-studies/README.md |
NEW Index of real-world implementations |
case-studies/healthnarrative2-documentation-system.md |
NEW HN2 case study with metrics |
Core Skills (Included):
| Skill | Purpose |
|---|---|
skills/reporting-bugs/ |
NEW Interactive bug capture during testing |
skills/triaging-bugs/ |
NEW Batch bug review and prioritization |
skills/fixing-bugs/ |
NEW Autonomous bug fixing with TDD |
Optional Extensions:
| Extension | Purpose | When to Use |
|---|---|---|
extensions/testing-infra/ |
E2E testing setup | Projects without automated tests |
extensions/build-deploy-setup/ |
Mobile deployment pipeline | iOS/Android apps going to production |
extensions/feature-management/ |
Feature request workflow & sprint planning | Projects with feature backlogs |
See EXTENSIONS.md for installation and usage guide.
-
Copy toolkit to your project:
cp -r /Users/andrewstyer/dev/dev-toolkit/* /path/to/your-project/ -
Customize for your project:
cd /path/to/your-project # Edit PROJECT-CONFIG.md with your project details # Follow SETUP.md instructions
-
Install validation scripts and git hooks:
./scripts/install-git-hooks.sh
-
Start first session:
# Give Claude Code the "First Session Prompt" from PROMPTS.md # Claude will read START-HERE.md and begin implementation
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β START: First Session Prompt β
β β’ Claude reads START-HERE.md β
β β’ Comprehensive onboarding (30-60 min) β
β β’ Begins implementation β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β CONTINUE: Continuing Session Prompt β
β β’ Claude reads CONTINUE-SESSION.md (2 min) β
β β’ Claude reads HANDOFF.md (< 100 lines) β
β β’ Checks BLOCKERS.md if needed β
β β’ Picks up where last session left off β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β WORK: Implementation β
β β’ Follow TDD workflow β
β β’ Run quality checks frequently β
β β’ If stuck β RECOVERY.md β
β β’ Update TodoWrite as you go β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β END: End Session Prompt β
β β’ Claude reads END-SESSION.md β
β β’ Runs quality checks (mandatory) β
β β’ Updates HANDOFF.md (structured template) β
β β’ Runs validation script β
β β’ Commits everything β
β β’ Provides session summary β
βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β (loop back to CONTINUE)
Problem Detected
β
Read RECOVERY.md
β
Find Your Scenario (9 common scenarios covered)
β
Follow Recovery Steps
β
Verify Quality Checks Pass
β
Document in BLOCKERS.md (if recurring)
β
Update HANDOFF.md
β
Continue Normal Workflow
- Claude Code loses context between sessions
- HANDOFF.md acts as external memory (< 100 lines, quick to read)
- Continuing sessions load context in < 5 minutes
- NEW: Automated archival preserves history without bloat
- Mandatory quality checks before moving forward
- TDD workflow enforced
- NEW: Git pre-commit hook validates documentation constraints
- NEW: Validation scripts catch drift before it happens
- 9 common failure scenarios documented
- Step-by-step recovery procedures
- NEW: BLOCKERS.md prevents duplicate investigations
- Prevention tips to avoid problems
- Clear "next steps" always documented in HANDOFF.md
- No time wasted figuring out what to do
- Consistent workflow across sessions
- NEW: Lightweight mid-session updates keep handoff current
Purpose: Comprehensive onboarding for Claude Code
Contains:
- Project overview and mission
- Required reading list
- Architecture overview
- Critical rules (TDD, quality gates, etc.)
- Quick start instructions
- Session handoff instructions
Customize with: Your project name, tech stack, architecture decisions, quality gates
Purpose: Quick context loading with pre-flight checklist
Contains:
- NEW: Mandatory pre-flight checklist (check for urgent overrides, read HANDOFF.md, check BLOCKERS.md)
- Session start checklist (git log, git status)
- Critical rules reminder
- Quick reference to key docs
- NEW: Mid-session update guidance (lightweight HANDOFF.md updates)
- TDD workflow refresher
- Quality gate commands
Customize with: Your project's key documentation paths, quality commands
Purpose: Mandatory session handoff checklist with structured templates
Contains:
- Step 1: Run quality checks (tests, TypeScript, build, git)
- NEW: Step 2.5: Update HANDOFF.md using structured template with line budgets
- NEW: Step 2.6: Update knowledge base (BLOCKERS.md or RECOVERY.md decision tree)
- Step 3: Commit everything (code + status doc)
- NEW: Run validation script before committing
- Step 4: Provide session summary (what done, what's next, blockers, test status)
Customize with: Your project's specific quality checks
Purpose: Session-to-session handoff that stays < 100 lines
Contains:
- Quick Start section (next task, why, estimated time) - MAX 10 lines
- State Check (test/TypeScript/git status) - MAX 5 lines
- Active Blockers (link to BLOCKERS.md or "None") - MAX 10 lines
- Recent Session Summary (current + 1 previous ONLY) - MAX 40 lines
- Context You Might Need (MAX 5 links) - MAX 15 lines
- If Something's Wrong (navigation) - MAX 10 lines
- Total budget: 90 lines (10 line buffer)
Created in: Project directory (e.g., your-project/HANDOFF.md)
Archived when: > 80 lines (use scripts/archive-handoff.sh)
Purpose: "What NOT to try" - project-specific known issues
Contains:
- Active blockers with failed approaches documented
- Resolved issues (recent 3-6 months for reference)
- Links to deep investigation docs
- Current workarounds
- Priority levels (P0/P1/P2)
Created in: Project directory (e.g., your-project/BLOCKERS.md)
Max size: 400 lines (soft limit, archive old resolved issues when over)
Note: This file is deprecated. Use HANDOFF.md + BLOCKERS.md instead.
Migration: See UPDATE-NOTES.md for migration guide from v1.0 to v2.0
Purpose: Comprehensive troubleshooting guide for general issues
Contains:
- NEW: Navigation header (links to BLOCKERS.md, HANDOFF.md, investigations)
- NEW: Table of contents for all 9 scenarios
- Quick diagnosis commands
- 9 common failure scenarios:
- Tests failing
- TypeScript errors
- App won't build
- E2E tests failing
- Coverage dropped
- Git messy state
- Lost track of tasks
- Stuck too long
- UPDATED: HANDOFF.md out of date (was SESSION-STATUS.md)
- Emergency procedures (reset to last good state)
- NEW: Scenario template for adding new scenarios
- When to ask for help
- Prevention tips
Scope: General Expo/React Native/TypeScript issues (cross-project) For project-specific issues: See BLOCKERS.md
Customize with: Your project's tech stack, testing tools, build commands
Purpose: Copy-paste prompts for each session type
Contains:
- First Session Prompt (starting from scratch)
- Continuing Session Prompt (picking up previous work)
- End Session Prompt (mandatory handoff)
- Recovery Prompt (when things go wrong)
- Decision tree (which prompt to use?)
- Customization tips
Customize with: Your project name, tech stack, timeline, specific rules
Purpose: Keep the documentation system healthy
Contains:
- Weekly maintenance checklist (5 minutes)
- Monthly maintenance checklist (15 minutes)
- Warning signs that system is degrading
- Emergency procedures (HANDOFF.md wrong, tests failing, documentation chaos)
- How to intervene during sessions
- Success metrics
Audience: Human developers maintaining the project Time commitment: < 10 minutes/week when system healthy
1. Project Information:
- Project name
- Tech stack
- Architecture pattern
- Development timeline
2. Quality Gates:
- Test commands
- Coverage thresholds
- Linting/type checking commands
- Build commands
3. Documentation Paths:
- Where are planning docs?
- Where are architecture docs?
- Where are component specs?
- Where is sample data?
4. Workflow Specifics:
- TDD approach (E2E first? Unit first?)
- Testing tools (Jest, Vitest, Playwright, Maestro?)
- Deployment process
- Code review process
- Add project-specific red flags
- Add custom recovery scenarios
- Add team conventions
- Add deployment checklists
Where to put these files in your project:
your-project/
βββ README.md β Project overview
βββ START-HERE.md β First session onboarding
βββ CONTINUE-SESSION.md β Continuing session brief
βββ END-SESSION.md β End session checklist
βββ SESSION-STATUS.md β Progress tracker
βββ RECOVERY.md β Troubleshooting guide
βββ PROMPTS.md β Session prompts reference
β
βββ PROJECT-CONFIG.md β Your project configuration
β
βββ git-hooks/
β βββ pre-commit β Git hook
β βββ setup-git-hooks.sh β Installation script
β
βββ docs/
β βββ architecture/ β Your architecture docs
β βββ planning/ β Your planning docs
β βββ guides/ β Your how-to guides
β
βββ src/ β Your source code
These files live at the root for easy access by Claude Code.
Starting a new project:
- Copy this toolkit to your project root
- Customize PROJECT-CONFIG.md with your details
- Run through SETUP.md to adapt all documents
- Install git hooks
- Give Claude Code the First Session Prompt
Between sessions:
- Review HANDOFF.md to see progress (< 100 lines, quick read)
- Use Continuing Session Prompt to start next session
- Use End Session Prompt when stopping
- NEW: Run
./scripts/validate-docs.shweekly to check for drift
When things go wrong:
- Give Claude Code the Recovery Prompt
- Claude will check BLOCKERS.md first (project-specific issues)
- Claude will use RECOVERY.md to troubleshoot (general issues)
- Review the documented blocker in HANDOFF.md or BLOCKERS.md
- Provide guidance if needed
First session:
- Read START-HERE.md completely
- Read project architecture docs
- Create TodoWrite todos for all phases
- Begin implementation with TDD
Continuing sessions:
- Read CONTINUE-SESSION.md (2 min)
- NEW: Complete pre-flight checklist (check for overrides, read HANDOFF.md, check BLOCKERS.md)
- Run verification checks
- Continue from "Next task" in HANDOFF.md
Before ending:
- Read END-SESSION.md
- Run all quality checks
- NEW: Update HANDOFF.md using structured template with line budgets
- NEW: Update BLOCKERS.md if recurring issues discovered
- NEW: Run validation script (
./scripts/validate-docs.sh) - Commit everything
- Provide session summary
If stuck:
- NEW: Check BLOCKERS.md first (known project-specific issues)
- Read RECOVERY.md for general troubleshooting
- Find your scenario
- Follow recovery steps
- NEW: Document in BLOCKERS.md if issue recurs 2+ times
- Update HANDOFF.md with current state
Problem: Claude Code starts next session with no context Solution: Use END-SESSION.md checklist every time (git hook helps)
Problem: Progress is lost, or document grows too large to be useful Solution v2.0:
- Update HANDOFF.md immediately after completing tasks (mid-session updates)
- Follow structured template with line budgets (END-SESSION.md Step 2.5)
- Archive when > 80 lines (
./scripts/archive-handoff.sh) - Run validation before committing (
./scripts/validate-docs.sh)
Problem: Broken code accumulates, becomes hard to fix Solution: Run checks after every small change, fix immediately
Problem: Tests written after code (or not at all) Solution: Follow RED-GREEN-REFACTOR religiously
You'll know this toolkit is working when:
- β Each session starts with clear context (< 5 minutes)
- β No time wasted figuring out what to do next
- β Quality gates pass consistently
- β Problems are caught early (tests fail immediately)
- β Recovery from issues is quick (< 30 minutes)
- β Progress is never lost between sessions
- β Claude Code works autonomously for hours
If these aren't true, check:
- Is HANDOFF.md being updated every session?
- NEW: Is HANDOFF.md staying < 100 lines? Run
./scripts/validate-docs.sh - Are quality checks being run frequently?
- Is TDD being followed?
- NEW: Is BLOCKERS.md being consulted to avoid duplicate work?
- Are recovery procedures being used when stuck?
Found an improvement to this toolkit?
Common improvements:
- Additional recovery scenarios
- Better prompts
- Clearer customization instructions
- New quality gate examples
- Better workflow diagrams
Questions about using this toolkit?
- Read SETUP.md for customization instructions
- Check PROMPTS.md for session prompt templates
- Review RECOVERY.md if something's not working
Project Type: Patient health record mobile app
Tech Stack: React Native + Expo, TypeScript, SQLite
Toolkit Version: v1.0 β v2.0 (drove v2.0 improvements)
Location: /Users/andrewstyer/dev/healthnarrative2
Results:
- 86% reduction in handoff doc size (485 β 65 lines)
- < 5 minute session handoffs (down from 30+ minutes)
- Zero documentation drift over 2+ weeks
- 87% reduction in duplicate investigation work
(Add your projects here as you use this toolkit - contributions welcome!)
This toolkit is free to use for any project. Customize as needed.
Let's build better software with Claude Code! π