mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
- Implemented ConfigBackupService for backing up local configuration files. - Added ConfigSyncService to download configuration files from GitHub with remote-first conflict resolution. - Created VersionChecker to check application version against the latest GitHub release with caching. - Introduced security validation utilities for input validation to prevent common vulnerabilities. - Developed utility functions to start and stop Docusaurus documentation server.
1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
"use strict";(globalThis.webpackChunkccw_docs=globalThis.webpackChunkccw_docs||[]).push([[973],{1184(e,n,l){l.d(n,{R:()=>t,x:()=>d});var s=l(3696);const i={},r=s.createContext(i);function t(e){const n=s.useContext(r);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:t(e.components),s.createElement(r.Provider,{value:n},e.children)}},7377(e,n,l){l.r(n),l.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>a,frontMatter:()=>d,metadata:()=>s,toc:()=>h});const s=JSON.parse('{"id":"workflows/introduction","title":"Workflow Introduction","description":"Comprehensive overview of CCW workflows - from rapid execution to intelligent orchestration","source":"@site/docs/workflows/introduction.mdx","sourceDirName":"workflows","slug":"/workflows/introduction","permalink":"/docs/workflows/introduction","draft":false,"unlisted":false,"editUrl":"https://github.com/ccw/docs/tree/main/docs/workflows/introduction.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Workflow Introduction","description":"Comprehensive overview of CCW workflows - from rapid execution to intelligent orchestration","sidebar_position":1},"sidebar":"docs","previous":{"title":"/memory:compact","permalink":"/docs/commands/memory/memory-compact"},"next":{"title":"Level 1: Ultra Lightweight","permalink":"/docs/workflows/level-1-ultra-lightweight"}}');var i=l(2540),r=l(1184),t=l(1540);const d={title:"Workflow Introduction",description:"Comprehensive overview of CCW workflows - from rapid execution to intelligent orchestration",sidebar_position:1},o="Workflow Introduction",c={},h=[{value:"Workflow Architecture Overview",id:"workflow-architecture-overview",level:2},{value:"Main Workflow vs Issue Workflow",id:"main-workflow-vs-issue-workflow",level:2},{value:"Why Main Workflow Doesn't Use Worktree Automatically?",id:"why-main-workflow-doesnt-use-worktree-automatically",level:3},{value:"Why Issue Workflow Supports Worktree?",id:"why-issue-workflow-supports-worktree",level:3},{value:"15 Workflow Levels Explained",id:"15-workflow-levels-explained",level:2},{value:"Level 1: Rapid Execution",id:"level-1-rapid-execution",level:3},{value:"Level 2: Lightweight Planning",id:"level-2-lightweight-planning",level:3},{value:"Level 2.5: Bridge Workflow",id:"level-25-bridge-workflow",level:3},{value:"Level 3: Standard Planning",id:"level-3-standard-planning",level:3},{value:"With-File Workflows (Level 3-4)",id:"with-file-workflows-level-3-4",level:3},{value:"Level 4: Brainstorming",id:"level-4-brainstorming",level:3},{value:"Level 5: Intelligent Orchestration",id:"level-5-intelligent-orchestration",level:3},{value:"Issue Workflow",id:"issue-workflow",level:3},{value:"Choosing the Right Workflow",id:"choosing-the-right-workflow",level:2},{value:"Quick Selection Table",id:"quick-selection-table",level:3},{value:"Decision Flowchart",id:"decision-flowchart",level:3},{value:"Complexity Indicators",id:"complexity-indicators",level:3},{value:"Minimum Execution Units",id:"minimum-execution-units",level:2},{value:"Next Steps",id:"next-steps",level:2}];function x(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",hr:"hr",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"workflow-introduction",children:"Workflow Introduction"})}),"\n",(0,i.jsxs)(n.p,{children:["CCW provides two workflow systems: ",(0,i.jsx)(n.strong,{children:"Main Workflow"})," and ",(0,i.jsx)(n.strong,{children:"Issue Workflow"}),", working together to cover the complete software development lifecycle."]}),"\n",(0,i.jsx)(n.h2,{id:"workflow-architecture-overview",children:"Workflow Architecture Overview"}),"\n",(0,i.jsx)(t.A,{chart:'\n graph TB\n subgraph Main["Main Workflow (5 Levels)"]\n L1["Level 1: Rapid<br/>lite-lite-lite"]\n L2["Level 2: Lightweight<br/>lite-plan, lite-fix, multi-cli-plan"]\n L3["Level 3: Standard<br/>plan, tdd-plan, test-fix-gen"]\n L4["Level 4: Brainstorm<br/>brainstorm:auto-parallel"]\n L5["Level 5: Intelligent<br/>ccw-coordinator"]\n L1 --\x3e L2 --\x3e L3 --\x3e L4 --\x3e L5\n end\n\n subgraph Issue["Issue Workflow (Post-Development)"]\n I1["Phase 1: Accumulation<br/>discover, new"]\n I2["Phase 2: Resolution<br/>plan, queue, execute"]\n I1 --\x3e I2\n end\n\n Main -.->|After development| Issue\n\n classDef level1 fill:#e3f2fd,stroke:#1976d2\n classDef level2 fill:#bbdefb,stroke:#1976d2\n classDef level3 fill:#90caf9,stroke:#1976d2\n classDef level4 fill:#64b5f6,stroke:#1976d2\n classDef level5 fill:#42a5f5,stroke:#1976d2\n classDef issue fill:#fff3e0,stroke:#f57c00\n\n class L1 level1,L2 level2,L3 level3,L4 level4,L5 level5,I1,I2 issue\n'}),"\n",(0,i.jsx)(n.h2,{id:"main-workflow-vs-issue-workflow",children:"Main Workflow vs Issue Workflow"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Aspect"}),(0,i.jsx)(n.th,{children:"Main Workflow"}),(0,i.jsx)(n.th,{children:"Issue Workflow"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Purpose"})}),(0,i.jsx)(n.td,{children:"Primary development cycle"}),(0,i.jsx)(n.td,{children:"Post-development maintenance"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Timing"})}),(0,i.jsx)(n.td,{children:"Feature development phase"}),(0,i.jsx)(n.td,{children:"After main workflow completes"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Scope"})}),(0,i.jsx)(n.td,{children:"Complete feature implementation"}),(0,i.jsx)(n.td,{children:"Targeted fixes/enhancements"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Parallelism"})}),(0,i.jsx)(n.td,{children:"Dependency analysis + Agent parallel"}),(0,i.jsx)(n.td,{children:"Worktree isolation (optional)"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Branch Model"})}),(0,i.jsx)(n.td,{children:"Work on current branch"}),(0,i.jsx)(n.td,{children:"Can use isolated worktree"})]})]})]}),"\n",(0,i.jsx)(n.h3,{id:"why-main-workflow-doesnt-use-worktree-automatically",children:"Why Main Workflow Doesn't Use Worktree Automatically?"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Dependency analysis already solves parallelism"}),":"]}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["Planning phase (",(0,i.jsx)(n.code,{children:"/workflow:plan"}),") performs dependency analysis"]}),"\n",(0,i.jsx)(n.li,{children:"Automatically identifies task dependencies and critical paths"}),"\n",(0,i.jsxs)(n.li,{children:["Partitions into ",(0,i.jsx)(n.strong,{children:"parallel groups"})," (independent tasks) and ",(0,i.jsx)(n.strong,{children:"serial chains"})," (dependent tasks)"]}),"\n",(0,i.jsx)(n.li,{children:"Agents execute independent tasks in parallel without filesystem isolation"}),"\n"]}),"\n",(0,i.jsx)(t.A,{chart:'\n graph TD\n subgraph Dependency["Dependency Analysis"]\n A["Task A"]\n B["Task B"]\n C["Task C"]\n D["Task D"]\n\n A & B --\x3e PG["Parallel Group 1<br/>Agent 1"]\n C --\x3e SC["Serial Chain<br/>Agent 2"]\n D --\x3e SC\n\n PG --\x3e R["Results"]\n SC --\x3e R\n end\n\n classDef pg fill:#c8e6c9,stroke:#388e3c\n classDef sc fill:#fff9c4,stroke:#f57c00\n\n class PG pg,SC sc\n'}),"\n",(0,i.jsx)(n.h3,{id:"why-issue-workflow-supports-worktree",children:"Why Issue Workflow Supports Worktree?"}),"\n",(0,i.jsxs)(n.p,{children:["Issue Workflow serves as a ",(0,i.jsx)(n.strong,{children:"supplementary mechanism"})," with different scenarios:"]}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["Main development complete, merged to ",(0,i.jsx)(n.code,{children:"main"})]}),"\n",(0,i.jsx)(n.li,{children:"Issues discovered requiring fixes"}),"\n",(0,i.jsx)(n.li,{children:"Need to fix without affecting current development"}),"\n",(0,i.jsx)(n.li,{children:"Worktree isolation keeps main branch stable"}),"\n"]}),"\n",(0,i.jsx)(t.A,{chart:'\n graph LR\n Dev["Development"] --\x3e Rel["Release"]\n Rel --\x3e Issue["Discover Issue"]\n Issue --\x3e Fix["Worktree Fix"]\n Fix --\x3e Merge["Merge back"]\n Merge --\x3e NewDev["Continue new feature"]\n NewDev -.-> Dev\n'}),"\n",(0,i.jsx)(n.h2,{id:"15-workflow-levels-explained",children:"15 Workflow Levels Explained"}),"\n",(0,i.jsx)(n.h3,{id:"level-1-rapid-execution",children:"Level 1: Rapid Execution"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Low | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": None | ",(0,i.jsx)(n.strong,{children:"State"}),": Stateless"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-lite-lite"})}),(0,i.jsx)(n.td,{children:"Ultra-lightweight direct execution with zero overhead"})]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Quick fixes, simple features, config adjustments"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"level-2-lightweight-planning",children:"Level 2: Lightweight Planning"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Low-Medium | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Memory/Lightweight files | ",(0,i.jsx)(n.strong,{children:"State"}),": Session-scoped"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-plan"})}),(0,i.jsx)(n.td,{children:"In-memory planning for clear requirements"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-fix"})}),(0,i.jsx)(n.td,{children:"Intelligent bug diagnosis and fix"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"multi-cli-plan"})}),(0,i.jsx)(n.td,{children:"Multi-CLI collaborative analysis"})]})]})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Single-module features, bug fixes, technology selection"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"level-25-bridge-workflow",children:"Level 2.5: Bridge Workflow"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Low-Medium | ",(0,i.jsx)(n.strong,{children:"Purpose"}),": Lightweight to Issue transition"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"rapid-to-issue"})}),(0,i.jsx)(n.td,{children:"Bridge from quick planning to issue workflow"})]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Converting lightweight plans to issue tracking"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"level-3-standard-planning",children:"Level 3: Standard Planning"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Medium-High | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Persistent session files | ",(0,i.jsx)(n.strong,{children:"State"}),": Full session management"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"plan"})}),(0,i.jsx)(n.td,{children:"Complex feature development with 5 phases"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"tdd-plan"})}),(0,i.jsx)(n.td,{children:"Test-driven development with Red-Green-Refactor"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"test-fix-gen"})}),(0,i.jsx)(n.td,{children:"Test fix generation with progressive layers"})]})]})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Multi-module changes, refactoring, TDD development"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"with-file-workflows-level-3-4",children:"With-File Workflows (Level 3-4)"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Medium-High | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Documented exploration | ",(0,i.jsx)(n.strong,{children:"Multi-CLI"}),": Yes"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"}),(0,i.jsx)(n.th,{children:"Level"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"brainstorm-with-file"})}),(0,i.jsx)(n.td,{children:"Multi-perspective ideation"}),(0,i.jsx)(n.td,{children:"4"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"debug-with-file"})}),(0,i.jsx)(n.td,{children:"Hypothesis-driven debugging"}),(0,i.jsx)(n.td,{children:"3"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"analyze-with-file"})}),(0,i.jsx)(n.td,{children:"Collaborative analysis"}),(0,i.jsx)(n.td,{children:"3"})]})]})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Documented exploration with multi-CLI collaboration"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"level-4-brainstorming",children:"Level 4: Brainstorming"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": High | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Multi-role analysis docs | ",(0,i.jsx)(n.strong,{children:"Roles"}),": 3-9"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"brainstorm:auto-parallel"})}),(0,i.jsx)(n.td,{children:"Multi-role brainstorming with synthesis"})]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": New feature design, architecture refactoring, exploratory requirements"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"level-5-intelligent-orchestration",children:"Level 5: Intelligent Orchestration"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": All levels | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Full state persistence | ",(0,i.jsx)(n.strong,{children:"Automation"}),": Complete"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Workflow"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"ccw-coordinator"})}),(0,i.jsx)(n.td,{children:"Auto-analyze & recommend command chains"})]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Complex multi-step workflows, uncertain commands, end-to-end automation"]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"issue-workflow",children:"Issue Workflow"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Complexity"}),": Variable | ",(0,i.jsx)(n.strong,{children:"Artifacts"}),": Issue records | ",(0,i.jsx)(n.strong,{children:"Isolation"}),": Worktree optional"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Phase"}),(0,i.jsx)(n.th,{children:"Commands"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Accumulation"})}),(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"discover"}),", ",(0,i.jsx)(n.code,{children:"discover-by-prompt"}),", ",(0,i.jsx)(n.code,{children:"new"})]})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Resolution"})}),(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"plan --all-pending"}),", ",(0,i.jsx)(n.code,{children:"queue"}),", ",(0,i.jsx)(n.code,{children:"execute"})]})]})]})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Best for"}),": Post-development issue fixes, maintaining main branch stability"]}),"\n",(0,i.jsx)(n.h2,{id:"choosing-the-right-workflow",children:"Choosing the Right Workflow"}),"\n",(0,i.jsx)(n.h3,{id:"quick-selection-table",children:"Quick Selection Table"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Scenario"}),(0,i.jsx)(n.th,{children:"Recommended Workflow"}),(0,i.jsx)(n.th,{children:"Level"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Quick fixes, config adjustments"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-lite-lite"})}),(0,i.jsx)(n.td,{children:"1"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Clear single-module features"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-plan -> lite-execute"})}),(0,i.jsx)(n.td,{children:"2"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Bug diagnosis and fix"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-fix"})}),(0,i.jsx)(n.td,{children:"2"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Production emergencies"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"lite-fix --hotfix"})}),(0,i.jsx)(n.td,{children:"2"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Technology selection, solution comparison"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"multi-cli-plan -> lite-execute"})}),(0,i.jsx)(n.td,{children:"2"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Multi-module changes, refactoring"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"plan -> verify -> execute"})}),(0,i.jsx)(n.td,{children:"3"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Test-driven development"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"tdd-plan -> execute -> tdd-verify"})}),(0,i.jsx)(n.td,{children:"3"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Test failure fixes"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"test-fix-gen -> test-cycle-execute"})}),(0,i.jsx)(n.td,{children:"3"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"New features, architecture design"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"brainstorm:auto-parallel -> plan -> execute"})}),(0,i.jsx)(n.td,{children:"4"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Complex multi-step workflows, uncertain commands"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"ccw-coordinator"})}),(0,i.jsx)(n.td,{children:"5"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"Post-development issue fixes"}),(0,i.jsx)(n.td,{children:"Issue Workflow"}),(0,i.jsx)(n.td,{children:"-"})]})]})]}),"\n",(0,i.jsx)(n.h3,{id:"decision-flowchart",children:"Decision Flowchart"}),"\n",(0,i.jsx)(t.A,{chart:'\n flowchart TD\n Start([Start New Task]) --\x3e Q0{Post-development<br/>maintenance?}\n\n Q0 --\x3e|Yes| IssueW["Issue Workflow<br/>discover -> plan -> queue -> execute"]\n Q0 --\x3e|No| Q1{Uncertain which<br/>commands to use?}\n\n Q1 --\x3e|Yes| L5["Level 5: ccw-coordinator<br/>Auto-analyze & recommend"]\n Q1 --\x3e|No| Q2{Requirements<br/>clear?}\n\n Q2 --\x3e|Uncertain| L4["Level 4: brainstorm:auto-parallel<br/>Multi-role exploration"]\n Q2 --\x3e|Clear| Q3{Need persistent<br/>session?}\n\n Q3 --\x3e|Yes| Q4{Development type?}\n Q3 --\x3e|No| Q5{Need multi-<br/>perspective?}\n\n Q4 --\x3e|Standard| L3Std["Level 3: plan -> verify -> execute"]\n Q4 --\x3e|TDD| L3TDD["Level 3: tdd-plan -> execute -> verify"]\n Q4 --\x3e|Test Fix| L3Test["Level 3: test-fix-gen -> test-cycle"]\n\n Q5 --\x3e|Yes| L2Multi["Level 2: multi-cli-plan"]\n Q5 --\x3e|No| Q6{Bug fix?}\n\n Q6 --\x3e|Yes| L2Fix["Level 2: lite-fix"]\n Q6 --\x3e|No| Q7{Need planning?}\n\n Q7 --\x3e|Yes| L2Plan["Level 2: lite-plan -> lite-execute"]\n Q7 --\x3e|No| L1["Level 1: lite-lite-lite"]\n\n IssueW --\x3e End([Complete])\n L5 --\x3e End\n L4 --\x3e End\n L3Std --\x3e End\n L3TDD --\x3e End\n L3Test --\x3e End\n L2Multi --\x3e End\n L2Fix --\x3e End\n L2Plan --\x3e End\n L1 --\x3e End\n\n classDef level1 fill:#e3f2fd,stroke:#1976d2\n classDef level2 fill:#bbdefb,stroke:#1976d2\n classDef level3 fill:#90caf9,stroke:#1976d2\n classDef level4 fill:#64b5f6,stroke:#1976d2\n classDef level5 fill:#42a5f5,stroke:#1976d2\n classDef issue fill:#fff3e0,stroke:#f57c00\n\n class L1 level1,L2Plan,L2Fix,L2Multi level2,L3Std,L3TDD,L3Test level3,L4 level4,L5 level5,IssueW issue\n'}),"\n",(0,i.jsx)(n.h3,{id:"complexity-indicators",children:"Complexity Indicators"}),"\n",(0,i.jsx)(n.p,{children:"System auto-evaluates complexity based on keywords:"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Weight"}),(0,i.jsx)(n.th,{children:"Keywords"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"+2"}),(0,i.jsx)(n.td,{children:"refactor, migrate, architect, system"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"+2"}),(0,i.jsx)(n.td,{children:"multiple, across, all, entire"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"+1"}),(0,i.jsx)(n.td,{children:"integrate, api, database"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"+1"}),(0,i.jsx)(n.td,{children:"security, performance, scale"})]})]})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"High complexity"})," (>=4): Auto-select Level 3-4"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Medium complexity"})," (2-3): Auto-select Level 2"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Low complexity"})," (<2): Auto-select Level 1"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"minimum-execution-units",children:"Minimum Execution Units"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Definition"}),": A set of commands that must execute together as an atomic group to achieve a meaningful workflow milestone."]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Unit Name"}),(0,i.jsx)(n.th,{children:"Commands"}),(0,i.jsx)(n.th,{children:"Purpose"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Quick Implementation"})}),(0,i.jsx)(n.td,{children:"lite-plan -> lite-execute"}),(0,i.jsx)(n.td,{children:"Lightweight plan and execution"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Multi-CLI Planning"})}),(0,i.jsx)(n.td,{children:"multi-cli-plan -> lite-execute"}),(0,i.jsx)(n.td,{children:"Multi-perspective analysis and execution"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Bug Fix"})}),(0,i.jsx)(n.td,{children:"lite-fix -> lite-execute"}),(0,i.jsx)(n.td,{children:"Bug diagnosis and fix execution"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Verified Planning"})}),(0,i.jsx)(n.td,{children:"plan -> plan-verify -> execute"}),(0,i.jsx)(n.td,{children:"Planning with verification and execution"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"TDD Planning"})}),(0,i.jsx)(n.td,{children:"tdd-plan -> execute"}),(0,i.jsx)(n.td,{children:"Test-driven development planning and execution"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Test Validation"})}),(0,i.jsx)(n.td,{children:"test-fix-gen -> test-cycle-execute"}),(0,i.jsx)(n.td,{children:"Generate test tasks and execute test-fix cycle"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.strong,{children:"Code Review"})}),(0,i.jsx)(n.td,{children:"review-session-cycle -> review-cycle-fix"}),(0,i.jsx)(n.td,{children:"Complete review cycle and apply fixes"})]})]})]}),"\n",(0,i.jsx)(n.h2,{id:"next-steps",children:"Next Steps"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/level-1-ultra-lightweight",children:"Level 1: Ultra-Lightweight Workflows"})," - Learn about rapid execution"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/level-2-rapid",children:"Level 2: Rapid Workflows"})," - Lightweight planning and bug fixes"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/level-3-standard",children:"Level 3: Standard Workflows"})," - Complete planning and TDD"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/level-4-brainstorm",children:"Level 4: Brainstorm Workflows"})," - Multi-role exploration"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/level-5-intelligent",children:"Level 5: Intelligent Workflows"})," - Automated orchestration"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/workflows/faq",children:"FAQ"})," - Common questions and answers"]}),"\n"]})]})}function a(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(x,{...e})}):x(e)}}}]); |