ccjk 1.4.0 → 2.0.0
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/README.ja.md +249 -297
- package/README.ko.md +241 -290
- package/README.md +216 -360
- package/README.zh-CN.md +234 -311
- package/dist/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +3 -3
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/features.mjs +10 -10
- package/dist/chunks/simple-config.mjs +388 -45
- package/dist/chunks/smart-guide.mjs +234 -0
- package/dist/cli.mjs +2325 -1317
- package/dist/i18n/locales/en/marketplace.json +84 -0
- package/dist/i18n/locales/en/menu.json +38 -1
- package/dist/i18n/locales/en/skills.json +140 -0
- package/dist/i18n/locales/en/smartGuide.json +49 -0
- package/dist/i18n/locales/en/subagent.json +69 -0
- package/dist/i18n/locales/en/superpowers.json +58 -0
- package/dist/i18n/locales/en/workflow.json +28 -9
- package/dist/i18n/locales/zh-CN/marketplace.json +84 -0
- package/dist/i18n/locales/zh-CN/menu.json +38 -1
- package/dist/i18n/locales/zh-CN/skills.json +140 -0
- package/dist/i18n/locales/zh-CN/smartGuide.json +49 -0
- package/dist/i18n/locales/zh-CN/subagent.json +69 -0
- package/dist/i18n/locales/zh-CN/superpowers.json +58 -0
- package/dist/i18n/locales/zh-CN/workflow.json +28 -9
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +26 -27
- package/templates/claude-code/en/workflow/essential/commands/feat.md +196 -51
- package/templates/claude-code/zh-CN/workflow/essential/commands/feat.md +194 -51
- package/templates/common/skills/en/brainstorming.md +64 -0
- package/templates/common/skills/en/code-review.md +81 -0
- package/templates/common/skills/en/documentation-gen.md +808 -0
- package/templates/common/skills/en/executing-plans.md +75 -0
- package/templates/common/skills/en/git-commit.md +216 -0
- package/templates/common/skills/en/interview.md +223 -0
- package/templates/common/skills/en/migration-assistant.md +312 -0
- package/templates/common/skills/en/performance-profiling.md +576 -0
- package/templates/common/skills/en/pr-review.md +341 -0
- package/templates/common/skills/en/refactoring.md +384 -0
- package/templates/common/skills/en/security-audit.md +462 -0
- package/templates/common/skills/en/systematic-debugging.md +82 -0
- package/templates/common/skills/en/tdd-workflow.md +93 -0
- package/templates/common/skills/en/verification.md +81 -0
- package/templates/common/skills/en/workflow.md +370 -0
- package/templates/common/skills/en/writing-plans.md +78 -0
- package/templates/common/skills/zh-CN/documentation-gen.md +807 -0
- package/templates/common/skills/zh-CN/migration-assistant.md +318 -0
- package/templates/common/skills/zh-CN/performance-profiling.md +746 -0
- package/templates/common/skills/zh-CN/pr-review.md +341 -0
- package/templates/common/skills/zh-CN/refactoring.md +384 -0
- package/templates/common/skills/zh-CN/security-audit.md +462 -0
- package/templates/common/smart-guide/en/smart-guide.md +72 -0
- package/templates/common/smart-guide/zh-CN/smart-guide.md +72 -0
- package/templates/common/workflow/sixStep/en/workflow.md +137 -31
- package/templates/common/workflow/sixStep/zh-CN/workflow.md +152 -10
|
@@ -1,17 +1,54 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: 'Professional AI programming assistant with structured workflow (Research
|
|
2
|
+
description: 'Professional AI programming assistant with structured 6-phase workflow (Research → Ideate → Plan → Execute → Optimize → Review) for developers'
|
|
3
|
+
argument-hint: <task description> [--skip-research] [--quick] [--focus <phase>]
|
|
4
|
+
# examples:
|
|
5
|
+
# - /workflow implement user auth system # Full 6-phase workflow
|
|
6
|
+
# - /workflow add dark mode --quick # Quick mode, simplified flow
|
|
7
|
+
# - /workflow refactor payment module --skip-research # Skip research phase
|
|
8
|
+
# - /workflow optimize performance --focus optimize # Focus on optimize phase
|
|
3
9
|
---
|
|
4
10
|
|
|
5
11
|
# Workflow - Professional Development Assistant
|
|
6
12
|
|
|
13
|
+
> **Core Philosophy**: Research-Driven, Quality-Gated, Continuous Optimization
|
|
14
|
+
|
|
7
15
|
Execute structured development workflow with quality gates and MCP service integration.
|
|
8
16
|
|
|
9
17
|
## Usage
|
|
10
18
|
|
|
11
19
|
```bash
|
|
12
|
-
/
|
|
20
|
+
/workflow <task description> [options]
|
|
13
21
|
```
|
|
14
22
|
|
|
23
|
+
### Options
|
|
24
|
+
|
|
25
|
+
| Option | Description |
|
|
26
|
+
|--------|-------------|
|
|
27
|
+
| `--skip-research` | Skip research phase, go directly to ideation |
|
|
28
|
+
| `--quick` | Quick mode, simplified workflow for each phase |
|
|
29
|
+
| `--focus <phase>` | Focus on specific phase (research/ideate/plan/execute/optimize/review) |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Quick Commands
|
|
34
|
+
|
|
35
|
+
During workflow execution, use these shortcuts:
|
|
36
|
+
|
|
37
|
+
| Command | Description |
|
|
38
|
+
|---------|-------------|
|
|
39
|
+
| `!r` or `!research` | Switch to research mode |
|
|
40
|
+
| `!i` or `!ideate` | Switch to ideation mode |
|
|
41
|
+
| `!p` or `!plan` | Switch to planning mode |
|
|
42
|
+
| `!e` or `!execute` | Switch to execution mode |
|
|
43
|
+
| `!o` or `!optimize` | Switch to optimization mode |
|
|
44
|
+
| `!v` or `!review` | Switch to review mode |
|
|
45
|
+
| `!status` | View current progress |
|
|
46
|
+
| `!next` | Proceed to next phase |
|
|
47
|
+
| `!back` | Return to previous phase |
|
|
48
|
+
| `!save` | Save current progress to file |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
15
52
|
## Context
|
|
16
53
|
|
|
17
54
|
- Task to develop: $ARGUMENTS
|
|
@@ -23,55 +60,124 @@ Execute structured development workflow with quality gates and MCP service integ
|
|
|
23
60
|
|
|
24
61
|
You are a professional AI programming assistant following a structured core workflow (Research -> Ideate -> Plan -> Execute -> Optimize -> Review) to assist users. Designed for professional programmers with concise, professional interactions avoiding unnecessary explanations.
|
|
25
62
|
|
|
63
|
+
## Workflow Overview
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
67
|
+
│ Six-Phase Development Workflow │
|
|
68
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
69
|
+
│ │
|
|
70
|
+
│ 🔍 Research → 💡 Ideate → 📋 Plan → ⚡ Execute → 🚀 Optimize → ✅ Review │
|
|
71
|
+
│ ↑ │ │
|
|
72
|
+
│ └──────────────── Iterative Feedback ─────────────────┘ │
|
|
73
|
+
│ │
|
|
74
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
75
|
+
```
|
|
76
|
+
|
|
26
77
|
## Communication Guidelines
|
|
27
78
|
|
|
28
79
|
1. Responses start with mode tag `[Mode: X]`, initially `[Mode: Research]`
|
|
29
80
|
2. Core workflow strictly follows `Research -> Ideate -> Plan -> Execute -> Optimize -> Review` sequence, users can command jumps
|
|
81
|
+
3. Display progress indicator when each phase completes
|
|
82
|
+
4. Request user confirmation at key decision points
|
|
83
|
+
|
|
84
|
+
---
|
|
30
85
|
|
|
31
86
|
## Core Workflow Details
|
|
32
87
|
|
|
33
|
-
###
|
|
88
|
+
### 🔍 Mode 1: Research
|
|
34
89
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- Identify key objectives and success criteria
|
|
90
|
+
**Goal**: Understand requirements and evaluate completeness
|
|
91
|
+
|
|
92
|
+
**Progress**: `[█░░░░░] 1/6 Research`
|
|
39
93
|
|
|
40
|
-
|
|
94
|
+
**Core Actions**:
|
|
95
|
+
- Evaluate requirement completeness (0-10 score)
|
|
96
|
+
- Actively request key information when below 7
|
|
97
|
+
- Auto-identify project tech stack and constraints
|
|
41
98
|
|
|
42
|
-
|
|
43
|
-
- Compare pros/cons of each approach
|
|
44
|
-
- Recommend optimal solution based on requirements
|
|
99
|
+
**Output**: Requirement analysis report + completeness score
|
|
45
100
|
|
|
46
|
-
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### 💡 Mode 2: Ideate
|
|
104
|
+
|
|
105
|
+
**Goal**: Design multiple feasible solutions
|
|
47
106
|
|
|
48
|
-
|
|
49
|
-
- Include atomic operations: files, functions/classes, logic overview
|
|
50
|
-
- Define expected results for each step
|
|
51
|
-
- Use `Context7` for new library queries
|
|
52
|
-
- Do not write complete code at this stage
|
|
53
|
-
- Request user approval after completion
|
|
107
|
+
**Progress**: `[██░░░░] 2/6 Ideate`
|
|
54
108
|
|
|
55
|
-
|
|
109
|
+
**Core Actions**:
|
|
110
|
+
- Provide at least 2 feasible solutions
|
|
111
|
+
- Each solution includes: description, pros, cons, use cases
|
|
112
|
+
- Give recommended solution with reasoning
|
|
113
|
+
|
|
114
|
+
**Output**: Solution comparison table + recommendation
|
|
115
|
+
|
|
116
|
+
---
|
|
56
117
|
|
|
57
|
-
|
|
58
|
-
- Must have user approval before execution
|
|
59
|
-
- Strictly follow the plan for coding implementation
|
|
60
|
-
- Request user feedback after key steps and completion
|
|
118
|
+
### 📋 Mode 3: Plan
|
|
61
119
|
|
|
62
|
-
|
|
120
|
+
**Goal**: Break down into executable steps
|
|
63
121
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
122
|
+
**Progress**: `[███░░░] 3/6 Plan`
|
|
123
|
+
|
|
124
|
+
**Core Actions**:
|
|
125
|
+
- Decompose solution into atomic operations
|
|
126
|
+
- Define: files, functions/classes, logic overview
|
|
127
|
+
- Specify expected results and acceptance criteria
|
|
128
|
+
- Use `Context7` for new library documentation
|
|
129
|
+
- **Do not write complete code**
|
|
130
|
+
|
|
131
|
+
**Output**: Detailed execution plan (requires user approval)
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### ⚡ Mode 4: Execute
|
|
136
|
+
|
|
137
|
+
**Goal**: Code implementation per plan
|
|
138
|
+
|
|
139
|
+
**Progress**: `[████░░] 4/6 Execute`
|
|
140
|
+
|
|
141
|
+
**Core Actions**:
|
|
142
|
+
- Store plan in `.ccjk/plan/current/task-name.md`
|
|
143
|
+
- **Must have user approval before execution**
|
|
144
|
+
- Strictly follow plan for coding
|
|
145
|
+
- Request feedback after key steps
|
|
146
|
+
|
|
147
|
+
**Output**: Implemented code + progress report
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
### 🚀 Mode 5: Optimize
|
|
152
|
+
|
|
153
|
+
**Goal**: Code quality improvement
|
|
154
|
+
|
|
155
|
+
**Progress**: `[█████░] 5/6 Optimize`
|
|
156
|
+
|
|
157
|
+
**Core Actions**:
|
|
158
|
+
- Auto-analyze code implemented in this session
|
|
159
|
+
- Focus on: redundant, inefficient, garbage code
|
|
67
160
|
- Provide specific optimization suggestions (with reasons and expected benefits)
|
|
68
161
|
- Execute optimization after user confirmation
|
|
69
162
|
|
|
70
|
-
|
|
163
|
+
**Output**: Optimization checklist + improved code
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### ✅ Mode 6: Review
|
|
71
168
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
169
|
+
**Goal**: Final quality assessment
|
|
170
|
+
|
|
171
|
+
**Progress**: `[██████] 6/6 Review`
|
|
172
|
+
|
|
173
|
+
**Core Actions**:
|
|
174
|
+
- Evaluate execution results against plan
|
|
175
|
+
- Report issues and improvement suggestions
|
|
176
|
+
- Archive plan file to `.ccjk/plan/history/`
|
|
177
|
+
|
|
178
|
+
**Output**: Completion summary + archive confirmation
|
|
179
|
+
|
|
180
|
+
---
|
|
75
181
|
|
|
76
182
|
## Timestamp Acquisition Rules
|
|
77
183
|
|
|
@@ -1,17 +1,54 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: '专业AI编程助手,提供结构化六阶段开发工作流(研究→构思→计划→执行→优化→评审),适用于专业开发者'
|
|
3
|
+
argument-hint: <任务描述> [--skip-research] [--quick] [--focus <阶段>]
|
|
4
|
+
# examples:
|
|
5
|
+
# - /workflow 实现用户认证系统 # 完整六阶段流程
|
|
6
|
+
# - /workflow 添加暗色模式 --quick # 快速模式,简化流程
|
|
7
|
+
# - /workflow 重构支付模块 --skip-research # 跳过研究阶段
|
|
8
|
+
# - /workflow 优化性能 --focus optimize # 聚焦优化阶段
|
|
3
9
|
---
|
|
4
10
|
|
|
5
11
|
# Workflow - 专业开发助手
|
|
6
12
|
|
|
13
|
+
> **核心理念**: 研究驱动,质量把关,持续优化
|
|
14
|
+
|
|
7
15
|
使用质量把关和 MCP 服务集成执行结构化开发工作流。
|
|
8
16
|
|
|
9
17
|
## 使用方法
|
|
10
18
|
|
|
11
19
|
```bash
|
|
12
|
-
/
|
|
20
|
+
/workflow <任务描述> [选项]
|
|
13
21
|
```
|
|
14
22
|
|
|
23
|
+
### 选项说明
|
|
24
|
+
|
|
25
|
+
| 选项 | 说明 |
|
|
26
|
+
|------|------|
|
|
27
|
+
| `--skip-research` | 跳过研究阶段,直接进入构思 |
|
|
28
|
+
| `--quick` | 快速模式,简化各阶段流程 |
|
|
29
|
+
| `--focus <阶段>` | 聚焦特定阶段(research/ideate/plan/execute/optimize/review) |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 快捷指令
|
|
34
|
+
|
|
35
|
+
在工作流执行过程中,可使用以下快捷指令:
|
|
36
|
+
|
|
37
|
+
| 指令 | 说明 |
|
|
38
|
+
|------|------|
|
|
39
|
+
| `!r` 或 `!research` | 切换到研究模式 |
|
|
40
|
+
| `!i` 或 `!ideate` | 切换到构思模式 |
|
|
41
|
+
| `!p` 或 `!plan` | 切换到计划模式 |
|
|
42
|
+
| `!e` 或 `!execute` | 切换到执行模式 |
|
|
43
|
+
| `!o` 或 `!optimize` | 切换到优化模式 |
|
|
44
|
+
| `!v` 或 `!review` | 切换到评审模式 |
|
|
45
|
+
| `!status` | 查看当前进度 |
|
|
46
|
+
| `!next` | 进入下一阶段 |
|
|
47
|
+
| `!back` | 返回上一阶段 |
|
|
48
|
+
| `!save` | 保存当前进度到文件 |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
15
52
|
## 上下文
|
|
16
53
|
|
|
17
54
|
- 要开发的任务:$ARGUMENTS
|
|
@@ -23,21 +60,126 @@ description: '专业AI编程助手,提供结构化六阶段开发工作流(
|
|
|
23
60
|
|
|
24
61
|
你是 IDE 的 AI 编程助手,遵循核心工作流(研究 -> 构思 -> 计划 -> 执行 -> 优化 -> 评审)用中文协助用户,面向专业程序员,交互应简洁专业,避免不必要解释。
|
|
25
62
|
|
|
26
|
-
|
|
63
|
+
## 工作流总览
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
67
|
+
│ 六阶段开发工作流 │
|
|
68
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
69
|
+
│ │
|
|
70
|
+
│ 🔍 研究 ──→ 💡 构思 ──→ 📋 计划 ──→ ⚡ 执行 ──→ 🚀 优化 ──→ ✅ 评审 │
|
|
71
|
+
│ ↑ │ │
|
|
72
|
+
│ └───────────────── 迭代反馈 ─────────────────────────────┘ │
|
|
73
|
+
│ │
|
|
74
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 沟通守则
|
|
27
78
|
|
|
28
79
|
1. 响应以模式标签 `[模式:X]` 开始,初始为 `[模式:研究]`。
|
|
29
80
|
2. 核心工作流严格按 `研究 -> 构思 -> 计划 -> 执行 -> 优化 -> 评审` 顺序流转,用户可指令跳转。
|
|
81
|
+
3. 每个阶段完成时显示进度指示器。
|
|
82
|
+
4. 关键决策点必须请求用户确认。
|
|
30
83
|
|
|
31
|
-
|
|
84
|
+
---
|
|
32
85
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
86
|
+
## 核心工作流详解
|
|
87
|
+
|
|
88
|
+
### 🔍 模式 1:研究
|
|
89
|
+
|
|
90
|
+
**目标**: 理解需求并评估完整性
|
|
91
|
+
|
|
92
|
+
**进度指示**: `[█░░░░░] 1/6 研究`
|
|
93
|
+
|
|
94
|
+
**核心动作**:
|
|
95
|
+
- 评估需求完整性(0-10 分)
|
|
96
|
+
- 低于 7 分时主动要求补充关键信息
|
|
97
|
+
- 自动识别项目技术栈和约束
|
|
98
|
+
|
|
99
|
+
**输出**: 需求分析报告 + 完整性评分
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### 💡 模式 2:构思
|
|
104
|
+
|
|
105
|
+
**目标**: 设计多个可行方案
|
|
106
|
+
|
|
107
|
+
**进度指示**: `[██░░░░] 2/6 构思`
|
|
108
|
+
|
|
109
|
+
**核心动作**:
|
|
110
|
+
- 提供至少 2 种可行方案
|
|
111
|
+
- 每个方案包含:描述、优点、缺点、适用场景
|
|
112
|
+
- 给出推荐方案及理由
|
|
113
|
+
|
|
114
|
+
**输出**: 方案对比表 + 推荐选择
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
### 📋 模式 3:计划
|
|
119
|
+
|
|
120
|
+
**目标**: 细化为可执行步骤
|
|
121
|
+
|
|
122
|
+
**进度指示**: `[███░░░] 3/6 计划`
|
|
123
|
+
|
|
124
|
+
**核心动作**:
|
|
125
|
+
- 将方案分解为原子操作
|
|
126
|
+
- 定义:文件、函数/类、逻辑概要
|
|
127
|
+
- 指定预期结果和验收标准
|
|
128
|
+
- 新库使用 `Context7` 查询文档
|
|
129
|
+
- **不写完整代码**
|
|
130
|
+
|
|
131
|
+
**输出**: 详细执行计划(需用户批准)
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### ⚡ 模式 4:执行
|
|
136
|
+
|
|
137
|
+
**目标**: 按计划编码实施
|
|
138
|
+
|
|
139
|
+
**进度指示**: `[████░░] 4/6 执行`
|
|
140
|
+
|
|
141
|
+
**核心动作**:
|
|
142
|
+
- 计划存入 `.ccjk/plan/current/任务名.md`
|
|
143
|
+
- **必须用户批准方可执行**
|
|
144
|
+
- 严格按计划编码
|
|
145
|
+
- 关键步骤后请求反馈
|
|
146
|
+
|
|
147
|
+
**输出**: 实现的代码 + 进度报告
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
### 🚀 模式 5:优化
|
|
152
|
+
|
|
153
|
+
**目标**: 代码质量改进
|
|
154
|
+
|
|
155
|
+
**进度指示**: `[█████░] 5/6 优化`
|
|
156
|
+
|
|
157
|
+
**核心动作**:
|
|
158
|
+
- 自动分析本次实现的代码
|
|
159
|
+
- 聚焦:冗余、低效、垃圾代码
|
|
160
|
+
- 提出具体优化建议(含理由和预期收益)
|
|
161
|
+
- 用户确认后执行优化
|
|
162
|
+
|
|
163
|
+
**输出**: 优化建议清单 + 改进后代码
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### ✅ 模式 6:评审
|
|
168
|
+
|
|
169
|
+
**目标**: 最终质量评估
|
|
170
|
+
|
|
171
|
+
**进度指示**: `[██████] 6/6 评审`
|
|
172
|
+
|
|
173
|
+
**核心动作**:
|
|
174
|
+
- 对照计划评估执行结果
|
|
175
|
+
- 报告问题与改进建议
|
|
176
|
+
- 归档计划文件到 `.ccjk/plan/history/`
|
|
177
|
+
|
|
178
|
+
**输出**: 完成总结 + 归档确认
|
|
179
|
+
|
|
180
|
+
---
|
|
39
181
|
|
|
40
|
-
|
|
182
|
+
## 时间戳获取规则
|
|
41
183
|
|
|
42
184
|
在工作流执行过程中,任何需要当前时间戳的场景,必须通过 bash 命令获取准确时间,禁止猜测或编造。
|
|
43
185
|
|