One-Command Requirement Development Flow for Claude Code
A comprehensive development workflow system built on Claude Code's official sub-agents, hooks, and settings mechanisms. Transform your requirements from planning to code delivery with a single command.
Complete automated workflow from PRD generation to code delivery with /flow-new "REQ-123|Feature|URLs".
- π― One-Command Flow - Complete PRD β Code β Test β Release with a single command
- π Staged Commands - 8 independent stage commands for fine-grained control
- π Document-Driven - Automatic PRD β UI Prototype β EPIC β TASKS β Implementation chain
- π Template-Driven - Self-executable templates (PRD_TEMPLATE, EPIC_TEMPLATE, TASKS_TEMPLATE)
- π Smart Recovery -
/flow-restartauto-detects restart points for interrupted development - π‘οΈ Quality Gates - Automated TypeScript checking, testing, linting, and security scanning
- π€ Sub-Agent Orchestration - 12 specialized research agents for different development phases
- π¨ UI Prototype Generation - Conditional HTML prototype with artistic design inspiration
- π GitHub Integration - Automated PR creation, branch management, and conventional commits
- π Progress Tracking - Real-time status monitoring and intelligent restart points
- π Consistency Verification - Enterprise-grade consistency checking with intelligent conflict detection
- π§ͺ TDD Enforced - Strict Test-Driven Development with TEST VERIFICATION CHECKPOINT
- π Constitution - 10 Articles governing quality, security, and architecture
- π Autonomous Development - Ralph Γ Manus Integration for memory-enhanced continuous iteration
- π Multi-Platform Support - Compile workflows for Codex, Cursor, Qwen, Antigravity via
npm run adapt - π Multi-Module Compiler - Full module compilation: skills, commands, agents, rules, hooks
- πΏ Git Worktree Integration - Parallel development with isolated worktrees for 3-5 concurrent Claude sessions
- π€ Claude Team Integration - Multi-agent parallel collaboration with automatic task scheduling and conflict detection
Real-time quality guardian: PreToolUse blocks non-compliant operations, PostToolUse auto-records changes.
π Hooks Details (Click to Expand)
Hook Types:
| Hook | Trigger Timing | Functionality |
|---|---|---|
| UserPromptSubmit | When user input is submitted | Intelligently recommends relevant Skills |
| PreToolUse | Before tool use | Blocks non-compliant operations (TDD violations, etc.) |
| PostToolUse | After tool use | Automatically records file changes |
| Stop | When session stops | Provides error handling hints |
Guardrail Workflow:
User edits file β PreToolUse Hook triggers
β Path normalization
β Rule matching
β Content checking
β Violation? Block operation : Allow operation
Skipping Guardrails:
# Method 1: File marker
echo "@skip-tdd-check" >> devflow/requirements/REQ-123/TASKS.md
# Method 2: Environment variable
export SKIP_TDD_ENFORCER=1Intelligent knowledge base activation with grouped Skills and automatic context injection.
π Skills Details (Click to Expand)
Skills-First Architecture (v4.0):
.claude/skills/
βββ workflow.yaml # Skill dependency graph (OpenSpec-inspired)
βββ workflow/ # 9 Workflow Skills (flow-init, flow-spec, flow-dev, etc.)
βββ domain/ # 7 Domain Skills (tdd, debugging, brainstorming)
βββ guardrail/ # 3 Guardrail Skills (constitution-guardian, tdd-enforcer)
βββ utility/ # 8 Utility Skills (npm-release, skill-creator)
Key Skills by Category:
| Category | Skills | Purpose |
|---|---|---|
| Workflow | flow-init, flow-spec, flow-dev, flow-quality, flow-release | Core development workflow |
| Domain | tdd, debugging, brainstorming, verification | Domain expertise |
| Guardrail | constitution-guardian, tdd-enforcer | Real-time compliance |
| Utility | npm-release, skill-creator, writing-skills | Development tools |
Context Injection (Trellis-inspired):
- Each Skill has
context.jsonldefining required context files inject-skill-context.tshook auto-loads context before Skill execution- Variable substitution:
{REQ}β actual requirement ID
Dual-layer execution model: Research Agents (11, read-only analysis) + Main Agent (execution).
π Agent Orchestration Details (Click to Expand)
Execution Model:
- Research Agents: Read-only analysis, generate Markdown plans and reports
- Main Agent (Claude): Executes all code operations, owns complete context
- Workflow: Agent Research β Output Plans β Main Agent Executes β Iterate
Tool Distribution:
- Research Agents: Read, Grep, Glob (analysis)
- Main Agent: Edit, Write, Bash, Git (execution)
# Install globally
npm install -g cc-devflow
# or
pnpm add -g cc-devflow
# Initialize in your project
cc-devflow init
# Compile for specific platform (optional)
cc-devflow adapt --platform cursor
cc-devflow adapt --platform codex
cc-devflow adapt --platform antigravity
cc-devflow adapt --platform qwenpnpm dlx tiged Dimon94/cc-devflow/.claude .claudeTo update to the latest version and synchronize your local project:
# Update globally
npm install -g cc-devflow@latest
# Update local project files (will overwrite conflicts)
cc-devflow init# Initialize in current directory
cc-devflow init
# Initialize in specific directory
cc-devflow init --dir /path/to/project
# Compile for specific platform
cc-devflow adapt --platform codex
cc-devflow adapt --cwd /path/to/project --platform cursor# Chinese branch naming support (converts Chinese to pinyin)
pip install pypinyin.claude/scripts/verify-setup.sh/flow-new "REQ-001|User Authentication|https://docs.example.com/auth"π Complete Getting Started Guide (Click to Expand)
Interactive Demo:
python3 .claude/scripts/demo.pyCore Scripts:
# Environment check
bash .claude/scripts/check-prerequisites.sh
# View task status
bash .claude/scripts/check-task-status.sh --verbose
# Mark task complete
bash .claude/scripts/mark-task-complete.sh T001
# Generate status report
bash .claude/scripts/generate-status-report.sh --format markdownRun Tests:
# Run all tests
bash .claude/tests/run-all-tests.sh --scripts
# Constitution tests
bash .claude/tests/constitution/run_all_constitution_tests.shPurpose: Project-wide planning and architecture design, typically executed once per project at the beginning
| Command | Purpose | Quick Example | Detailed Docs |
|---|---|---|---|
/core-roadmap |
πΊοΈ Generate Product Roadmap | /core-roadmap |
β |
/core-architecture |
ποΈ Generate System Architecture | /core-architecture |
β |
/core-guidelines |
π Generate Project Guidelines | /core-guidelines |
β |
Purpose: Specific requirement development, executed once per requirement (REQ-XXX)
| Command | Purpose | Quick Example | Detailed Docs |
|---|---|---|---|
/flow-new |
π― Start New Requirement | /flow-new "REQ-123|Feature" |
β |
/flow-init |
π¦ Initialize Requirement | /flow-init "REQ-123|Feature" |
β |
/flow-clarify |
π Clarify Ambiguities | /flow-clarify "REQ-123" |
β |
/flow-spec |
π Unified Specification (v4.1) | /flow-spec "REQ-123" |
β |
/flow-checklist |
β Requirement Quality Check | /flow-checklist --type ux |
β |
/flow-quality |
β Combined Quality Verification | /flow-quality "REQ-123" --full |
β |
/flow-fix |
π Systematic Bug Fix | /flow-fix "BUG-123|Description" |
β |
/flow-verify |
π Verify Consistency | /flow-verify "REQ-123" |
β |
/flow-release |
π’ Create Release | /flow-release "REQ-123" |
β |
π Complete Command Reference
π― Which Command Should I Use? (Click to Expand)
Your Scenario:
ββ Plan product direction? β /core-roadmap
ββ Design system architecture? β /core-architecture
ββ Establish coding standards? β /core-guidelines
ββ Start brand new feature development? β /flow-new "REQ-123|Feature|URLs"
ββ Only create requirement directory? β /flow-init "REQ-123|Feature"
ββ Clarify ambiguous requirements? β /flow-clarify "REQ-123"
ββ Validate requirement quality? β /flow-checklist --type ux,api,security
ββ Continue interrupted development? β /flow-restart "REQ-123"
ββ Check development progress? β /flow-status REQ-123
ββ Found document inconsistencies? β /flow-verify "REQ-123"
ββ Development complete, need verification? β /flow-quality "REQ-123" --full
ββ Fix production bug? β /flow-fix "BUG-001|Description"
ββ Ready to release? β /flow-release "REQ-123"
The following Mermaid diagram illustrates the complete cc-devflow workflow, including both project-level and requirement-level processes:
graph TB
Start([Start Project]) --> ProjectLevel{Project-Level Setup}
ProjectLevel --> CoreRoadmap["/core-roadmap<br/>ROADMAP.md & BACKLOG.md"]
ProjectLevel --> CoreArch["/core-architecture<br/>ARCHITECTURE.md"]
ProjectLevel --> CoreGuidelines["/core-guidelines<br/>frontend/backend guidelines"]
ProjectLevel --> CoreStyle["/core-style<br/>STYLE.md"]
CoreRoadmap --> ReqLevel
CoreArch --> ReqLevel
CoreGuidelines --> ReqLevel
CoreStyle --> ReqLevel
ReqLevel([Requirement-Level Development]) --> FlowInit["/flow-init<br/>research.md & BRAINSTORM.md"]
FlowInit --> FlowClarify["/flow-clarify<br/>clarifications/*.md<br/>Optional"]
FlowClarify --> FlowSpec["/flow-spec (v4.1)<br/>PRD β Tech+UI (parallel) β Epic<br/>Unified specification phase"]
FlowInit -.->|Skip clarify| FlowSpec
FlowSpec --> FlowDev["/flow-dev<br/>TASKS.md execution<br/>TDD Checkpoint"]
FlowDev --> FlowQuality["/flow-quality<br/>Quick/Full Verification<br/>Spec + Quality + Security"]
FlowQuality --> FlowRelease["/flow-release<br/>PR creation<br/>Branch decision"]
FlowRelease --> FlowVerify["/flow-verify<br/>Consistency check"]
FlowVerify --> End([Release Complete])
FlowVerify -.->|Can be called at any stage| ReqLevel
style ProjectLevel fill:#e1f5ff
style ReqLevel fill:#fff4e1
style FlowInit fill:#e8f5e9
style FlowClarify fill:#fff9c4
style FlowSpec fill:#e8f5e9
style FlowDev fill:#f3e5f5
style FlowQuality fill:#e1bee7
style FlowRelease fill:#e0f2f1
style FlowVerify fill:#e3f2fd
Workflow Notes:
- Project-Level Commands (light blue): Execute once at project initialization, establish global standards (SSOT)
- Requirement-Level Commands (light orange): Execute once per requirement (REQ-XXX)
- Unified /flow-spec (v4.1): Replaces flow-prd/flow-tech/flow-ui/flow-epic with parallel execution
- Brainstorming (v2.3.0):
/flow-initnow generatesBRAINSTORM.mdas requirement "North Star" - Unified Quality Verification (v3.0.0):
/flow-quality --fullcombines spec compliance, code quality, and security - Optional Steps (yellow):
/flow-clarifyis optional; skip if requirements are clear - TDD Checkpoint (v2.3.0):
/flow-devincludes mandatory TDD checkpoint (tests must FAIL first) - Quality Gates: Each stage has entry/exit gates ensuring document quality and Constitution compliance
- Consistency Check:
/flow-verifycan be called at any stage to ensure document consistency
Execution Model: Research Agents (11, read-only) + Main Agent (execution) Document Structure: Single-track architecture, one requirement directory contains all artifacts Quality Assurance: Constitution v2.0.0 + TDD Enforcement + Real-time Guardrail
π Architecture Details (Click to Expand)
clarify-analyst β Clarification questions (11-dimension scan)
prd-writer β PRD generation (must use PRD_TEMPLATE)
checklist-agent β Requirement quality validation (5 dimensions, 6 types) β NEW
ui-designer β UI prototype (conditional trigger)
tech-architect β Technical design (Anti-Tech-Creep enforcement)
planner β EPIC & TASKS (must use EPIC_TEMPLATE, TASKS_TEMPLATE)
dev-implementer β Implementation plan (research only)
qa-tester β Test plan + Test report
security-reviewer β Security plan + Security report
release-manager β Release plan
devflow/
βββ ROADMAP.md # Product roadmap
βββ ARCHITECTURE.md # System architecture design
βββ BACKLOG.md # Requirement backlog
βββ requirements/REQ-123/
βββ PRD.md
βββ EPIC.md
βββ TASKS.md
βββ EXECUTION_LOG.md
βββ checklists/ # Requirement quality checklists
β βββ ux.md
β βββ api.md
β βββ security.md
βββ TEST_PLAN.md
βββ TEST_REPORT.md
βββ SECURITY_PLAN.md
βββ SECURITY_REPORT.md
βββ RELEASE_PLAN.md
- Pre-push Guard (TypeScript, tests, linting, security, build)
- Checklist Gate (
/flow-checklist80% completion threshold before/flow-epic) - Constitution Compliance (enforced at every stage)
- TDD Checkpoint (TEST VERIFICATION CHECKPOINT)
- Guardrail Hooks (PreToolUse real-time blocking of non-compliant operations)
Minimum Configuration (.claude/settings.json):
{
"permissions": {
"allowGitOperations": true,
"allowNetworkRequests": true,
"allowSubprocesses": true
}
}π§ Complete Configuration Options (Click to Expand)
{
"hooks": {
"PreToolUse": [{
"matcher": "Edit|Write",
"hooks": [{"type": "command", "command": "..."}]
}]
}
}# Flow behavior
export FLOW_AUTO_APPROVE=false
export MIN_TEST_COVERAGE=80
export STRICT_TYPE_CHECKING=true
# Guardrail skip
export SKIP_TDD_ENFORCER=1
export SKIP_CONSTITUTION_CHECK=1Script Tests: 8/8 Passed β (100%) Constitution Tests: 38/38 Passed β (100%)
# Run all tests
bash .claude/tests/run-all-tests.sh --scriptsπ Test Framework Details (Click to Expand)
| Test Suite | Test Cases | Status |
|---|---|---|
test_check_prerequisites |
18 | β 100% |
test_check_task_status |
18 | β 100% |
test_common |
15 | β 100% |
test_mark_task_complete |
15 | β 100% |
test_setup_epic |
13 | β 100% |
test_validate_constitution |
4 | β 100% |
π€ Claude Team Integration: Multi-Agent Parallel Collaboration
v4.7.0 introduces Claude Team integration for multi-agent parallel development:
-
Team Mode for /flow-dev - Parallel task execution with multiple agents
--teamflag enables Team mode (default 3 agents)--agents Nspecifies agent count (2-5)- Automatic task dependency analysis and conflict detection
- File conflict tasks assigned to same agent for sequential execution
-
New Hooks - Team lifecycle management
TeammateIdle Hook- Task assignment and schedulingTaskCompleted Hook- Quality verification on completion- Timeout detection and alerting
-
Task Dependency Parser - Intelligent task analysis
parse-task-dependencies.js- Parses TASKS.md format- Recognizes
[P]parallel markers,[US*]user story groups - Phase-based dependency resolution
-
State Recovery - Checkpoint and resume
team-state-recovery.sh- Snapshot and restore Team state- Support for interrupted session recovery
-
New Files
.claude/scripts/parse-task-dependencies.js- Task parser.claude/scripts/detect-file-conflicts.sh- Conflict detection.claude/scripts/team-dev-init.sh- Dev team initialization.claude/scripts/team-state-recovery.sh- State recovery.claude/docs/guides/TEAM_MODE_GUIDE.md- Complete usage guide
π v4.7 Improvements:
| Metric | Before | After | Improvement |
|---|---|---|---|
| Parallel agents | 1 | 3-5 | +400% |
| Requirement completion time | 90 min | 50 min | -45% |
| Task scheduling | Manual | Automatic | 100% |
| Quality verification | Single-point | Distributed | 100% |
πΏ Git Worktree Integration: Parallel Development Support
v4.3.0 introduces Git Worktree integration for parallel development with isolated Claude Code sessions:
-
Git Worktree Mode (Default) - Isolated development environments
- Creates
../repo-name-REQ-xxx/worktree directories - Each worktree has independent Claude Code session
- Switch between requirements with
cdinstead ofgit checkout --branch-onlyflag for traditional branch mode
- Creates
-
New Skill: using-git-worktrees - Complete worktree management
worktree-create.sh- Create new worktreeworktree-list.sh- List all worktreesworktree-switch.sh- Switch to worktreeworktree-cleanup.sh- Clean up merged worktrees- Shell aliases template (za/zl/zm/zw)
-
Modified Commands
/flow-init- Default worktree mode,--branch-onlyfor compatibility/flow-release- Automatic worktree cleanup
π v4.3 Improvements:
| Metric | Before | After | Improvement |
|---|---|---|---|
| Parallel requirements | 1 | 3-5 | +400% |
| Context switch time | 30s | 1s | -97% |
| Session isolation | None | Full | 100% |
π― Unified Specification Phase: /flow-spec Command
v4.1.0 merges flow-prd/flow-tech/flow-ui/flow-epic into a single /flow-spec command with parallel execution:
-
Unified /flow-spec Command - One command for entire specification phase
- Full Mode: PRD β Tech + UI (parallel) β Epic/Tasks
- Quick Mode:
--skip-tech --skip-uifor small requirements - Backend Only:
--skip-ui - Frontend Only:
--skip-tech
-
Parallel Agent Execution - Tech + UI agents run concurrently
- ~35% time reduction in design phase
- Shared template components in
_shared/directory
-
Simplified Workflows (v4.1)
Quick (3 steps): /flow-init --quick β /flow-spec --skip-tech --skip-ui β /flow-dev β /flow-release Standard (4 steps): /flow-init β /flow-spec β /flow-dev β /flow-quality β /flow-release Full (5 steps): /flow-init β /flow-clarify β /flow-spec β /flow-dev β /flow-quality --full β /flow-release -
Deprecations:
/flow-prd,/flow-tech,/flow-ui,/flow-epicnow deprecated (use/flow-spec)
π v4.1 Improvements:
| Metric | Before (v4.0) | After (v4.1) | Improvement |
|---|---|---|---|
| Command calls | 4 | 1 | -75% |
| Design phase time | 8-12 min | 5-8 min | -35% |
| Entry/Exit Gate code | ~280 lines | ~100 lines | -64% |
ποΈ Skills-First Architecture: Unified Skills with Context Injection
v4.0.0 introduces a major architectural refactor, reorganizing 135 files into a unified Skills-First Architecture inspired by Trellis and OpenSpec:
-
Skills-First Architecture - All Skills organized into 4 groups
workflow/: 9 core workflow Skills (flow-init, flow-spec, flow-dev, etc.)domain/: 7 domain expertise Skills (tdd, debugging, brainstorming, verification)guardrail/: 3 real-time compliance Skills (constitution-guardian, tdd-enforcer)utility/: 8 development tool Skills (npm-release, skill-creator, writing-skills)
-
JSONL Context Injection (Trellis-inspired)
- Each Skill has
context.jsonldefining required context files inject-skill-context.tshook auto-loads context before Skill execution- Variable substitution:
{REQ}replaced with actual requirement ID - Optional files supported with
"optional": true
- Each Skill has
-
workflow.yaml Dependency Graph (OpenSpec-inspired)
- Defines Skill dependencies with
requiresandgenerates - File existence state detection for workflow status
- Clear visualization of Skill execution order
- Defines Skill dependencies with
-
Self-Contained Skills
- Each Skill directory contains: SKILL.md + context.jsonl + scripts/ + references/ + assets/
- SKILL.md limited to <500 lines for focused instructions
- Agent instructions moved to
references/subdirectory - Templates moved to
assets/subdirectory
-
Multi-Module Cross-Platform Compiler (v3.0)
- Complete multi-module compilation: skills, commands, agents, rules, hooks
- Platform-specific output formats:
- Codex:
.codex/skills/,.codex/prompts/,AGENTS.md - Cursor:
.cursor/rules/*.mdc,.cursor/subagents/,hooks.json - Qwen:
.qwen/commands/*.toml,.qwen/agents/,CONTEXT.md - Antigravity:
.agent/skills/,.agent/workflows/,.agent/rules/
- Codex:
context.jsonlcompilation-time expansion with platform-specific formats- 197 tests passing (24 new multi-module tests)
π v4.0 Improvements:
| Metric | Before | After | Improvement |
|---|---|---|---|
| Maintenance points | 4 directories | 1 directory | -75% |
| Context loading | Manual full load | On-demand auto | -70% tokens |
| Dependency visibility | Implicit | Explicit (workflow.yaml) | +100% |
| Platform module support | Commands only | All modules | +400% |
π New Files:
.claude/skills/workflow.yaml- Skill dependency graph.claude/hooks/inject-skill-context.ts- Context injection hook.claude/skills/workflow/*/context.jsonl- Per-Skill context definitionsdevflow/spec/{frontend,backend,shared}/index.md- Specification indexeslib/compiler/context-expander.js- Context.jsonl expansion modulelib/compiler/__tests__/multi-module-emitters.test.js- Multi-module tests
π‘οΈ Discipline System: Iron Law + Rationalization Defense + Pressure Testing
v2.3.0 upgrades the Constitution from a "document" to an "executable discipline system", borrowing best practices from superpowers project:
-
Iron Law + Rationalization Tables - Pre-block AI Agent rationalization attempts
- Each of 10 Constitution Articles now has an Iron Law (absolute prohibition)
- Rationalization Tables with
| Excuse | Reality |format - Red Flags for AI self-check triggers
- Centralized
rationalization-library.mdfor all rationalizations
-
Two-Stage Code Review -
/flow-reviewcommand (NEW)- Stage 1: Spec Compliance (don't trust implementer reports, read code directly)
- Stage 2: Code Quality (only runs after Stage 1 passes)
spec-reviewer.mdandcode-quality-reviewer.mdagents
-
Verification Before Completion - Evidence before assertions
verification-before-completionskillverify-gate.shscript for all flow exit gates- No completion claims without fresh verification evidence
-
Systematic Debugging -
/flow-fixenhanced with 4-phase debugging- Phase 1: Root Cause Investigation (NO FIXES YET)
- Phase 2: Pattern Analysis
- Phase 3: Hypothesis and Testing
- Phase 4: TDD Implementation
flow-debuggingandflow-tddskills
-
Brainstorming Integration -
/flow-initnow includes brainstormingBRAINSTORM.mdas requirement "North Star"/flow-prdrequires BRAINSTORM alignment checkflow-brainstormingskill
-
Pressure Testing Framework - TDD for Skills
tests/pressure-scenarios/with 4 scenarios- Tests AI behavior under time/sunk cost/authority/exhaustion pressure
run-pressure-tests.shrunner
-
Skills Fusion - Superpowers skills migrated to local
flow-tdd,flow-debugging,flow-receiving-review,flow-finishing-branch- All
superpowers:xxxreferences replaced with local skills
-
Ralph Γ Manus Integration - Autonomous development with memory (NEW)
- Merged into
/flow-dev(Autonomous by default) flow-attention-refreshskill with 4 refresh protocolsERROR_LOG.mdstructured error trackingresearch/attempts/failure trace recording- Stop Hook for self-referential loops
- Manus method in
/flow-initStage 2.5 Research - Target: β₯85% task completion rate without human intervention
- Merged into
π Constitution v2.1.0:
- All 10 Articles now have Iron Law + Rationalization Defense + Red Flags
- Cross-reference to
rationalization-library.md
π New Files:
.claude/commands/util/cancel-ralph.md- Cancel Ralph loop command.claude/skills/flow-attention-refresh/SKILL.md- 4 attention refresh protocols.claude/hooks/ralph-stop-hook.sh- Stop Hook for self-referential loops.claude/hooks/hooks.json- Hook registration configuration.claude/scripts/setup-ralph-loop.sh- Ralph state initialization script.claude/docs/templates/ERROR_LOG_TEMPLATE.md- Execution error log format.claude/docs/templates/ATTEMPT_TEMPLATE.md- Research attempt log format.claude/agents/spec-reviewer.md- Stage 1 spec compliance reviewer.claude/agents/code-quality-reviewer.md- Stage 2 code quality reviewer.claude/commands/flow-review.md- Two-stage review command (legacy, replaced by.claude/commands/flow/quality.md).claude/rules/rationalization-library.md- Centralized rationalization defense.claude/scripts/verify-gate.sh- Exit gate verification script.claude/skills/flow-brainstorming/- Brainstorming skill.claude/skills/flow-debugging/- Systematic debugging skill.claude/skills/flow-tdd/- TDD enforcement skill.claude/skills/flow-receiving-review/- Review feedback handling skill.claude/skills/flow-finishing-branch/- Branch completion decision skill.claude/skills/verification-before-completion/- Completion verification skilltests/- Pressure testing framework
π Multi-Platform Adaptation: Agent Adapter Architecture + Command Emitter
v2.2.0 introduces comprehensive multi-platform support, enabling cc-devflow workflows to run on multiple AI coding assistants:
-
Agent Adapter Architecture (REQ-004) - Pluggable adapter layer for platform differences
- Unified Agent Adapter abstraction (environment detection, command execution, capability declaration)
- Adapter Registry with auto-detection and explicit override support
- Built-in adapters: Claude Code (default), Codex CLI, Cursor, Qwen, Antigravity
- Security-first design: capability allow-list with default deny for high-risk operations
- Structured logging for debugging and auditing
-
Command Emitter Compiler (REQ-005) - Single Source of Truth compilation
.claude/as SSOT, compiles to platform-native formatsnpm run adaptCLI for multi-platform compilation- Supported platforms: Codex (
.codex/), Cursor (.cursor/), Qwen (.qwen/), Antigravity (.agent/) - Placeholder expansion:
{SCRIPT:*},{TEMPLATE:*},{GUIDE:*},{AGENT_SCRIPT},$ARGUMENTS - Template/Guide inlining with automatic content embedding
- Resource copying with path rewriting (scripts, templates, guides β platform directories)
- Manifest-based incremental compilation with drift detection
-
Adapter Compiler (REQ-006) - Multi-platform rules entry file generation
- Platform-specific rules emitters for 4 platforms (Cursor MDC, Codex SKILL.md, Qwen TOML, Antigravity with 12K splitting)
- Skills registry compilation (merges
skill-rules.json+skill.mdmetadata) - Manifest v2.0 extension with
skillsandrulesEntrytracking --rulesand--skillsCLI options for selective compilation- Bug Fix: Disabled template inlining by default (keeps path references instead of inline expansion)
- 173 tests, 87% coverage for new modules
π¦ New CLI Tool:
npm run adapt # Compile for all platforms
npm run adapt -- --platform codex # Compile for specific platform
npm run adapt -- --check # Check for drift without compiling
npm run adapt -- --verbose # Show detailed outputπ’ Core Breakthrough: Introduction of Project-Level Commands
v2.1.0's core breakthrough is the introduction of Project-Level Commands, forming a two-tier system with previous Requirement-Level Commands:
-
Project-Level Commands - Project-wide planning and architecture design (executed once per project at the beginning)
/core-roadmap- Interactive product roadmap generation (6-stage dialogue)/core-architecture- 4 architecture diagram generation (Mermaid format)/core-guidelines- Project guidelines generation (frontend/backend separation)
-
Requirement-Level Commands Enhancement - Stage 1.5 Roadmap & Architecture context loading (flow-init)
- Automatically load project-level context when initializing requirements
- Automatic requirement-to-roadmap mapping (RM-ID, Milestone, Quarter)
- Automatic architecture context association (Feature Layer, Tech Stack, Module)
π Documentation Improvements:
- README complete refactoring (complete TOC + folding + external documentation links)
- Added 25+ detailed documents
π Complete Changelog
Contributing: Contributing Guide Issues: GitHub Issues Documentation: Complete Documentation
MIT License - See LICENSE file
π Star this repository if cc-devflow helps streamline your development workflow!