Refactor code structure for improved readability and maintainability

This commit is contained in:
catlog22
2026-02-08 13:47:59 +08:00
parent 54c3234d84
commit 0a04660c80
99 changed files with 4820 additions and 413 deletions

View File

@@ -4,7 +4,7 @@
<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/faq"><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="工作流使用中的常见问题和解答"><meta data-rh="true" property="og:description" content="工作流使用中的常见问题和解答"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/faq"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/faq" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/faq" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/faq" hreflang="x-default"><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">

View File

@@ -4,7 +4,7 @@
<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.svg"><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":"介绍","item":"http://localhost:3001/docs/zh/workflows/introduction"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">层级 1: 超轻量工作流 | 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/level-1-ultra-lightweight"><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="层级 1: 超轻量工作流 | CCW Help Documentation"><meta data-rh="true" name="description" content="急速执行工作流 - 零开销直接执行"><meta data-rh="true" property="og:description" content="急速执行工作流 - 零开销直接执行"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/level-1-ultra-lightweight"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-1-ultra-lightweight" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/level-1-ultra-lightweight" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-1-ultra-lightweight" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"级别 1超轻量","item":"http://localhost:3001/docs/zh/workflows/level-1-ultra-lightweight"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">层级 2: 快速工作流 | 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/level-2-rapid"><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="层级 2: 快速工作流 | CCW Help Documentation"><meta data-rh="true" name="description" content="轻量规划和漏洞诊断工作流 - 适用于单模块功能"><meta data-rh="true" property="og:description" content="轻量规划和漏洞诊断工作流 - 适用于单模块功能"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/level-2-rapid"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-2-rapid" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/level-2-rapid" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-2-rapid" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"级别 2快速","item":"http://localhost:3001/docs/zh/workflows/level-2-rapid"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">
@@ -41,7 +41,7 @@
</ul>
<p><strong>阶段 3: 规划</strong></p>
<ul>
<li class="">加载计划 schema: <code>~/.claude/workflows/cli-templates/schemas/plan-json-schema.json</code></li>
<li class="">加载计划 schema: <code>~/.ccw/workflows/cli-templates/schemas/plan-json-schema.json</code></li>
<li class="">按照生成计划 schema 生成 plan.json</li>
</ul>
<p><strong>阶段 4: 确认与选择</strong></p>
@@ -74,7 +74,7 @@
<p><strong>智能诊断 + 修复 (5 阶段)</strong></p>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="命令-1">命令<a href="#命令-1" class="hash-link" aria-label="命令的直接链接" title="命令的直接链接" translate="no"></a></h3>
<div class="language-bash codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><div class="codeBlockContent_kX1v"><pre tabindex="0" class="prism-code language-bash codeBlock_TAPP thin-scrollbar" style="color:#bfc7d5;background-color:#292d3e"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#bfc7d5"><span class="token plain">/workflow:lite-fix </span><span class="token string" style="color:rgb(195, 232, 141)">&quot;Login timeout after 30 seconds&quot;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">/workflow:lite-execute --in-memory </span><span class="token parameter variable" style="color:rgb(191, 199, 213)">--mode</span><span class="token plain"> bugfix</span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain"></span><span class="token comment" style="color:rgb(105, 112, 152);font-style:italic"># 紧急热修复模式</span><span class="token plain"></span><br></span><span class="token-line" style="color:#bfc7d5"><span class="token plain">/workflow:lite-fix </span><span class="token parameter variable" style="color:rgb(191, 199, 213)">--hotfix</span><span class="token plain"> </span><span class="token string" style="color:rgb(195, 232, 141)">&quot;Production database connection failing&quot;</span><br></span></code></pre></div></div>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="流程图-1"><a href="#流程图-1" class="hash-link" aria-label="流程图的直接链接" title="流程图的直接链接" translate="no"></a></h3>
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="流程图-1"><a href="#流程图-1" class="hash-link" aria-label="流程图的直接链接" title="流程图的直接链接" translate="no"></a></h3>
<!-- -->
<h3 class="anchor anchorTargetStickyNavbar_SAay" id="流程阶段-1">流程阶段<a href="#流程阶段-1" class="hash-link" aria-label="流程阶段的直接链接" title="流程阶段的直接链接" translate="no"></a></h3>
<p><strong>阶段 1: 漏洞分析与诊断</strong></p>

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">层级 3: 标准工作流 | 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/level-3-standard"><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="层级 3: 标准工作流 | CCW Help Documentation"><meta data-rh="true" name="description" content="标准规划工作流 - 完整规划和 TDD 开发"><meta data-rh="true" property="og:description" content="标准规划工作流 - 完整规划和 TDD 开发"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/level-3-standard"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-3-standard" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/level-3-standard" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-3-standard" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"级别 3标准","item":"http://localhost:3001/docs/zh/workflows/level-3-standard"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">层级 4: 头脑风暴工作流 | 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/level-4-brainstorm"><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="层级 4: 头脑风暴工作流 | CCW Help Documentation"><meta data-rh="true" name="description" content="多角色头脑风暴工作流 - 协作探索和创意生成"><meta data-rh="true" property="og:description" content="多角色头脑风暴工作流 - 协作探索和创意生成"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/level-4-brainstorm"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-4-brainstorm" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/level-4-brainstorm" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-4-brainstorm" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"级别 4头脑风暴","item":"http://localhost:3001/docs/zh/workflows/level-4-brainstorm"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.9.2">
<title data-rh="true">层级 5: 智能工作流 | 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/level-5-intelligent"><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="层级 5: 智能工作流 | CCW Help Documentation"><meta data-rh="true" name="description" content="智能编排工作流 - 自动分析和推荐"><meta data-rh="true" property="og:description" content="智能编排工作流 - 自动分析和推荐"><link data-rh="true" rel="icon" href="/docs/zh/img/favicon.svg"><link data-rh="true" rel="canonical" href="http://localhost:3001/docs/zh/workflows/level-5-intelligent"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-5-intelligent" hreflang="en"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/zh/workflows/level-5-intelligent" hreflang="zh-CN"><link data-rh="true" rel="alternate" href="http://localhost:3001/docs/workflows/level-5-intelligent" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"级别 5智能","item":"http://localhost:3001/docs/zh/workflows/level-5-intelligent"}]}</script><link rel="stylesheet" href="/docs/zh/assets/css/styles.b656bddd.css">
<script src="/docs/zh/assets/js/runtime~main.526a5acf.js" defer="defer"></script>
<script src="/docs/zh/assets/js/runtime~main.cb7f7fb4.js" defer="defer"></script>
<script src="/docs/zh/assets/js/main.cad7fa6a.js" defer="defer"></script>
</head>
<body class="navigation-with-keyboard">