Skip to content

feat: Add workflow commands and lifecycle documentation - #5

Merged
rookslog merged 4 commits into
mainfrom
feature/workflow-commands
Dec 25, 2025
Merged

feat: Add workflow commands and lifecycle documentation#5
rookslog merged 4 commits into
mainfrom
feature/workflow-commands

Conversation

@rookslog

Copy link
Copy Markdown
Owner

Summary

Adds new workflow commands and comprehensive lifecycle documentation based on Claude Code ecosystem best practices from claude-enhanced docs.

New Commands

  • /project:debug - Systematic debugging with hypothesis testing
  • /project:refactor - Safe refactoring with test verification
  • /project:release - Release preparation and changelog generation
  • /project:document - Documentation generation for code

Improvements

  • Revised plan.md for better balance (previously over-emphasized TDD anchors)
  • Added development workflow lifecycle diagram to CLAUDE.md
  • Organized commands by category (discovery, implementation, quality, release)
  • Added "When to Use Each" guidance for command selection

Workflow Lifecycle

explore → plan → implement → review → release
           ↑__________________________|
                   (iterate)
                      ↓
                    debug (if issues)

Test Plan

  • Verify new commands appear in /help output
  • Test /project:debug with a sample error
  • Test /project:refactor on existing code
  • Test /project:release for changelog generation
  • Test /project:document on a function/class
  • Verify plan.md is more balanced
  • Review lifecycle documentation is clear

Add new workflow commands:
- /project:debug - Systematic debugging with hypothesis testing
- /project:refactor - Safe refactoring with test verification
- /project:release - Release preparation and changelog generation
- /project:document - Documentation generation for code

Improvements:
- Revised plan.md for better balance (not over-emphasizing TDD)
- Added workflow lifecycle diagram to CLAUDE.md
- Organized commands by category (discovery, implementation, quality)
- Added "When to Use Each" guidance
Implement comprehensive autonomous development workflow that minimizes
human intervention after requirements are confirmed.

New components:
- Reviewer subagents (.claude/agents/):
  - exploration-reviewer: Validates exploration completeness
  - plan-reviewer: Catches planning flaws before implementation
  - code-reviewer: Reviews for bugs, security, quality
  - documentation-reviewer: Ensures doc accuracy
  - experiment-reviewer: Validates spike conclusions

- /project:auto command: Master orchestrator with 7 phases
  - Phase 0: Requirements lock-in (human-in-loop)
  - Phases 1-4: Autonomous with self-review gates
  - Phase 5: Final validation (tests, lint, type check)
  - Phase 6: Completion and reporting
  - Escalation protocol for edge cases

- Enhanced /project:improve: Self-critique by domain, full-audit mode

- CLAUDE.md: Full autonomous workflow documentation with flow diagram

Philosophy: Thorough human collaboration upfront, then autonomous
execution with quality gates that prevent error accumulation.
Implement closed-loop self-improvement that follows the same
explore → plan → implement → review cycle as development work.

New components:

Diagnostic system:
- diagnostic-agent: Traces errors to root causes in system components
  (commands, agents, hooks, docs, memories)
- improvement-reviewer: Validates proposed improvements for
  proportionality, safety, and effectiveness
- /project:diagnose command: Root cause analysis for specific issues
- Signal log structure: .claude/logs/signals/ for capturing error signals

Enhanced /project:improve:
- Now follows full improvement cycle with self-review gates
- Integrates with /project:diagnose for each pattern found
- System health checks (CLAUDE.md lines, agent/hook counts)
- Clear improvement type taxonomy

Documentation:
- CLAUDE.md: Self-improvement loop diagram and documentation
- Signal types, improvement types, review agents documented
- System health limits defined (<500 lines, <10 agents, <10 hooks)

This creates a meta-system where the development infrastructure
continuously improves itself based on error signals.
Synced commands:
- signal.md (NEW): Capture human corrections for self-improvement loop
- init.md (NEW): 6-phase onboarding with codebase assessment
- analyze-logs.md (NEW): Native Claude log analysis
- improve.md: Updated with corrections.jsonl support
- diagnose.md: Latest version with log awareness

Synced hooks:
- session-logger.md: Session logging hook template

Synced docs:
- parallelization-guide.md: Parallel execution patterns

Cleanup:
- Removed 10 old session log files
@rookslog
rookslog merged commit 7c0c0e2 into main Dec 25, 2025
2 checks passed
@rookslog
rookslog deleted the feature/workflow-commands branch December 25, 2025 21:42
rookslog added a commit that referenced this pull request Dec 26, 2025
Resolves merge conflict in .claude/commands/plan.md by accepting
the more comprehensive main branch version.

Brings in workflow improvements from PRs #5, #6, #7:
- Autonomous development workflow with review gates
- Enhanced commands (auto, debug, diagnose, review-pr, etc.)
- Session logging and signal capture
- Parallelization guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant