ccjk 1.3.7 → 1.5.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.
@@ -1,105 +1,250 @@
1
1
  ---
2
- description: Add New Feature
2
+ description: 'Feature Development Command - Intelligent Planning, Design, and Implementation Workflow'
3
+ argument-hint: <feature description> [--plan] [--design] [--execute] [--quick]
4
+ # examples:
5
+ # - /feat user login feature # Full flow: Plan → Design → Implement
6
+ # - /feat add dark mode --plan # Generate planning doc only
7
+ # - /feat shopping cart --design # Skip planning, go to design
8
+ # - /feat fix form validation --quick # Quick mode, simplified flow
9
+ # - /feat --execute # Continue executing existing plan
3
10
  ---
4
11
 
12
+ # Feature Development Command
13
+
14
+ > **Core Philosophy**: Plan First, Design-Driven, Quality Priority
15
+
16
+ ## Usage
17
+
18
+ ```bash
19
+ /feat <feature description> [options]
20
+ ```
21
+
22
+ ### Options
23
+
24
+ | Option | Description |
25
+ |--------|-------------|
26
+ | `--plan` | Generate planning document only, don't execute |
27
+ | `--design` | Skip planning, go directly to UI design |
28
+ | `--execute` | Continue executing existing plan |
29
+ | `--quick` | Quick mode, simplified workflow |
30
+
31
+ ---
32
+
33
+ ## Feature Description
34
+
5
35
  $ARGUMENTS
6
36
 
7
- ## Core Workflow
37
+ ---
38
+
39
+ ## Intelligent Workflow
40
+
41
+ ### Phase 0: Input Analysis
42
+
43
+ For each input, first perform **type identification** and clearly communicate:
44
+
45
+ ```
46
+ 📋 Operation Type: [Requirement Planning | Discussion Iteration | Execution Implementation]
47
+ ```
48
+
49
+ **Identification Criteria**:
8
50
 
9
- ### 1. Input Analysis and Type Determination
51
+ | Type | Trigger Condition | Example Input |
52
+ |------|-------------------|---------------|
53
+ | 🆕 Requirement Planning | New feature request, project idea | "Add user auth", "Implement cart" |
54
+ | 🔄 Discussion Iteration | Modify, refine existing plan | "Adjust the approach", "Continue discussion" |
55
+ | ⚡ Execution Implementation | Confirm to start implementation | "Start executing", "Implement as planned" |
10
56
 
11
- When receiving user input, first perform type determination and clearly inform the user:
57
+ ---
58
+
59
+ ### Phase 1: Requirement Planning 🆕
12
60
 
13
- **Determination Criteria:**
61
+ **Trigger**: Identified as new feature requirement
14
62
 
15
- - **Requirement Planning Type**: User proposes new feature requirements, project ideas, or needs to formulate plans
63
+ **Execution Flow**:
16
64
 
17
- - **Discussion Iteration Type**: User requests to continue discussion, modify, or refine existing planning
65
+ 1. **Enable Planner Agent** for deep analysis
66
+ 2. **Generate planning document** stored in `.ccjk/plan/current/`
67
+ 3. **Document naming**: `feature-name.md`
18
68
 
19
- - **Execution Implementation Type**: User confirms planning is complete and requests to start specific implementation work
69
+ **Planning Document Structure**:
20
70
 
21
- ### 2. Classification Processing Mechanism
71
+ ```markdown
72
+ # Feature Plan: [Feature Name]
22
73
 
23
- #### A. Requirement Planning Processing
74
+ ## 📋 Overview
75
+ - Feature objective
76
+ - Expected value
77
+ - Impact scope
24
78
 
25
- **Trigger Condition**: Identified as functional requirement input
79
+ ## 🎯 Feature Breakdown
80
+ - [ ] Sub-feature 1
81
+ - [ ] Sub-feature 2
82
+ - [ ] Sub-feature 3
26
83
 
27
- **Execution Actions**:
84
+ ## 📐 Technical Approach
85
+ - Architecture design
86
+ - Data model
87
+ - API design
28
88
 
29
- - Enable Planner Agent
89
+ ## Acceptance Criteria
90
+ - Functional acceptance points
91
+ - Performance metrics
92
+ - Test coverage
30
93
 
31
- - Generate detailed markdown planning document
94
+ ## ⏱️ Implementation Plan
95
+ - Phase breakdown
96
+ - Time estimation
97
+ - Dependencies
98
+ ```
32
99
 
33
- - Store document in `./.claude/plan` directory, named in plan/xxx.md format
100
+ ---
34
101
 
35
- - Include: objective definition, feature breakdown, implementation steps, acceptance criteria
102
+ ### Phase 2: Discussion Iteration 🔄
36
103
 
37
- #### B. Discussion Iteration Processing
104
+ **Trigger**: User requests to modify or refine plan
38
105
 
39
- **Trigger Condition**: User requests to continue discussion or modify planning
106
+ **Execution Flow**:
40
107
 
41
- **Execution Actions**:
108
+ 1. **Retrieve previous plan** from `.ccjk/plan/current/`
109
+ 2. **Analyze user feedback** identify modification points
110
+ 3. **Enable Planner Agent** for re-planning
111
+ 4. **Version management**:
112
+ - Original file: `feature-name.md`
113
+ - Iteration versions: `feature-name-v2.md`, `feature-name-v3.md`
42
114
 
43
- - Retrieve and analyze previously generated planning files
115
+ **Iteration Record**:
44
116
 
45
- - Identify user feedback and confirmation content
117
+ ```markdown
118
+ ## 📝 Iteration History
46
119
 
47
- - Enable Planner Agent
120
+ ### v2 - [timestamp]
121
+ - Modification 1
122
+ - Modification 2
48
123
 
49
- - Generate detailed markdown planning document
124
+ ### v1 - [timestamp]
125
+ - Initial version
126
+ ```
50
127
 
51
- - Create a new document, for example, if the last one was plan/xxx.md, then this time it's plan/xxx-1.md, if the last one was plan/xxx-1.md, then this time it's plan/xxx-2.md, and so on
128
+ ---
52
129
 
53
- - Reorganize pending implementation task priorities
130
+ ### Phase 3: Execution Implementation
131
+
132
+ **Trigger**: User confirms plan is complete
133
+
134
+ **Execution Flow**:
135
+
136
+ ```
137
+ ┌─────────────────────────────────────────────────────────┐
138
+ │ 📋 Read Planning Document │
139
+ │ ↓ │
140
+ │ 🔍 Identify Subtask Types │
141
+ │ ↓ │
142
+ │ ┌─────────────┬─────────────┬─────────────┐ │
143
+ │ │ Frontend │ Backend │ Other │ │
144
+ │ │ Tasks │ Tasks │ Tasks │ │
145
+ │ │ ↓ │ ↓ │ ↓ │ │
146
+ │ │ UI Design │ Direct │ Direct │ │
147
+ │ │ Check │ Implement │ Implement │ │
148
+ │ │ ↓ │ │ │ │
149
+ │ │ No Design? │ │ │ │
150
+ │ │ ↓ │ │ │ │
151
+ │ │ UI-UX Agent │ │ │ │
152
+ │ └─────────────┴─────────────┴─────────────┘ │
153
+ │ ↓ │
154
+ │ ✅ Complete and Update Status │
155
+ └─────────────────────────────────────────────────────────┘
156
+ ```
157
+
158
+ **Frontend Task Special Handling**:
159
+
160
+ 1. **Check UI Design** - Does design exist?
161
+ 2. **No Design** - Must invoke `UI-UX-Designer Agent`
162
+ 3. **After Design** - Proceed with development
54
163
 
55
- #### C. Execution Implementation Processing
164
+ ---
56
165
 
57
- **Trigger Condition**: User confirms planning is complete and requests to start execution
166
+ ## Quick Commands
58
167
 
59
- **Execution Actions**:
168
+ During feature development, use these shortcuts:
60
169
 
61
- - Start task execution in the order of planning documents
170
+ | Command | Description |
171
+ |---------|-------------|
172
+ | `!plan` | View current planning document |
173
+ | `!status` | View task completion status |
174
+ | `!next` | Execute next subtask |
175
+ | `!pause` | Pause execution, save progress |
176
+ | `!design` | Invoke UI-UX-Designer |
177
+ | `!test` | Generate tests for current feature |
62
178
 
63
- - Perform task type identification before each subtask begins
179
+ ---
64
180
 
65
- - **Frontend Task Special Processing**:
181
+ ## State Management
66
182
 
67
- - Check if available UI design exists
183
+ ### Task Status Tracking
68
184
 
69
- - If no design solution exists, must use UI-UX-Designer Agent
185
+ ```markdown
186
+ ## 📊 Execution Status
70
187
 
71
- - Complete UI design before proceeding with development implementation
188
+ | Subtask | Status | Progress |
189
+ |---------|--------|----------|
190
+ | Data model design | ✅ Complete | 100% |
191
+ | API development | 🔄 In Progress | 60% |
192
+ | Frontend implementation | ⏳ Pending | 0% |
193
+ | Unit test writing | ⏳ Pending | 0% |
194
+ ```
72
195
 
73
- ### 3. Key Execution Principles
196
+ ### Progress Visualization
74
197
 
75
- #### Mandatory Response Requirements
198
+ ```
199
+ Overall Progress: [████████░░░░░░░░] 50%
76
200
 
77
- - **Must first state in every interaction**: "I determine this operation type as: [specific type]"
201
+ Completed: 2/4 subtasks
202
+ 🔄 In Progress: 1/4 subtasks
203
+ ⏳ Pending: 1/4 subtasks
204
+ ```
78
205
 
79
- - Type determination must be accurate and clearly communicated to users
206
+ ---
80
207
 
81
- #### Task Execution Standards
208
+ ## Quality Assurance
82
209
 
83
- - Strictly execute according to documented planning
210
+ ### Mandatory Checkpoints
84
211
 
85
- - Must clarify task nature and dependencies before subtask startup
212
+ 1. **Planning Phase** - Must include acceptance criteria
213
+ 2. **Design Phase** - Frontend tasks must have UI design
214
+ 3. **Implementation Phase** - Update status after each subtask
215
+ 4. **Completion Phase** - Verify against acceptance criteria
86
216
 
87
- - Frontend tasks must ensure UI design completeness
217
+ ### Code Quality Requirements
88
218
 
89
- #### State Management Mechanism
219
+ - Follow existing project code style
220
+ - Add necessary type definitions
221
+ - Write unit tests (coverage > 80%)
222
+ - Update relevant documentation
90
223
 
91
- - Maintain task completion status tracking
224
+ ---
92
225
 
93
- - Timely update planning document status
226
+ ## Output Format
94
227
 
95
- - Ensure user visibility of progress
228
+ ### Response Structure
96
229
 
97
- ## Quality Assurance Points
230
+ ```
231
+ 📋 Operation Type: [Type]
232
+ 📍 Current Phase: [Phase]
233
+ 📊 Overall Progress: [Progress Bar]
98
234
 
99
- 1. **Type Determination Accuracy**: Type identification at the beginning of each interaction must be accurate
235
+ ---
236
+
237
+ [Specific Content]
238
+
239
+ ---
240
+
241
+ 💡 Next Step: [Suggested Action]
242
+ ```
243
+
244
+ ---
100
245
 
101
- 2. **Document Consistency**: Planning documents and actual execution remain synchronized
246
+ ## Start Execution
102
247
 
103
- 3. **Dependency Management**: Pay special attention to UI design dependencies of frontend tasks
248
+ **Feature Request**: $ARGUMENTS
104
249
 
105
- 4. **Transparent User Communication**: All judgments and actions must be clearly communicated to users
250
+ Analyzing input type and initiating appropriate workflow...
@@ -1,105 +1,248 @@
1
1
  ---
2
- description: '用于新增功能开发的命令,支持完整的开发流程和工具集成'
2
+ description: '功能开发命令 - 智能规划、设计、实施一体化工作流'
3
+ argument-hint: <功能描述> [--plan] [--design] [--execute] [--quick]
4
+ # examples:
5
+ # - /feat 用户登录功能 # 完整流程:规划 → 设计 → 实施
6
+ # - /feat 添加暗色模式 --plan # 仅生成规划文档
7
+ # - /feat 购物车功能 --design # 跳过规划,直接设计
8
+ # - /feat 修复表单验证 --quick # 快速模式,简化流程
9
+ # - /feat --execute # 继续执行已有规划
3
10
  ---
4
11
 
12
+ # 功能开发命令
13
+
14
+ > **核心理念**: 规划先行,设计驱动,质量优先
15
+
16
+ ## 使用方法
17
+
18
+ ```bash
19
+ /feat <功能描述> [选项]
20
+ ```
21
+
22
+ ### 选项说明
23
+
24
+ | 选项 | 说明 |
25
+ |------|------|
26
+ | `--plan` | 仅生成规划文档,不执行 |
27
+ | `--design` | 跳过规划,直接进入 UI 设计 |
28
+ | `--execute` | 继续执行已有规划 |
29
+ | `--quick` | 快速模式,简化流程 |
30
+
31
+ ---
32
+
33
+ ## 功能描述
34
+
5
35
  $ARGUMENTS
6
36
 
7
- ## 核心工作流程
37
+ ---
38
+
39
+ ## 智能工作流程
40
+
41
+ ### 阶段 0:输入分析
42
+
43
+ 每次收到输入时,首先进行**类型识别**并明确告知:
44
+
45
+ ```
46
+ 📋 操作类型识别:[需求规划 | 讨论迭代 | 执行实施]
47
+ ```
48
+
49
+ **识别标准**:
8
50
 
9
- ### 1. 输入分析与类型判断
51
+ | 类型 | 触发条件 | 示例输入 |
52
+ |------|----------|----------|
53
+ | 🆕 需求规划 | 新功能需求、项目构想 | "添加用户认证"、"实现购物车" |
54
+ | 🔄 讨论迭代 | 修改、完善已有规划 | "调整一下方案"、"继续讨论" |
55
+ | ⚡ 执行实施 | 确认开始实施 | "开始执行"、"按计划实施" |
10
56
 
11
- 每次收到用户输入时,首先进行类型判断并明确告知用户:
57
+ ---
58
+
59
+ ### 阶段 1:需求规划 🆕
12
60
 
13
- **判断标准:**
61
+ **触发**: 识别为新功能需求
14
62
 
15
- - **需求规划类型**: 用户提出新功能需求、项目构想或需要制定计划
63
+ **执行流程**:
16
64
 
17
- - **讨论迭代类型**: 用户要求继续讨论、修改或完善已有规划
65
+ 1. **启用 Planner Agent** 进行深度分析
66
+ 2. **生成规划文档** 存储至 `.ccjk/plan/current/`
67
+ 3. **文档命名**: `功能名称.md`
18
68
 
19
- - **执行实施类型**: 用户确认规划完成,要求开始具体实施工作
69
+ **规划文档结构**:
20
70
 
21
- ### 2. 分类处理机制
71
+ ```markdown
72
+ # 功能规划:[功能名称]
22
73
 
23
- #### A. 需求规划处理
74
+ ## 📋 概述
75
+ - 功能目标
76
+ - 预期价值
77
+ - 影响范围
24
78
 
25
- **触发条件**: 识别为功能需求输入
79
+ ## 🎯 功能分解
80
+ - [ ] 子功能 1
81
+ - [ ] 子功能 2
82
+ - [ ] 子功能 3
26
83
 
27
- **执行动作**:
84
+ ## 📐 技术方案
85
+ - 架构设计
86
+ - 数据模型
87
+ - API 设计
28
88
 
29
- - 启用 Planner Agent
89
+ ## 验收标准
90
+ - 功能验收点
91
+ - 性能指标
92
+ - 测试覆盖
30
93
 
31
- - 生成详细的 markdown 规划文档
94
+ ## ⏱️ 实施计划
95
+ - 阶段划分
96
+ - 时间估算
97
+ - 依赖关系
98
+ ```
32
99
 
33
- - 将文档存储至 `./.claude/plan` 目录,并以 plan/xxx.md 的格式命名
100
+ ---
34
101
 
35
- - 包含:目标定义、功能分解、实施步骤、验收标准
102
+ ### 阶段 2:讨论迭代 🔄
36
103
 
37
- #### B. 讨论迭代处理
104
+ **触发**: 用户要求修改或完善规划
38
105
 
39
- **触发条件**: 用户要求继续讨论或修改规划
106
+ **执行流程**:
40
107
 
41
- **执行动作**:
108
+ 1. **检索上次规划** 从 `.ccjk/plan/current/` 读取
109
+ 2. **分析用户反馈** 识别修改点
110
+ 3. **启用 Planner Agent** 重新规划
111
+ 4. **版本管理**:
112
+ - 原文件: `功能名称.md`
113
+ - 迭代版本: `功能名称-v2.md`, `功能名称-v3.md`
42
114
 
43
- - 检索并分析上次生成的规划文件
115
+ **迭代记录**:
44
116
 
45
- - 识别用户反馈和确认内容
117
+ ```markdown
118
+ ## 📝 迭代历史
46
119
 
47
- - 启用 Planner Agent
120
+ ### v2 - [时间戳]
121
+ - 修改点 1
122
+ - 修改点 2
48
123
 
49
- - 生成详细的 markdown 规划文档
124
+ ### v1 - [时间戳]
125
+ - 初始版本
126
+ ```
50
127
 
51
- - 建立一个新的文档,比如上一次是 plan/xxx.md,那么这次就是 plan/xxx-1.md,如果上一次是 plan/xxx-1.md,那么这次就是 plan/xxx-2.md,以此类推
128
+ ---
52
129
 
53
- - 重新组织待实施任务优先级
130
+ ### 阶段 3:执行实施 ⚡
131
+
132
+ **触发**: 用户确认规划完成
133
+
134
+ **执行流程**:
135
+
136
+ ```
137
+ ┌─────────────────────────────────────────────────────────┐
138
+ │ 📋 读取规划文档 │
139
+ │ ↓ │
140
+ │ 🔍 识别子任务类型 │
141
+ │ ↓ │
142
+ │ ┌─────────────┬─────────────┬─────────────┐ │
143
+ │ │ 前端任务 │ 后端任务 │ 其他任务 │ │
144
+ │ │ ↓ │ ↓ │ ↓ │ │
145
+ │ │ UI 设计检查 │ 直接实施 │ 直接实施 │ │
146
+ │ │ ↓ │ │ │ │
147
+ │ │ 无设计? │ │ │ │
148
+ │ │ ↓ │ │ │ │
149
+ │ │ UI-UX Agent │ │ │ │
150
+ │ └─────────────┴─────────────┴─────────────┘ │
151
+ │ ↓ │
152
+ │ ✅ 完成并更新状态 │
153
+ └─────────────────────────────────────────────────────────┘
154
+ ```
155
+
156
+ **前端任务特殊处理**:
157
+
158
+ 1. **检查 UI 设计** - 是否存在设计稿
159
+ 2. **无设计时** - 必须调用 `UI-UX-Designer Agent`
160
+ 3. **设计完成后** - 再进行开发实施
54
161
 
55
- #### C. 执行实施处理
162
+ ---
56
163
 
57
- **触发条件**: 用户确认规划完成,要求开始执行
164
+ ## 快捷指令
58
165
 
59
- **执行动作**:
166
+ 在功能开发过程中,可使用以下快捷指令:
60
167
 
61
- - 按规划文档顺序启动任务执行
168
+ | 指令 | 说明 |
169
+ |------|------|
170
+ | `!plan` | 查看当前规划文档 |
171
+ | `!status` | 查看任务完成状态 |
172
+ | `!next` | 执行下一个子任务 |
173
+ | `!pause` | 暂停执行,保存进度 |
174
+ | `!design` | 调用 UI-UX-Designer |
175
+ | `!test` | 为当前功能生成测试 |
62
176
 
63
- - 每个子任务开始前进行任务类型识别
177
+ ---
64
178
 
65
- - **前端任务特殊处理**:
179
+ ## 状态管理
66
180
 
67
- - 检查是否存在可用 UI 设计
181
+ ### 任务状态追踪
68
182
 
69
- - 如无设计方案,must use UI-UX-Designer Agent
183
+ ```markdown
184
+ ## 📊 执行状态
70
185
 
71
- - 完成 UI 设计后再进行开发实施
186
+ | 子任务 | 状态 | 进度 |
187
+ |--------|------|------|
188
+ | 数据模型设计 | ✅ 完成 | 100% |
189
+ | API 接口开发 | 🔄 进行中 | 60% |
190
+ | 前端页面实现 | ⏳ 待开始 | 0% |
191
+ | 单元测试编写 | ⏳ 待开始 | 0% |
192
+ ```
72
193
 
73
- ### 3. 关键执行原则
194
+ ### 进度可视化
74
195
 
75
- #### 强制响应要求
196
+ ```
197
+ 整体进度: [████████░░░░░░░░] 50%
76
198
 
77
- - **每次交互必须首先说明**: "我判断此次操作类型为:[具体类型]"
199
+ 已完成: 2/4 子任务
200
+ 🔄 进行中: 1/4 子任务
201
+ ⏳ 待开始: 1/4 子任务
202
+ ```
78
203
 
79
- - 类型判断必须准确且明确传达给用户
204
+ ---
80
205
 
81
- #### 任务执行规范
206
+ ## 质量保证
82
207
 
83
- - 严格按照文档化规划执行
208
+ ### 强制检查点
84
209
 
85
- - 子任务启动前必须明确任务性质和依赖关系
210
+ 1. **规划阶段** - 必须包含验收标准
211
+ 2. **设计阶段** - 前端任务必须有 UI 设计
212
+ 3. **实施阶段** - 每个子任务完成后更新状态
213
+ 4. **完成阶段** - 对照验收标准验证
86
214
 
87
- - 前端任务必须确保 UI 设计完整性
215
+ ### 代码质量要求
88
216
 
89
- #### 状态管理机制
217
+ - 遵循项目现有代码风格
218
+ - 添加必要的类型定义
219
+ - 编写单元测试(覆盖率 > 80%)
220
+ - 更新相关文档
90
221
 
91
- - 维护任务完成状态跟踪
222
+ ---
92
223
 
93
- - 及时更新规划文档状态
224
+ ## 输出规范
94
225
 
95
- - 确保用户对进度的可见性
226
+ ### 每次响应格式
96
227
 
97
- ## 质量保证要点
228
+ ```
229
+ 📋 操作类型:[类型]
230
+ 📍 当前阶段:[阶段]
231
+ 📊 整体进度:[进度条]
98
232
 
99
- 1. **类型判断准确性**: 每次交互开始的类型识别必须准确
233
+ ---
234
+
235
+ [具体内容]
236
+
237
+ ---
238
+
239
+ 💡 下一步:[建议操作]
240
+ ```
241
+
242
+ ---
100
243
 
101
- 2. **文档一致性**: 规划文档与实际执行保持同步
244
+ ## 开始执行
102
245
 
103
- 3. **依赖关系管理**: 特别关注前端任务的 UI 设计依赖
246
+ **功能需求**: $ARGUMENTS
104
247
 
105
- 4. **用户沟通透明**: 所有判断和动作都要明确告知用户
248
+ 正在分析输入类型并启动相应工作流...