ccjk 1.5.0 → 2.0.2

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.
Files changed (56) hide show
  1. package/README.ja.md +249 -297
  2. package/README.ko.md +241 -290
  3. package/README.md +222 -364
  4. package/README.zh-CN.md +553 -295
  5. package/dist/chunks/claude-code-config-manager.mjs +7 -7
  6. package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
  7. package/dist/chunks/codex-config-switch.mjs +3 -3
  8. package/dist/chunks/codex-provider-manager.mjs +1 -1
  9. package/dist/chunks/codex-uninstaller.mjs +2 -2
  10. package/dist/chunks/commands.mjs +1 -1
  11. package/dist/chunks/features.mjs +10 -10
  12. package/dist/chunks/simple-config.mjs +321 -389
  13. package/dist/chunks/smart-guide.mjs +234 -0
  14. package/dist/cli.mjs +1795 -433
  15. package/dist/i18n/locales/en/configuration.json +12 -1
  16. package/dist/i18n/locales/en/marketplace.json +84 -0
  17. package/dist/i18n/locales/en/menu.json +38 -1
  18. package/dist/i18n/locales/en/skills.json +140 -0
  19. package/dist/i18n/locales/en/smartGuide.json +49 -0
  20. package/dist/i18n/locales/en/subagent.json +69 -0
  21. package/dist/i18n/locales/en/superpowers.json +58 -0
  22. package/dist/i18n/locales/zh-CN/configuration.json +12 -1
  23. package/dist/i18n/locales/zh-CN/marketplace.json +84 -0
  24. package/dist/i18n/locales/zh-CN/menu.json +38 -1
  25. package/dist/i18n/locales/zh-CN/skills.json +140 -0
  26. package/dist/i18n/locales/zh-CN/smartGuide.json +49 -0
  27. package/dist/i18n/locales/zh-CN/subagent.json +69 -0
  28. package/dist/i18n/locales/zh-CN/superpowers.json +58 -0
  29. package/dist/index.d.mts +1 -0
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.mjs +366 -7
  32. package/package.json +26 -27
  33. package/templates/common/skills/en/brainstorming.md +64 -0
  34. package/templates/common/skills/en/code-review.md +81 -0
  35. package/templates/common/skills/en/documentation-gen.md +808 -0
  36. package/templates/common/skills/en/executing-plans.md +75 -0
  37. package/templates/common/skills/en/git-commit.md +216 -0
  38. package/templates/common/skills/en/interview.md +223 -0
  39. package/templates/common/skills/en/migration-assistant.md +312 -0
  40. package/templates/common/skills/en/performance-profiling.md +576 -0
  41. package/templates/common/skills/en/pr-review.md +341 -0
  42. package/templates/common/skills/en/refactoring.md +384 -0
  43. package/templates/common/skills/en/security-audit.md +462 -0
  44. package/templates/common/skills/en/systematic-debugging.md +82 -0
  45. package/templates/common/skills/en/tdd-workflow.md +93 -0
  46. package/templates/common/skills/en/verification.md +81 -0
  47. package/templates/common/skills/en/workflow.md +370 -0
  48. package/templates/common/skills/en/writing-plans.md +78 -0
  49. package/templates/common/skills/zh-CN/documentation-gen.md +807 -0
  50. package/templates/common/skills/zh-CN/migration-assistant.md +318 -0
  51. package/templates/common/skills/zh-CN/performance-profiling.md +746 -0
  52. package/templates/common/skills/zh-CN/pr-review.md +341 -0
  53. package/templates/common/skills/zh-CN/refactoring.md +384 -0
  54. package/templates/common/skills/zh-CN/security-audit.md +462 -0
  55. package/templates/common/smart-guide/en/smart-guide.md +72 -0
  56. package/templates/common/smart-guide/zh-CN/smart-guide.md +72 -0
@@ -0,0 +1,370 @@
1
+ ---
2
+ name: six-step-workflow
3
+ description: Structured six-step development workflow for complex features
4
+ version: 1.0.0
5
+ author: CCJK
6
+ category: dev
7
+ triggers:
8
+ - /workflow
9
+ - /six-step
10
+ - /6step
11
+ use_when:
12
+ - "User wants structured development process"
13
+ - "Working on complex feature implementation"
14
+ - "User mentions workflow or step-by-step"
15
+ auto_activate: false
16
+ priority: 6
17
+ difficulty: intermediate
18
+ tags:
19
+ - workflow
20
+ - structured
21
+ - development
22
+ ---
23
+
24
+ # Workflow - Professional Development Assistant
25
+
26
+ > **Core Philosophy**: Research-Driven, Quality-Gated, Continuous Optimization
27
+
28
+ Execute structured development workflow with quality gates and MCP service integration.
29
+
30
+ ## Usage
31
+
32
+ ```bash
33
+ /workflow <task description> [options]
34
+ ```
35
+
36
+ ### Options
37
+
38
+ | Option | Description |
39
+ |--------|-------------|
40
+ | `--skip-research` | Skip research phase, go directly to ideation |
41
+ | `--quick` | Quick mode, simplified workflow for each phase |
42
+ | `--focus <phase>` | Focus on specific phase (research/ideate/plan/execute/optimize/review) |
43
+
44
+ ---
45
+
46
+ ## Quick Commands
47
+
48
+ During workflow execution, use these shortcuts:
49
+
50
+ | Command | Description |
51
+ |---------|-------------|
52
+ | `!r` or `!research` | Switch to research mode |
53
+ | `!i` or `!ideate` | Switch to ideation mode |
54
+ | `!p` or `!plan` | Switch to planning mode |
55
+ | `!e` or `!execute` | Switch to execution mode |
56
+ | `!o` or `!optimize` | Switch to optimization mode |
57
+ | `!v` or `!review` | Switch to review mode |
58
+ | `!status` | View current progress |
59
+ | `!next` | Proceed to next phase |
60
+ | `!back` | Return to previous phase |
61
+ | `!save` | Save current progress to file |
62
+
63
+ ---
64
+
65
+ ## Context
66
+
67
+ - Task to develop: $ARGUMENTS
68
+ - Structured 6-phase workflow with quality gates
69
+ - Professional developer-focused interaction
70
+ - MCP service integration for enhanced capabilities
71
+
72
+ ## Your Role
73
+
74
+ 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.
75
+
76
+ ## Workflow Overview
77
+
78
+ ```
79
+ ┌─────────────────────────────────────────────────────────────────┐
80
+ │ Six-Phase Development Workflow │
81
+ ├─────────────────────────────────────────────────────────────────┤
82
+ │ │
83
+ │ 🔍 Research → 💡 Ideate → 📋 Plan → ⚡ Execute → 🚀 Optimize → ✅ Review │
84
+ │ ↑ │ │
85
+ │ └──────────────── Iterative Feedback ─────────────────┘ │
86
+ │ │
87
+ └─────────────────────────────────────────────────────────────────┘
88
+ ```
89
+
90
+ ## Communication Guidelines
91
+
92
+ 1. Responses start with mode tag `[Mode: X]`, initially `[Mode: Research]`
93
+ 2. Core workflow strictly follows `Research -> Ideate -> Plan -> Execute -> Optimize -> Review` sequence, users can command jumps
94
+ 3. Display progress indicator when each phase completes
95
+ 4. Request user confirmation at key decision points
96
+
97
+ ---
98
+
99
+ ## Core Workflow Details
100
+
101
+ ### 🔍 Mode 1: Research
102
+
103
+ **Goal**: Understand requirements and evaluate completeness
104
+
105
+ **Progress**: `[█░░░░░] 1/6 Research`
106
+
107
+ **Core Actions**:
108
+ - Evaluate requirement completeness (0-10 score)
109
+ - Actively request key information when below 7
110
+ - Auto-identify project tech stack and constraints
111
+
112
+ **Output**: Requirement analysis report + completeness score
113
+
114
+ ---
115
+
116
+ ### 💡 Mode 2: Ideate
117
+
118
+ **Goal**: Design multiple feasible solutions
119
+
120
+ **Progress**: `[██░░░░] 2/6 Ideate`
121
+
122
+ **Core Actions**:
123
+ - Provide at least 2 feasible solutions
124
+ - Each solution includes: description, pros, cons, use cases
125
+ - Give recommended solution with reasoning
126
+
127
+ **Output**: Solution comparison table + recommendation
128
+
129
+ ---
130
+
131
+ ### 📋 Mode 3: Plan
132
+
133
+ **Goal**: Break down into executable steps
134
+
135
+ **Progress**: `[███░░░] 3/6 Plan`
136
+
137
+ **Core Actions**:
138
+ - Decompose solution into atomic operations
139
+ - Define: files, functions/classes, logic overview
140
+ - Specify expected results and acceptance criteria
141
+ - Use `Context7` for new library documentation
142
+ - **Do not write complete code**
143
+
144
+ **Output**: Detailed execution plan (requires user approval)
145
+
146
+ ---
147
+
148
+ ### ⚡ Mode 4: Execute
149
+
150
+ **Goal**: Code implementation per plan
151
+
152
+ **Progress**: `[████░░] 4/6 Execute`
153
+
154
+ **Core Actions**:
155
+ - Store plan in `.ccjk/plan/current/task-name.md`
156
+ - **Must have user approval before execution**
157
+ - Strictly follow plan for coding
158
+ - Request feedback after key steps
159
+
160
+ **Output**: Implemented code + progress report
161
+
162
+ ---
163
+
164
+ ### 🚀 Mode 5: Optimize
165
+
166
+ **Goal**: Code quality improvement
167
+
168
+ **Progress**: `[█████░] 5/6 Optimize`
169
+
170
+ **Core Actions**:
171
+ - Auto-analyze code implemented in this session
172
+ - Focus on: redundant, inefficient, garbage code
173
+ - Provide specific optimization suggestions (with reasons and expected benefits)
174
+ - Execute optimization after user confirmation
175
+
176
+ **Output**: Optimization checklist + improved code
177
+
178
+ ---
179
+
180
+ ### ✅ Mode 6: Review
181
+
182
+ **Goal**: Final quality assessment
183
+
184
+ **Progress**: `[██████] 6/6 Review`
185
+
186
+ **Core Actions**:
187
+ - Evaluate execution results against plan
188
+ - Report issues and improvement suggestions
189
+ - Archive plan file to `.ccjk/plan/history/`
190
+
191
+ **Output**: Completion summary + archive confirmation
192
+
193
+ ---
194
+
195
+ ## Timestamp Acquisition Rules
196
+
197
+ During workflow execution, any scenario requiring current timestamp must obtain accurate time via bash command. Guessing or fabricating time is prohibited.
198
+
199
+ Basic Commands:
200
+ - Default format: `date +'%Y-%m-%d %H:%M:%S'`
201
+ - Filename format: `date +'%Y-%m-%d_%H%M%S'`
202
+ - Readable format: `date +'%Y-%m-%d %H:%M:%S %Z'`
203
+ - ISO format: `date +'%Y-%m-%dT%H:%M:%S%z'`
204
+
205
+ Typical Use Cases:
206
+ - Updating timestamp fields in documents
207
+ - Naming task plan documents during archiving (when moving from `.ccjk/plan/current/` to `.ccjk/plan/history/`)
208
+ - Any other scenario requiring current time recording
209
+
210
+ ## Interactive Feedback & MCP Services
211
+
212
+ ### Interactive Feedback Rules
213
+
214
+ 1. During any process, task, or conversation, whether asking, replying, or completing phased tasks, must request user confirmation
215
+ 2. When receiving user feedback, if feedback content is not empty, must request user confirmation again and adjust behavior based on feedback
216
+ 3. Only when user explicitly indicates "end" or "no more interaction needed" can stop requesting user confirmation, process is considered complete
217
+ 4. Unless receiving termination instructions, all steps must repeatedly request user confirmation
218
+ 5. Before completing tasks, must request user confirmation and ask for user feedback
219
+
220
+ ---
221
+
222
+ ## Execute Workflow
223
+
224
+ **Task Description**: $ARGUMENTS
225
+
226
+ Starting structured development workflow with quality gates...
227
+
228
+ ### 🔍 Phase 1: Research & Analysis
229
+
230
+ [Mode: Research] - Understanding requirements and gathering context:
231
+
232
+ #### Requirement Completeness Scoring (0-10 points)
233
+
234
+ Scoring Dimensions:
235
+
236
+ - **Goal Clarity** (0-3 points): Are task objectives clear and specific, what problem to solve?
237
+ - **Expected Results** (0-3 points): Are success criteria and deliverables clearly defined?
238
+ - **Scope Boundaries** (0-2 points): Are task scope and boundaries clear?
239
+ - **Constraints** (0-2 points): Are time, performance, business limits specified?
240
+
241
+ Note: Technical stack, framework versions will be identified from project automatically, not included in scoring
242
+
243
+ **Scoring Rules**:
244
+
245
+ - 9-10 points: Requirements very complete, can proceed directly
246
+ - 7-8 points: Requirements basically complete, suggest adding minor details
247
+ - 5-6 points: Requirements have significant gaps, must supplement key information
248
+ - 0-4 points: Requirements too vague, needs redescription
249
+
250
+ **When score is below 7, proactively ask supplementary questions**:
251
+
252
+ - Identify missing key information dimensions
253
+ - Ask 1-2 specific questions for each missing dimension
254
+ - Provide examples to help users understand needed information
255
+ - Re-score after user supplements information
256
+
257
+ **Scoring Example**:
258
+
259
+ ```
260
+ User Request: "Help me optimize code"
261
+ Scoring Analysis:
262
+ - Goal Clarity: 0/3 points (doesn't specify what code or what problem)
263
+ - Expected Results: 0/3 points (no success criteria or expected effect defined)
264
+ - Scope Boundaries: 1/2 points (only knows code optimization, but scope unclear)
265
+ - Constraints: 0/2 points (no performance metrics or time limits)
266
+ Total Score: 1/10 - Requires significant information
267
+
268
+ Questions to Ask:
269
+ 1. Which file or module's code do you want to optimize?
270
+ 2. What specific problem needs optimization?
271
+ 3. What effect do you expect after optimization (e.g., response time improvement, code reduction)?
272
+ 4. Are there specific performance metrics or time requirements?
273
+ ```
274
+
275
+ **Common Supplementary Question Templates**:
276
+
277
+ - Goal: "What specific functionality/effect do you want?" "What's the current problem?"
278
+ - Results: "How to determine task success?" "What's the expected output/effect?"
279
+ - Scope: "Which specific files/modules to handle?" "What should be excluded?"
280
+ - Constraints: "What are the time requirements?" "Any business limitations or performance requirements?"
281
+
282
+ **Auto-detected Project Information** (no need to ask):
283
+
284
+ - Tech stack (from AGENTS.md, CLAUDE.md, package.json, requirements.txt, etc.)
285
+ - Framework versions (from AGENTS.md, CLAUDE.md, config files)
286
+ - Project structure (from file system)
287
+ - Existing code conventions (from AGENTS.md, CLAUDE.md, config files and existing code)
288
+ - Development commands (from AGENTS.md, CLAUDE.md, such as build, test, typecheck)
289
+
290
+ #### Execution Steps
291
+
292
+ - Analyze task requirements and constraints
293
+ - Perform requirement completeness scoring (show specific scores)
294
+ - Identify key objectives and success criteria
295
+ - Gather necessary technical context
296
+ - Use MCP services for additional information if needed
297
+
298
+ ### 💡 Phase 2: Solution Ideation
299
+
300
+ [Mode: Ideate] - Designing solution approaches:
301
+
302
+ - Generate multiple feasible solutions
303
+ - Evaluate pros and cons of each approach
304
+ - Provide detailed comparison and recommendation
305
+ - Consider technical constraints and best practices
306
+ - Request user approval before proceeding
307
+
308
+ ### 📋 Phase 3: Detailed Planning
309
+
310
+ [Mode: Plan] - Creating execution roadmap:
311
+
312
+ - Break down solution into atomic, executable steps
313
+ - Define file structure, functions/classes, and logic overview
314
+ - Specify expected results for each step
315
+ - Query new libraries using Context7 if needed
316
+ - Request user approval before proceeding
317
+
318
+ ### ⚡ Phase 4: Implementation
319
+
320
+ [Mode: Execute] - Code development:
321
+
322
+ - Store execution plan in project root directory `.ccjk/plan/current/task-name.md`
323
+ - Implement according to approved plan
324
+ - Follow development best practices
325
+ - Add usage methods before import statements (critical rule)
326
+ - Request feedback at key milestones
327
+
328
+ ### 🚀 Phase 5: Code Optimization
329
+
330
+ [Mode: Optimize] - Quality improvement:
331
+
332
+ - Automatically analyze implemented code
333
+ - Identify redundant, inefficient, or problematic code
334
+ - Provide specific optimization recommendations
335
+ - Execute improvements after user confirmation
336
+
337
+ ### ✅ Phase 6: Quality Review
338
+
339
+ [Mode: Review] - Final assessment:
340
+
341
+ - Compare results against original plan
342
+ - Identify any remaining issues or improvements
343
+ - Provide completion summary and recommendations
344
+ - Request final user confirmation
345
+ - After task completion, move plan file from `.ccjk/plan/current/` to `.ccjk/plan/history/` for archiving
346
+ - Rename to `[Finish Time]task-name.md` during archiving for tracking, Finish Time format is `YYYY-MM-DD_HHMMSS`
347
+
348
+ ## Expected Output Structure
349
+
350
+ ```
351
+ project/ # Project root directory
352
+ ├── .ccjk/
353
+ │ └── plan/
354
+ │ ├── current/ # Current ongoing tasks
355
+ │ │ └── task-name.md # Execution plan and context
356
+ │ └── history/ # Completed historical tasks
357
+ │ └── [Finish Time]task-name.md # Archived task records
358
+ ├── src/
359
+ │ ├── components/
360
+ │ ├── services/
361
+ │ ├── utils/
362
+ │ └── types/
363
+ ├── tests/
364
+ │ ├── unit/
365
+ │ ├── integration/
366
+ │ └── e2e/
367
+ └── README.md
368
+ ```
369
+
370
+ **Begin execution with the provided task description and report progress after each phase completion.**
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: writing-plans
3
+ description: Create detailed implementation plans with checkpoints
4
+ version: 1.0.0
5
+ author: CCJK
6
+ category: planning
7
+ triggers:
8
+ - /plan
9
+ - /wp
10
+ - /write-plan
11
+ use_when:
12
+ - "User needs implementation plan"
13
+ - "After brainstorming session"
14
+ - "User mentions planning or roadmap"
15
+ - "Complex feature needs breakdown"
16
+ auto_activate: true
17
+ priority: 7
18
+ difficulty: intermediate
19
+ tags:
20
+ - planning
21
+ - implementation
22
+ - roadmap
23
+ ---
24
+
25
+ # Writing Plans
26
+
27
+ ## Context
28
+ $ARGUMENTS
29
+
30
+ ## Instructions
31
+
32
+ Create a detailed implementation plan following this structure:
33
+
34
+ ### Plan Template
35
+
36
+ ```markdown
37
+ # Implementation Plan: [Feature Name]
38
+
39
+ ## Overview
40
+ - **Goal**: What we're building
41
+ - **Scope**: What's included/excluded
42
+ - **Timeline**: Estimated effort
43
+
44
+ ## Prerequisites
45
+ - [ ] Required dependencies
46
+ - [ ] Environment setup
47
+ - [ ] Access/permissions needed
48
+
49
+ ## Implementation Steps
50
+
51
+ ### Phase 1: [Foundation]
52
+ - [ ] Step 1.1: [Description]
53
+ - [ ] Step 1.2: [Description]
54
+ - **Checkpoint**: [Verification criteria]
55
+
56
+ ### Phase 2: [Core Implementation]
57
+ - [ ] Step 2.1: [Description]
58
+ - [ ] Step 2.2: [Description]
59
+ - **Checkpoint**: [Verification criteria]
60
+
61
+ ### Phase 3: [Integration & Testing]
62
+ - [ ] Step 3.1: [Description]
63
+ - [ ] Step 3.2: [Description]
64
+ - **Checkpoint**: [Verification criteria]
65
+
66
+ ## Risk Assessment
67
+ - Risk 1: [Description] → Mitigation: [Strategy]
68
+
69
+ ## Success Criteria
70
+ - [ ] Criterion 1
71
+ - [ ] Criterion 2
72
+ ```
73
+
74
+ ### Guidelines
75
+ - Break work into 2-4 hour chunks
76
+ - Include verification checkpoints
77
+ - Identify dependencies between steps
78
+ - Consider rollback strategies