This directory contains all workflow documentation for the Apex Memory System Development project.
π FEATURES-IMPLEMENTATION-WORKFLOW.md
The comprehensive, battle-tested workflow for implementing major features.
Use for:
- Major feature implementations (multi-week, multi-phase)
- System upgrades requiring research
- Features touching multiple components
- Anything requiring deployment planning
Don't use for:
- Bug fixes (too heavyweight)
- Simple code changes
- Quick patches
Quick start: FEATURES-QUICK-START.md Checklist: PHASE-IMPLEMENTATION-CHECKLIST.md
Success story: Query Router Upgrade (October 2025)
- 8 research documents
- 20+ implementation files
- 30+ tests
- 8 deployment examples
- Zero rework required
π HANDOFF-WORKFLOW-FORMAT.md
The proven format for managing multi-day/multi-week development with Claude Code, enabling zero context loss across sessions.
Use for:
- Multi-day implementations (2+ days)
- Multi-week projects (phased development)
- Complex features requiring architectural decisions
- Projects needing session-to-session continuity
Key Features:
- β Zero context loss across sessions
- β Copy-paste "Start Command" for instant continuation
- β Complete traceability (decisions, fixes, patterns)
- β Baseline test preservation tracking
- β Architecture decision documentation
Success Story: Graphiti + JSON Integration (Week 3)
- 3-day handoff created (HANDOFF-WEEK3-DAYS1-3.md)
- Next session: Instant continuation using "Start Command"
- 11 tests created, 100% pass rate
- All architectural decisions preserved
- Zero time re-discovering context
Components:
- Handoff Documents - Complete session-to-session continuity
- Quick Reference - Fast pattern/command lookup
- Progress Tracking - Updated after each day
- Handoff Index - Chronological progression
π base-structure/research/DOCUMENTATION-CHUNKING-WORKFLOW.md
Transform large research documents (500+ lines) into usable, workflow-integrated documentation systems.
The Problem:
- Large research files (3,000+ lines) β context loss, hallucinations, low utilization (~20%)
- Developers overwhelmed by massive files β research gets created but never used
- Claude reads partial content β incomplete patterns, incorrect implementations
The Solution:
- Chunk documentation into focused files (~150 lines each)
- Create INDEX.md with decision tree navigation
- Create WORKFLOW-GUIDE.md for structured usage during development
- Archive originals, maintain cross-references
Success Metrics:
- β 80% research utilization (vs 20% without chunking)
- β Focused context β No hallucinations
- β 10-15 min read time (vs 60+ min for full file)
- β Research actually gets used during implementation
When to Apply:
- β Research document exceeds 500 lines
- β Document covers multiple distinct topics
- β Research completed and ready for implementation
- β Team needs to reference research during development
Real-World Example: Apex UI/UX Enhancements
- Before: 4 files, 3,276 lines total (avg 819 lines/file)
- After: 16 focused chunks (~150 lines each) + navigation system
- Result: Phase 2.5 implementation directly references 7 specific chunks
- Impact: Research-backed implementation with explicit file citations
8-Step Workflow:
- Analyze structure β Identify topic boundaries
- Plan chunks β 4-6 chunks per original file
- Create chunks β Extract content, add headers
- Add cross-references β Link related chunks
- Create INDEX.md β Decision tree navigation
- Create WORKFLOW-GUIDE.md β Usage during development
- Archive originals β Preserve history
- Validate & test β Ensure no information lost
Document | Purpose | When to Use |
---|---|---|
FEATURES-IMPLEMENTATION-WORKFLOW.md | Complete workflow guide | Read once, reference during implementation |
FEATURES-QUICK-START.md | One-page cheat sheet | Quick reference during active work |
PHASE-IMPLEMENTATION-CHECKLIST.md | Detailed phase checklist | Use for each implementation phase |
HANDOFF-WORKFLOW-FORMAT.md | Session continuity format | Multi-day/multi-week projects |
base-structure/research/DOCUMENTATION-CHUNKING-WORKFLOW.md | Research documentation management | Large research files (500+ lines) |
All templates are in templates/features/
:
Template | Purpose |
---|---|
IMPROVEMENT-PLAN-TEMPLATE.md | Comprehensive feature specification |
IMPLEMENTATION-GUIDE-TEMPLATE.md | Step-by-step implementation guide |
DEPLOYMENT-GUIDE-TEMPLATE.md | Deployment procedures |
README-TEMPLATE.md | Feature overview and progress tracking |
PHASE-README-TEMPLATE.md | Per-phase documentation |
A 7-phase, research-first workflow that ensures production-ready features with zero rework.
Phase 0: Identify β Phase 1: RDF β Phases 2-5: Implement β Phase 6: Deploy Docs β Phase 7: Ship
(1 day) (1 week) (4-6 weeks) (1 week) (ongoing)
β Research-first β Better decisions β Plan mode first β Aligned approach β Proactive tests β Quality without asking β Context compact β Prevents overflow β Examples alongside β Usable immediately β Docs as you go β Never falls behind β Deployment manual last β Complete operational guide
For each implementation phase (Phases 2-5):
- π Enter Plan Mode - Pause before coding
- π¬ Discuss Requirements - What do we need?
- π Fill Research Gaps - Get missing info
βΆοΈ Exit Plan Mode - Ready to execute- π» Write Code - Real working code (3-5 files)
- β¨ Generate Tests - Proactively! (15-30 tests)
- π Create Examples - Copy-paste ready
- π Update Docs - Phase README, CHANGELOG
- ποΈ Context Compact - Before next phase (critical!)
- β Mark Complete - Phase done, ready for next
Week 1: Phase 1 (RDF) β 8 research docs
Week 2-3: Phase 2 (Foundation) β Code + 15 tests β COMPACT
Week 3-4: Phase 3 (Intelligent Features) β Code + 15 tests β COMPACT
Week 5-6: Phase 4 (Advanced Features) β Code + 15 tests β COMPACT
Week 7: Phase 5 (Polish) β Code + 15 tests β COMPACT
Week 8: Phase 6 (Deployment Manual) β 4 guides + 8 examples
Week 8+: Phase 7 (Ship) β Deploy + monitor
Total: 8 weeks for major feature
Context compacts: 4 (critical!)
Starting work?
ββ Major feature (multi-week)?
β ββ Use Features Implementation Workflow
β
ββ Bug fix?
β ββ Use regular development flow (not this workflow)
β
ββ Simple change?
β ββ Use regular development flow (not this workflow)
β
ββ Research needed?
ββ Start with Phase 1 (RDF)
During implementation?
ββ Starting new phase?
β ββ Enter plan mode first!
β
ββ Just finished coding?
β ββ Generate tests proactively
β
ββ Phase complete?
β ββ Context compact!
β
ββ All phases done?
ββ Create deployment manual
Ready to ship?
ββ All tests passing?
β ββ Create deployment guides
β
ββ Guides complete?
β ββ Final commit
β
ββ Deployed?
β ββ Move to completed/
β
ββ Done! π
-
Read the workflow guide:
open workflow/FEATURES-IMPLEMENTATION-WORKFLOW.md
-
Create feature directory:
mkdir -p upgrades/planned/[feature-name]
-
Copy templates:
cp workflow/templates/features/IMPROVEMENT-PLAN-TEMPLATE.md upgrades/planned/[feature-name]/IMPROVEMENT-PLAN.md cp workflow/templates/features/README-TEMPLATE.md upgrades/planned/[feature-name]/README.md
-
Start Phase 0 (Identification):
- Fill in README.md with problem statement
- Define high-level scope
- Get stakeholder buy-in
-
Execute Phase 1 (RDF):
# Option A: Automated /rdf [feature-name] # Option B: Manual research + documentation
-
Follow the 7-phase workflow:
- Use FEATURES-QUICK-START.md as guide
- Use PHASE-IMPLEMENTATION-CHECKLIST.md for each phase
- Create deployment manual in Phase 6
- Ship in Phase 7
- β Minimum 8 research documents
- β All sources Tier 1-2 (official docs, 1.5k+ star repos)
- β Latest versions verified
- β Complete comparison tables
- β 20+ implementation files
- β 30+ tests (generated proactively!)
- β 80%+ code coverage
- β All async where appropriate
- β 8+ deployment examples
- β Copy-paste ready
- β No placeholders or TODOs
- β 100% coverage
- β Deployment guide complete
- β Testing guide complete
- β Troubleshooting guide complete
The workflow in action:
- Research Phase: 8 comprehensive research documents (40,000+ words)
- Implementation: 4 phases, each with plan mode β code β tests β compact
- Tests: 30+ tests generated proactively (never asked!)
- Context Compacts: 4 successful compacts (prevented overflow)
- Deployment: Complete manual with 4 guides + 8 examples
- Result: Production-ready with zero rework
Timeline:
- Planned: 8 weeks
- Actual: 8 weeks
- Rework: 0 weeks
Quality:
- Documentation: 100% complete
- Tests: 100% passing
- Examples: 100% working
- Deployment: Successful
Lessons learned:
- β Plan mode discussions prevented rework
- β Proactive test generation caught bugs early
- β Context compacts kept conversation manageable
- β Deployment manual enabled smooth rollout
When adding new workflows:
- Create main workflow document
- Create quick-start guide
- Create templates
- Add to this README
- Test with real feature implementation
- Document lessons learned
- RDF Workflow Guide - Automated research workflow
- Upgrades README - Upgrade tracking system
- Research README - Research organization
- Feature Templates - All feature templates
- Example Feature - Complete example
Q: When should I use the Features Implementation Workflow?
A: Use it for major features that:
- Span multiple weeks (4-8 weeks typical)
- Require research phase
- Touch multiple components
- Need deployment planning
- Require comprehensive testing
Q: Can I use this workflow for bug fixes?
A: No, it's too heavyweight. Bug fixes should use the regular development flow.
Q: What if I skip the plan mode discussion?
A: You'll likely miss requirements and need rework. Plan mode catches issues before coding.
Q: What if I skip context compaction?
A: Context will overflow and you'll lose conversation continuity. Compact after EVERY phase.
Q: What if I don't generate tests proactively?
A: Quality will suffer and bugs will reach production. Generate 15-30 tests per phase WITHOUT being asked.
Q: Can I skip the deployment manual?
A: No. Without it, nobody can safely deploy your feature. Create it in Phase 6.
This workflow documentation should be updated:
- After each successful feature implementation
- When lessons are learned
- When patterns are discovered
- When templates need improvements
Last Updated: October 2025 Version: 1.0 Status: Production-Ready
This workflow has been battle-tested and is ready for use on any major feature implementation.