ccjk 14.1.11 → 14.2.1

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 (132) hide show
  1. package/dist/chunks/api-cli.mjs +3 -2
  2. package/dist/chunks/api-config-selector.mjs +8 -6
  3. package/dist/chunks/auto-updater.mjs +1 -1
  4. package/dist/chunks/ccjk-agents.mjs +2 -2
  5. package/dist/chunks/ccjk-all.mjs +6 -6
  6. package/dist/chunks/ccjk-hooks.mjs +2 -2
  7. package/dist/chunks/ccjk-mcp.mjs +5 -5
  8. package/dist/chunks/ccjk-setup.mjs +4 -4
  9. package/dist/chunks/ccjk-skills.mjs +2 -2
  10. package/dist/chunks/ccr.mjs +11 -9
  11. package/dist/chunks/check-updates.mjs +2 -1
  12. package/dist/chunks/claude-code-incremental-manager.mjs +8 -6
  13. package/dist/chunks/claude-config.mjs +594 -62
  14. package/dist/chunks/claude-config2.mjs +62 -0
  15. package/dist/chunks/clavue-config.mjs +1390 -0
  16. package/dist/chunks/code-type-resolver.mjs +1 -1
  17. package/dist/chunks/codex-config-switch.mjs +1 -0
  18. package/dist/chunks/codex-provider-manager.mjs +2 -1
  19. package/dist/chunks/codex.mjs +4 -3
  20. package/dist/chunks/config-switch.mjs +6 -4
  21. package/dist/chunks/config.mjs +23 -1974
  22. package/dist/chunks/config2.mjs +8 -7
  23. package/dist/chunks/config3.mjs +1 -0
  24. package/dist/chunks/doctor.mjs +178 -8
  25. package/dist/chunks/features.mjs +9 -7
  26. package/dist/chunks/index10.mjs +14 -5365
  27. package/dist/chunks/index9.mjs +5379 -14
  28. package/dist/chunks/init.mjs +12 -10
  29. package/dist/chunks/installer.mjs +7 -5
  30. package/dist/chunks/interview.mjs +1 -1
  31. package/dist/chunks/mcp-cli.mjs +23 -22
  32. package/dist/chunks/mcp.mjs +8 -7
  33. package/dist/chunks/package.mjs +1 -1
  34. package/dist/chunks/platform.mjs +1 -1
  35. package/dist/chunks/quick-provider.mjs +7 -5
  36. package/dist/chunks/quick-setup.mjs +7 -5
  37. package/dist/chunks/simple-config.mjs +3 -2
  38. package/dist/chunks/slash-commands.mjs +1 -1
  39. package/dist/chunks/thinking.mjs +1 -1
  40. package/dist/chunks/uninstall.mjs +1 -1
  41. package/dist/chunks/update.mjs +10 -9
  42. package/dist/chunks/version-checker.mjs +1 -1
  43. package/dist/chunks/zero-config.mjs +4 -3
  44. package/dist/cli.mjs +3 -3
  45. package/dist/index.mjs +7 -6
  46. package/dist/shared/{ccjk.DGllfVCZ.mjs → ccjk.BtrioX1Z.mjs} +1 -1
  47. package/dist/shared/{ccjk.DOw7Fawt.mjs → ccjk.C1Be3aJN.mjs} +2 -2
  48. package/dist/shared/{ccjk.BCzOWT1L.mjs → ccjk.C94P8gCY.mjs} +2 -2
  49. package/dist/shared/{ccjk.Cgv_cFVX.mjs → ccjk.CTr4yCZ1.mjs} +2 -2
  50. package/dist/shared/{ccjk.Cv13QsGp.mjs → ccjk.CoCHVXl3.mjs} +1 -1
  51. package/dist/shared/{ccjk.f3TBLJSt.mjs → ccjk.CwGZSTAK.mjs} +7 -7
  52. package/dist/shared/{ccjk.CfKJnpbB.mjs → ccjk.D-magaEx.mjs} +2 -2
  53. package/dist/shared/{ccjk.CbWVbtb9.mjs → ccjk.DhJ1kyDR.mjs} +1 -1
  54. package/dist/shared/{ccjk.zFGcZT7Y.mjs → ccjk.OJKHVSOb.mjs} +1 -1
  55. package/dist/templates/agents/README.md +78 -0
  56. package/dist/templates/common/error-prevention.md +267 -0
  57. package/dist/templates/common/karpathy-baseline.md +83 -0
  58. package/dist/templates/common/output-styles/zh-CN/carmack-mode.md +381 -0
  59. package/dist/templates/common/output-styles/zh-CN/dhh-mode.md +265 -0
  60. package/dist/templates/common/output-styles/zh-CN/evan-you-mode.md +539 -0
  61. package/dist/templates/common/output-styles/zh-CN/jobs-mode.md +369 -0
  62. package/dist/templates/common/output-styles/zh-CN/linus-mode.md +135 -0
  63. package/dist/templates/common/output-styles/zh-CN/uncle-bob-mode.md +221 -0
  64. package/dist/templates/common/workflow/continuousDelivery/en/continuous-delivery.md +628 -0
  65. package/dist/templates/common/workflow/continuousDelivery/zh-CN/continuous-delivery.md +628 -0
  66. package/dist/templates/common/workflow/essential/en/agents/ccjk-config-agent.md +187 -0
  67. package/dist/templates/common/workflow/essential/en/agents/ccjk-mcp-agent.md +191 -0
  68. package/dist/templates/common/workflow/essential/en/agents/ccjk-skill-agent.md +249 -0
  69. package/dist/templates/common/workflow/essential/en/agents/ccjk-workflow-agent.md +277 -0
  70. package/dist/templates/common/workflow/essential/en/agents/get-current-datetime.md +29 -0
  71. package/dist/templates/common/workflow/essential/en/agents/init-architect.md +115 -0
  72. package/dist/templates/common/workflow/essential/en/agents/ui-ux-designer.md +91 -0
  73. package/dist/templates/common/workflow/essential/en/feat.md +92 -0
  74. package/dist/templates/common/workflow/essential/en/goal.md +147 -0
  75. package/dist/templates/common/workflow/essential/en/init-project.md +53 -0
  76. package/dist/templates/common/workflow/essential/zh-CN/agents/get-current-datetime.md +29 -0
  77. package/dist/templates/common/workflow/essential/zh-CN/agents/init-architect.md +115 -0
  78. package/dist/templates/common/workflow/essential/zh-CN/agents/ui-ux-designer.md +91 -0
  79. package/dist/templates/common/workflow/essential/zh-CN/feat.md +315 -0
  80. package/dist/templates/common/workflow/essential/zh-CN/goal.md +146 -0
  81. package/dist/templates/common/workflow/essential/zh-CN/init-project.md +53 -0
  82. package/dist/templates/common/workflow/git/en/git-cleanBranches.md +102 -0
  83. package/dist/templates/common/workflow/git/en/git-commit.md +205 -0
  84. package/dist/templates/common/workflow/git/en/git-rollback.md +90 -0
  85. package/dist/templates/common/workflow/git/en/git-worktree.md +276 -0
  86. package/dist/templates/common/workflow/git/zh-CN/git-cleanBranches.md +102 -0
  87. package/dist/templates/common/workflow/git/zh-CN/git-commit.md +205 -0
  88. package/dist/templates/common/workflow/git/zh-CN/git-rollback.md +90 -0
  89. package/dist/templates/common/workflow/git/zh-CN/git-worktree.md +276 -0
  90. package/dist/templates/common/workflow/interview/en/interview.md +67 -0
  91. package/dist/templates/common/workflow/interview/zh-CN/interview.md +67 -0
  92. package/dist/templates/common/workflow/linearMethod/en/linear-method.md +651 -0
  93. package/dist/templates/common/workflow/linearMethod/zh-CN/linear-method.md +752 -0
  94. package/dist/templates/common/workflow/refactoringMaster/en/refactoring-master.md +516 -0
  95. package/dist/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +812 -0
  96. package/dist/templates/common/workflow/sixStep/en/workflow.md +83 -0
  97. package/dist/templates/common/workflow/sixStep/zh-CN/workflow.md +359 -0
  98. package/dist/templates/common/workflow/specFirstTDD/en/spec-first-tdd.md +364 -0
  99. package/dist/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +366 -0
  100. package/dist/templates/hooks/README.md +212 -0
  101. package/dist/templates/hooks/git-workflow-hooks.md +551 -0
  102. package/dist/templates/hooks/post-test-coverage.md +434 -0
  103. package/dist/templates/hooks/pre-commit-black.md +274 -0
  104. package/dist/templates/hooks/pre-commit-eslint.md +153 -0
  105. package/dist/templates/hooks/pre-commit-gofmt.md +284 -0
  106. package/dist/templates/hooks/pre-commit-prettier.md +212 -0
  107. package/dist/templates/hooks/pre-commit-type-check.md +377 -0
  108. package/dist/templates/skills/ccjk-init.md +154 -0
  109. package/dist/templates/skills/ccjk-mcp-setup.md +205 -0
  110. package/dist/templates/skills/ccjk-troubleshoot.md +228 -0
  111. package/dist/templates/skills/django-patterns.md +1016 -0
  112. package/dist/templates/skills/git-workflow.md +748 -0
  113. package/dist/templates/skills/go-idioms.md +963 -0
  114. package/dist/templates/skills/nextjs-optimization.md +694 -0
  115. package/dist/templates/skills/python-pep8.md +852 -0
  116. package/dist/templates/skills/react-patterns.md +686 -0
  117. package/dist/templates/skills/rust-patterns.md +1057 -0
  118. package/dist/templates/skills/security-best-practices.md +1413 -0
  119. package/dist/templates/skills/testing-best-practices.md +1315 -0
  120. package/dist/templates/skills/ts-best-practices.md +354 -0
  121. package/package.json +1 -1
  122. package/templates/common/karpathy-baseline.md +83 -0
  123. package/templates/common/output-styles/zh-CN/carmack-mode.md +14 -0
  124. package/templates/common/output-styles/zh-CN/dhh-mode.md +14 -0
  125. package/templates/common/output-styles/zh-CN/evan-you-mode.md +14 -0
  126. package/templates/common/output-styles/zh-CN/jobs-mode.md +14 -0
  127. package/templates/common/output-styles/zh-CN/linus-mode.md +14 -0
  128. package/templates/common/output-styles/zh-CN/uncle-bob-mode.md +14 -0
  129. package/templates/common/workflow/linearMethod/zh-CN/linear-method.md +2 -0
  130. package/templates/common/workflow/refactoringMaster/zh-CN/refactoring-master.md +2 -0
  131. package/templates/common/workflow/sixStep/zh-CN/workflow.md +2 -0
  132. package/templates/common/workflow/specFirstTDD/zh-CN/spec-first-tdd.md +2 -0
@@ -0,0 +1,228 @@
1
+ ---
2
+ name: ccjk-troubleshoot
3
+ description: Diagnose and fix common CCJK issues
4
+ version: 1.0.0
5
+ author: CCJK Team
6
+ category: debugging
7
+ triggers:
8
+ - /ccjk-troubleshoot
9
+ - /ccjk-doctor
10
+ - /fix-ccjk
11
+ use_when:
12
+ - User has CCJK issues
13
+ - When something isn't working
14
+ - When diagnosing configuration problems
15
+ auto_activate: true
16
+ priority: 9
17
+ user_invocable: true
18
+ context: inherit
19
+ args:
20
+ - name: area
21
+ description: Area to troubleshoot (all, api, mcp, skills, workflows)
22
+ required: false
23
+ default: "all"
24
+ allowed_tools:
25
+ - Read
26
+ - Glob
27
+ - Grep
28
+ - Bash(ccjk *)
29
+ - Bash(npx *)
30
+ - Bash(cat *)
31
+ - Bash(ls *)
32
+ - Bash(node *)
33
+ - Bash(npm *)
34
+ hooks:
35
+ - type: SkillActivate
36
+ command: "echo '🔍 Starting CCJK diagnostics...'"
37
+ timeout: 300
38
+ ---
39
+
40
+ # CCJK Troubleshooting Skill
41
+
42
+ This skill diagnoses and fixes common CCJK issues systematically.
43
+
44
+ ## Arguments
45
+
46
+ - `$0` - **area**: Area to troubleshoot (default: "all")
47
+ - `all` - Check everything
48
+ - `api` - API configuration issues
49
+ - `mcp` - MCP service issues
50
+ - `skills` - Skills system issues
51
+ - `workflows` - Workflow issues
52
+
53
+ ## Diagnostic Workflow
54
+
55
+ ### Step 1: Environment Check
56
+
57
+ ```bash
58
+ # Check Node.js version
59
+ node --version
60
+
61
+ # Check npm version
62
+ npm --version
63
+
64
+ # Check CCJK version
65
+ npx ccjk --version
66
+ ```
67
+
68
+ **Expected**:
69
+ - Node.js >= 20.0.0
70
+ - npm >= 9.0.0
71
+ - CCJK latest version
72
+
73
+ ### Step 2: Configuration Check
74
+
75
+ ```bash
76
+ # Check Claude config exists
77
+ ls -la ~/.claude.json
78
+
79
+ # Check Claude directory
80
+ ls -la ~/.claude/
81
+
82
+ # Check MCP config
83
+ ls -la ~/.claude/claude_desktop_config.json
84
+ ```
85
+
86
+ **Check for**:
87
+ - Valid JSON syntax
88
+ - Correct file permissions
89
+ - Required fields present
90
+
91
+ ### Step 3: Area-Specific Diagnostics
92
+
93
+ #### API Issues (`$0` = "api")
94
+
95
+ 1. **Check API configuration**:
96
+ ```bash
97
+ cat ~/.claude.json | grep -E "apiKey|apiUrl|model"
98
+ ```
99
+
100
+ 2. **Common API issues**:
101
+ - Invalid API key format
102
+ - Wrong API URL
103
+ - Model not available
104
+ - Rate limiting
105
+
106
+ 3. **Fixes**:
107
+ ```bash
108
+ ccjk config api
109
+ ```
110
+
111
+ #### MCP Issues (`$0` = "mcp")
112
+
113
+ 1. **Run MCP doctor**:
114
+ ```bash
115
+ ccjk mcp doctor
116
+ ```
117
+
118
+ 2. **Check MCP config**:
119
+ ```bash
120
+ cat ~/.claude/claude_desktop_config.json
121
+ ```
122
+
123
+ 3. **Common MCP issues**:
124
+ - Invalid JSON syntax
125
+ - Missing dependencies
126
+ - Wrong command paths
127
+ - Environment variable issues
128
+
129
+ 4. **Fixes**:
130
+ ```bash
131
+ # Reinstall problematic service
132
+ ccjk mcp uninstall <service>
133
+ ccjk mcp install <service>
134
+ ```
135
+
136
+ #### Skills Issues (`$0` = "skills")
137
+
138
+ 1. **Check skills directories**:
139
+ ```bash
140
+ ls -la ~/.claude/skills/
141
+ ls -la .claude/skills/
142
+ ```
143
+
144
+ 2. **Validate skill files**:
145
+ - Check YAML frontmatter syntax
146
+ - Verify required fields
147
+ - Check file extensions (.md)
148
+
149
+ 3. **Common skills issues**:
150
+ - Invalid YAML syntax
151
+ - Missing required fields
152
+ - Conflicting triggers
153
+ - Permission issues
154
+
155
+ 4. **Fixes**:
156
+ ```bash
157
+ # Reload skills
158
+ ccjk skills reload
159
+
160
+ # Check specific skill
161
+ ccjk skill info <skill-name>
162
+ ```
163
+
164
+ #### Workflow Issues (`$0` = "workflows")
165
+
166
+ 1. **Check workflow directories**:
167
+ ```bash
168
+ ls -la ~/.claude/commands/
169
+ ls -la ~/.claude/agents/
170
+ ```
171
+
172
+ 2. **Common workflow issues**:
173
+ - Missing command files
174
+ - Missing agent files
175
+ - Invalid YAML frontmatter
176
+ - Broken agent references
177
+
178
+ 3. **Fixes**:
179
+ ```bash
180
+ # Reinstall workflows
181
+ ccjk workflows install --force
182
+
183
+ # Update workflows
184
+ ccjk workflows update
185
+ ```
186
+
187
+ ### Step 4: Generate Report
188
+
189
+ After diagnostics, provide:
190
+
191
+ 1. **Summary of issues found**
192
+ 2. **Recommended fixes**
193
+ 3. **Commands to run**
194
+ 4. **Prevention tips**
195
+
196
+ ## Quick Fixes
197
+
198
+ ### Reset Everything
199
+
200
+ ```bash
201
+ # Backup current config
202
+ ccjk config backup
203
+
204
+ # Reinitialize
205
+ npx ccjk init --force
206
+ ```
207
+
208
+ ### Fix Permissions
209
+
210
+ ```bash
211
+ chmod 644 ~/.claude.json
212
+ chmod -R 755 ~/.claude/
213
+ ```
214
+
215
+ ### Clear Cache
216
+
217
+ ```bash
218
+ rm -rf ~/.ccjk/cache/
219
+ ```
220
+
221
+ ## Example Usage
222
+
223
+ ```
224
+ /ccjk-troubleshoot
225
+ /ccjk-troubleshoot api
226
+ /ccjk-troubleshoot mcp
227
+ /fix-ccjk skills
228
+ ```