Skip to content

Battle-tested 7-phase workflow system for implementing major features with research-first principles. Includes templates, checklists, and deployment guides.

Notifications You must be signed in to change notification settings

rglaubitz/features-implementation-workflow

Repository files navigation

Workflow Documentation

This directory contains all workflow documentation for the Apex Memory System Development project.


Available Workflows

1. Features Implementation Workflow

πŸ“˜ 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

πŸ“– Session Continuity & Handoffs

Handoff Workflow Format

πŸ“˜ 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:

  1. Handoff Documents - Complete session-to-session continuity
  2. Quick Reference - Fast pattern/command lookup
  3. Progress Tracking - Updated after each day
  4. Handoff Index - Chronological progression

πŸ“š Research Documentation Management

Documentation Chunking Workflow

πŸ“˜ 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:

  1. Analyze structure β†’ Identify topic boundaries
  2. Plan chunks β†’ 4-6 chunks per original file
  3. Create chunks β†’ Extract content, add headers
  4. Add cross-references β†’ Link related chunks
  5. Create INDEX.md β†’ Decision tree navigation
  6. Create WORKFLOW-GUIDE.md β†’ Usage during development
  7. Archive originals β†’ Preserve history
  8. Validate & test β†’ Ensure no information lost

Workflow Components

Documentation

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)

Templates

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

The Features Implementation Workflow

Overview

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)

Key Success Factors

βœ… 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

The Phase Implementation Pattern

For each implementation phase (Phases 2-5):

  1. πŸ›‘ Enter Plan Mode - Pause before coding
  2. πŸ’¬ Discuss Requirements - What do we need?
  3. πŸ“š Fill Research Gaps - Get missing info
  4. ▢️ Exit Plan Mode - Ready to execute
  5. πŸ’» Write Code - Real working code (3-5 files)
  6. ✨ Generate Tests - Proactively! (15-30 tests)
  7. πŸ“ Create Examples - Copy-paste ready
  8. πŸ“„ Update Docs - Phase README, CHANGELOG
  9. πŸ—œοΈ Context Compact - Before next phase (critical!)
  10. βœ… Mark Complete - Phase done, ready for next

Timeline (Major Feature)

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!)

Quick Decision Tree

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! πŸŽ‰

Getting Started

For a New Feature

  1. Read the workflow guide:

    open workflow/FEATURES-IMPLEMENTATION-WORKFLOW.md
  2. Create feature directory:

    mkdir -p upgrades/planned/[feature-name]
  3. 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
  4. Start Phase 0 (Identification):

    • Fill in README.md with problem statement
    • Define high-level scope
    • Get stakeholder buy-in
  5. Execute Phase 1 (RDF):

    # Option A: Automated
    /rdf [feature-name]
    
    # Option B: Manual research + documentation
  6. Follow the 7-phase workflow:


Quality Standards

Research Phase

  • βœ… Minimum 8 research documents
  • βœ… All sources Tier 1-2 (official docs, 1.5k+ star repos)
  • βœ… Latest versions verified
  • βœ… Complete comparison tables

Implementation Phase

  • βœ… 20+ implementation files
  • βœ… 30+ tests (generated proactively!)
  • βœ… 80%+ code coverage
  • βœ… All async where appropriate

Example Quality

  • βœ… 8+ deployment examples
  • βœ… Copy-paste ready
  • βœ… No placeholders or TODOs

Documentation Quality

  • βœ… 100% coverage
  • βœ… Deployment guide complete
  • βœ… Testing guide complete
  • βœ… Troubleshooting guide complete

Success Stories

Query Router Upgrade (October 2025)

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

Contributing

When adding new workflows:

  1. Create main workflow document
  2. Create quick-start guide
  3. Create templates
  4. Add to this README
  5. Test with real feature implementation
  6. Document lessons learned

Related Resources

Internal

Templates


FAQ

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.


Maintenance

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.

About

Battle-tested 7-phase workflow system for implementing major features with research-first principles. Includes templates, checklists, and deployment guides.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •