Files
Claude-Code-Workflow/ccw/docs-site/build/zh/workflows/introduction.html
catlog22 5cfeb59124 feat: add configuration backup, sync, and version checker services
- 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.
2026-02-05 17:32:31 +08:00

104 lines
38 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-workflows/introduction" data-has-hydrated="false">
<head>
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">工作流介绍 | CCW Help Documentation</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="http://localhost:3001/docs/zh/workflows/introduction"><meta data-rh="true" property="og:locale" content="zh_CN"><meta data-rh="true" property="og:locale:alternate" content="en"><meta data-rh="true" name="docusaurus_locale" content="zh"><meta data-rh="true" name="docsearch:language" content="zh"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="工作流介绍 | CCW Help Documentation"><meta data-rh="true" name="description" content="CCW 工作流全面概述 - 从急速执行到智能编排"><meta data-rh="true" property="og:description" content="CCW 工作流全面概述 - 从急速执行到智能编排"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.ico"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/introduction"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/introduction" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/introduction" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/introduction" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Introduction","item":"http://localhost:3001/docs/zh/workflows/introduction"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.43777f0a.css">
<script src="/docs/zh/assets/js/runtime~main.2ae99552.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.c0de9472.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">
<svg style="display: none;"><defs>
<symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol>
</defs></svg>
<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||"light"),document.documentElement.setAttribute("data-theme-choice",t||"light")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="跳到主要内容"><a class="skipToContent_G6ar" href="#__docusaurus_skipToContent_fallback">跳到主要内容</a></div><nav aria-label="主导航" class="theme-layout-navbar navbar navbar--fixed-top"><div class="navbar__inner"><div class="theme-layout-navbar-left navbar__items"><button aria-label="切换导航栏" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/docs/zh/"><div class="navbar__logo"><img src="/docs/zh/img/logo.svg" alt="CCW Logo" class="themedComponent_DHUr themedComponent--light_DIHH"><img src="/docs/zh/img/logo.svg" alt="CCW Logo" class="themedComponent_DHUr themedComponent--dark_Bv2M"></div><b class="navbar__title text--truncate">CCW Help</b></a></div><div class="theme-layout-navbar-right navbar__items navbar__items--right"><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a href="#" aria-haspopup="true" aria-expanded="false" role="button" class="navbar__link"><svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" class="iconLanguage_xrmG"><path fill="currentColor" d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></svg>简体中文</a><ul class="dropdown__menu"><li><a href="/docs/workflows/introduction" target="_self" rel="noopener noreferrer" class="dropdown__link" lang="en">English</a></li><li><a href="/docs/zh/workflows/introduction" target="_self" rel="noopener noreferrer" class="dropdown__link dropdown__link--active" lang="zh-CN">简体中文</a></li></ul></div><div class="toggle_OLSw colorModeToggle_Hg9V"><button class="clean-btn toggleButton_wYmb toggleButtonDisabled_vaDU" type="button" disabled="" title="system mode" aria-label="切换浅色/暗黑模式当前为system mode"><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_KEbZ lightToggleIcon_Sxwe"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_KEbZ darkToggleIcon_Yem1"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_KEbZ systemToggleIcon_txm5"><path fill="currentColor" d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"></path></svg></button></div><div class="navbarSearchContainer_bmvg"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="theme-layout-main main-wrapper mainWrapper_UyTV"><div class="docsWrapper_XLvK"><button aria-label="回到顶部" class="clean-btn theme-back-to-top-button backToTopButton_z1FD" type="button"></button><div class="docRoot_HciC"><aside class="theme-doc-sidebar-container docSidebarContainer_e5ai"><div class="sidebarViewport_N8x0"><div class="sidebar_vJCc"><nav aria-label="文档侧边栏" class="menu thin-scrollbar menu_qiME"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/zh/"><span title="首页" class="linkLabel_PuAu">首页</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/zh/overview"><span title="概览" class="linkLabel_PuAu">概览</span></a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="true" href="/docs/zh/commands/general/ccw"><span title="Commands" class="categoryLinkLabel_Oe72">Commands</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="true" tabindex="0" href="/docs/zh/commands/general/ccw"><span title="General Commands" class="categoryLinkLabel_Oe72">General Commands</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/ccw"><span title="/ccw" class="linkLabel_PuAu">/ccw</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/ccw-plan"><span title="/ccw-plan" class="linkLabel_PuAu">/ccw-plan</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/ccw-test"><span title="/ccw-test" class="linkLabel_PuAu">/ccw-test</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/ccw-coordinator"><span title="/ccw-coordinator" class="linkLabel_PuAu">/ccw-coordinator</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/ccw-debug"><span title="/ccw-debug" class="linkLabel_PuAu">/ccw-debug</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/flow-create"><span title="/flow-create" class="linkLabel_PuAu">/flow-create</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/general/codex-coordinator"><span title="/codex-coordinator" class="linkLabel_PuAu">/codex-coordinator</span></a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="true" tabindex="0" href="/docs/zh/commands/issue/issue-new"><span title="Issue Commands" class="categoryLinkLabel_Oe72">Issue Commands</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-new"><span title="issue:new" class="linkLabel_PuAu">issue:new</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-discover"><span title="issue:discover" class="linkLabel_PuAu">issue:discover</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-plan"><span title="issue:plan" class="linkLabel_PuAu">issue:plan</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-queue"><span title="issue:queue" class="linkLabel_PuAu">issue:queue</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-execute"><span title="issue:execute" class="linkLabel_PuAu">issue:execute</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-from-brainstorm"><span title="issue:from-brainstorm" class="linkLabel_PuAu">issue:from-brainstorm</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/issue/issue-convert-to-plan"><span title="issue:convert-to-plan" class="linkLabel_PuAu">issue:convert-to-plan</span></a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="true" tabindex="0" href="/docs/zh/commands/cli/cli-init"><span title="CLI Commands" class="categoryLinkLabel_Oe72">CLI Commands</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/cli/cli-init"><span title="/cli:cli-init" class="linkLabel_PuAu">/cli:cli-init</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/cli/codex-review"><span title="/cli:codex-review" class="linkLabel_PuAu">/cli:codex-review</span></a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="true" tabindex="0" href="/docs/zh/commands/memory/memory-update-full"><span title="Memory Commands" class="categoryLinkLabel_Oe72">Memory Commands</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-update-full"><span title="/memory:update-full" class="linkLabel_PuAu">/memory:update-full</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-update-related"><span title="/memory:update-related" class="linkLabel_PuAu">/memory:update-related</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-load"><span title="/memory:load" class="linkLabel_PuAu">/memory:load</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-docs-full-cli"><span title="/memory:docs-full-cli" class="linkLabel_PuAu">/memory:docs-full-cli</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-docs-related-cli"><span title="/memory:docs-related-cli" class="linkLabel_PuAu">/memory:docs-related-cli</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/commands/memory/memory-compact"><span title="/memory:compact" class="linkLabel_PuAu">/memory:compact</span></a></li></ul></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_d9ci menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" role="button" aria-expanded="true" href="/docs/zh/workflows/introduction"><span title="Workflows" class="categoryLinkLabel_Oe72">Workflows</span></a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/zh/workflows/introduction"><span title="Introduction" class="linkLabel_PuAu">Introduction</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/workflows/level-1-ultra-lightweight"><span title="Level 1: Ultra Lightweight" class="linkLabel_PuAu">Level 1: Ultra Lightweight</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/workflows/level-2-rapid"><span title="Level 2: Rapid" class="linkLabel_PuAu">Level 2: Rapid</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/workflows/level-3-standard"><span title="Level 3: Standard" class="linkLabel_PuAu">Level 3: Standard</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/workflows/level-4-brainstorm"><span title="Level 4: Brainstorm" class="linkLabel_PuAu">Level 4: Brainstorm</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/zh/workflows/level-5-intelligent"><span title="Level 5: Intelligent" class="linkLabel_PuAu">Level 5: Intelligent</span></a></li></ul></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/zh/faq"><span title="FAQ" class="linkLabel_PuAu">FAQ</span></a></li></ul></nav></div></div></aside><main class="docMainContainer_namt"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_YAwJ"><div class="docItemContainer_Rv5Z"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_zCmv" aria-label="页面路径"><ul class="breadcrumbs"><li class="breadcrumbs__item"><a aria-label="主页面" class="breadcrumbs__link" href="/docs/zh/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_JFrk"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">Workflows</span></li><li class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link">Introduction</span></li></ul></nav><div class="tocCollapsible_O_Qc theme-doc-toc-mobile tocMobile_tjDr"><button type="button" class="clean-btn tocCollapsibleButton_htYj">本页总览</button></div><div class="theme-doc-markdown markdown"><header><h1>工作流介绍</h1></header>
<p>CCW 提供两类工作流体系:<strong>主干工作流</strong> (Main Workflow) 和 <strong>Issue 工作流</strong> (Issue Workflow),它们协同覆盖软件开发的完整生命周期。</p>
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="工作流架构概览">工作流架构概览<a href="#工作流架构概览" class="hash-link" aria-label="工作流架构概览的直接链接" title="工作流架构概览的直接链接" translate="no"></a></h2>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="主干工作流-vs-issue-工作流">主干工作流 vs Issue 工作流<a href="#主干工作流-vs-issue-工作流" class="hash-link" aria-label="主干工作流 vs Issue 工作流的直接链接" title="主干工作流 vs Issue 工作流的直接链接" translate="no"></a></h2>
<table><thead><tr><th>维度</th><th>主干工作流</th><th>Issue 工作流</th></tr></thead><tbody><tr><td><strong>定位</strong></td><td>主要开发周期</td><td>开发后的维护补充</td></tr><tr><td><strong>时机</strong></td><td>功能开发阶段</td><td>主干开发完成后</td></tr><tr><td><strong>范围</strong></td><td>完整功能实</td><td>针对性修复/增强</td></tr><tr><td><strong>并行策略</strong></td><td>依赖分析 + Agent 并行</td><td>Worktree 隔离 (可选)</td></tr><tr><td><strong>分支模型</strong></td><td>在当前分支工作</td><td>可使用独立 worktree</td></tr></tbody></table>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="为什么主干工作流不自动使用-worktree">为什么主干工作流不自动使用 Worktree<a href="#为什么主干工作流不自动使用-worktree" class="hash-link" aria-label="为什么主干工作流不自动使用 Worktree的直接链接" title="为什么主干工作流不自动使用 Worktree的直接链接" translate="no"></a></h3>
<p><strong>依赖分析已解决并行问题</strong></p>
<ol>
<li class="">规划阶段 (<code>/workflow:plan</code>) 执行依赖分析</li>
<li class="">自动识别任务依赖和关键路径</li>
<li class="">划分<strong>并行组</strong> (独立任务) 和<strong>串行链</strong> (依赖任务)</li>
<li class="">Agent 并行执行独立任务,无需文件系统隔离</li>
</ol>
<!-- -->
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="为什么-issue-工作流支持-worktree">为什么 Issue 工作流支持 Worktree<a href="#为什么-issue-工作流支持-worktree" class="hash-link" aria-label="为什么 Issue 工作流支持 Worktree的直接链接" title="为什么 Issue 工作流支持 Worktree的直接链接" translate="no"></a></h3>
<p>Issue 工作流作为<strong>补充机制</strong>,场景不同:</p>
<ol>
<li class="">主干开发完成,已合并到 <code>main</code></li>
<li class="">发现需要修复的问题</li>
<li class="">需要在不影响当前开发的情况下修复</li>
<li class="">Worktree 隔离让主分支保持稳定</li>
</ol>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="15-个工作流层级详解">15 个工作流层级详解<a href="#15-个工作流层级详解" class="hash-link" aria-label="15 个工作流层级详解的直接链接" title="15 个工作流层级详解的直接链接" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-1-急速执行">层级 1: 急速执行<a href="#层级-1-急速执行" class="hash-link" aria-label="层级 1: 急速执行的直接链接" title="层级 1: 急速执行的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 低 | <strong>产物</strong>: 无 | <strong>状态</strong>: 无状态</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>lite-lite-lite</code></td><td>超轻量直接执行,零开销</td></tr></tbody></table>
<p><strong>适用于</strong>: 快速修复、简单功能、配置调整</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-2-轻量规划">层级 2: 轻量规划<a href="#层级-2-轻量规划" class="hash-link" aria-label="层级 2: 轻量规划的直接链接" title="层级 2: 轻量规划的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 低-中 | <strong>产物</strong>: 内存/轻量文件 | <strong>状态</strong>: 会话内</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>lite-plan</code></td><td>内存规划,适用于明确需求</td></tr><tr><td><code>lite-fix</code></td><td>智能漏洞诊断和修复</td></tr><tr><td><code>multi-cli-plan</code></td><td>多 CLI 协作分析</td></tr></tbody></table>
<p><strong>适用于</strong>: 单模块功能、漏洞修复、技术选型</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-25-桥接工作流">层级 2.5: 桥接工作流<a href="#层级-25-桥接工作流" class="hash-link" aria-label="层级 2.5: 桥接工作流的直接链接" title="层级 2.5: 桥接工作流的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 低-中 | <strong>用途</strong>: 轻量到 Issue 工作流的过渡</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>rapid-to-issue</code></td><td>从快速规划桥接到 Issue 工作流</td></tr></tbody></table>
<p><strong>适用于</strong>: 将轻量规划转换为 Issue 跟踪</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-3-标准规划">层级 3: 标准规划<a href="#层级-3-标准规划" class="hash-link" aria-label="层级 3: 标准规划的直接链接" title="层级 3: 标准规划的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 中-高 | <strong>产物</strong>: 持久化会话文件 | <strong>状态</strong>: 完整会话管理</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>plan</code></td><td>复杂功能开发5 个阶段</td></tr><tr><td><code>tdd-plan</code></td><td>测试驱动开发Red-Green-Refactor</td></tr><tr><td><code>test-fix-gen</code></td><td>测试修复生成,渐进式层级</td></tr></tbody></table>
<p><strong>适用于</strong>: 多模块改动、重构、TDD 开发</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="with-file-工作流-层级-3-4">With-File 工作流 (层级 3-4)<a href="#with-file-工作流-层级-3-4" class="hash-link" aria-label="With-File 工作流 (层级 3-4)的直接链接" title="With-File 工作流 (层级 3-4)的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 中-高 | <strong>产物</strong>: 文档化探索 | <strong>多 CLI</strong>: 支持</p>
<table><thead><tr><th>工作流</th><th>描述</th><th>层级</th></tr></thead><tbody><tr><td><code>brainstorm-with-file</code></td><td>多视角创意构思</td><td>4</td></tr><tr><td><code>debug-with-file</code></td><td>假设驱动调试</td><td>3</td></tr><tr><td><code>analyze-with-file</code></td><td>协作分析</td><td>3</td></tr></tbody></table>
<p><strong>适用于</strong>: 需要多 CLI 协作的文档化探索</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-4-头脑风暴">层级 4: 头脑风暴<a href="#层级-4-头脑风暴" class="hash-link" aria-label="层级 4: 头脑风暴的直接链接" title="层级 4: 头脑风暴的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 高 | <strong>产物</strong>: 多角色分析文档 | <strong>角色数</strong>: 3-9</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>brainstorm:auto-parallel</code></td><td>多角色头脑风暴与综合</td></tr></tbody></table>
<p><strong>适用于</strong>: 新功能设计、架构重构、探索性需求</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="层级-5-智能编排">层级 5: 智能编排<a href="#层级-5-智能编排" class="hash-link" aria-label="层级 5: 智能编排的直接链接" title="层级 5: 智能编排的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 所有层级 | <strong>产物</strong>: 完整状态持久化 | <strong>自动化</strong>: 完全自动</p>
<table><thead><tr><th>工作流</th><th>描述</th></tr></thead><tbody><tr><td><code>ccw-coordinator</code></td><td>自动分析并推荐命令链</td></tr></tbody></table>
<p><strong>适用于</strong>: 复杂多步骤工作流、不确定命令、端到端自动化</p>
<hr>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="issue-工作流">Issue 工作流<a href="#issue-工作流" class="hash-link" aria-label="Issue 工作流的直接链接" title="Issue 工作流的直接链接" translate="no"></a></h3>
<p><strong>复杂度</strong>: 可变 | <strong>产物</strong>: Issue 记录 | <strong>隔离</strong>: Worktree 可选</p>
<table><thead><tr><th>阶段</th><th>命令</th></tr></thead><tbody><tr><td><strong>积累</strong></td><td><code>discover</code>, <code>discover-by-prompt</code>, <code>new</code></td></tr><tr><td><strong>解决</strong></td><td><code>plan --all-pending</code>, <code>queue</code>, <code>execute</code></td></tr></tbody></table>
<p><strong>适用于</strong>: 开发后 Issue 修复、维护主分支稳定性</p>
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="选择合适的工作流">选择合适的工作流<a href="#选择合适的工作流" class="hash-link" aria-label="选择合适的工作流的直接链接" title="选择合适的工作流的直接链接" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="快速选择表">快速选择表<a href="#快速选择表" class="hash-link" aria-label="快速选择表的直接链接" title="快速选择表的直接链接" translate="no"></a></h3>
<table><thead><tr><th>场景</th><th>推荐工作流</th><th>层级</th></tr></thead><tbody><tr><td>快速修复、配置调整</td><td><code>lite-lite-lite</code></td><td>1</td></tr><tr><td>明确的单模块功能</td><td><code>lite-plan -&gt; lite-execute</code></td><td>2</td></tr><tr><td>漏洞诊断和修复</td><td><code>lite-fix</code></td><td>2</td></tr><tr><td>生产环境紧急修复</td><td><code>lite-fix --hotfix</code></td><td>2</td></tr><tr><td>技术选型、方案对比</td><td><code>multi-cli-plan -&gt; lite-execute</code></td><td>2</td></tr><tr><td>多模块改动、重构</td><td><code>plan -&gt; verify -&gt; execute</code></td><td>3</td></tr><tr><td>测试驱动开发</td><td><code>tdd-plan -&gt; execute -&gt; tdd-verify</code></td><td>3</td></tr><tr><td>测试失败修复</td><td><code>test-fix-gen -&gt; test-cycle-execute</code></td><td>3</td></tr><tr><td>新功能、架构设计</td><td><code>brainstorm:auto-parallel -&gt; plan -&gt; execute</code></td><td>4</td></tr><tr><td>复杂多步骤工作流、不确定命令</td><td><code>ccw-coordinator</code></td><td>5</td></tr><tr><td>开发后 Issue 修复</td><td>Issue 工作流</td><td>-</td></tr></tbody></table>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="决策流程图">决策流程图<a href="#决策流程图" class="hash-link" aria-label="决策流程图的直接链接" title="决策流程图的直接链接" translate="no"></a></h3>
<!-- -->
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="复杂度指标">复杂度指标<a href="#复杂度指标" class="hash-link" aria-label="复杂度指标的直接链接" title="复杂度指标的直接链接" translate="no"></a></h3>
<p>系统基于关键词自动评估复杂度:</p>
<table><thead><tr><th>权重</th><th>关键词</th></tr></thead><tbody><tr><td>+2</td><td>refactor(重构), migrate(迁移), architect(架构), system(系统)</td></tr><tr><td>+2</td><td>multiple(多个), across(跨), all(所有), entire(整个)</td></tr><tr><td>+1</td><td>integrate(集成), api, database(数据库)</td></tr><tr><td>+1</td><td>security(安全), performance(性能), scale(扩展)</td></tr></tbody></table>
<ul>
<li class=""><strong>高复杂度</strong> (&gt;=4): 自动选择层级 3-4</li>
<li class=""><strong>中等复杂度</strong> (2-3): 自动选择层级 2</li>
<li class=""><strong>低复杂度</strong> (&lt;2): 自动选择层级 1</li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="最小执行单元">最小执行单元<a href="#最小执行单元" class="hash-link" aria-label="最小执行单元的直接链接" title="最小执行单元的直接链接" translate="no"></a></h2>
<p><strong>定义</strong>: 必须作为原子组一起执行以实现有意义的工作流里程碑的一组命令。</p>
<table><thead><tr><th>单元名称</th><th>命令</th><th>用途</th></tr></thead><tbody><tr><td><strong>快速实现</strong></td><td>lite-plan -&gt; lite-execute</td><td>轻量规划和执行</td></tr><tr><td><strong>多 CLI 规划</strong></td><td>multi-cli-plan -&gt; lite-execute</td><td>多视角分析和执行</td></tr><tr><td><strong>漏洞修复</strong></td><td>lite-fix -&gt; lite-execute</td><td>漏洞诊断和修复执行</td></tr><tr><td><strong>验证式规划</strong></td><td>plan -&gt; plan-verify -&gt; execute</td><td>带验证的规划和执行</td></tr><tr><td><strong>TDD 规划</strong></td><td>tdd-plan -&gt; execute</td><td>测试驱动开发规划和执行</td></tr><tr><td><strong>测试验证</strong></td><td>test-fix-gen -&gt; test-cycle-execute</td><td>生成测试任务并执行测试修复循环</td></tr><tr><td><strong>代码审查</strong></td><td>review-session-cycle -&gt; review-cycle-fix</td><td>完整审查循环并应用修复</td></tr></tbody></table>
<h2 class="anchor anchorTargetStickyNavbar_SAay" id="下一步">下一步<a href="#下一步" class="hash-link" aria-label="下一步的直接链接" title="下一步的直接链接" translate="no"></a></h2>
<ul>
<li class=""><a class="" href="/docs/zh/workflows/level-1-ultra-lightweight">层级 1: 超轻量工作流</a> - 了解急速执行</li>
<li class=""><a class="" href="/docs/zh/workflows/level-2-rapid">层级 2: 快速工作流</a> - 轻量规划和漏洞修复</li>
<li class=""><a class="" href="/docs/zh/workflows/level-3-standard">层级 3: 标准工作流</a> - 完整规划和 TDD</li>
<li class=""><a class="" href="/docs/zh/workflows/level-4-brainstorm">层级 4: 头脑风暴工作流</a> - 多角色探索</li>
<li class=""><a class="" href="/docs/zh/workflows/level-5-intelligent">层级 5: 智能工作流</a> - 自动化编排</li>
<li class=""><a class="" href="/docs/zh/workflows/faq">常见问题</a> - 常见问题和解答</li>
</ul></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="row margin-top--sm theme-doc-footer-edit-meta-row"><div class="col noPrint_HJkF"><a href="https://github.com/ccw/docs/tree/main/docs/workflows/introduction.mdx" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_UohW" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>编辑此页</a></div><div class="col lastUpdated_g62E"></div></div></footer></article><nav class="docusaurus-mt-lg pagination-nav" aria-label="文件选项卡"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/zh/commands/memory/memory-compact"><div class="pagination-nav__sublabel">上一页</div><div class="pagination-nav__label">/memory:compact</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/docs/zh/workflows/level-1-ultra-lightweight"><div class="pagination-nav__sublabel">下一页</div><div class="pagination-nav__label">Level 1: Ultra Lightweight</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_TN1Q thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#工作流架构概览" class="table-of-contents__link toc-highlight">工作流架构概览</a></li><li><a href="#主干工作流-vs-issue-工作流" class="table-of-contents__link toc-highlight">主干工作流 vs Issue 工作流</a><ul><li><a href="#为什么主干工作流不自动使用-worktree" class="table-of-contents__link toc-highlight">为什么主干工作流不自动使用 Worktree</a></li><li><a href="#为什么-issue-工作流支持-worktree" class="table-of-contents__link toc-highlight">为什么 Issue 工作流支持 Worktree</a></li></ul></li><li><a href="#15-个工作流层级详解" class="table-of-contents__link toc-highlight">15 个工作流层级详解</a><ul><li><a href="#层级-1-急速执行" class="table-of-contents__link toc-highlight">层级 1: 急速执行</a></li><li><a href="#层级-2-轻量规划" class="table-of-contents__link toc-highlight">层级 2: 轻量规划</a></li><li><a href="#层级-25-桥接工作流" class="table-of-contents__link toc-highlight">层级 2.5: 桥接工作流</a></li><li><a href="#层级-3-标准规划" class="table-of-contents__link toc-highlight">层级 3: 标准规划</a></li><li><a href="#with-file-工作流-层级-3-4" class="table-of-contents__link toc-highlight">With-File 工作流 (层级 3-4)</a></li><li><a href="#层级-4-头脑风暴" class="table-of-contents__link toc-highlight">层级 4: 头脑风暴</a></li><li><a href="#层级-5-智能编排" class="table-of-contents__link toc-highlight">层级 5: 智能编排</a></li><li><a href="#issue-工作流" class="table-of-contents__link toc-highlight">Issue 工作流</a></li></ul></li><li><a href="#选择合适的工作流" class="table-of-contents__link toc-highlight">选择合适的工作流</a><ul><li><a href="#快速选择表" class="table-of-contents__link toc-highlight">快速选择表</a></li><li><a href="#决策流程图" class="table-of-contents__link toc-highlight">决策流程图</a></li><li><a href="#复杂度指标" class="table-of-contents__link toc-highlight">复杂度指标</a></li></ul></li><li><a href="#最小执行单元" class="table-of-contents__link toc-highlight">最小执行单元</a></li><li><a href="#下一步" class="table-of-contents__link toc-highlight">下一步</a></li></ul></div></div></div></div></main></div></div></div><footer class="theme-layout-footer footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2026 CCW. Built with Docusaurus.</div></div></div></footer></div>
</body>
</html>