claude-code-workflow 6.3.26 → 6.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +7 -1
- package/.claude/agents/action-planning-agent.md +1 -0
- package/.claude/agents/cli-discuss-agent.md +391 -0
- package/.claude/agents/cli-execution-agent.md +2 -0
- package/.claude/agents/cli-explore-agent.md +2 -1
- package/.claude/agents/cli-lite-planning-agent.md +1 -0
- package/.claude/agents/cli-planning-agent.md +1 -0
- package/.claude/agents/code-developer.md +1 -0
- package/.claude/agents/conceptual-planning-agent.md +2 -0
- package/.claude/agents/context-search-agent.md +1 -0
- package/.claude/agents/debug-explore-agent.md +2 -0
- package/.claude/agents/doc-generator.md +1 -0
- package/.claude/agents/issue-plan-agent.md +2 -1
- package/.claude/agents/issue-queue-agent.md +2 -1
- package/.claude/agents/memory-bridge.md +2 -0
- package/.claude/agents/test-context-search-agent.md +2 -0
- package/.claude/agents/test-fix-agent.md +1 -0
- package/.claude/agents/ui-design-agent.md +2 -0
- package/.claude/agents/universal-executor.md +1 -0
- package/.claude/commands/issue/execute.md +141 -163
- package/.claude/commands/workflow/lite-lite-lite.md +798 -0
- package/.claude/commands/workflow/multi-cli-plan.md +510 -0
- package/.claude/skills/ccw/SKILL.md +262 -372
- package/.claude/skills/ccw/command.json +547 -0
- package/.claude/skills/ccw-help/SKILL.md +46 -107
- package/.claude/skills/ccw-help/command.json +511 -0
- package/.claude/skills/skill-tuning/SKILL.md +303 -0
- package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -0
- package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
- package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
- package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
- package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
- package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
- package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -0
- package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
- package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -0
- package/.claude/skills/skill-tuning/phases/orchestrator.md +377 -0
- package/.claude/skills/skill-tuning/phases/state-schema.md +378 -0
- package/.claude/skills/skill-tuning/specs/category-mappings.json +284 -0
- package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -0
- package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +318 -0
- package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -0
- package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +189 -0
- package/.claude/skills/skill-tuning/specs/tuning-strategies.md +1537 -0
- package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -0
- package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -0
- package/.claude/workflows/cli-templates/schemas/multi-cli-discussion-schema.json +421 -0
- package/.claude/workflows/cli-tools-usage.md +0 -41
- package/ccw/dist/core/auth/csrf-middleware.d.ts.map +1 -1
- package/ccw/dist/core/auth/csrf-middleware.js +3 -1
- package/ccw/dist/core/auth/csrf-middleware.js.map +1 -1
- package/ccw/dist/core/data-aggregator.d.ts +2 -0
- package/ccw/dist/core/data-aggregator.d.ts.map +1 -1
- package/ccw/dist/core/data-aggregator.js +5 -2
- package/ccw/dist/core/data-aggregator.js.map +1 -1
- package/ccw/dist/core/lite-scanner.d.ts +2 -1
- package/ccw/dist/core/lite-scanner.d.ts.map +1 -1
- package/ccw/dist/core/lite-scanner.js +295 -6
- package/ccw/dist/core/lite-scanner.js.map +1 -1
- package/ccw/dist/core/routes/codexlens/config-handlers.d.ts.map +1 -1
- package/ccw/dist/core/routes/codexlens/config-handlers.js +5 -5
- package/ccw/dist/core/routes/codexlens/config-handlers.js.map +1 -1
- package/ccw/dist/core/routes/session-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/session-routes.js +166 -48
- package/ccw/dist/core/routes/session-routes.js.map +1 -1
- package/ccw/dist/core/routes/system-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/system-routes.js +87 -0
- package/ccw/dist/core/routes/system-routes.js.map +1 -1
- package/ccw/dist/core/server.js +2 -2
- package/ccw/dist/core/server.js.map +1 -1
- package/ccw/scripts/IMPLEMENTATION-SUMMARY.md +226 -0
- package/ccw/scripts/QUICK-REFERENCE.md +135 -0
- package/ccw/scripts/README-memory-embedder.md +157 -0
- package/ccw/scripts/__pycache__/memory_embedder.cpython-313.pyc +0 -0
- package/ccw/scripts/__pycache__/test_memory_embedder.cpython-313-pytest-8.4.2.pyc +0 -0
- package/ccw/scripts/memory-embedder-example.ts +184 -0
- package/ccw/scripts/memory_embedder.py +428 -0
- package/ccw/scripts/test_memory_embedder.py +245 -0
- package/ccw/src/core/auth/csrf-middleware.ts +3 -1
- package/ccw/src/core/data-aggregator.ts +7 -2
- package/ccw/src/core/lite-scanner.ts +440 -6
- package/ccw/src/core/routes/codexlens/config-handlers.ts +12 -9
- package/ccw/src/core/routes/session-routes.ts +201 -48
- package/ccw/src/core/routes/system-routes.ts +102 -0
- package/ccw/src/core/server.ts +2 -2
- package/ccw/src/templates/dashboard-css/01-base.css +8 -0
- package/ccw/src/templates/dashboard-css/02-session.css +81 -0
- package/ccw/src/templates/dashboard-css/04-lite-tasks.css +2442 -0
- package/ccw/src/templates/dashboard-css/21-cli-toolmgmt.css +157 -0
- package/ccw/src/templates/dashboard-css/32-issue-manager.css +23 -0
- package/ccw/src/templates/dashboard-js/components/cli-stream-viewer.js +38 -4
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +38 -13
- package/ccw/src/templates/dashboard-js/components/navigation.js +24 -4
- package/ccw/src/templates/dashboard-js/i18n.js +194 -6
- package/ccw/src/templates/dashboard-js/views/api-settings.js +32 -0
- package/ccw/src/templates/dashboard-js/views/claude-manager.js +44 -3
- package/ccw/src/templates/dashboard-js/views/cli-manager.js +303 -31
- package/ccw/src/templates/dashboard-js/views/history.js +44 -6
- package/ccw/src/templates/dashboard-js/views/home.js +1 -0
- package/ccw/src/templates/dashboard-js/views/issue-manager.js +54 -7
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +1817 -4
- package/ccw/src/templates/dashboard.html +5 -0
- package/package.json +2 -1
- package/.claude/skills/ccw/index/command-capabilities.json +0 -127
- package/.claude/skills/ccw/index/intent-rules.json +0 -136
- package/.claude/skills/ccw/index/workflow-chains.json +0 -451
- package/.claude/skills/ccw/phases/actions/bugfix.md +0 -218
- package/.claude/skills/ccw/phases/actions/coupled.md +0 -194
- package/.claude/skills/ccw/phases/actions/docs.md +0 -93
- package/.claude/skills/ccw/phases/actions/full.md +0 -154
- package/.claude/skills/ccw/phases/actions/issue.md +0 -201
- package/.claude/skills/ccw/phases/actions/rapid.md +0 -104
- package/.claude/skills/ccw/phases/actions/review-fix.md +0 -84
- package/.claude/skills/ccw/phases/actions/tdd.md +0 -66
- package/.claude/skills/ccw/phases/actions/ui.md +0 -79
- package/.claude/skills/ccw/phases/orchestrator.md +0 -435
- package/.claude/skills/ccw/specs/intent-classification.md +0 -336
- package/.claude/skills/ccw-help/index/all-agents.json +0 -82
- package/.claude/skills/ccw-help/index/all-commands.json +0 -882
- package/.claude/skills/ccw-help/index/by-category.json +0 -914
- package/.claude/skills/ccw-help/index/by-use-case.json +0 -896
- package/.claude/skills/ccw-help/index/command-relationships.json +0 -160
- package/.claude/skills/ccw-help/index/essential-commands.json +0 -112
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Action: Rapid Workflow
|
|
2
|
-
|
|
3
|
-
快速迭代工作流组合:多模型协作分析 + 直接执行
|
|
4
|
-
|
|
5
|
-
## Pattern
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
lite-plan → lite-execute
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Trigger Conditions
|
|
12
|
-
|
|
13
|
-
- Complexity: Low to Medium
|
|
14
|
-
- Intent: Feature development
|
|
15
|
-
- Context: Clear requirements, known implementation path
|
|
16
|
-
- No uncertainty keywords
|
|
17
|
-
|
|
18
|
-
## Execution Flow
|
|
19
|
-
|
|
20
|
-
```mermaid
|
|
21
|
-
sequenceDiagram
|
|
22
|
-
participant U as User
|
|
23
|
-
participant O as CCW Orchestrator
|
|
24
|
-
participant LP as lite-plan
|
|
25
|
-
participant LE as lite-execute
|
|
26
|
-
participant CLI as CLI Tools
|
|
27
|
-
|
|
28
|
-
U->>O: Task description
|
|
29
|
-
O->>O: Classify: rapid
|
|
30
|
-
O->>LP: /workflow:lite-plan "task"
|
|
31
|
-
|
|
32
|
-
LP->>LP: Complexity assessment
|
|
33
|
-
LP->>CLI: Parallel explorations (if needed)
|
|
34
|
-
CLI-->>LP: Exploration results
|
|
35
|
-
LP->>LP: Generate plan.json
|
|
36
|
-
LP->>U: Display plan, ask confirmation
|
|
37
|
-
U->>LP: Confirm + select execution method
|
|
38
|
-
|
|
39
|
-
LP->>LE: /workflow:lite-execute --in-memory
|
|
40
|
-
LE->>CLI: Execute tasks (Agent/Codex)
|
|
41
|
-
CLI-->>LE: Results
|
|
42
|
-
LE->>LE: Optional code review
|
|
43
|
-
LE-->>U: Execution complete
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## When to Use
|
|
47
|
-
|
|
48
|
-
✅ **Ideal scenarios**:
|
|
49
|
-
- 添加单一功能(如用户头像上传)
|
|
50
|
-
- 修改现有功能(如更新表单验证)
|
|
51
|
-
- 小型重构(如抽取公共方法)
|
|
52
|
-
- 添加测试用例
|
|
53
|
-
- 文档更新
|
|
54
|
-
|
|
55
|
-
❌ **Avoid when**:
|
|
56
|
-
- 不确定实现方案
|
|
57
|
-
- 跨多个模块
|
|
58
|
-
- 需要架构决策
|
|
59
|
-
- 有复杂依赖关系
|
|
60
|
-
|
|
61
|
-
## Configuration
|
|
62
|
-
|
|
63
|
-
```javascript
|
|
64
|
-
const rapidConfig = {
|
|
65
|
-
explorationThreshold: {
|
|
66
|
-
// Force exploration if task mentions specific files
|
|
67
|
-
forceExplore: /\b(file|文件|module|模块|class|类)\s*[::]?\s*\w+/i,
|
|
68
|
-
// Skip exploration for simple tasks
|
|
69
|
-
skipExplore: /\b(add|添加|create|创建)\s+(comment|注释|log|日志)/i
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
defaultExecution: 'Agent', // Agent for low complexity
|
|
73
|
-
|
|
74
|
-
codeReview: {
|
|
75
|
-
default: 'Skip', // Skip review for simple tasks
|
|
76
|
-
threshold: 'medium' // Enable for medium+ complexity
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Example Invocations
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
# Simple feature
|
|
85
|
-
ccw "添加用户退出登录按钮"
|
|
86
|
-
→ lite-plan → lite-execute (Agent)
|
|
87
|
-
|
|
88
|
-
# With exploration
|
|
89
|
-
ccw "优化 AuthService 的 token 刷新逻辑"
|
|
90
|
-
→ lite-plan -e → lite-execute (Agent, Gemini review)
|
|
91
|
-
|
|
92
|
-
# Medium complexity
|
|
93
|
-
ccw "实现用户偏好设置的本地存储"
|
|
94
|
-
→ lite-plan -e → lite-execute (Codex)
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Output Artifacts
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
.workflow/.lite-plan/{task-slug}-{date}/
|
|
101
|
-
├── exploration-*.json # If exploration was triggered
|
|
102
|
-
├── explorations-manifest.json
|
|
103
|
-
└── plan.json # Implementation plan
|
|
104
|
-
```
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Review-Fix Workflow Action
|
|
2
|
-
|
|
3
|
-
## Pattern
|
|
4
|
-
```
|
|
5
|
-
review-session-cycle → review-fix
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
## Trigger Conditions
|
|
9
|
-
|
|
10
|
-
- 关键词: "review", "审查", "检查代码", "code review", "质量检查"
|
|
11
|
-
- 场景: PR审查、代码质量提升、安全审计
|
|
12
|
-
|
|
13
|
-
## Execution Flow
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
graph TD
|
|
17
|
-
A[User Input] --> B[review-session-cycle]
|
|
18
|
-
B --> C{7维度分析}
|
|
19
|
-
C --> D[Security]
|
|
20
|
-
C --> E[Performance]
|
|
21
|
-
C --> F[Maintainability]
|
|
22
|
-
C --> G[Architecture]
|
|
23
|
-
C --> H[Code Style]
|
|
24
|
-
C --> I[Test Coverage]
|
|
25
|
-
C --> J[Documentation]
|
|
26
|
-
D & E & F & G & H & I & J --> K[Findings Aggregation]
|
|
27
|
-
K --> L{Quality Gate}
|
|
28
|
-
L -->|Pass| M[Report Only]
|
|
29
|
-
L -->|Fail| N[review-fix]
|
|
30
|
-
N --> O[Auto Fix]
|
|
31
|
-
O --> P[Re-verify]
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Configuration
|
|
35
|
-
|
|
36
|
-
| 参数 | 默认值 | 说明 |
|
|
37
|
-
|------|--------|------|
|
|
38
|
-
| dimensions | all | 审查维度(security,performance,etc.) |
|
|
39
|
-
| quality_gate | 80 | 质量门槛分数 |
|
|
40
|
-
| auto_fix | true | 自动修复发现的问题 |
|
|
41
|
-
| severity_threshold | medium | 最低关注级别 |
|
|
42
|
-
|
|
43
|
-
## CLI Integration
|
|
44
|
-
|
|
45
|
-
| 阶段 | CLI Hint | 用途 |
|
|
46
|
-
|------|----------|------|
|
|
47
|
-
| review-session-cycle | `gemini --mode analysis` | 多维度深度分析 |
|
|
48
|
-
| review-fix | `codex --mode write` | 自动修复问题 |
|
|
49
|
-
|
|
50
|
-
## Slash Commands
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
/workflow:review-session-cycle # 会话级代码审查
|
|
54
|
-
/workflow:review-module-cycle # 模块级代码审查
|
|
55
|
-
/workflow:review-fix # 自动修复审查发现
|
|
56
|
-
/workflow:review --type security # 专项安全审查
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Review Dimensions
|
|
60
|
-
|
|
61
|
-
| 维度 | 检查点 |
|
|
62
|
-
|------|--------|
|
|
63
|
-
| Security | 注入、XSS、敏感数据暴露 |
|
|
64
|
-
| Performance | N+1查询、内存泄漏、算法复杂度 |
|
|
65
|
-
| Maintainability | 代码重复、复杂度、命名 |
|
|
66
|
-
| Architecture | 依赖方向、层级违规、耦合度 |
|
|
67
|
-
| Code Style | 格式、约定、一致性 |
|
|
68
|
-
| Test Coverage | 覆盖率、边界用例 |
|
|
69
|
-
| Documentation | 注释、API文档、README |
|
|
70
|
-
|
|
71
|
-
## When to Use
|
|
72
|
-
|
|
73
|
-
- PR合并前审查
|
|
74
|
-
- 重构后质量验证
|
|
75
|
-
- 安全合规审计
|
|
76
|
-
- 技术债务评估
|
|
77
|
-
|
|
78
|
-
## Risk Assessment
|
|
79
|
-
|
|
80
|
-
| 风险 | 缓解措施 |
|
|
81
|
-
|------|----------|
|
|
82
|
-
| 误报过多 | severity_threshold过滤 |
|
|
83
|
-
| 修复引入新问题 | re-verify循环 |
|
|
84
|
-
| 审查不全面 | 7维度覆盖 |
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# TDD Workflow Action
|
|
2
|
-
|
|
3
|
-
## Pattern
|
|
4
|
-
```
|
|
5
|
-
tdd-plan → execute → tdd-verify
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
## Trigger Conditions
|
|
9
|
-
|
|
10
|
-
- 关键词: "tdd", "test-driven", "测试驱动", "先写测试", "red-green"
|
|
11
|
-
- 场景: 需要高质量代码保证、关键业务逻辑、回归风险高
|
|
12
|
-
|
|
13
|
-
## Execution Flow
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
graph TD
|
|
17
|
-
A[User Input] --> B[tdd-plan]
|
|
18
|
-
B --> C{生成测试任务链}
|
|
19
|
-
C --> D[Red Phase: 写失败测试]
|
|
20
|
-
D --> E[execute: 实现代码]
|
|
21
|
-
E --> F[Green Phase: 测试通过]
|
|
22
|
-
F --> G{需要重构?}
|
|
23
|
-
G -->|Yes| H[Refactor Phase]
|
|
24
|
-
H --> F
|
|
25
|
-
G -->|No| I[tdd-verify]
|
|
26
|
-
I --> J[质量报告]
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Configuration
|
|
30
|
-
|
|
31
|
-
| 参数 | 默认值 | 说明 |
|
|
32
|
-
|------|--------|------|
|
|
33
|
-
| coverage_target | 80% | 目标覆盖率 |
|
|
34
|
-
| cycle_limit | 10 | 最大Red-Green-Refactor循环 |
|
|
35
|
-
| strict_mode | false | 严格模式(必须先红后绿) |
|
|
36
|
-
|
|
37
|
-
## CLI Integration
|
|
38
|
-
|
|
39
|
-
| 阶段 | CLI Hint | 用途 |
|
|
40
|
-
|------|----------|------|
|
|
41
|
-
| tdd-plan | `gemini --mode analysis` | 分析测试策略 |
|
|
42
|
-
| execute | `codex --mode write` | 实现代码 |
|
|
43
|
-
| tdd-verify | `gemini --mode analysis` | 验证TDD合规性 |
|
|
44
|
-
|
|
45
|
-
## Slash Commands
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
/workflow:tdd-plan # 生成TDD任务链
|
|
49
|
-
/workflow:execute # 执行Red-Green-Refactor
|
|
50
|
-
/workflow:tdd-verify # 验证TDD合规性+覆盖率
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## When to Use
|
|
54
|
-
|
|
55
|
-
- 核心业务逻辑开发
|
|
56
|
-
- 需要高测试覆盖率的模块
|
|
57
|
-
- 重构现有代码时确保不破坏功能
|
|
58
|
-
- 团队要求TDD实践
|
|
59
|
-
|
|
60
|
-
## Risk Assessment
|
|
61
|
-
|
|
62
|
-
| 风险 | 缓解措施 |
|
|
63
|
-
|------|----------|
|
|
64
|
-
| 测试粒度不当 | tdd-plan阶段评估测试边界 |
|
|
65
|
-
| 过度测试 | 聚焦行为而非实现 |
|
|
66
|
-
| 循环过多 | cycle_limit限制 |
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# UI Design Workflow Action
|
|
2
|
-
|
|
3
|
-
## Pattern
|
|
4
|
-
```
|
|
5
|
-
ui-design:[explore|imitate]-auto → design-sync → plan → execute
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
## Trigger Conditions
|
|
9
|
-
|
|
10
|
-
- 关键词: "ui", "界面", "design", "组件", "样式", "布局", "前端"
|
|
11
|
-
- 变体触发:
|
|
12
|
-
- `imitate`: "参考", "模仿", "像", "类似"
|
|
13
|
-
- `explore`: 无特定参考时默认
|
|
14
|
-
|
|
15
|
-
## Variants
|
|
16
|
-
|
|
17
|
-
### Explore (探索式设计)
|
|
18
|
-
```mermaid
|
|
19
|
-
graph TD
|
|
20
|
-
A[User Input] --> B[ui-design:explore-auto]
|
|
21
|
-
B --> C[设计系统分析]
|
|
22
|
-
C --> D[组件结构规划]
|
|
23
|
-
D --> E[design-sync]
|
|
24
|
-
E --> F[plan]
|
|
25
|
-
F --> G[execute]
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Imitate (参考式设计)
|
|
29
|
-
```mermaid
|
|
30
|
-
graph TD
|
|
31
|
-
A[User Input + Reference] --> B[ui-design:imitate-auto]
|
|
32
|
-
B --> C[参考分析]
|
|
33
|
-
C --> D[风格提取]
|
|
34
|
-
D --> E[design-sync]
|
|
35
|
-
E --> F[plan]
|
|
36
|
-
F --> G[execute]
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Configuration
|
|
40
|
-
|
|
41
|
-
| 参数 | 默认值 | 说明 |
|
|
42
|
-
|------|--------|------|
|
|
43
|
-
| design_system | auto | 设计系统(auto/tailwind/mui/custom) |
|
|
44
|
-
| responsive | true | 响应式设计 |
|
|
45
|
-
| accessibility | true | 无障碍支持 |
|
|
46
|
-
|
|
47
|
-
## CLI Integration
|
|
48
|
-
|
|
49
|
-
| 阶段 | CLI Hint | 用途 |
|
|
50
|
-
|------|----------|------|
|
|
51
|
-
| explore/imitate | `gemini --mode analysis` | 设计分析、风格提取 |
|
|
52
|
-
| design-sync | - | 设计决策与代码库同步 |
|
|
53
|
-
| plan | - | 内置规划 |
|
|
54
|
-
| execute | `codex --mode write` | 组件实现 |
|
|
55
|
-
|
|
56
|
-
## Slash Commands
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
/workflow:ui-design:explore-auto # 探索式UI设计
|
|
60
|
-
/workflow:ui-design:imitate-auto # 参考式UI设计
|
|
61
|
-
/workflow:ui-design:design-sync # 设计与代码同步(关键步骤)
|
|
62
|
-
/workflow:ui-design:style-extract # 提取现有样式
|
|
63
|
-
/workflow:ui-design:codify-style # 样式代码化
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## When to Use
|
|
67
|
-
|
|
68
|
-
- 新页面/组件开发
|
|
69
|
-
- UI重构或现代化
|
|
70
|
-
- 设计系统建立
|
|
71
|
-
- 参考其他产品设计
|
|
72
|
-
|
|
73
|
-
## Risk Assessment
|
|
74
|
-
|
|
75
|
-
| 风险 | 缓解措施 |
|
|
76
|
-
|------|----------|
|
|
77
|
-
| 设计不一致 | style-extract确保复用 |
|
|
78
|
-
| 响应式问题 | 多断点验证 |
|
|
79
|
-
| 可访问性缺失 | a11y检查集成 |
|