From ee4dc367d9430159506c5c41618c854db71ed59e Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 1 Mar 2026 20:34:11 +0800 Subject: [PATCH] docs: fix 404 errors - add missing zh guide files and fix zh-CN config [IDAW-002] - Add docs/zh/guide/first-workflow.md (Chinese translation) - Add docs/zh/guide/cli-tools.md (Chinese translation) - Fix zh-CN locale config to only show existing files (dashboard, terminal, queue) - Remove non-existent zh-CN sidebar entries that caused 404 errors --- docs/.vitepress/config.ts | 97 +-------------- docs/zh/guide/cli-tools.md | 212 ++++++++++++++++++++++++++++++++ docs/zh/guide/first-workflow.md | 93 ++++++++++++++ 3 files changed, 307 insertions(+), 95 deletions(-) create mode 100644 docs/zh/guide/cli-tools.md create mode 100644 docs/zh/guide/first-workflow.md diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 87ca1398..792359bd 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -489,110 +489,17 @@ export default withMermaid(defineConfig({ label: '本页目录' }, nav: [ - { text: '指南', link: '/zh-CN/guide/ch01-what-is-claude-dms3' }, - { text: '命令', link: '/zh-CN/commands/claude/' }, - { text: '技能', link: '/zh-CN/skills/claude-index' }, - { text: '功能', link: '/zh-CN/features/spec' }, - { text: '组件', link: '/zh-CN/components/' } + { text: '功能', link: '/zh-CN/features/dashboard' } ], sidebar: { - '/zh-CN/guide/': [ - { - text: '📖 指南', - collapsible: false, - items: [ - { text: 'Claude Code Workflow 是什么', link: '/zh-CN/guide/ch01-what-is-claude-dms3' }, - { text: '快速开始', link: '/zh-CN/guide/ch02-getting-started' }, - { text: '核心概念', link: '/zh-CN/guide/ch03-core-concepts' }, - { text: '工作流基础', link: '/zh-CN/guide/ch04-workflow-basics' }, - { text: '高级技巧', link: '/zh-CN/guide/ch05-advanced-tips' }, - { text: '最佳实践', link: '/zh-CN/guide/ch06-best-practices' } - ] - }, - { - text: '🚀 快速入口', - collapsible: true, - items: [ - { text: '安装', link: '/zh-CN/guide/installation' }, - { text: '第一个工作流', link: '/zh-CN/guide/first-workflow' }, - { text: 'CLI 工具', link: '/zh-CN/guide/cli-tools' } - ] - } - ], - '/zh-CN/skills/': [ - { - text: '概述', - collapsible: false, - items: [ - { text: '技能指南', link: '/zh-CN/skills/' } - ] - }, - { - text: '📚 规范', - collapsible: true, - items: [ - { text: '命名规范', link: '/zh-CN/skills/naming-conventions' } - ] - }, - { - text: '⚡ Claude Skills', - collapsible: true, - items: [ - { text: '概述', link: '/zh-CN/skills/claude-index' }, - { text: '协作', link: '/zh-CN/skills/claude-collaboration' }, - { text: '工作流', link: '/zh-CN/skills/claude-workflow' }, - { text: '记忆', link: '/zh-CN/skills/claude-memory' }, - { text: '审查', link: '/zh-CN/skills/claude-review' }, - { text: '元技能', link: '/zh-CN/skills/claude-meta' } - ] - }, - { - text: '🔧 Codex Skills', - collapsible: true, - items: [ - { text: '概述', link: '/zh-CN/skills/codex-index' }, - { text: '生命周期', link: '/zh-CN/skills/codex-lifecycle' }, - { text: '工作流', link: '/zh-CN/skills/codex-workflow' }, - { text: '专项', link: '/zh-CN/skills/codex-specialized' } - ] - }, - { - text: '🎨 自定义技能', - collapsible: true, - items: [ - { text: '概述', link: '/zh-CN/skills/custom' }, - { text: '核心技能', link: '/zh-CN/skills/core-skills' }, - { text: '参考', link: '/zh-CN/skills/reference' } - ] - } - ], '/zh-CN/features/': [ { text: '⚙️ 核心功能', collapsible: false, items: [ - { text: 'Spec 规范系统', link: '/zh-CN/features/spec' }, - { text: 'Memory 记忆系统', link: '/zh-CN/features/memory' }, - { text: 'CLI 调用', link: '/zh-CN/features/cli' }, { text: 'Dashboard 面板', link: '/zh-CN/features/dashboard' }, { text: 'Terminal 终端监控', link: '/zh-CN/features/terminal' }, - { text: 'Queue 队列管理', link: '/zh-CN/features/queue' }, - { text: 'CodexLens', link: '/zh-CN/features/codexlens' } - ] - } - ], - '/zh-CN/components/': [ - { - text: 'UI 组件', - collapsible: true, - items: [ - { text: '概述', link: '/zh-CN/components/index' }, - { text: 'Button 按钮', link: '/zh-CN/components/ui/button' }, - { text: 'Card 卡片', link: '/zh-CN/components/ui/card' }, - { text: 'Input 输入框', link: '/zh-CN/components/ui/input' }, - { text: 'Select 选择器', link: '/zh-CN/components/ui/select' }, - { text: 'Checkbox 复选框', link: '/zh-CN/components/ui/checkbox' }, - { text: 'Badge 徽标', link: '/zh-CN/components/ui/badge' } + { text: 'Queue 队列管理', link: '/zh-CN/features/queue' } ] } ] diff --git a/docs/zh/guide/cli-tools.md b/docs/zh/guide/cli-tools.md new file mode 100644 index 00000000..ded86ce4 --- /dev/null +++ b/docs/zh/guide/cli-tools.md @@ -0,0 +1,212 @@ +# CLI 工具配置 + +为你的开发工作流配置和自定义 CCW CLI 工具。 + +## 配置文件 + +CCW CLI 工具在 `~/.claude/cli-tools.json` 中配置: + +```json +{ + "version": "3.3.0", + "tools": { + "tool-id": { + "enabled": true, + "primaryModel": "model-name", + "secondaryModel": "fallback-model", + "tags": ["tag1", "tag2"], + "type": "builtin | api-endpoint | cli-wrapper" + } + } +} +``` + +## 工具类型 + +### 内置工具 + +具有所有功能的完整工具: + +```json +{ + "gemini": { + "enabled": true, + "primaryModel": "gemini-2.5-flash", + "secondaryModel": "gemini-2.5-pro", + "tags": ["analysis", "debug"], + "type": "builtin" + } +} +``` + +**功能**:分析 + 写入工具 + +### API 端点工具 + +用于专门任务的分析专用工具: + +```json +{ + "custom-api": { + "enabled": true, + "primaryModel": "custom-model", + "tags": ["specialized-analysis"], + "type": "api-endpoint" + } +} +``` + +**功能**:仅分析 + +## CLI 命令格式 + +### 通用模板 + +```bash +ccw cli -p "PURPOSE: [目标] + [原因] + [成功标准] +TASK: • [步骤 1] • [步骤 2] • [步骤 3] +MODE: [analysis|write|review] +CONTEXT: @[文件模式] | Memory: [上下文] +EXPECTED: [输出格式] +CONSTRAINTS: [约束]" --tool --mode --rule