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,239 +1,63 @@
1
- ---
2
- name: docs-tracker
3
- description: Automates documentation maintenance. Detects modified files via git diff, creates docs for new files, updates docs for modified files, generates changelog. Use after implementation to keep docs current.
4
- allowed-tools: Read, Glob, Grep, Bash
5
- ---
6
-
7
- # Docs Tracker - Automatic Documentation System
8
-
9
- ## Purpose
10
-
11
- This skill automates documentation maintenance:
12
-
13
- - **Detects** modified files via git diff
14
- - **Compares** with existing documentation
15
- - **Creates** docs for new files
16
- - **Updates** docs for modified files
17
- - **Removes** docs for deleted files
18
- - **Generates** automatic changelog
19
-
20
- ---
21
-
22
- ## Execution Flow
23
-
24
- ```
25
- 1. DETECT CHANGES → git diff --name-status
26
-
27
- 2. CLASSIFY CHANGES → A=Added, M=Modified, D=Deleted
28
-
29
- 3. CHECK EXISTING DOCS → docs/, codebase-knowledge/domains/
30
-
31
- 4. EXECUTE ACTIONS → Create, update, or remove docs
32
- ```
33
-
34
- ---
35
-
36
- ## Detection Commands
37
-
38
- ### Changes Since Last Commit
39
-
40
- ```bash
41
- git diff --name-status HEAD~1
42
- ```
43
-
44
- ### Changes vs Main
45
-
46
- ```bash
47
- git diff --name-status main..HEAD
48
- ```
49
-
50
- ### Added Files
51
-
52
- ```bash
53
- git diff --name-status main..HEAD | grep "^A"
54
- ```
55
-
56
- ### Modified Files
57
-
58
- ```bash
59
- git diff --name-status main..HEAD | grep "^M"
60
- ```
61
-
62
- ### Deleted Files
63
-
64
- ```bash
65
- git diff --name-status main..HEAD | grep "^D"
66
- ```
67
-
68
- ### Detailed File Diff
69
-
70
- ```bash
71
- git diff main..HEAD -- path/to/file.ts
72
- ```
73
-
74
- ---
75
-
76
- ## File → Doc Mapping
77
-
78
- | File Type | Related Documentation |
79
- | --------------------- | --------------------------------------------- |
80
- | `server/routers/*.ts` | `codebase-knowledge/domains/[domain].md` |
81
- | `server/models/*.ts` | `codebase-knowledge/domains/[domain].md` |
82
- | `app/**/page.tsx` | `docs/flows/[feature].md` |
83
- | `components/**/*.tsx` | `docs/components/[component].md` (if complex) |
84
- | `lib/**/*.ts` | `docs/utils/[lib].md` (if exported) |
85
-
86
- ---
87
-
88
- ## Update Rules
89
-
90
- ### CREATE Doc When:
91
-
92
- - [ ] New file in `server/routers/` → Update domain
93
- - [ ] New file in `server/models/` → Update domain
94
- - [ ] New page in `app/` → Create flow doc if complex
95
- - [ ] New complex component → Consider doc
96
-
97
- ### UPDATE Doc When:
98
-
99
- - [ ] tRPC procedure changed signature
100
- - [ ] Model changed schema
101
- - [ ] Page changed main flow
102
- - [ ] Connections between domains changed
103
-
104
- ### REMOVE Doc When:
105
-
106
- - [ ] File was deleted
107
- - [ ] Feature was completely removed
108
- - [ ] Component was discontinued
109
-
110
- ---
111
-
112
- ## Changelog Template
113
-
114
- ```markdown
115
- ## [Unreleased] - YYYY-MM-DD
116
-
117
- ### Added
118
-
119
- - New feature X in `path/to/file.ts`
120
- - New component Y
121
-
122
- ### Changed
123
-
124
- - Changed behavior of Z
125
- - Refactored module W
126
-
127
- ### Fixed
128
-
129
- - Fixed bug in A
130
- - Resolved issue #123
131
-
132
- ### Removed
133
-
134
- - Removed obsolete feature B
135
-
136
- ### Docs Updated
137
-
138
- - Updated `codebase-knowledge/domains/[domain].md`
139
- - Created `docs/flows/[feature].md`
140
- ```
141
-
142
- ---
143
-
144
- ## Pre-Commit Checklist
145
-
146
- ### 1. Detect Changes
147
-
148
- ```bash
149
- git diff --name-status --cached
150
- ```
151
-
152
- ### 2. For Each Modified File
153
-
154
- - [ ] Which domain does it belong to?
155
- - [ ] Is domain updated in `codebase-knowledge/domains/`?
156
- - [ ] Has flow doc in `docs/flows/`? Needs update?
157
- - [ ] Commit hash will be added to domain?
158
-
159
- ### 3. For Added Files
160
-
161
- - [ ] Which domain? Add to file list
162
- - [ ] Needs own doc or just update domain?
163
- - [ ] Connections with other domains?
164
-
165
- ### 4. For Deleted Files
166
-
167
- - [ ] Remove from `codebase-knowledge/domains/`
168
- - [ ] Remove flow doc if exists
169
- - [ ] Update connections in related domains
170
-
171
- ---
172
-
173
- ## Integration with Codebase-Knowledge
174
-
175
- ### Update Domain After Change
176
-
177
- ```markdown
178
- ## Domain Update: [name]
179
-
180
- ### Changes Detected
181
-
182
- | File | Status | Description |
183
- | ------------ | -------- | -------------- |
184
- | path/file.ts | Modified | [what changed] |
185
-
186
- ### Required Updates in domains/[domain].md
187
-
188
- - [ ] Update "Last Update" with date and commit
189
- - [ ] Add/remove files from list
190
- - [ ] Update "Recent Commits"
191
- - [ ] Check "Connections" if integration changed
192
- - [ ] Update "Attention Points" if applicable
193
- ```
194
-
195
- ---
196
-
197
- ## Output Format
198
-
199
- ```markdown
200
- ## DOCS TRACKER - Report
201
-
202
- ### Changes Detected
203
-
204
- - **Added:** X files
205
- - **Modified:** Y files
206
- - **Deleted:** Z files
207
-
208
- ### Docs That Need Update
209
-
210
- | Doc | Type | Action | Priority |
211
- | ---------------- | ------ | ------ | -------- |
212
- | domains/auth.md | domain | update | HIGH |
213
- | flows/feature.md | flow | create | MEDIUM |
214
-
215
- ### Actions Executed
216
-
217
- - [x] Updated `domains/auth.md` with commit abc123
218
- - [x] Created `flows/new-feature.md`
219
- - [x] Removed `flows/obsolete.md`
220
-
221
- ### Changelog Generated
222
-
223
- [changelog preview]
224
- ```
225
-
226
- ---
227
-
228
- ## Critical Rules
229
-
230
- 1. **ALWAYS run before commit** - Outdated docs are technical debt
231
- 2. **NEVER ignore new files** - Every file deserves documentation
232
- 3. **KEEP changelog updated** - Facilitates releases
233
- 4. **SYNC with codebase-knowledge** - It's the source of truth
234
-
235
- ---
236
-
237
- ## Version
238
-
239
- - **v2.0.0** - Generic template
1
+ ---
2
+ name: docs-tracker
3
+ description: Tracks documentation that needs updating after code changes. Activates after code is written, after git commits, when files were modified, or when user says 'update docs', 'changelog', or 'document changes'.
4
+ allowed-tools: Read, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Docs Tracker
8
+
9
+ ## When to Use
10
+
11
+ - After implementation completes
12
+ - Before committing changes
13
+ - When user asks about documentation
14
+
15
+ ## Detection Commands
16
+
17
+ ```bash
18
+ # Changes since last commit
19
+ git diff --name-status HEAD~1
20
+
21
+ # Changes vs main branch
22
+ git diff --name-status main..HEAD
23
+
24
+ # Staged changes
25
+ git diff --name-status --cached
26
+ ```
27
+
28
+ ## File → Doc Mapping
29
+
30
+ | File Type | Update This |
31
+ |-----------|-------------|
32
+ | `server/routers/*.ts` | `domains/[domain].md` |
33
+ | `server/models/*.ts` | `domains/[domain].md` |
34
+ | `app/**/page.tsx` | `docs/flows/[feature].md` |
35
+ | `components/**/*.tsx` | Domain file or component doc |
36
+
37
+ ## Workflow
38
+
39
+ 1. **Detect** - `git diff --name-status`
40
+ 2. **Classify** - Added/Modified/Deleted
41
+ 3. **Update** - Relevant domain files
42
+ 4. **Changelog** - Add entry if significant
43
+
44
+ ## Changelog Format
45
+
46
+ ```markdown
47
+ ## [Unreleased]
48
+
49
+ ### Added
50
+ - New feature X
51
+
52
+ ### Changed
53
+ - Modified behavior of Y
54
+
55
+ ### Fixed
56
+ - Bug in Z
57
+ ```
58
+
59
+ ## Rules
60
+
61
+ 1. **Run before commit** - outdated docs = tech debt
62
+ 2. **Update domains** - sync with codebase-knowledge
63
+ 3. **Keep changelog current** - facilitates releases
@@ -1,284 +1,72 @@
1
- ---
2
- name: final-check
3
- description: Final validation before task completion. Verifies all skills were consulted, documentation updated, tests pass. HAS VETO POWER - blocks incomplete tasks.
4
- allowed-tools: Read, Grep, Glob, Bash
5
- ---
6
-
7
- # Final Check - Final Validation System
8
-
9
- ## VETO POWER
10
-
11
- > **WARNING:** This skill HAS VETO POWER.
12
- > If rule violated, MUST:
13
- >
14
- > 1. STOP and list violations
15
- > 2. REQUIRE fix before approving
16
- > 3. Re-validate after fixes
17
-
18
- ---
19
-
20
- ## Purpose
21
-
22
- This skill is the LAST check before task completion:
23
-
24
- - **Validates** all CLAUDE.md rules
25
- - **Verifies** all skills were consulted
26
- - **Confirms** documentation was updated
27
- - **Ensures** nothing was forgotten
28
- - **Blocks** incomplete tasks
29
-
30
- ---
31
-
32
- ## Mega Validation Checklist
33
-
34
- ### 1. CODEBASE-KNOWLEDGE
35
-
36
- - [ ] Affected domain consulted BEFORE implementing?
37
- - [ ] Domain file UPDATED after implementing?
38
- - [ ] Commit hash added?
39
- - [ ] Connections verified?
40
-
41
- ### 2. DOCS-TRACKER
42
-
43
- - [ ] Changes detected via git diff?
44
- - [ ] New documentation created (if needed)?
45
- - [ ] Existing documentation updated?
46
- - [ ] Changelog updated?
47
-
48
- ### 3. TEST-COVERAGE
49
-
50
- - [ ] New files have test or exemption?
51
- - [ ] New tRPC routes have unit test?
52
- - [ ] New pages have E2E spec?
53
- - [ ] E2E uses `auth.helper.ts` correctly?
54
- - [ ] No `.skip()` added?
55
- - [ ] All tests pass?
56
-
57
- ### 4. UI-UX-AUDIT
58
-
59
- - [ ] Competitors researched (if UI)?
60
- - [ ] Accessibility validated?
61
- - [ ] Responsiveness tested?
62
- - [ ] Skeleton created (if new component)?
63
- - [ ] Zero horizontal overflow?
64
-
65
- ### 5. SECURITY-SCAN
66
-
67
- - [ ] User ID always from session?
68
- - [ ] Sensitive data not sent to frontend?
69
- - [ ] Zod validation on all routes?
70
- - [ ] OWASP Top 10 verified?
71
- - [ ] No pending VETO?
72
-
73
- ### 6. QUALITY-GATE
74
-
75
- - [ ] `bun run typecheck` passes?
76
- - [ ] `bun run lint` passes?
77
- - [ ] `bun run test` passes?
78
- - [ ] `bun run test:e2e` passes?
79
- - [ ] `bun run build` passes?
80
-
81
- ---
82
-
83
- ## Checklist by Task Type
84
-
85
- ### New Feature
86
-
87
- ```markdown
88
- ### Before Implementation
89
-
90
- - [ ] Consulted codebase-knowledge domain?
91
- - [ ] Researched competitors (if UI)?
92
-
93
- ### During Implementation
94
-
95
- - [ ] Followed code patterns?
96
- - [ ] Created skeleton for components?
97
- - [ ] Validated inputs with Zod?
98
- - [ ] User ID always from session?
99
-
100
- ### After Implementation
101
-
102
- - [ ] Created unit tests?
103
- - [ ] Created E2E tests?
104
- - [ ] Updated codebase-knowledge?
105
- - [ ] Updated docs/flows (if applicable)?
106
- - [ ] Ran full quality-gate?
107
- - [ ] Security-scan approved?
108
- ```
109
-
110
- ### Bug Fix
111
-
112
- ```markdown
113
- ### Before
114
-
115
- - [ ] Consulted affected domain?
116
- - [ ] Identified root cause?
117
-
118
- ### During
119
-
120
- - [ ] Fix is minimal and focused?
121
- - [ ] Doesn't introduce regression?
122
-
123
- ### After
124
-
125
- - [ ] Test covering the bug?
126
- - [ ] Updated domain with commit?
127
- - [ ] Quality-gate passes?
128
- ```
129
-
130
- ### Refactor
131
-
132
- ```markdown
133
- ### Before
134
-
135
- - [ ] Consulted affected domains?
136
- - [ ] Mapped all dependencies?
137
-
138
- ### During
139
-
140
- - [ ] Maintained existing behavior?
141
- - [ ] Didn't break tests?
142
-
143
- ### After
144
-
145
- - [ ] All tests pass?
146
- - [ ] Updated affected domains?
147
- - [ ] Quality-gate passes?
148
- ```
149
-
150
- ---
151
-
152
- ## Validation Flow
153
-
154
- ```
155
- TASK COMPLETE? (developer thinks done)
156
-
157
- 1. VERIFY CODEBASE-KNOWLEDGE → Consulted? Updated?
158
-
159
- 2. VERIFY DOCS-TRACKER → Docs updated? Changelog?
160
-
161
- 3. VERIFY TEST-COVERAGE → All files have tests? Pass?
162
-
163
- 4. VERIFY UI-UX-AUDIT (if UI) → Research? Accessibility?
164
-
165
- 5. VERIFY SECURITY-SCAN → No VETO? OWASP OK?
166
-
167
- 6. VERIFY QUALITY-GATE → All checks pass?
168
-
169
- ┌─────────┴─────────┐
170
- ↓ ↓
171
- VIOLATION ALL OK
172
- → VETO → APPROVED
173
- → LIST ISSUES → CAN COMMIT
174
- ```
175
-
176
- ---
177
-
178
- ## Output Format
179
-
180
- ### Approved
181
-
182
- ```markdown
183
- ## FINAL CHECK - APPROVED
184
-
185
- ### Task Summary
186
-
187
- - **Type:** Feature
188
- - **Domain:** [domain]
189
- - **Files:** X modified
190
-
191
- ### Verifications
192
-
193
- - [x] Codebase-Knowledge: Consulted and updated
194
- - [x] Docs-Tracker: Changelog updated
195
- - [x] Test-Coverage: Unit 3/3, E2E 2/2 pass
196
- - [x] UI-UX-Audit: Competitors researched, accessible
197
- - [x] Security-Scan: No vulnerabilities
198
- - [x] Quality-Gate: All checks pass
199
-
200
- **STATUS: APPROVED** - Ready to commit
201
- ```
202
-
203
- ### Vetoed
204
-
205
- ```markdown
206
- ## FINAL CHECK - VETOED
207
-
208
- ### Task Summary
209
-
210
- - **Type:** Feature
211
- - **Domain:** [domain]
212
-
213
- ### Violations Found
214
-
215
- #### ❌ Codebase-Knowledge
216
-
217
- - **Violation:** Domain NOT updated after implementation
218
- - **Action:** Update domain file with commit hash
219
-
220
- #### ❌ Test-Coverage
221
-
222
- - **Violation:** New file without test
223
- - **File:** `components/NewComponent.tsx`
224
- - **Action:** Create E2E spec
225
-
226
- **STATUS: VETOED** - 2 violations. Fix before commit.
227
-
228
- ### Next Steps
229
-
230
- 1. Update domain file
231
- 2. Create test for new component
232
- 3. Re-run final-check
233
- ```
234
-
235
- ---
236
-
237
- ## VETO Rules
238
-
239
- ### IMMEDIATE VETO
240
-
241
- 1. Security-scan found critical vulnerability
242
- 2. Quality-gate doesn't pass
243
- 3. Tests failing
244
- 4. Codebase-knowledge not updated
245
-
246
- ### VETO BEFORE MERGE
247
-
248
- 1. Docs not updated
249
- 2. Skeleton missing (if new component)
250
- 3. Changelog not updated
251
-
252
- ### WARNING (No veto)
253
-
254
- 1. Coverage below ideal (but critical tests exist)
255
- 2. Optional docs missing
256
-
257
- ---
258
-
259
- ## Quick Command
260
-
261
- ```bash
262
- # Run full validation
263
- bun run typecheck && bun run lint && bun run test && bun run test:e2e && bun run build
264
-
265
- # If all pass, manually verify:
266
- # - codebase-knowledge updated?
267
- # - docs updated?
268
- # - skeleton created?
269
- ```
270
-
271
- ---
272
-
273
- ## Critical Rules
274
-
275
- 1. **HAS VETO POWER** - Last barrier before commit
276
- 2. **VERIFIES EVERYTHING** - All skills, all rules
277
- 3. **NO EXCUSES** - Rule is rule
278
- 4. **DOCUMENTS VIOLATIONS** - For learning
279
-
280
- ---
281
-
282
- ## Version
283
-
284
- - **v2.0.0** - Generic template
1
+ ---
2
+ name: final-check
3
+ description: Final validation before commits. HAS VETO POWER. Activates when user says 'commit', 'ready to commit', 'finalize', 'done', or when workflow is near completion. Blocks if any validation fails.
4
+ allowed-tools: Read, Grep, Glob, Bash
5
+ ---
6
+
7
+ # Final Check
8
+
9
+ ## VETO POWER
10
+
11
+ This skill CAN and MUST block incomplete tasks.
12
+
13
+ ## When to Use
14
+
15
+ - Before any commit
16
+ - When user says task is "done"
17
+ - After all other agents completed
18
+
19
+ ## Mega Checklist
20
+
21
+ ### 1. Codebase Knowledge
22
+ - [ ] Domain consulted before implementing?
23
+ - [ ] Domain updated after implementing?
24
+ - [ ] Commit hash added?
25
+
26
+ ### 2. Docs Tracker
27
+ - [ ] Documentation updated?
28
+ - [ ] Changelog entry added?
29
+
30
+ ### 3. Test Coverage
31
+ - [ ] New files have tests?
32
+ - [ ] All tests pass?
33
+ - [ ] No `.skip()` added?
34
+
35
+ ### 4. Security Scan
36
+ - [ ] User ID from session?
37
+ - [ ] No sensitive data to frontend?
38
+ - [ ] Zod validation on routes?
39
+
40
+ ### 5. Quality Gate
41
+ - [ ] `bun run typecheck` passes?
42
+ - [ ] `bun run lint` passes?
43
+ - [ ] `bun run test` passes?
44
+ - [ ] `bun run build` passes?
45
+
46
+ ### 6. UI/UX (if applicable)
47
+ - [ ] Competitors researched?
48
+ - [ ] Accessibility validated?
49
+ - [ ] All viewports tested?
50
+
51
+ ## Quick Validation
52
+
53
+ ```bash
54
+ bun run typecheck && bun run lint && bun run test && bun run build
55
+ ```
56
+
57
+ ## Output
58
+
59
+ **APPROVED:** All checks pass ready to commit
60
+ **VETOED:** Violations found fix before commit
61
+
62
+ ## VETO Rules
63
+
64
+ ### Immediate VETO
65
+ - Security vulnerability found
66
+ - Tests failing
67
+ - Build failing
68
+ - Domain not updated
69
+
70
+ ### VETO Before Merge
71
+ - Docs not updated
72
+ - Changelog missing