Reusable session management and workflow system for Claude Code projects
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
| File | Purpose | When to Use |
|---|---|---|
START-HERE.md |
First session comprehensive onboarding | Once, at project start |
CONTINUE-SESSION.md |
Quick 2-minute context loading | Every continuing session |
END-SESSION.md |
Mandatory session handoff checklist | Before ending ANY session |
SESSION-STATUS.md |
Living progress tracker | Updated every session |
RECOVERY.md |
Comprehensive troubleshooting guide | When stuck or broken |
PROMPTS.md |
Copy-paste prompts for each session type | Reference for starting sessions |
| File | Purpose |
|---|---|
SETUP.md |
How to adapt this toolkit to your project |
PROJECT-CONFIG.md |
Template for project-specific configuration |
git-hooks/pre-commit |
Git hook that reminds to update SESSION-STATUS.md |
git-hooks/setup-git-hooks.sh |
Script to install git hooks |
-
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 git hooks:
./git-hooks/setup-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 SESSION-STATUS.md │
│ • 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 SESSION-STATUS.md │
│ • 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
↓
Update SESSION-STATUS.md
↓
Continue Normal Workflow
- Claude Code loses context between sessions
- SESSION-STATUS.md acts as external memory
- Continuing sessions load context in 2-5 minutes
- Mandatory quality checks before moving forward
- TDD workflow enforced
- Git pre-commit hook reminds to update status
- 9 common failure scenarios documented
- Step-by-step recovery procedures
- Prevention tips to avoid problems
- Clear "next steps" always documented
- No time wasted figuring out what to do
- Consistent workflow across sessions
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 2-minute context loading
Contains:
- Session start checklist (git log, git status, read SESSION-STATUS.md)
- Critical rules reminder
- Quick reference to key docs
- TDD workflow refresher
- Quality gate commands
Customize with: Your project's key documentation paths, quality commands
Purpose: Mandatory session handoff checklist
Contains:
- Step 1: Run quality checks (tests, TypeScript, build, git)
- Step 2: Update SESSION-STATUS.md (all sections)
- Step 3: Commit everything (code + status doc)
- Step 4: Provide session summary (what done, what's next, blockers, test status)
Customize with: Your project's specific quality checks
Purpose: Living progress tracker that survives context loss
Contains:
- Quick context for new session (current phase, next task)
- Completed work (tasks checked off, git commits listed)
- Current work (last commit, next immediate steps)
- Known issues/blockers
- Test status (exact numbers)
- Architecture decisions made
- Notes for next developer
- Session handoff checklist
Customize with: Your project's phases, tasks, test commands
Purpose: Comprehensive troubleshooting guide
Contains:
- 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
- SESSION-STATUS.md out of date
- Emergency procedures (reset to last good state)
- When to ask for help
- Prevention tips
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
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 SESSION-STATUS.md to see progress
- Use Continuing Session Prompt to start next session
- Use End Session Prompt when stopping
When things go wrong:
- Give Claude Code the Recovery Prompt
- Claude will use RECOVERY.md to troubleshoot
- Review the documented blocker in SESSION-STATUS.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)
- Read SESSION-STATUS.md (context)
- Run verification checks
- Continue from "Next immediate steps"
Before ending:
- Read END-SESSION.md
- Run all quality checks
- Update SESSION-STATUS.md completely
- Commit everything
- Provide session summary
If stuck:
- Read RECOVERY.md
- Find your scenario
- Follow recovery steps
- Document what happened in SESSION-STATUS.md
Problem: Claude Code starts next session with no context Solution: Use END-SESSION.md checklist every time (git hook helps)
Problem: Progress is lost, next session wastes time Solution: Update immediately after completing tasks (not at end)
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 SESSION-STATUS.md being updated every session?
- Are quality checks being run frequently?
- Is TDD being followed?
- 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
- Health Narrative - Patient health record app (React Native + Expo)
- Location:
/Users/andrewstyer/dev/healthnarrative2 - Shows: Full implementation with all toolkit documents
- Location:
(Add your projects here as you use this toolkit)
This toolkit is free to use for any project. Customize as needed.
Let's build better software with Claude Code! 🚀