agcel 1.0.4 → 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.
Files changed (293) hide show
  1. package/README.md +40 -47
  2. package/dist/cli/commands/create.d.ts +4 -0
  3. package/dist/cli/commands/create.d.ts.map +1 -0
  4. package/dist/cli/commands/create.js +68 -0
  5. package/dist/cli/commands/create.js.map +1 -0
  6. package/dist/cli/commands/init.d.ts +3 -0
  7. package/dist/cli/commands/init.d.ts.map +1 -0
  8. package/dist/cli/commands/init.js +98 -0
  9. package/dist/cli/commands/init.js.map +1 -0
  10. package/dist/cli/commands/install.d.ts +3 -0
  11. package/dist/cli/commands/install.d.ts.map +1 -0
  12. package/dist/cli/commands/install.helpers.d.ts +15 -0
  13. package/dist/cli/commands/install.helpers.d.ts.map +1 -0
  14. package/dist/cli/commands/install.helpers.js +47 -0
  15. package/dist/cli/commands/install.helpers.js.map +1 -0
  16. package/dist/cli/commands/install.helpers.test.d.ts +2 -0
  17. package/dist/cli/commands/install.helpers.test.d.ts.map +1 -0
  18. package/dist/cli/commands/install.helpers.test.js +18 -0
  19. package/dist/cli/commands/install.helpers.test.js.map +1 -0
  20. package/dist/cli/commands/install.js +74 -0
  21. package/dist/cli/commands/install.js.map +1 -0
  22. package/dist/cli/commands/pulse.d.ts +4 -0
  23. package/dist/cli/commands/pulse.d.ts.map +1 -0
  24. package/dist/cli/commands/pulse.js +48 -0
  25. package/dist/cli/commands/pulse.js.map +1 -0
  26. package/dist/cli/commands/pulse.test.d.ts +2 -0
  27. package/dist/cli/commands/pulse.test.d.ts.map +1 -0
  28. package/dist/cli/commands/pulse.test.js +19 -0
  29. package/dist/cli/commands/pulse.test.js.map +1 -0
  30. package/dist/cli/commands/suggest.d.ts +3 -0
  31. package/dist/cli/commands/suggest.d.ts.map +1 -0
  32. package/dist/cli/commands/suggest.js +32 -0
  33. package/dist/cli/commands/suggest.js.map +1 -0
  34. package/dist/cli/index.d.ts +3 -0
  35. package/dist/cli/index.d.ts.map +1 -0
  36. package/dist/cli/index.js +20 -0
  37. package/dist/cli/index.js.map +1 -0
  38. package/dist/cli/research-hints.d.ts +5 -0
  39. package/dist/cli/research-hints.d.ts.map +1 -0
  40. package/dist/cli/research-hints.js +109 -0
  41. package/dist/cli/research-hints.js.map +1 -0
  42. package/dist/cli/research-hints.test.d.ts +2 -0
  43. package/dist/cli/research-hints.test.d.ts.map +1 -0
  44. package/dist/cli/research-hints.test.js +50 -0
  45. package/dist/cli/research-hints.test.js.map +1 -0
  46. package/dist/core/agcel-config.d.ts +27 -0
  47. package/dist/core/agcel-config.d.ts.map +1 -0
  48. package/dist/core/agcel-config.js +4 -0
  49. package/dist/core/agcel-config.js.map +1 -0
  50. package/dist/core/build-rag-engine.d.ts +12 -0
  51. package/dist/core/build-rag-engine.d.ts.map +1 -0
  52. package/dist/core/build-rag-engine.js +24 -0
  53. package/dist/core/build-rag-engine.js.map +1 -0
  54. package/dist/core/build-rag-engine.test.d.ts +2 -0
  55. package/dist/core/build-rag-engine.test.d.ts.map +1 -0
  56. package/dist/core/build-rag-engine.test.js +34 -0
  57. package/dist/core/build-rag-engine.test.js.map +1 -0
  58. package/dist/core/chroma-rag.d.ts +20 -0
  59. package/dist/core/chroma-rag.d.ts.map +1 -0
  60. package/dist/core/chroma-rag.js +108 -0
  61. package/dist/core/chroma-rag.js.map +1 -0
  62. package/dist/core/context-hygiene.d.ts +12 -0
  63. package/dist/core/context-hygiene.d.ts.map +1 -0
  64. package/dist/core/context-hygiene.js +43 -0
  65. package/dist/core/context-hygiene.js.map +1 -0
  66. package/dist/core/context-hygiene.test.d.ts +2 -0
  67. package/dist/core/context-hygiene.test.d.ts.map +1 -0
  68. package/dist/core/context-hygiene.test.js +18 -0
  69. package/dist/core/context-hygiene.test.js.map +1 -0
  70. package/dist/core/context.d.ts +44 -0
  71. package/dist/core/context.d.ts.map +1 -0
  72. package/dist/core/context.js +114 -0
  73. package/dist/core/context.js.map +1 -0
  74. package/dist/core/conversation-routing.d.ts +10 -0
  75. package/dist/core/conversation-routing.d.ts.map +1 -0
  76. package/dist/core/conversation-routing.js +27 -0
  77. package/dist/core/conversation-routing.js.map +1 -0
  78. package/dist/core/conversation-routing.test.d.ts +2 -0
  79. package/dist/core/conversation-routing.test.d.ts.map +1 -0
  80. package/dist/core/conversation-routing.test.js +29 -0
  81. package/dist/core/conversation-routing.test.js.map +1 -0
  82. package/dist/core/guardrails.d.ts +26 -0
  83. package/dist/core/guardrails.d.ts.map +1 -0
  84. package/dist/core/guardrails.js +76 -0
  85. package/dist/core/guardrails.js.map +1 -0
  86. package/dist/core/guardrails.test.d.ts +2 -0
  87. package/dist/core/guardrails.test.d.ts.map +1 -0
  88. package/dist/core/guardrails.test.js +35 -0
  89. package/dist/core/guardrails.test.js.map +1 -0
  90. package/dist/core/intent.d.ts +22 -0
  91. package/dist/core/intent.d.ts.map +1 -0
  92. package/dist/core/intent.js +79 -0
  93. package/dist/core/intent.js.map +1 -0
  94. package/dist/core/intent.test.d.ts +2 -0
  95. package/dist/core/intent.test.d.ts.map +1 -0
  96. package/dist/core/intent.test.js +43 -0
  97. package/dist/core/intent.test.js.map +1 -0
  98. package/dist/core/local-rag.d.ts +17 -0
  99. package/dist/core/local-rag.d.ts.map +1 -0
  100. package/dist/core/local-rag.js +74 -0
  101. package/dist/core/local-rag.js.map +1 -0
  102. package/dist/core/local-rag.test.d.ts +2 -0
  103. package/dist/core/local-rag.test.d.ts.map +1 -0
  104. package/dist/core/local-rag.test.js +47 -0
  105. package/dist/core/local-rag.test.js.map +1 -0
  106. package/dist/core/orchestrator.d.ts +47 -0
  107. package/dist/core/orchestrator.d.ts.map +1 -0
  108. package/dist/core/orchestrator.js +138 -0
  109. package/dist/core/orchestrator.js.map +1 -0
  110. package/dist/core/orchestrator.test.d.ts +2 -0
  111. package/dist/core/orchestrator.test.d.ts.map +1 -0
  112. package/dist/core/orchestrator.test.js +118 -0
  113. package/dist/core/orchestrator.test.js.map +1 -0
  114. package/dist/core/pulse.d.ts +13 -0
  115. package/dist/core/pulse.d.ts.map +1 -0
  116. package/dist/core/pulse.js +29 -0
  117. package/dist/core/pulse.js.map +1 -0
  118. package/dist/core/pulse.test.d.ts +2 -0
  119. package/dist/core/pulse.test.d.ts.map +1 -0
  120. package/dist/core/pulse.test.js +18 -0
  121. package/dist/core/pulse.test.js.map +1 -0
  122. package/dist/core/rag-metadata.d.ts +5 -0
  123. package/dist/core/rag-metadata.d.ts.map +1 -0
  124. package/dist/core/rag-metadata.js +13 -0
  125. package/dist/core/rag-metadata.js.map +1 -0
  126. package/dist/core/rag-metadata.test.d.ts +2 -0
  127. package/dist/core/rag-metadata.test.d.ts.map +1 -0
  128. package/dist/core/rag-metadata.test.js +12 -0
  129. package/dist/core/rag-metadata.test.js.map +1 -0
  130. package/dist/core/rag-types.d.ts +18 -0
  131. package/dist/core/rag-types.d.ts.map +1 -0
  132. package/dist/core/rag-types.js +2 -0
  133. package/dist/core/rag-types.js.map +1 -0
  134. package/dist/core/read-agcel-config.d.ts +3 -0
  135. package/dist/core/read-agcel-config.d.ts.map +1 -0
  136. package/dist/core/read-agcel-config.js +13 -0
  137. package/dist/core/read-agcel-config.js.map +1 -0
  138. package/dist/core/registry.d.ts +9 -0
  139. package/dist/core/registry.d.ts.map +1 -0
  140. package/dist/core/registry.js +75 -0
  141. package/dist/core/registry.js.map +1 -0
  142. package/dist/core/registry.test.d.ts +2 -0
  143. package/dist/core/registry.test.d.ts.map +1 -0
  144. package/dist/core/registry.test.js +128 -0
  145. package/dist/core/registry.test.js.map +1 -0
  146. package/dist/core/schema.d.ts +51 -0
  147. package/dist/core/schema.d.ts.map +1 -0
  148. package/dist/core/schema.js +31 -0
  149. package/dist/core/schema.js.map +1 -0
  150. package/dist/core/summarizer.d.ts +23 -0
  151. package/dist/core/summarizer.d.ts.map +1 -0
  152. package/dist/core/summarizer.js +66 -0
  153. package/dist/core/summarizer.js.map +1 -0
  154. package/dist/core/text-similarity.d.ts +7 -0
  155. package/dist/core/text-similarity.d.ts.map +1 -0
  156. package/dist/core/text-similarity.js +35 -0
  157. package/dist/core/text-similarity.js.map +1 -0
  158. package/dist/core/text-similarity.test.d.ts +2 -0
  159. package/dist/core/text-similarity.test.d.ts.map +1 -0
  160. package/dist/core/text-similarity.test.js +11 -0
  161. package/dist/core/text-similarity.test.js.map +1 -0
  162. package/dist/docs-site.test.d.ts +2 -0
  163. package/dist/docs-site.test.d.ts.map +1 -0
  164. package/dist/docs-site.test.js +19 -0
  165. package/dist/docs-site.test.js.map +1 -0
  166. package/dist/index.d.ts +8 -0
  167. package/dist/index.d.ts.map +1 -0
  168. package/dist/index.js +8 -39
  169. package/dist/index.js.map +1 -0
  170. package/dist/providers/adapter.d.ts +23 -0
  171. package/dist/providers/adapter.d.ts.map +1 -0
  172. package/dist/providers/adapter.js +9 -0
  173. package/dist/providers/adapter.js.map +1 -0
  174. package/dist/providers/chatgpt.d.ts +13 -0
  175. package/dist/providers/chatgpt.d.ts.map +1 -0
  176. package/dist/providers/chatgpt.js +33 -0
  177. package/dist/providers/chatgpt.js.map +1 -0
  178. package/dist/providers/chatgpt.test.d.ts +2 -0
  179. package/dist/providers/chatgpt.test.d.ts.map +1 -0
  180. package/dist/providers/chatgpt.test.js +23 -0
  181. package/dist/providers/chatgpt.test.js.map +1 -0
  182. package/dist/providers/claude.d.ts +13 -0
  183. package/dist/providers/claude.d.ts.map +1 -0
  184. package/dist/providers/claude.js +48 -0
  185. package/dist/providers/claude.js.map +1 -0
  186. package/dist/providers/cursor.d.ts +14 -0
  187. package/dist/providers/cursor.d.ts.map +1 -0
  188. package/dist/providers/cursor.js +47 -0
  189. package/dist/providers/cursor.js.map +1 -0
  190. package/dist/providers/gemini.d.ts +13 -0
  191. package/dist/providers/gemini.d.ts.map +1 -0
  192. package/dist/providers/gemini.js +42 -0
  193. package/dist/providers/gemini.js.map +1 -0
  194. package/dist/providers/index.d.ts +5 -0
  195. package/dist/providers/index.d.ts.map +1 -0
  196. package/dist/providers/index.js +18 -0
  197. package/dist/providers/index.js.map +1 -0
  198. package/dist/server/index.d.ts +2 -0
  199. package/dist/server/index.d.ts.map +1 -0
  200. package/dist/server/index.js +288 -154
  201. package/dist/server/index.js.map +1 -0
  202. package/package.json +62 -52
  203. package/.agent/workflows/api-gen.md +0 -63
  204. package/.agent/workflows/architect.md +0 -44
  205. package/.agent/workflows/brainstorm.md +0 -227
  206. package/.agent/workflows/build.md +0 -38
  207. package/.agent/workflows/changelog.md +0 -55
  208. package/.agent/workflows/checkpoint.md +0 -142
  209. package/.agent/workflows/commit.md +0 -227
  210. package/.agent/workflows/debug.md +0 -61
  211. package/.agent/workflows/deploy.md +0 -80
  212. package/.agent/workflows/doc.md +0 -251
  213. package/.agent/workflows/execute-plan.md +0 -229
  214. package/.agent/workflows/feature.md +0 -259
  215. package/.agent/workflows/fix.md +0 -327
  216. package/.agent/workflows/help.md +0 -67
  217. package/.agent/workflows/index.md +0 -152
  218. package/.agent/workflows/load.md +0 -116
  219. package/.agent/workflows/mode.md +0 -174
  220. package/.agent/workflows/optimize.md +0 -57
  221. package/.agent/workflows/plan.md +0 -341
  222. package/.agent/workflows/pr.md +0 -78
  223. package/.agent/workflows/product-plan.md +0 -36
  224. package/.agent/workflows/production-deploy.md +0 -39
  225. package/.agent/workflows/refactor.md +0 -67
  226. package/.agent/workflows/research.md +0 -120
  227. package/.agent/workflows/review.md +0 -348
  228. package/.agent/workflows/security-scan.md +0 -60
  229. package/.agent/workflows/ship.md +0 -225
  230. package/.agent/workflows/spawn.md +0 -181
  231. package/.agent/workflows/status.md +0 -63
  232. package/.agent/workflows/tdd.md +0 -143
  233. package/.agent/workflows/test.md +0 -344
  234. package/.agent/workflows/verify.md +0 -35
  235. package/LICENSE +0 -21
  236. package/dist/commands/init.js +0 -147
  237. package/dist/commands/list.js +0 -43
  238. package/dist/commands/uninstall.js +0 -70
  239. package/dist/utils/index.js +0 -28
  240. package/skills/api-security-best-practices/SKILL.md +0 -291
  241. package/skills/api-security-best-practices/references/examples.md +0 -617
  242. package/skills/architecture/SKILL.md +0 -59
  243. package/skills/architecture/context-discovery.md +0 -43
  244. package/skills/architecture/examples.md +0 -94
  245. package/skills/architecture/pattern-selection.md +0 -68
  246. package/skills/architecture/patterns-reference.md +0 -50
  247. package/skills/architecture/trade-off-analysis.md +0 -77
  248. package/skills/aws-serverless/SKILL.md +0 -327
  249. package/skills/brainstorming/SKILL.md +0 -234
  250. package/skills/c4-context/SKILL.md +0 -154
  251. package/skills/ci-cd-engineer/SKILL.md +0 -50
  252. package/skills/code-auditing/SKILL.md +0 -55
  253. package/skills/copywriting/SKILL.md +0 -248
  254. package/skills/database-engineer/SKILL.md +0 -47
  255. package/skills/doc-coauthoring/SKILL.md +0 -379
  256. package/skills/docker-expert/SKILL.md +0 -412
  257. package/skills/langgraph/SKILL.md +0 -291
  258. package/skills/postgresql/SKILL.md +0 -73
  259. package/skills/pricing-strategy/SKILL.md +0 -360
  260. package/skills/product-manager/SKILL.md +0 -57
  261. package/skills/prompt-engineer/README.md +0 -659
  262. package/skills/prompt-engineer/SKILL.md +0 -256
  263. package/skills/python-patterns/SKILL.md +0 -445
  264. package/skills/qa-engineer/SKILL.md +0 -42
  265. package/skills/rag-engineer/SKILL.md +0 -94
  266. package/skills/react-patterns/SKILL.md +0 -202
  267. package/skills/secure-refactoring/SKILL.md +0 -54
  268. package/skills/security-documentation/SKILL.md +0 -53
  269. package/skills/senior-architect/SKILL.md +0 -213
  270. package/skills/senior-architect/references/architecture_patterns.md +0 -103
  271. package/skills/senior-architect/references/system_design_workflows.md +0 -103
  272. package/skills/senior-architect/references/tech_decision_guide.md +0 -103
  273. package/skills/senior-architect/scripts/architecture_diagram_generator.py +0 -114
  274. package/skills/senior-architect/scripts/dependency_analyzer.py +0 -114
  275. package/skills/senior-architect/scripts/project_architect.py +0 -114
  276. package/skills/seo-audit/SKILL.md +0 -491
  277. package/skills/sql-injection-testing/SKILL.md +0 -452
  278. package/skills/test-driven-development/SKILL.md +0 -375
  279. package/skills/test-driven-development/testing-anti-patterns.md +0 -299
  280. package/skills/test-fixing/SKILL.md +0 -123
  281. package/skills/testing-patterns/SKILL.md +0 -263
  282. package/skills/typescript-expert/SKILL.md +0 -202
  283. package/skills/typescript-expert/references/advanced-topics.md +0 -252
  284. package/skills/typescript-expert/references/tsconfig-strict.json +0 -92
  285. package/skills/typescript-expert/references/typescript-cheatsheet.md +0 -383
  286. package/skills/typescript-expert/references/utility-types.ts +0 -335
  287. package/skills/typescript-expert/scripts/ts_diagnostic.py +0 -203
  288. package/skills/ui-ux-designer/SKILL.md +0 -46
  289. package/skills/vercel-deployment/SKILL.md +0 -83
  290. package/skills/vulnerability-scanner/SKILL.md +0 -280
  291. package/skills/vulnerability-scanner/checklists.md +0 -121
  292. package/skills/vulnerability-scanner/scripts/security_scan.py +0 -458
  293. package/skills/writing-plans/SKILL.md +0 -120
@@ -1,327 +0,0 @@
1
- ---
2
- description: Bug Fix Workflow
3
- ---
4
-
5
- # /fix - Bug Fix Workflow
6
-
7
- ## Purpose
8
-
9
- Smart debugging and bug fixing workflow that analyzes errors, identifies root causes, implements fixes, and adds regression tests.
10
-
11
- ## Usage
12
-
13
- ```
14
- /fix [error message, bug description, or issue reference]
15
- ```
16
-
17
- ## Arguments
18
-
19
- - `$ARGUMENTS`: Error message, stack trace, bug description, or issue number
20
-
21
- ---
22
-
23
- Analyze and fix the following issue: **$ARGUMENTS**
24
-
25
- ## Workflow
26
-
27
- ### Phase 1: Error Analysis
28
-
29
- 1. **Parse Error Information**
30
- - Extract error type and message
31
- - Parse stack trace if available
32
- - Identify the failing location
33
-
34
- 2. **Gather Context**
35
- - When does this error occur?
36
- - What triggers it?
37
- - Is it reproducible?
38
- - When did it start happening?
39
-
40
- 3. **Check for Known Patterns**
41
- - Common error patterns
42
- - Similar issues in codebase
43
- - Recent changes that might have caused it
44
-
45
- ### Phase 2: Root Cause Investigation
46
-
47
- 1. **Trace Execution**
48
- - Follow the code path to the error
49
- - Identify state at each step
50
- - Find where expectations diverge
51
-
52
- 2. **Form Hypotheses**
53
- - List possible causes ranked by likelihood
54
- - Identify minimal tests to validate each
55
-
56
- 3. **Validate Hypothesis**
57
- - Test the most likely cause first
58
- - Confirm root cause before fixing
59
- - Don't fix symptoms only
60
-
61
- ### Phase 3: Search Related Code
62
-
63
- 1. **Find Similar Code**
64
- - Search for similar patterns
65
- - Check if same bug exists elsewhere
66
- - Identify shared code that might be affected
67
-
68
- 2. **Review Recent Changes**
69
- ```bash
70
- git log --oneline -20
71
- git blame [file]
72
- ```
73
-
74
- ### Phase 4: Implement Fix
75
-
76
- 1. **Develop Minimal Fix**
77
- - Fix the root cause, not symptoms
78
- - Keep changes minimal and focused
79
- - Consider edge cases
80
-
81
- 2. **Add Defensive Code** (if appropriate)
82
- - Input validation
83
- - Null checks
84
- - Error handling
85
-
86
- 3. **Update Related Code** (if needed)
87
- - Fix same issue in similar code
88
- - Update shared utilities
89
-
90
- ### Phase 5: Verification
91
-
92
- 1. **Test the Fix**
93
- - Verify original error is resolved
94
- - Check related functionality
95
- - Run existing test suite
96
-
97
- 2. **Add Regression Test**
98
- - Write test that would have caught this bug
99
- - Include edge cases discovered
100
- - Ensure test fails without fix
101
-
102
- 3. **Run Full Test Suite**
103
- ```bash
104
- # Python
105
- pytest -v
106
-
107
- # TypeScript
108
- pnpm test
109
- ```
110
-
111
- ### Phase 6: Documentation
112
-
113
- 1. **Document the Fix**
114
- - What was the issue
115
- - What caused it
116
- - How it was fixed
117
-
118
- 2. **Update Comments** (if needed)
119
- - Add clarifying comments
120
- - Document non-obvious behavior
121
-
122
- ## Output
123
-
124
- ### Bug Fix Summary
125
-
126
- ```markdown
127
- ## Bug Fix Complete
128
-
129
- ### Issue
130
- [Original error/bug description]
131
-
132
- ### Root Cause
133
- [Explanation of what caused the bug]
134
-
135
- ### Location
136
- `path/to/file.ts:42` - [function/method name]
137
-
138
- ### Fix Applied
139
-
140
- **Before:**
141
- ```typescript
142
- // Problematic code
143
- ```
144
-
145
- **After:**
146
- ```typescript
147
- // Fixed code
148
- ```
149
-
150
- ### Explanation
151
- [Why this fix resolves the issue]
152
-
153
- ### Regression Test Added
154
- `path/to/test.ts` - `test_[scenario]`
155
-
156
- ### Verification
157
- - [x] Original error no longer occurs
158
- - [x] Existing tests pass
159
- - [x] New regression test passes
160
- - [x] No new issues introduced
161
-
162
- ### Related Areas Checked
163
- - [x] `path/to/similar.ts` - No similar issue
164
-
165
- ### Commands to Verify
166
- ```bash
167
- pytest tests/test_file.py -v
168
- # or
169
- pnpm test path/to/file.test.ts
170
- ```
171
- ```
172
-
173
- ## Common Fix Patterns
174
-
175
- ### Null/Undefined Access
176
-
177
- ```typescript
178
- // Before
179
- const name = user.profile.name;
180
-
181
- // After
182
- const name = user?.profile?.name ?? 'Unknown';
183
- ```
184
-
185
- ### Missing Error Handling
186
-
187
- ```python
188
- # Before
189
- data = json.loads(response.text)
190
-
191
- # After
192
- try:
193
- data = json.loads(response.text)
194
- except json.JSONDecodeError as e:
195
- logger.error(f"Invalid JSON response: {e}")
196
- raise InvalidResponseError("Failed to parse response")
197
- ```
198
-
199
- ### Race Condition
200
-
201
- ```typescript
202
- // Before
203
- const data = await fetchData();
204
- setState(data); // May be unmounted
205
-
206
- // After
207
- useEffect(() => {
208
- let cancelled = false;
209
- fetchData().then(data => {
210
- if (!cancelled) setState(data);
211
- });
212
- return () => { cancelled = true; };
213
- }, []);
214
- ```
215
-
216
- ### Off-by-One Error
217
-
218
- ```python
219
- # Before
220
- for i in range(len(items) + 1): # IndexError
221
- process(items[i])
222
-
223
- # After
224
- for i in range(len(items)):
225
- process(items[i])
226
- # or
227
- for item in items:
228
- process(item)
229
- ```
230
-
231
- ## Example
232
-
233
- **Input**: `/fix TypeError: Cannot read property 'email' of undefined in UserService.ts:45`
234
-
235
- **Output**:
236
- 1. Analysis: User object is undefined when accessed
237
- 2. Root cause: async fetch didn't await, user not loaded yet
238
- 3. Fix: Add null check and proper async handling
239
- 4. Regression test: Test for case when user is not loaded
240
-
241
- ## Flags
242
-
243
- | Flag | Description | Example |
244
- |------|-------------|---------|
245
- | `--mode=[mode]` | Use specific behavioral mode | `--mode=deep-research` |
246
- | `--persona=[type]` | Apply persona expertise | `--persona=security` |
247
- | `--depth=[1-5]` | Investigation thoroughness | `--depth=4` |
248
- | `--format=[fmt]` | Output format (concise/detailed) | `--format=concise` |
249
- | `--skip-regression` | Skip regression test creation | `--skip-regression` |
250
- | `--checkpoint` | Create checkpoint before fixing | `--checkpoint` |
251
-
252
- ### Flag Usage Examples
253
-
254
- ```bash
255
- /fix --mode=deep-research "intermittent timeout error"
256
- /fix --persona=security "SQL injection vulnerability"
257
- /fix --depth=5 "race condition in auth flow"
258
- /fix --format=concise "typo in error message"
259
- ```
260
-
261
- ### Persona Options
262
-
263
- | Persona | Focus Area |
264
- |---------|------------|
265
- | `security` | Security vulnerabilities, OWASP |
266
- | `performance` | Speed, memory, efficiency |
267
- | `reliability` | Error handling, edge cases |
268
-
269
- ## MCP Integration
270
-
271
- This command leverages MCP servers for enhanced debugging:
272
-
273
- ### Reasoning - Root Cause Analysis (Primary)
274
- ```
275
- ALWAYS use Reasoning for debugging:
276
- - Trace execution path step-by-step
277
- - Form and test hypotheses systematically
278
- - Track confidence in each potential cause
279
- - Revise understanding as evidence emerges
280
- ```
281
-
282
- ### Memory - Bug Context
283
- ```
284
- Store and recall debugging context:
285
- - Remember similar bugs from previous sessions
286
- - Recall fix patterns that worked before
287
- - Store root cause analysis for future reference
288
- - Create relations between bugs and affected components
289
- ```
290
-
291
- ### Browser tools - Browser Testing
292
- ```
293
- For UI/frontend bugs:
294
- - Reproduce the bug in browser environment
295
- - Test fix across different browsers
296
- - Verify visual regressions are resolved
297
- - Automate regression test for the fix
298
- ```
299
-
300
- ### Web Search - Library Issues
301
- ```
302
- When debugging library-related issues:
303
- - Fetch current documentation for correct usage
304
- - Check for known issues or breaking changes
305
- - Find correct patterns and examples
306
- ```
307
-
308
- ### Filesystem - Code Search
309
- ```
310
- For tracing bug across codebase:
311
- - Use grep_search to find related code
312
- - Use view_file to examine suspicious areas
313
- - Track changes with file history
314
- ```
315
-
316
- <!-- CUSTOMIZATION POINT -->
317
- ## Variations
318
-
319
- Modify behavior via CLAUDE.md:
320
- - Set required test coverage for fixes
321
- - Define severity levels for bugs
322
- - Configure error reporting format
323
- - Set required review process
324
-
325
-
326
- ## Gap Analysis Rule
327
- Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
@@ -1,67 +0,0 @@
1
- ---
2
- description: Help and Command Reference
3
- ---
4
-
5
- # /help - Help Command
6
-
7
- ## Purpose
8
-
9
- Display available commands and their usage.
10
-
11
- ## Usage
12
-
13
- ```
14
- /help [command name]
15
- ```
16
-
17
- ---
18
-
19
- Show help for: **$ARGUMENTS**
20
-
21
- ## Available Commands
22
-
23
- ### Development Workflow
24
- | Command | Description |
25
- |---------|-------------|
26
- | `/feature` | Full feature development workflow |
27
- | `/fix` | Debug and fix bugs |
28
- | `/review` | Code review |
29
- | `/test` | Generate tests |
30
- | `/tdd` | Test-driven development |
31
- | `/refactor` | Improve code structure |
32
-
33
- ### Git & Deployment
34
- | Command | Description |
35
- |---------|-------------|
36
- | `/commit` | Create commit with message |
37
- | `/ship` | Commit + PR workflow |
38
- | `/pr` | Create pull request |
39
- | `/deploy` | Deploy to environment |
40
-
41
- ### Documentation
42
- | Command | Description |
43
- |---------|-------------|
44
- | `/doc` | Generate documentation |
45
- | `/plan` | Create implementation plan |
46
-
47
- ### Security & Quality
48
- | Command | Description |
49
- |---------|-------------|
50
- | `/security-scan` | Scan for vulnerabilities |
51
- | `/api-gen` | Generate API code |
52
-
53
- ## Getting Help
54
-
55
- For detailed help on a specific command:
56
- ```
57
- /help [command-name]
58
- ```
59
-
60
- For general Claude Code help:
61
- ```
62
- /help
63
- ```
64
-
65
-
66
- ## Gap Analysis Rule
67
- Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
@@ -1,152 +0,0 @@
1
- ---
2
- description: Workflow Index
3
- ---
4
-
5
- # /index
6
-
7
- ## Purpose
8
-
9
- Generate a comprehensive project structure index for faster navigation and context loading. Creates a `PROJECT_INDEX.md` file mapping the codebase structure.
10
-
11
- ---
12
-
13
- Analyze the current project and generate a comprehensive index.
14
-
15
- ## Index Generation
16
-
17
- ### Step 1: Scan Project Structure
18
-
19
- Scan the entire project directory structure, excluding:
20
- - `node_modules/`
21
- - `.git/`
22
- - `__pycache__/`
23
- - `dist/`, `build/`, `.next/`
24
- - `venv/`, `.venv/`
25
- - Coverage and cache directories
26
-
27
- ### Step 2: Identify Key Components
28
-
29
- Categorize files by type:
30
- - **Entry Points**: Main files, index files, app entry
31
- - **API/Routes**: Endpoint definitions
32
- - **Models/Types**: Data structures, schemas
33
- - **Services**: Business logic
34
- - **Utilities**: Helper functions
35
- - **Tests**: Test files
36
- - **Configuration**: Config files, env templates
37
- - **Documentation**: README, docs
38
-
39
- ### Step 3: Map Dependencies
40
-
41
- Identify:
42
- - Package managers and dependencies (package.json, requirements.txt, etc.)
43
- - Internal import relationships between key files
44
- - External service integrations
45
-
46
- ### Step 4: Generate Index
47
-
48
- Create `PROJECT_INDEX.md` with this structure:
49
-
50
- ```markdown
51
- # Project Index: [Project Name]
52
-
53
- Generated: [timestamp]
54
-
55
- ## Quick Navigation
56
-
57
- | Category | Key Files |
58
- |----------|-----------|
59
- | Entry Points | [list] |
60
- | API Routes | [list] |
61
- | Core Services | [list] |
62
- | Models | [list] |
63
-
64
- ## Directory Structure
65
-
66
- ```
67
- [tree view]
68
- ```
69
-
70
- ## Key Files
71
-
72
- ### Entry Points
73
- - `[path]` - [description]
74
-
75
- ### API/Routes
76
- - `[path]` - [description]
77
-
78
- ### Services
79
- - `[path]` - [description]
80
-
81
- ### Models/Types
82
- - `[path]` - [description]
83
-
84
- ## Dependencies
85
-
86
- ### External
87
- - [package]: [purpose]
88
-
89
- ### Internal
90
- - [module] → [depends on]
91
-
92
- ## Architecture Notes
93
- [Brief description of patterns observed]
94
- ```
95
-
96
- ## Flags
97
-
98
- | Flag | Description |
99
- |------|-------------|
100
- | `--depth=[N]` | Limit directory depth (default: 5) |
101
- | `--include=[pattern]` | Include additional patterns |
102
- | `--exclude=[pattern]` | Exclude additional patterns |
103
- | `--output=[path]` | Custom output path |
104
-
105
- ## Usage Examples
106
-
107
- ```bash
108
- /index # Standard index
109
- /index --depth=3 # Shallow index
110
- /index --include="*.graphql" # Include GraphQL files
111
- /index --output=docs/INDEX.md # Custom output location
112
- ```
113
-
114
- ## Arguments
115
-
116
- $ARGUMENTS
117
-
118
- If no arguments provided, generate standard index with default settings.
119
-
120
- ---
121
-
122
- After generating the index, inform the user:
123
- 1. Index file location
124
- 2. Number of files indexed
125
- 3. Key components discovered
126
- 4. Suggest using `/load` to load specific components into context
127
-
128
- ## MCP Integration
129
-
130
- This command leverages MCP servers for enhanced indexing:
131
-
132
- ### Filesystem - Project Scanning (Primary)
133
- ```
134
- ALWAYS use Filesystem for project scanning:
135
- - Use list_dir for full structure view
136
- - Use list_directory for targeted exploration
137
- - Use grep_search to find specific patterns
138
- - Use get_file_info for file metadata
139
- ```
140
-
141
- ### Memory - Project Knowledge
142
- ```
143
- Store project structure in knowledge graph:
144
- - Create entities for key modules
145
- - Store component relationships
146
- - Recall structure in future sessions
147
- - Build project understanding over time
148
- ```
149
-
150
-
151
- ## Gap Analysis Rule
152
- Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.
@@ -1,116 +0,0 @@
1
- ---
2
- description: Load Context
3
- ---
4
-
5
- # /load
6
-
7
- ## Purpose
8
-
9
- Load specific project components into context for focused work. Uses the project index to efficiently load relevant files.
10
-
11
- ---
12
-
13
- Load the requested component(s) into context.
14
-
15
- ## Loading Process
16
-
17
- ### Step 1: Check for Index
18
-
19
- First, check if `PROJECT_INDEX.md` exists:
20
- - If exists: Use index for efficient loading
21
- - If not: Suggest running `/index` first, or do quick scan
22
-
23
- ### Step 2: Identify Component
24
-
25
- Parse the requested component:
26
-
27
- | Request Type | Action |
28
- |--------------|--------|
29
- | Category name | Load all files in category |
30
- | File path | Load specific file |
31
- | Pattern | Load matching files |
32
- | `--all` | Load key files from all categories |
33
-
34
- ### Step 3: Load Files
35
-
36
- Read the identified files and summarize:
37
- - File purposes
38
- - Key exports/functions
39
- - Dependencies
40
- - Current state
41
-
42
- ### Step 4: Context Summary
43
-
44
- Provide a brief summary:
45
- ```markdown
46
- ## Loaded Context
47
-
48
- ### Files Loaded (N)
49
- - `path/to/file1.ts` - [purpose]
50
- - `path/to/file2.ts` - [purpose]
51
-
52
- ### Key Components
53
- - [Component]: [description]
54
-
55
- ### Ready For
56
- - [Suggested actions based on loaded context]
57
- ```
58
-
59
- ## Component Categories
60
-
61
- | Category | What It Loads |
62
- |----------|---------------|
63
- | `api` | API routes and endpoints |
64
- | `models` | Data models and types |
65
- | `services` | Business logic services |
66
- | `utils` | Utility functions |
67
- | `tests` | Test files |
68
- | `config` | Configuration files |
69
- | `auth` | Authentication related |
70
- | `db` | Database related |
71
-
72
- ## Flags
73
-
74
- | Flag | Description |
75
- |------|-------------|
76
- | `--all` | Load all key components |
77
- | `--shallow` | Load only file summaries |
78
- | `--deep` | Load full file contents |
79
- | `--related` | Include related files |
80
-
81
- ## Usage Examples
82
-
83
- ```bash
84
- /load api # Load all API routes
85
- /load models # Load all data models
86
- /load src/services/user.ts # Load specific file
87
- /load auth --related # Load auth + related files
88
- /load --all # Load all key components
89
- /load --all --shallow # Quick overview of everything
90
- ```
91
-
92
- ## Arguments
93
-
94
- $ARGUMENTS
95
-
96
- If no arguments, show available components from index.
97
-
98
- ---
99
-
100
- ## Best Practices
101
-
102
- 1. **Start Narrow**: Load specific components first
103
- 2. **Expand as Needed**: Use `--related` when you need more context
104
- 3. **Check Index**: Run `/index` if loading seems slow
105
- 4. **Use Categories**: Category names are faster than patterns
106
-
107
- ## After Loading
108
-
109
- Suggest next actions:
110
- - "Ready to work on [component]. What would you like to do?"
111
- - "I see [patterns/issues]. Want me to address them?"
112
- - "Related files that might be relevant: [list]"
113
-
114
-
115
- ## Gap Analysis Rule
116
- Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.