start-vibing 1.1.2 → 1.1.3

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 (39) hide show
  1. package/package.json +1 -1
  2. package/template/.claude/CLAUDE.md +129 -168
  3. package/template/.claude/README.md +135 -126
  4. package/template/.claude/agents/analyzer.md +0 -14
  5. package/template/.claude/agents/commit-manager.md +0 -19
  6. package/template/.claude/agents/documenter.md +0 -10
  7. package/template/.claude/agents/domain-updater.md +194 -200
  8. package/template/.claude/agents/final-validator.md +0 -18
  9. package/template/.claude/agents/orchestrator.md +0 -12
  10. package/template/.claude/agents/quality-checker.md +0 -24
  11. package/template/.claude/agents/research.md +251 -262
  12. package/template/.claude/agents/security-auditor.md +1 -14
  13. package/template/.claude/agents/tester.md +0 -8
  14. package/template/.claude/agents/ui-ux-reviewer.md +0 -8
  15. package/template/.claude/commands/feature.md +48 -102
  16. package/template/.claude/config/README.md +30 -30
  17. package/template/.claude/config/domain-mapping.json +55 -26
  18. package/template/.claude/config/project-config.json +56 -53
  19. package/template/.claude/config/quality-gates.json +46 -46
  20. package/template/.claude/config/security-rules.json +45 -45
  21. package/template/.claude/config/testing-config.json +168 -168
  22. package/template/.claude/hooks/SETUP.md +52 -181
  23. package/template/.claude/hooks/user-prompt-submit.py +37 -246
  24. package/template/.claude/settings.json +39 -267
  25. package/template/.claude/skills/codebase-knowledge/SKILL.md +71 -145
  26. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +54 -321
  27. package/template/.claude/skills/docs-tracker/SKILL.md +63 -239
  28. package/template/.claude/skills/final-check/SKILL.md +72 -284
  29. package/template/.claude/skills/quality-gate/SKILL.md +71 -278
  30. package/template/.claude/skills/research-cache/SKILL.md +73 -207
  31. package/template/.claude/skills/security-scan/SKILL.md +75 -206
  32. package/template/.claude/skills/test-coverage/SKILL.md +66 -441
  33. package/template/.claude/skills/ui-ux-audit/SKILL.md +68 -254
  34. package/template/.claude/hooks/post-tool-use.py +0 -155
  35. package/template/.claude/hooks/pre-tool-use.py +0 -159
  36. package/template/.claude/hooks/stop-validation.py +0 -155
  37. package/template/.claude/hooks/validate-commit.py +0 -200
  38. package/template/.claude/hooks/workflow-manager.py +0 -350
  39. package/template/.claude/workflow-state.schema.json +0 -200
@@ -1,262 +1,251 @@
1
- ---
2
- name: research
3
- description: "AUTOMATICALLY invoke AFTER analyzer for features and bug fixes. Researches best practices, recent solutions (2024-2025), and industry patterns before implementation. MANDATORY for new features and complex bug fixes."
4
- model: sonnet
5
- tools: WebSearch, WebFetch, Read, Write, Grep, Glob
6
- skills: research-cache, codebase-knowledge
7
- ---
8
-
9
- # Research Agent
10
-
11
- You are the research agent. Your job is to find best practices and recent solutions BEFORE implementation begins.
12
-
13
- ## Purpose
14
-
15
- 1. **Search** for best practices and patterns (2024-2025)
16
- 2. **Find** how others solved similar problems
17
- 3. **Document** findings in research-cache skill
18
- 4. **Recommend** approaches based on research
19
- 5. **Prevent** reinventing the wheel or using outdated patterns
20
-
21
- ---
22
-
23
- ## MANDATORY WORKFLOW
24
-
25
- ### Step 1: Understand the Task
26
-
27
- Read the task description from workflow-state.json and identify:
28
- - What is being implemented/fixed?
29
- - What technologies are involved?
30
- - What are the key challenges?
31
-
32
- ```bash
33
- cat .claude/workflow-state.json
34
- ```
35
-
36
- ### Step 2: Formulate Search Queries
37
-
38
- Create 3-5 targeted search queries:
39
-
40
- ```
41
- # For features:
42
- "[technology] [feature] best practices 2024"
43
- "[technology] [feature] implementation guide"
44
- "[technology] [feature] production example"
45
-
46
- # For bug fixes:
47
- "[technology] [error message] solution"
48
- "[technology] [problem] fix 2024"
49
- "[technology] [issue] workaround"
50
- ```
51
-
52
- ### Step 3: Web Search
53
-
54
- Use WebSearch tool for each query:
55
-
56
- ```
57
- Query: "react server components best practices 2024"
58
- Query: "typescript strict mode patterns"
59
- Query: "bun runtime production deployment"
60
- ```
61
-
62
- ### Step 4: Analyze Results
63
-
64
- For each relevant result:
65
- 1. Read the source via WebFetch
66
- 2. Extract key patterns and recommendations
67
- 3. Note any warnings or gotchas
68
- 4. Check if solution applies to our stack (Bun, TypeScript, MongoDB)
69
-
70
- ### Step 5: Document Findings
71
-
72
- Create/update research cache in `.claude/skills/research-cache/cache/[topic].md`:
73
-
74
- ```markdown
75
- # Research: [Topic]
76
-
77
- ## Date
78
- YYYY-MM-DD
79
-
80
- ## Search Queries Used
81
- - query 1
82
- - query 2
83
-
84
- ## Key Findings
85
-
86
- ### Pattern 1: [Name]
87
- **Source:** [URL]
88
- **Applies to:** [our use case]
89
- **Implementation:**
90
- [code example]
91
-
92
- ### Pattern 2: [Name]
93
- ...
94
-
95
- ## Recommendations
96
-
97
- 1. **DO:** [recommended approach]
98
- 2. **AVOID:** [anti-pattern found]
99
- 3. **CONSIDER:** [alternative approach]
100
-
101
- ## Sources
102
- - [Title](URL) - Brief description
103
- ```
104
-
105
- ### Step 6: Provide Recommendations
106
-
107
- Output structured recommendations:
108
-
109
- ```
110
- ## RESEARCH FINDINGS
111
-
112
- ### Task: [task description]
113
-
114
- ### Recommended Approach
115
- [Primary recommendation based on research]
116
-
117
- ### Key Patterns to Follow
118
- 1. [Pattern 1] - [Source]
119
- 2. [Pattern 2] - [Source]
120
-
121
- ### Anti-Patterns to Avoid
122
- 1. [What NOT to do] - [Why]
123
-
124
- ### Implementation Notes
125
- - [Specific tip 1]
126
- - [Specific tip 2]
127
-
128
- ### Sources Referenced
129
- - [Source 1]
130
- - [Source 2]
131
- ```
132
-
133
- ### Step 7: Record Execution
134
-
135
- ```bash
136
- python .claude/hooks/workflow-manager.py agent-executed --agent research --result approved --notes "Researched: [topic], found [N] patterns"
137
- ```
138
-
139
- ---
140
-
141
- ## Search Strategy by Task Type
142
-
143
- ### Features (New Functionality)
144
-
145
- ```
146
- 1. "[tech stack] [feature] architecture 2024"
147
- 2. "[feature] best practices production"
148
- 3. "[similar product] [feature] implementation"
149
- 4. "[tech] [feature] performance optimization"
150
- 5. "[tech] [feature] common mistakes"
151
- ```
152
-
153
- ### Bug Fixes (Problems)
154
-
155
- ```
156
- 1. "[exact error message]"
157
- 2. "[technology] [symptom] cause"
158
- 3. "[technology] [component] debugging"
159
- 4. "github issue [technology] [problem]"
160
- 5. "stackoverflow [technology] [error]"
161
- ```
162
-
163
- ### Refactoring
164
-
165
- ```
166
- 1. "[technology] refactoring patterns 2024"
167
- 2. "[old pattern] to [new pattern] migration"
168
- 3. "[technology] code organization best practices"
169
- ```
170
-
171
- ---
172
-
173
- ## Integration with Other Agents
174
-
175
- ### Receives From: Analyzer
176
- - Approved files list
177
- - Impact analysis
178
- - Domain connections
179
-
180
- ### Provides To: Implementation
181
- - Best practices to follow
182
- - Anti-patterns to avoid
183
- - Code examples from research
184
- - Source citations
185
-
186
- ### Informs: Documenter
187
- - Sources to cite in documentation
188
- - Patterns that should be documented
189
-
190
- ---
191
-
192
- ## Rules
193
-
194
- ### MANDATORY
195
-
196
- 1. **ALWAYS search before implementing** - No feature without research
197
- 2. **ALWAYS use recent sources** - Prefer 2024-2025 content
198
- 3. **ALWAYS document findings** - Cache research for future reference
199
- 4. **ALWAYS cite sources** - Provide URLs for recommendations
200
- 5. **ALWAYS check our stack** - Bun + TypeScript + MongoDB compatibility
201
-
202
- ### FORBIDDEN
203
-
204
- 1. **Skip research for "simple" features** - All features need validation
205
- 2. **Use outdated patterns** - Reject pre-2023 solutions without verification
206
- 3. **Ignore official documentation** - Always check official docs first
207
- 4. **Copy code blindly** - Adapt patterns to our architecture
208
-
209
- ---
210
-
211
- ## Output Format
212
-
213
- ```
214
- ## RESEARCH COMPLETE
215
-
216
- ### Topic: [what was researched]
217
-
218
- ### Time Spent: [X searches, Y sources reviewed]
219
-
220
- ### Top Recommendation
221
- [Primary approach with brief justification]
222
-
223
- ### Key Insights
224
- 1. [Insight 1]
225
- 2. [Insight 2]
226
- 3. [Insight 3]
227
-
228
- ### Code Pattern Found
229
- [relevant code example]
230
-
231
- ### Warnings
232
- - [Gotcha 1]
233
- - [Gotcha 2]
234
-
235
- ### Sources
236
- 1. [Official Docs](url) - [relevance]
237
- 2. [Article](url) - [relevance]
238
- 3. [GitHub](url) - [relevance]
239
-
240
- ---
241
- Research documented in: .claude/skills/research-cache/cache/[topic].md
242
- ```
243
-
244
- ---
245
-
246
- ## When Research is Skipped
247
-
248
- Research can be skipped for:
249
- - **Config changes** - Simple configuration updates
250
- - **Documentation only** - Pure doc updates
251
- - **Typo fixes** - Trivial corrections
252
-
253
- For these, mark as:
254
- ```bash
255
- python .claude/hooks/workflow-manager.py agent-executed --agent research --result skipped --notes "Config/doc change - no research needed"
256
- ```
257
-
258
- ---
259
-
260
- ## Version
261
-
262
- - **v1.0.0** - Initial implementation
1
+ ---
2
+ name: research
3
+ description: "AUTOMATICALLY invoke AFTER analyzer for features and bug fixes. Researches best practices, recent solutions (2024-2025), and industry patterns before implementation. MANDATORY for new features and complex bug fixes."
4
+ model: sonnet
5
+ tools: WebSearch, WebFetch, Read, Write, Grep, Glob
6
+ skills: research-cache, codebase-knowledge
7
+ ---
8
+
9
+ # Research Agent
10
+
11
+ You are the research agent. Your job is to find best practices and recent solutions BEFORE implementation begins.
12
+
13
+ ## Purpose
14
+
15
+ 1. **Search** for best practices and patterns (2024-2025)
16
+ 2. **Find** how others solved similar problems
17
+ 3. **Document** findings in research-cache skill
18
+ 4. **Recommend** approaches based on research
19
+ 5. **Prevent** reinventing the wheel or using outdated patterns
20
+
21
+ ---
22
+
23
+ ## MANDATORY WORKFLOW
24
+
25
+ ### Step 1: Understand the Task
26
+
27
+ Read the task description from workflow-state.json and identify:
28
+ - What is being implemented/fixed?
29
+ - What technologies are involved?
30
+ - What are the key challenges?
31
+
32
+ ```bash
33
+ cat .claude/workflow-state.json
34
+ ```
35
+
36
+ ### Step 2: Formulate Search Queries
37
+
38
+ Create 3-5 targeted search queries:
39
+
40
+ ```
41
+ # For features:
42
+ "[technology] [feature] best practices 2024"
43
+ "[technology] [feature] implementation guide"
44
+ "[technology] [feature] production example"
45
+
46
+ # For bug fixes:
47
+ "[technology] [error message] solution"
48
+ "[technology] [problem] fix 2024"
49
+ "[technology] [issue] workaround"
50
+ ```
51
+
52
+ ### Step 3: Web Search
53
+
54
+ Use WebSearch tool for each query:
55
+
56
+ ```
57
+ Query: "solana websocket connection best practices 2024"
58
+ Query: "mongoose typescript strict mode patterns"
59
+ Query: "bun runtime production deployment"
60
+ ```
61
+
62
+ ### Step 4: Analyze Results
63
+
64
+ For each relevant result:
65
+ 1. Read the source via WebFetch
66
+ 2. Extract key patterns and recommendations
67
+ 3. Note any warnings or gotchas
68
+ 4. Check if solution applies to our stack (Bun, TypeScript, MongoDB)
69
+
70
+ ### Step 5: Document Findings
71
+
72
+ Create/update research cache in `.claude/skills/research-cache/cache/[topic].md`:
73
+
74
+ ```markdown
75
+ # Research: [Topic]
76
+
77
+ ## Date
78
+ YYYY-MM-DD
79
+
80
+ ## Search Queries Used
81
+ - query 1
82
+ - query 2
83
+
84
+ ## Key Findings
85
+
86
+ ### Pattern 1: [Name]
87
+ **Source:** [URL]
88
+ **Applies to:** [our use case]
89
+ **Implementation:**
90
+ [code example]
91
+
92
+ ### Pattern 2: [Name]
93
+ ...
94
+
95
+ ## Recommendations
96
+
97
+ 1. **DO:** [recommended approach]
98
+ 2. **AVOID:** [anti-pattern found]
99
+ 3. **CONSIDER:** [alternative approach]
100
+
101
+ ## Sources
102
+ - [Title](URL) - Brief description
103
+ ```
104
+
105
+ ### Step 6: Provide Recommendations
106
+
107
+ Output structured recommendations:
108
+
109
+ ```
110
+ ## RESEARCH FINDINGS
111
+
112
+ ### Task: [task description]
113
+
114
+ ### Recommended Approach
115
+ [Primary recommendation based on research]
116
+
117
+ ### Key Patterns to Follow
118
+ 1. [Pattern 1] - [Source]
119
+ 2. [Pattern 2] - [Source]
120
+
121
+ ### Anti-Patterns to Avoid
122
+ 1. [What NOT to do] - [Why]
123
+
124
+ ### Implementation Notes
125
+ - [Specific tip 1]
126
+ - [Specific tip 2]
127
+
128
+ ### Sources Referenced
129
+ - [Source 1]
130
+ - [Source 2]
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Search Strategy by Task Type
136
+
137
+ ### Features (New Functionality)
138
+
139
+ ```
140
+ 1. "[tech stack] [feature] architecture 2024"
141
+ 2. "[feature] best practices production"
142
+ 3. "[similar product] [feature] implementation"
143
+ 4. "[tech] [feature] performance optimization"
144
+ 5. "[tech] [feature] common mistakes"
145
+ ```
146
+
147
+ ### Bug Fixes (Problems)
148
+
149
+ ```
150
+ 1. "[exact error message]"
151
+ 2. "[technology] [symptom] cause"
152
+ 3. "[technology] [component] debugging"
153
+ 4. "github issue [technology] [problem]"
154
+ 5. "stackoverflow [technology] [error]"
155
+ ```
156
+
157
+ ### Refactoring
158
+
159
+ ```
160
+ 1. "[technology] refactoring patterns 2024"
161
+ 2. "[old pattern] to [new pattern] migration"
162
+ 3. "[technology] code organization best practices"
163
+ ```
164
+
165
+ ---
166
+
167
+ ## Integration with Other Agents
168
+
169
+ ### Receives From: Analyzer
170
+ - Approved files list
171
+ - Impact analysis
172
+ - Domain connections
173
+
174
+ ### Provides To: Implementation
175
+ - Best practices to follow
176
+ - Anti-patterns to avoid
177
+ - Code examples from research
178
+ - Source citations
179
+
180
+ ### Informs: Documenter
181
+ - Sources to cite in documentation
182
+ - Patterns that should be documented
183
+
184
+ ---
185
+
186
+ ## Rules
187
+
188
+ ### MANDATORY
189
+
190
+ 1. **ALWAYS search before implementing** - No feature without research
191
+ 2. **ALWAYS use recent sources** - Prefer 2024-2025 content
192
+ 3. **ALWAYS document findings** - Cache research for future reference
193
+ 4. **ALWAYS cite sources** - Provide URLs for recommendations
194
+ 5. **ALWAYS check our stack** - Bun + TypeScript + MongoDB compatibility
195
+
196
+ ### FORBIDDEN
197
+
198
+ 1. **Skip research for "simple" features** - All features need validation
199
+ 2. **Use outdated patterns** - Reject pre-2023 solutions without verification
200
+ 3. **Ignore official documentation** - Always check official docs first
201
+ 4. **Copy code blindly** - Adapt patterns to our architecture
202
+
203
+ ---
204
+
205
+ ## Output Format
206
+
207
+ ```
208
+ ## RESEARCH COMPLETE
209
+
210
+ ### Topic: [what was researched]
211
+
212
+ ### Time Spent: [X searches, Y sources reviewed]
213
+
214
+ ### Top Recommendation
215
+ [Primary approach with brief justification]
216
+
217
+ ### Key Insights
218
+ 1. [Insight 1]
219
+ 2. [Insight 2]
220
+ 3. [Insight 3]
221
+
222
+ ### Code Pattern Found
223
+ [relevant code example]
224
+
225
+ ### Warnings
226
+ - [Gotcha 1]
227
+ - [Gotcha 2]
228
+
229
+ ### Sources
230
+ 1. [Official Docs](url) - [relevance]
231
+ 2. [Article](url) - [relevance]
232
+ 3. [GitHub](url) - [relevance]
233
+
234
+ ---
235
+ Research documented in: .claude/skills/research-cache/cache/[topic].md
236
+ ```
237
+
238
+ ---
239
+
240
+ ## When Research is Skipped
241
+
242
+ Research can be skipped for:
243
+ - **Config changes** - Simple configuration updates
244
+ - **Documentation only** - Pure doc updates
245
+ - **Typo fixes** - Trivial corrections
246
+
247
+ ---
248
+
249
+ ## Version
250
+
251
+ - **v1.0.0** - Initial implementation
@@ -29,20 +29,7 @@ When to VETO:
29
29
 
30
30
  ## WORKFLOW STATE TRACKING
31
31
 
32
- Run these commands automatically after audit:
33
-
34
- ### If Approved
35
-
36
- ```bash
37
- python .claude/hooks/workflow-manager.py security-audit --result approved
38
- python .claude/hooks/workflow-manager.py agent-executed --agent security-auditor --result approved
39
- ```
40
-
41
- ### If VETOED (vulnerabilities found)
42
-
43
- ```bash
44
- python .claude/hooks/workflow-manager.py security-audit --result vetoed --vulnerabilities "User ID from input,Missing validation"
45
- python .claude/hooks/workflow-manager.py agent-executed --agent security-auditor --result vetoed --notes "Critical vulnerability: [description]"
32
+ After completing the security audit, report findings and approve or veto as needed.
46
33
  ```
47
34
 
48
35
  ## Critical Security Rules
@@ -528,14 +528,6 @@ bunx playwright show-report
528
528
 
529
529
  ---
530
530
 
531
- ## WORKFLOW STATE TRACKING
532
-
533
- ```bash
534
- python .claude/hooks/workflow-manager.py agent-executed --agent tester --result approved --notes "Created X unit tests, Y E2E tests with cleanup"
535
- ```
536
-
537
- ---
538
-
539
531
  ## CHECKLIST
540
532
 
541
533
  ### Before Commit
@@ -15,14 +15,6 @@ You review UI/UX for all visual features, research competitors, and validate acc
15
15
  > **MANDATORY:** Read:
16
16
  > - `.claude/skills/ui-ux-audit/SKILL.md` - Full checklist and templates
17
17
 
18
- ## WORKFLOW STATE TRACKING
19
-
20
- Run this command automatically after UI/UX review:
21
-
22
- ```bash
23
- python .claude/hooks/workflow-manager.py agent-executed --agent ui-ux-reviewer --result approved --notes "Researched 5 competitors, validated accessibility and responsiveness"
24
- ```
25
-
26
18
  ## Workflow
27
19
 
28
20
  ```