@@ -332,74 +332,74 @@ graph LR
332
332
333
333
---
334
334
335
- ## 📖 完整工作流详解 ( Complete Workflow Guide)
335
+ ## 📖 Complete Workflow Guide
336
336
337
- > ** 💡 社区讨论 ** : [ LINUX DO 论坛讨论帖 ] ( https://linux.do/t/topic/995175/24 )
338
- > ** 📦 项目仓库 ** : [ GitHub - Claude-Code-Workflow] ( https://github.com/catlog22/Claude-Code-Workflow )
337
+ > ** 💡 Community Discussion ** : [ LINUX DO Forum Thread ] ( https://linux.do/t/topic/995175/24 )
338
+ > ** 📦 Repository ** : [ GitHub - Claude-Code-Workflow] ( https://github.com/catlog22/Claude-Code-Workflow )
339
339
340
- ### 🎯 核心工作流程 ( Core Workflow)
340
+ ### 🎯 Core Workflow Process
341
341
342
- ** 完整开发流程 ** : 头脑风暴 → 用户打磨修改 → 行动规划 → 执行 → 测试
342
+ ** Complete Development Flow ** : Brainstorm → User Refinement → Action Planning → Execution → Testing
343
343
344
344
``` mermaid
345
345
graph LR
346
- A[💭 头脑风暴 ] --> B[✏️ 用户修改 ]
347
- B --> C[📋 行动规划 ]
348
- C --> D[⚡ 执行 ]
349
- D --> E[🧪 测试 ]
346
+ A[💭 Brainstorm ] --> B[✏️ Refinement ]
347
+ B --> C[📋 Planning ]
348
+ C --> D[⚡ Execution ]
349
+ D --> E[🧪 Testing ]
350
350
```
351
351
352
- ### 🧠 头脑风暴阶段 ( Brainstorming Phase)
352
+ ### 🧠 Brainstorming Phase
353
353
354
- #### 涉及指令 :
355
- - ` /workflow:brainstorm:auto-parallel ` - 自动概念规划(并行版)
356
- - ` /workflow:brainstorm:auto-squeeze ` - 自动概念规划(串行版,用于测试)
357
- - 单个角色指令(用于重新规划)
354
+ #### Available Commands :
355
+ - ` /workflow:brainstorm:auto-parallel ` - Automated concept planning (parallel execution)
356
+ - ` /workflow:brainstorm:auto-squeeze ` - Automated concept planning (sequential execution for testing)
357
+ - Individual role commands (for replanning)
358
358
359
- #### 工作流程 :
359
+ #### Workflow Steps :
360
360
361
- 1 . ** 初始规划 ** : 通过 ` /workflow:brainstorm:auto-squeeze [topic] ` 进行自动规划
362
- 2 . ** 修改优化 ** : 如果对规划不满意,使用单个角色指令如 ` /workflow:brainstorm:ui-designer ` 进行修改
363
- 3 . ** 综合文档 ** : 通过 ` /workflow:brainstorm:synthesis ` 生成综合规划文档
361
+ 1 . ** Initial Planning ** : Execute ` /workflow:brainstorm:auto-squeeze [topic] ` for automated planning
362
+ 2 . ** Refinement ** : If unsatisfied with the plan, use individual role commands like ` /workflow:brainstorm:ui-designer ` to refine
363
+ 3 . ** Synthesis ** : Execute ` /workflow:brainstorm:synthesis ` to generate comprehensive planning documentation
364
364
365
- ** 可用角色指令 ** :
366
- - ` 🏗️ system-architect ` - 系统架构分析
367
- - ` 🎨 ui-designer ` - UI/UX 设计规划
368
- - ` 🗄️ data-architect ` - 数据架构设计
369
- - ` 🔒 security-expert ` - 安全架构分析
370
- - ` 📊 product-manager ` - 产品需求分析
371
- - ` 🔬 innovation-lead ` - 技术创新建议
372
- - ` 📋 feature-planner ` - 功能规划
373
- - ` 📈 business-analyst ` - 业务流程分析
374
- - ` 👥 user-researcher ` - 用户行为分析
365
+ ** Available Role Commands ** :
366
+ - ` 🏗️ system-architect ` - System architecture analysis
367
+ - ` 🎨 ui-designer ` - UI/UX design planning
368
+ - ` 🗄️ data-architect ` - Data architecture design
369
+ - ` 🔒 security-expert ` - Security architecture analysis
370
+ - ` 📊 product-manager ` - Product requirements analysis
371
+ - ` 🔬 innovation-lead ` - Technical innovation recommendations
372
+ - ` 📋 feature-planner ` - Feature planning
373
+ - ` 📈 business-analyst ` - Business process analysis
374
+ - ` 👥 user-researcher ` - User behavior analysis
375
375
376
- ### 📋 行动规划阶段 ( Action Planning Phase)
376
+ ### 📋 Action Planning Phase
377
377
378
- 前述工作过程被称为 ** 概念规划 ** ,完成后进入 ** 行动规划 ** 阶段:
378
+ The previous stage is called ** Concept Planning ** . After completion, enter the ** Action Planning ** phase:
379
379
380
380
``` bash
381
381
/workflow:plan " d:\test_project\.workflow\.active-WFS-promptmaster-platform"
382
- # 一般会传入前一项任务的标识符,也可以增加任务描述
382
+ # Typically pass the session identifier from the previous task, can also add task description
383
383
```
384
384
385
- #### Plan 命令协调器架构 :
385
+ #### Plan Command Coordinator Architecture :
386
386
387
- ` /workflow:plan ` 被设计为协调器,自动协调其他斜杠命令执行,包括四个阶段:
387
+ ` /workflow:plan ` is designed as a coordinator that automatically orchestrates other slash commands in four phases:
388
388
389
- 1 . ** 🚀 Session 启动 ** : ` /workflow:session:start ` - 启动一个 workflow session
390
- 2 . ** 🔍 上下文收集 ** : ` /workflow:tools:context-gather `
391
- - 查找相关代码文件(如果是功能更新)
392
- - 使用 MCP 查找示例代码
393
- - 产出 ` context-package.json ` 供 agent 引用
394
- 3 . ** 🧪 概念增强 ** : ` /workflow:tools:concept-enhanced `
395
- - 使用 CLI 工具对现有计划进行分析
396
- - 提出改进建议及重点关注事项
397
- - 产出 ` ANALYSIS_RESULTS.md ` 供 agent 引用
398
- 4 . ** 📝 任务生成 ** : ` /workflow:tools:task-generate ` 或 ` /workflow:tools:task-generate-agent `
399
- - 制定详细规划
400
- - 产出任务 JSON 文件、 ` IMPL_PLAN.md ` 、 ` TODO_LIST.md `
389
+ 1 . ** 🚀 Session Initialization ** : ` /workflow:session:start ` - Start a workflow session
390
+ 2 . ** 🔍 Context Gathering ** : ` /workflow:tools:context-gather `
391
+ - Locate relevant code files (for feature updates)
392
+ - Use MCP to find example code
393
+ - Generate ` context-package.json ` for agent reference
394
+ 3 . ** 🧪 Concept Enhancement ** : ` /workflow:tools:concept-enhanced `
395
+ - Analyze existing plans using CLI tools
396
+ - Provide improvement suggestions and key focus areas
397
+ - Generate ` ANALYSIS_RESULTS.md ` for agent reference
398
+ 4 . ** 📝 Task Generation ** : ` /workflow:tools:task-generate ` or ` /workflow:tools:task-generate-agent `
399
+ - Develop detailed plans
400
+ - Generate task JSON files, ` IMPL_PLAN.md ` , ` TODO_LIST.md `
401
401
402
- #### 🗂️ Context Package 示例结构 :
402
+ #### 🗂️ Context Package Structure Example :
403
403
404
404
``` json
405
405
{
@@ -422,13 +422,13 @@ graph LR
422
422
}
423
423
],
424
424
"implementation_guidance" : {
425
- "start_with" : [" 项目结构初始化 " , " 数据库架构 " , " 认证系统 " ],
426
- "key_deliverables" : [" 后端API " , " 前端界面 " , " 测试套件 " ]
425
+ "start_with" : [" Project structure initialization " , " Database architecture " , " Authentication system " ],
426
+ "key_deliverables" : [" Backend API " , " Frontend interface " , " Test suite " ]
427
427
}
428
428
}
429
429
```
430
430
431
- #### 📋 Task JSON 示例结构 :
431
+ #### 📋 Task JSON Structure Example :
432
432
433
433
``` json
434
434
{
@@ -442,83 +442,83 @@ graph LR
442
442
"priority" : " P0"
443
443
},
444
444
"context" : {
445
- "requirements" : [" 设置后端项目结构 " , " 配置 Docker Compose" ],
445
+ "requirements" : [" Setup backend project structure " , " Configure Docker Compose" ],
446
446
"focus_paths" : [" backend/" , " frontend/" , " docker-compose.yml" ],
447
- "acceptance" : [" 后端服务运行在 8000 端口 " , " 前端运行在 3000 端口 " ]
447
+ "acceptance" : [" Backend service running on port 8000 " , " Frontend running on port 3000 " ]
448
448
},
449
449
"flow_control" : {
450
450
"pre_analysis" : [
451
451
{
452
452
"step" : " load_synthesis_specification" ,
453
- "action" : " 加载综合规范文档 " ,
453
+ "action" : " Load comprehensive specification document " ,
454
454
"commands" : [" Read(.workflow/xxx/synthesis-specification.md)" ]
455
455
}
456
456
]
457
457
}
458
458
}
459
459
```
460
460
461
- 系统自动产生上下文,执行下一个斜杠命令,直到流程执行完毕。
461
+ The system automatically generates context and executes the next slash command until the workflow completes.
462
462
463
- ### ⚡ 任务执行阶段 ( Execution Phase)
463
+ ### ⚡ Execution Phase
464
464
465
- 通过 ` /workflow:execute ` 进入任务执行阶段:
465
+ Enter the execution phase via ` /workflow:execute ` :
466
466
467
- #### 🤖 Agent 自动分配 :
468
- - ** code-developer** : 代码开发任务
469
- - ** code-review-test-agent** : 代码审查和测试任务
467
+ #### 🤖 Automatic Agent Assignment :
468
+ - ** code-developer** : Code development tasks
469
+ - ** code-review-test-agent** : Code review and testing tasks
470
470
471
- #### 📚 技术栈指南自动加载 :
472
- Agent 根据上下文自动加载对应的技术栈指南(位置: ` ~\.claude\workflows\cli-templates\tech-stacks ` )
471
+ #### 📚 Tech Stack Guidelines Auto-Loading :
472
+ Agents automatically load corresponding tech stack guidelines based on context (location: ` ~\.claude\workflows\cli-templates\tech-stacks ` )
473
473
474
- ** 可用技术栈模板 ** :
475
- - ` typescript-dev.md ` - TypeScript 开发规范
476
- - ` python-dev.md ` - Python 开发约定
477
- - ` react-dev.md ` - React 架构指南
478
- - ` vue-dev.md ` - Vue 开发最佳实践
479
- - ` fastapi-dev.md ` - FastAPI 后端规范
474
+ ** Available Tech Stack Templates ** :
475
+ - ` typescript-dev.md ` - TypeScript development standards
476
+ - ` python-dev.md ` - Python development conventions
477
+ - ` react-dev.md ` - React architecture guidelines
478
+ - ` vue-dev.md ` - Vue development best practices
479
+ - ` fastapi-dev.md ` - FastAPI backend standards
480
480
481
- > 💡 ** 欢迎贡献 ** : 如果您有更好的技术栈提示词,欢迎提交 PR!
481
+ > 💡 ** Contributions Welcome ** : If you have better tech stack prompts, PRs are welcome!
482
482
483
- ### 🐛 功能新增与 Bug 修复工作流 ( Feature & Bug Fix Workflow)
483
+ ### 🐛 Feature Development & Bug Fix Workflow
484
484
485
- #### 快速交互式规划 :
485
+ #### Quick Interactive Planning :
486
486
487
- 使用 CLI 命令进行交互式询问,形成计划文档:
487
+ Use CLI commands for interactive inquiry to form planning documents:
488
488
489
489
``` bash
490
- # Bug 分析和修复
491
- /cli:mode:bug-index " 描述 bug 现象 " --tool gemini
490
+ # Bug analysis and fixing
491
+ /cli:mode:bug-index " Describe bug symptoms " --tool gemini
492
492
493
- # 深度代码分析
494
- /cli:mode:code-analysis " 分析目标 " --tool codex
493
+ # Deep code analysis
494
+ /cli:mode:code-analysis " Analysis target " --tool codex
495
495
496
- # 架构规划
497
- /cli:mode:plan " 规划主题 " --tool qwen
496
+ # Architecture planning
497
+ /cli:mode:plan " Planning topic " --tool qwen
498
498
```
499
499
500
- ** 执行策略 ** :
501
- - ** 简单任务 ** : 让 Claude 直接执行
502
- - ** 复杂任务 ** : 按照完整工作流执行(头脑风暴 → 规划 → 执行)
500
+ ** Execution Strategy ** :
501
+ - ** Simple tasks ** : Let Claude execute directly
502
+ - ** Complex tasks ** : Follow complete workflow (Brainstorm → Planning → Execution)
503
503
504
- ### 🧪 测试工作流 ( Testing Workflow)
504
+ ### 🧪 Testing Workflow
505
505
506
- 在 ` /workflow:execute ` 完成后:
506
+ After ` /workflow:execute ` completion:
507
507
508
508
``` bash
509
- # 生成测试工作流
509
+ # Generate test workflow
510
510
/workflow:test-gen WFS-session-id
511
511
512
- # 执行测试任务
512
+ # Execute test tasks
513
513
/workflow:execute
514
514
```
515
515
516
- 测试工作流自动生成多层次测试:
517
- - ** 单元测试 ** ( Unit Tests)
518
- - ** 集成测试 ** ( Integration Tests)
519
- - ** 端到端测试 ** (E2E Tests )
520
- - ** 性能测试 ** ( Performance Tests)
521
- - ** 安全测试 ** ( Security Tests)
516
+ Test workflow automatically generates multi-level tests:
517
+ - ** Unit Tests**
518
+ - ** Integration Tests**
519
+ - ** End-to-End Tests ** (E2E)
520
+ - ** Performance Tests**
521
+ - ** Security Tests**
522
522
523
523
524
524
---
0 commit comments