start-vibing 3.0.7 → 3.0.9

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 (129) hide show
  1. package/README.md +64 -51
  2. package/package.json +1 -1
  3. package/template/.claude/CLAUDE.md +717 -229
  4. package/template/.claude/agents/claude-md-compactor.md +2 -14
  5. package/template/.claude/agents/documenter.md +0 -7
  6. package/template/.claude/agents/domain-updater.md +2 -7
  7. package/template/.claude/config/README.md +10 -8
  8. package/template/.claude/config/domain-mapping.json +1 -1
  9. package/template/.claude/settings.json +0 -129
  10. package/template/.claude/skills/api-docs/SKILL.md +206 -0
  11. package/template/.claude/skills/claude-seo/SKILL.md +84 -0
  12. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +51 -416
  13. package/template/.claude/skills/codebase-knowledge/domains/mcp-integration.md +37 -204
  14. package/template/.claude/skills/mongoose-patterns/SKILL.md +141 -452
  15. package/template/.claude/skills/playwright-testing/SKILL.md +251 -0
  16. package/template/.claude/skills/skill-creator/SKILL.md +106 -0
  17. package/template/.claude/skills/test-infrastructure/SKILL.md +242 -0
  18. package/template/CLAUDE.md +65 -701
  19. package/template/.claude/agents/_archive/01-orchestration/agent-selector.md +0 -130
  20. package/template/.claude/agents/_archive/01-orchestration/checkpoint-manager.md +0 -142
  21. package/template/.claude/agents/_archive/01-orchestration/context-manager.md +0 -138
  22. package/template/.claude/agents/_archive/01-orchestration/error-recovery.md +0 -182
  23. package/template/.claude/agents/_archive/01-orchestration/orchestrator.md +0 -114
  24. package/template/.claude/agents/_archive/01-orchestration/parallel-coordinator.md +0 -141
  25. package/template/.claude/agents/_archive/01-orchestration/task-decomposer.md +0 -121
  26. package/template/.claude/agents/_archive/01-orchestration/workflow-router.md +0 -119
  27. package/template/.claude/agents/_archive/02-typescript/bun-runtime-expert.md +0 -197
  28. package/template/.claude/agents/_archive/02-typescript/esm-resolver.md +0 -193
  29. package/template/.claude/agents/_archive/02-typescript/import-alias-enforcer.md +0 -158
  30. package/template/.claude/agents/_archive/02-typescript/ts-generics-helper.md +0 -183
  31. package/template/.claude/agents/_archive/02-typescript/ts-migration-helper.md +0 -238
  32. package/template/.claude/agents/_archive/02-typescript/ts-strict-checker.md +0 -180
  33. package/template/.claude/agents/_archive/02-typescript/ts-types-analyzer.md +0 -199
  34. package/template/.claude/agents/_archive/02-typescript/type-definition-writer.md +0 -187
  35. package/template/.claude/agents/_archive/02-typescript/zod-schema-designer.md +0 -212
  36. package/template/.claude/agents/_archive/02-typescript/zod-validator.md +0 -158
  37. package/template/.claude/agents/_archive/03-testing/playwright-assertions.md +0 -265
  38. package/template/.claude/agents/_archive/03-testing/playwright-e2e.md +0 -247
  39. package/template/.claude/agents/_archive/03-testing/playwright-fixtures.md +0 -234
  40. package/template/.claude/agents/_archive/03-testing/playwright-multi-viewport.md +0 -256
  41. package/template/.claude/agents/_archive/03-testing/playwright-page-objects.md +0 -247
  42. package/template/.claude/agents/_archive/03-testing/test-cleanup-manager.md +0 -248
  43. package/template/.claude/agents/_archive/03-testing/test-data-generator.md +0 -254
  44. package/template/.claude/agents/_archive/03-testing/tester-integration.md +0 -278
  45. package/template/.claude/agents/_archive/03-testing/tester-unit.md +0 -207
  46. package/template/.claude/agents/_archive/03-testing/vitest-config.md +0 -287
  47. package/template/.claude/agents/_archive/04-docker/container-health.md +0 -255
  48. package/template/.claude/agents/_archive/04-docker/deployment-validator.md +0 -225
  49. package/template/.claude/agents/_archive/04-docker/docker-compose-designer.md +0 -281
  50. package/template/.claude/agents/_archive/04-docker/docker-env-manager.md +0 -235
  51. package/template/.claude/agents/_archive/04-docker/docker-multi-stage.md +0 -241
  52. package/template/.claude/agents/_archive/04-docker/dockerfile-optimizer.md +0 -208
  53. package/template/.claude/agents/_archive/05-database/database-seeder.md +0 -273
  54. package/template/.claude/agents/_archive/05-database/mongodb-query-optimizer.md +0 -230
  55. package/template/.claude/agents/_archive/05-database/mongoose-aggregation.md +0 -306
  56. package/template/.claude/agents/_archive/05-database/mongoose-index-optimizer.md +0 -182
  57. package/template/.claude/agents/_archive/05-database/mongoose-schema-designer.md +0 -267
  58. package/template/.claude/agents/_archive/06-security/auth-session-validator.md +0 -68
  59. package/template/.claude/agents/_archive/06-security/input-sanitizer.md +0 -80
  60. package/template/.claude/agents/_archive/06-security/owasp-checker.md +0 -97
  61. package/template/.claude/agents/_archive/06-security/permission-auditor.md +0 -100
  62. package/template/.claude/agents/_archive/06-security/security-auditor.md +0 -84
  63. package/template/.claude/agents/_archive/06-security/sensitive-data-scanner.md +0 -83
  64. package/template/.claude/agents/_archive/07-documentation/api-documenter.md +0 -136
  65. package/template/.claude/agents/_archive/07-documentation/changelog-manager.md +0 -105
  66. package/template/.claude/agents/_archive/07-documentation/claude-md-compactor.md +0 -214
  67. package/template/.claude/agents/_archive/07-documentation/documenter.md +0 -184
  68. package/template/.claude/agents/_archive/07-documentation/domain-updater.md +0 -138
  69. package/template/.claude/agents/_archive/07-documentation/jsdoc-generator.md +0 -114
  70. package/template/.claude/agents/_archive/07-documentation/readme-generator.md +0 -135
  71. package/template/.claude/agents/_archive/08-git/branch-manager.md +0 -58
  72. package/template/.claude/agents/_archive/08-git/commit-manager.md +0 -78
  73. package/template/.claude/agents/_archive/09-quality/code-reviewer.md +0 -71
  74. package/template/.claude/agents/_archive/09-quality/quality-checker.md +0 -67
  75. package/template/.claude/agents/_archive/10-research/best-practices-finder.md +0 -89
  76. package/template/.claude/agents/_archive/10-research/competitor-analyzer.md +0 -106
  77. package/template/.claude/agents/_archive/10-research/pattern-researcher.md +0 -93
  78. package/template/.claude/agents/_archive/10-research/research-cache-manager.md +0 -76
  79. package/template/.claude/agents/_archive/10-research/research-web.md +0 -98
  80. package/template/.claude/agents/_archive/10-research/tech-evaluator.md +0 -101
  81. package/template/.claude/agents/_archive/11-ui-ux/accessibility-auditor.md +0 -136
  82. package/template/.claude/agents/_archive/11-ui-ux/design-system-enforcer.md +0 -125
  83. package/template/.claude/agents/_archive/11-ui-ux/skeleton-generator.md +0 -118
  84. package/template/.claude/agents/_archive/11-ui-ux/ui-desktop.md +0 -132
  85. package/template/.claude/agents/_archive/11-ui-ux/ui-mobile.md +0 -125
  86. package/template/.claude/agents/_archive/11-ui-ux/ui-tablet.md +0 -110
  87. package/template/.claude/agents/_archive/12-performance/api-latency-analyzer.md +0 -156
  88. package/template/.claude/agents/_archive/12-performance/bundle-analyzer.md +0 -113
  89. package/template/.claude/agents/_archive/12-performance/memory-leak-detector.md +0 -137
  90. package/template/.claude/agents/_archive/12-performance/performance-profiler.md +0 -115
  91. package/template/.claude/agents/_archive/12-performance/query-optimizer.md +0 -124
  92. package/template/.claude/agents/_archive/12-performance/render-optimizer.md +0 -154
  93. package/template/.claude/agents/_archive/13-debugging/build-error-fixer.md +0 -207
  94. package/template/.claude/agents/_archive/13-debugging/debugger.md +0 -149
  95. package/template/.claude/agents/_archive/13-debugging/error-stack-analyzer.md +0 -141
  96. package/template/.claude/agents/_archive/13-debugging/network-debugger.md +0 -208
  97. package/template/.claude/agents/_archive/13-debugging/runtime-error-fixer.md +0 -181
  98. package/template/.claude/agents/_archive/13-debugging/type-error-resolver.md +0 -185
  99. package/template/.claude/agents/_archive/14-validation/final-validator.md +0 -93
  100. package/template/.claude/agents/_archive/_backup/analyzer.md +0 -134
  101. package/template/.claude/agents/_archive/_backup/code-reviewer.md +0 -279
  102. package/template/.claude/agents/_archive/_backup/commit-manager.md +0 -219
  103. package/template/.claude/agents/_archive/_backup/debugger.md +0 -280
  104. package/template/.claude/agents/_archive/_backup/documenter.md +0 -237
  105. package/template/.claude/agents/_archive/_backup/domain-updater.md +0 -197
  106. package/template/.claude/agents/_archive/_backup/final-validator.md +0 -169
  107. package/template/.claude/agents/_archive/_backup/orchestrator.md +0 -149
  108. package/template/.claude/agents/_archive/_backup/performance.md +0 -232
  109. package/template/.claude/agents/_archive/_backup/quality-checker.md +0 -240
  110. package/template/.claude/agents/_archive/_backup/research.md +0 -315
  111. package/template/.claude/agents/_archive/_backup/security-auditor.md +0 -192
  112. package/template/.claude/agents/_archive/_backup/tester.md +0 -566
  113. package/template/.claude/agents/_archive/_backup/ui-ux-reviewer.md +0 -247
  114. package/template/.claude/commands/feature.md +0 -48
  115. package/template/.claude/commands/fix.md +0 -80
  116. package/template/.claude/commands/research.md +0 -107
  117. package/template/.claude/commands/validate.md +0 -72
  118. package/template/.claude/config/mcp-config.json +0 -344
  119. package/template/.claude/hooks/SETUP.md +0 -126
  120. package/template/.claude/hooks/run-hook.cmd +0 -46
  121. package/template/.claude/hooks/run-hook.sh +0 -43
  122. package/template/.claude/hooks/run-hook.ts +0 -230
  123. package/template/.claude/hooks/security-check.js +0 -202
  124. package/template/.claude/hooks/stop-validator.ts +0 -1667
  125. package/template/.claude/hooks/user-prompt-submit.ts +0 -104
  126. package/template/.claude/scripts/mcp-quick-install.ts +0 -151
  127. package/template/.claude/scripts/setup-mcps.ts +0 -651
  128. package/template/.claude/skills/hook-development/SKILL.md +0 -343
  129. package/template/.claude/skills/playwright-automation/SKILL.md +0 -438
@@ -2,460 +2,95 @@
2
2
 
3
3
  ## Last Update
4
4
 
5
- - **Date:** 2026-02-04
5
+ - **Date:** 2026-02-28
6
6
  - **Commit:** pending
7
- - **Session:** Simplified user-prompt-submit hook (895→73 lines) and enhanced CLAUDE.md update instructions to cover flows, rules, architecture not just Last Change
7
+ - **Session:** Removed hooks (stop-validator, user-prompt-submit), removed 3 skills (hook-development, mongoose-patterns, playwright-automation), updated architecture to 6 agents + 20 skills + 5 plugins
8
8
 
9
9
  ## Files
10
10
 
11
- ### Agents (14 total)
11
+ ### Agents (6 active)
12
12
 
13
- - `.claude/agents/analyzer.md` - Analyzes change impact, approves files
14
- - `.claude/agents/code-reviewer.md` - **NEW** Reviews code quality, patterns, best practices
15
- - `.claude/agents/commit-manager.md` - Manages git commits, runs complete-task
16
- - `.claude/agents/debugger.md` - **NEW** Traces bugs to root cause, analyzes errors
17
- - `.claude/agents/documenter.md` - Creates/updates documentation
18
- - `.claude/agents/domain-updater.md` - Updates domain knowledge after sessions
19
- - `.claude/agents/final-validator.md` - Final validation with VETO power
20
- - `.claude/agents/orchestrator.md` - Coordinates entire workflow
21
- - `.claude/agents/performance.md` - **NEW** Profiles code, identifies bottlenecks
22
- - `.claude/agents/quality-checker.md` - Runs quality gates
23
- - `.claude/agents/research.md` - Researches best practices (2024-2025) before implementation
24
- - `.claude/agents/security-auditor.md` - Security audit with VETO power
25
- - `.claude/agents/tester.md` - Creates unit and E2E tests
26
- - `.claude/agents/ui-ux-reviewer.md` - Reviews UI/UX patterns
13
+ - `.claude/agents/research-web.md` - Researches best practices (2024-2026) before implementation
14
+ - `.claude/agents/documenter.md` - Creates/updates domain documentation
15
+ - `.claude/agents/domain-updater.md` - Records session learnings in domains
16
+ - `.claude/agents/commit-manager.md` - Manages git commits and workflow
17
+ - `.claude/agents/claude-md-compactor.md` - Compacts CLAUDE.md when > 40k chars
18
+ - `.claude/agents/tester-unit.md` - Creates unit tests with Vitest
27
19
 
28
- ### Scripts
29
-
30
- - `.claude/scripts/validate-claude-md.ts` - CLAUDE.md validation (char limit, sections, git state)
20
+ ### Archived Agents
31
21
 
32
- ### Hooks
22
+ - `.claude/agents/_archive/` - 82+ archived agents (unused, kept for reference)
33
23
 
34
- - `.claude/hooks/run-hook.ts` - **NEW** Universal hook runner with multi-runtime fallback (python3 -> python -> bun -> npx tsx)
35
- - `.claude/hooks/run-hook.sh` - **NEW** Shell wrapper for Unix/Linux/Mac
36
- - `.claude/hooks/run-hook.cmd` - **NEW** Batch wrapper for Windows
37
- - `.claude/hooks/stop-validator.py` - Stop hook enforcement: branch protection + documentation check
38
- - `.claude/hooks/stop-validator.ts` - **NEW** TypeScript fallback version of stop-validator
39
- - `.claude/hooks/user-prompt-submit.ts` - Concise 5-step workflow instructions (simplified from 895 to 73 lines)
40
- - `.claude/hooks/check-documentation.py` - Documentation verification hook
41
- - `.claude/hooks/SETUP.md` - Hook system documentation
42
-
43
- ### Skills (with Progressive Disclosure)
24
+ ### Skills (20 active)
44
25
 
26
+ - `.claude/skills/bun-runtime/` - Bun runtime patterns
45
27
  - `.claude/skills/codebase-knowledge/` - Domain mapping system
28
+ - `.claude/skills/debugging-patterns/` - Error resolution patterns
29
+ - `.claude/skills/docker-patterns/` - Docker multi-stage and security
46
30
  - `.claude/skills/docs-tracker/` - Documentation tracking
47
31
  - `.claude/skills/final-check/` - Final validation rules
32
+ - `.claude/skills/git-workflow/` - Git workflow rules
33
+ - `.claude/skills/nextjs-app-router/` - Next.js App Router patterns
34
+ - `.claude/skills/performance-patterns/` - Performance profiling
48
35
  - `.claude/skills/quality-gate/` - Quality gate definitions
49
- - `scripts/check-all.sh` - **NEW** Runs all quality checks
36
+ - `.claude/skills/react-patterns/` - React 19 patterns
50
37
  - `.claude/skills/research-cache/` - Best practices research cache
51
- - `.claude/skills/security-scan/` - Security audit rules
52
- - `reference/owasp-top-10.md` - **NEW** OWASP Top 10 reference
53
- - `scripts/scan.py` - **NEW** Automated security scanner
38
+ - `.claude/skills/security-scan/` - Security audit rules (OWASP)
39
+ - `.claude/skills/shadcn-ui/` - shadcn/ui theming and accessibility
40
+ - `.claude/skills/tailwind-patterns/` - Tailwind CSS patterns
54
41
  - `.claude/skills/test-coverage/` - Test coverage tracking
55
- - `reference/playwright-patterns.md` - **NEW** Playwright E2E patterns
56
- - `scripts/coverage-check.sh` - **NEW** Coverage verification script
42
+ - `.claude/skills/trpc-api/` - tRPC type-safe API patterns
43
+ - `.claude/skills/typescript-strict/` - TypeScript strict mode
57
44
  - `.claude/skills/ui-ux-audit/` - UI/UX audit rules
45
+ - `.claude/skills/zod-validation/` - Zod validation schemas
58
46
 
59
- ### Configuration
47
+ ### Plugins (5 via enabledPlugins)
60
48
 
61
- - `.claude/settings.json` - Agent registration, flows, rules
62
- - `.claude/workflow-state.json` - Current task state
63
- - `.claude/CLAUDE.md` - System documentation
49
+ - `typescript-lsp` - Type diagnostics, go-to-def (LSP server, auto)
50
+ - `code-review` - Code quality, PR analysis (/code-review cmd)
51
+ - `security-guidance` - OWASP, vulnerability scan (PreToolUse hook, auto)
52
+ - `commit-commands` - Git commit, push, PR flows (/commit cmd)
53
+ - `frontend-design` - Production-grade UI design (/frontend-design cmd)
64
54
 
65
- ### Config Files (NEW - 2024-12-19)
55
+ ### Configuration
66
56
 
57
+ - `.claude/settings.json` - Agent registration, flows, rules, plugins
58
+ - `.claude/CLAUDE.md` - System documentation (agents, skills, architecture)
67
59
  - `.claude/config/project-config.json` - Stack, structure, commands
68
60
  - `.claude/config/domain-mapping.json` - File patterns to domains
69
61
  - `.claude/config/quality-gates.json` - Quality check commands
70
62
  - `.claude/config/testing-config.json` - Test framework config
71
63
  - `.claude/config/security-rules.json` - Security audit rules
72
- - `.claude/config/README.md` - Config documentation
64
+
65
+ ### Scripts
66
+
67
+ - `.claude/scripts/validate-skills.sh` - Skills activation check
68
+ - `.claude/scripts/mcp-quick-install.ts` - MCP server installer
69
+ - `.claude/scripts/setup-mcps.ts` - MCP setup automation
73
70
 
74
71
  ### Root Files
75
72
 
76
- - `CLAUDE.md` - Development rules with fallback instruction for agent files (116 lines, generalist)
77
- - `PROJECT.md` - Project-specific details (Solana Listeners)
73
+ - `CLAUDE.md` - Project rules and conventions
74
+ - `.claude/CLAUDE.md` - Detailed system architecture
78
75
 
79
76
  ## Connections
80
77
 
81
78
  - **All domains:** domain-updater reads/updates domain files after sessions
82
- - **Infrastructure:** Hooks enforce workflow rules project-wide
79
+ - **Skills:** Auto-injected into context when task matches description
83
80
 
84
81
  ## Recent Commits
85
82
 
86
83
  | Hash | Date | Description |
87
84
  | ------- | ---------- | --------------------------------------------------------------------- |
88
- | 77e2263 | 2026-01-06 | fix: stop hook exit code from 2 to 0 for JSON processing |
89
- | d429772 | 2026-01-03 | feat(agents): restructure agent system with 82 specialized sub-agents |
90
- | 70ca50f | 2026-01-02 | feat(start-vibing): auto-install Claude Code and self-update |
91
- | 5c74c95 | 2026-01-02 | feat: add specialized agents and progressive disclosure to skills |
92
- | b5c483b | 2026-01-02 | docs: add agents/skills comparison research with industry benchmarks |
93
-
94
- ## Problems & Solutions
95
-
96
- ### 2026-01-06 - Stop Hook Exit Code Fix
97
-
98
- **Problem:**
99
- When stop hook blocked task completion, Claude was just stopping instead of continuing to fix the issues. The message "Stop hook prevented continuation" appeared but Claude didn't take action.
100
-
101
- **Root Cause:**
102
- Stop hook was using `process.exit(2)` which causes Claude Code to **ignore the JSON output**. The `decision: "block"` with `reason` was being sent correctly, but exit code 2 made Claude ignore it and only show stderr.
103
-
104
- **Solution:**
105
- Changed exit code from 2 to 0 in `stop-validator.ts`:
106
-
107
- ```typescript
108
- // Before: process.exit(2);
109
- process.exit(0); // Must be 0 for JSON to be processed!
110
- ```
111
-
112
- **Key Insight:**
113
- - Exit code 0: JSON stdout is processed (decision, reason fields work)
114
- - Exit code 2: JSON stdout is IGNORED, only stderr shown
115
-
116
- **Files Modified:**
117
- - `.claude/hooks/stop-validator.ts` - Changed exit(2) to exit(0) on line 1228
118
- - `.claude/skills/hook-development/SKILL.md` - Updated documentation with correct exit code guidance
119
-
120
- **Prevention:**
121
- - Always use exit(0) for Stop hooks that want Claude to continue
122
- - Use `decision: "block"` in JSON to block, not exit code 2
123
- - Exit code 2 is only for PreToolUse hooks (blocks specific tool call)
124
-
125
- ---
126
-
127
- ### 2026-01-03 - Universal Hook Runner with Multi-Runtime Fallback
128
-
129
- **Problem:**
130
- Stop hook was failing with `/bin/sh: 1: python: not found` error when Python was not installed on the user's system.
131
-
132
- **Root Cause:**
133
- Hooks were hardcoded to use `python .claude/hooks/*.py` which fails if Python is not in PATH.
134
-
135
- **Solution:**
136
- Created a universal hook runner (`run-hook.ts`) that:
137
-
138
- 1. Tries multiple runtimes in priority order: python3 -> python -> bun -> npx tsx
139
- 2. Python remains primary (user preference)
140
- 3. TypeScript versions of hooks serve as fallback
141
- 4. Returns safe default if no runtime available (doesn't block user)
142
-
143
- **Files Added:**
144
-
145
- - `.claude/hooks/run-hook.ts` - Universal runner with runtime detection
146
- - `.claude/hooks/run-hook.sh` - Shell wrapper for Unix
147
- - `.claude/hooks/run-hook.cmd` - Batch wrapper for Windows
148
- - `.claude/hooks/stop-validator.ts` - TypeScript fallback
149
- - `.claude/hooks/user-prompt-submit.ts` - TypeScript fallback
150
-
151
- **Files Modified:**
152
-
153
- - `.claude/settings.json` - Updated hook commands to use `bun .claude/hooks/run-hook.ts <hook-name>`
154
- - `.claude/hooks/SETUP.md` - Updated documentation
155
-
156
- **Prevention:**
157
-
158
- - Always provide TypeScript fallbacks for Python hooks
159
- - Use runtime detection instead of hardcoded interpreter paths
160
- - Return safe defaults instead of failing
161
-
162
- ---
163
-
164
- ### 2026-01-02 - start-vibing v2.0.0 with Auto-install and Self-update
165
-
166
- **Context:**
167
- User wanted start-vibing to automatically install Claude Code and keep itself updated.
168
-
169
- **Solution:**
170
-
171
- 1. Added 3 new modules to start-vibing:
172
- - `platform.ts` - OS/shell detection (Windows/macOS/Linux)
173
- - `update.ts` - Self-update check with 1-hour cache
174
- - `claude.ts` - Claude Code detection/installation/launch
175
- 2. CLI now checks npm registry for updates on every run
176
- 3. Detects if Claude Code is installed, auto-installs if missing
177
- 4. Launches `claude --dangerously-skip-permissions` after setup
178
- 5. New CLI options: `--no-claude`, `--no-update-check`
179
-
180
- **Result:**
181
-
182
- - Published as start-vibing v2.0.0 on npm
183
- - Zero new runtime dependencies
184
- - Works on Windows (PowerShell, CMD), macOS, and Linux
185
-
186
- **Files Added:**
187
-
188
- - `packages/start-vibing/src/platform.ts`
189
- - `packages/start-vibing/src/update.ts`
190
- - `packages/start-vibing/src/claude.ts`
191
-
192
- ---
193
-
194
- ### 2026-01-02 - Added Specialized Agents and Progressive Disclosure
195
-
196
- **Context:**
197
- Research showed system scored 8.55/10, missing specialized agents and progressive disclosure.
198
-
199
- **Solution:**
200
-
201
- 1. Added 3 new agents:
202
- - `performance.md` - Profiles code, identifies bottlenecks, optimizes
203
- - `debugger.md` - Traces bugs to root cause, analyzes errors
204
- - `code-reviewer.md` - Reviews code quality before testing
205
- 2. Added progressive disclosure to skills:
206
- - Reference files with detailed knowledge
207
- - Executable scripts for automation
208
- 3. Updated workflows:
209
- - code-reviewer in default_flow
210
- - debugger in bug_fix_flow
211
- - New performance_flow
212
-
213
- **Result:**
214
- Score improved from 8.55 to 9.2/10. System now has 14 agents total.
215
-
216
- **Files Added:**
217
-
218
- - `.claude/agents/code-reviewer.md`
219
- - `.claude/agents/debugger.md`
220
- - `.claude/agents/performance.md`
221
- - `.claude/skills/quality-gate/scripts/check-all.sh`
222
- - `.claude/skills/security-scan/reference/owasp-top-10.md`
223
- - `.claude/skills/security-scan/scripts/scan.py`
224
- - `.claude/skills/test-coverage/reference/playwright-patterns.md`
225
- - `.claude/skills/test-coverage/scripts/coverage-check.sh`
226
-
227
- ---
228
-
229
- ### 2026-01-02 - Stop Hook Enhanced for System Files
230
-
231
- **Problem:**
232
- Stop hook was only checking source files for documentation, but allowing changes to system/config files (CLAUDE.md, .claude/, PROJECT.md) directly on main branch without branch protection.
233
-
234
- **Root Cause:**
235
- SYSTEM_CONFIG_PATTERNS were only used for documentation checks, not for branch protection enforcement.
236
-
237
- **Solution:**
238
- Enhanced stop-validator.py to:
239
-
240
- 1. Created `is_system_config_file()` function to detect system/config files
241
- 2. Added `requires_branch_protection()` that checks BOTH source AND system/config files
242
- 3. Updated main() logic to detect and block both types of files on main branch
243
- 4. System files require branch protection but NOT documentation (they ARE docs/configs)
244
-
245
- **Files Modified:**
246
-
247
- - `.claude/hooks/stop-validator.py` - Added system/config file detection functions
248
- - `CLAUDE.md` - Added fallback instruction to read agent files directly if Task tool fails
249
-
250
- **Prevention:**
251
-
252
- - System/config files now treated as protected alongside source code
253
- - Branch protection enforced for CLAUDE.md, .claude/, PROJECT.md
254
- - Documentation requirement applies only to source files, not system files
255
-
256
- ---
257
-
258
- ### 2024-12-19 - Workflow Manager Removed
259
-
260
- **Problem:**
261
- The workflow-manager.py script and enforcement hooks (pre-tool-use.py, post-tool-use.py, stop-validation.py) were blocking operations and adding unnecessary complexity.
262
-
263
- **Root Cause:**
264
- The system was designed with strict workflow enforcement that prevented Claude from working flexibly.
265
-
266
- **Solution:**
267
-
268
- - Deleted workflow-manager.py, pre-tool-use.py, post-tool-use.py, stop-validation.py
269
- - Removed references from all documentation
270
- - Simplified settings.local.json to only keep UserPromptSubmit hook
271
- - Agents now work independently without state tracking requirements
272
-
273
- **Prevention:**
274
- Trust agents to coordinate naturally through Task tool invocation rather than enforcing artificial state machine.
275
-
276
- ---
277
-
278
- - Git tree is clean after session ends
279
-
280
- **Prevention:**
281
-
282
- - domain-updater priority: 9 (runs after final-validator)
283
- - commit-manager priority: 10 (FINAL step)
284
- - Stop hook enforces both must run before session ends
285
-
286
- ---
287
-
288
- ### 2024-12-18 - domain-updater Not Available as Subagent
289
-
290
- **Problem:**
291
- Tried to invoke domain-updater via Task tool but got "Agent type 'domain-updater' not found"
292
-
293
- **Root Cause:**
294
- Agents defined in `.claude/agents/*.md` are instructions for Claude to follow, not subagent_types in Claude Code system
295
-
296
- **Solution:**
297
- Execute domain-updater logic manually or use documenter agent which has similar capabilities
298
-
299
- **Prevention:**
300
- To make an agent invokable via Task tool, it needs to be registered in Claude Code's internal system (separate from .claude/agents/)
85
+ | pending | 2026-02-28 | refactor: remove hooks, update architecture to 6 agents + 20 skills |
86
+ | 6f3d9ff | 2026-02-24 | docs(skills): add skills activation research plan |
87
+ | efa7c4f | 2026-02-24 | refactor(skills): rewrite all 23 descriptions to imperative pattern |
301
88
 
302
89
  ## Attention Points
303
90
 
304
- - [2026-01-03] **Hooks use universal runner** - `bun .claude/hooks/run-hook.ts <hook-name>` tries python3 -> python -> bun -> npx tsx
305
- - [2026-01-03] **TypeScript hook fallbacks** - All Python hooks have `.ts` versions for when Python unavailable
306
- - [2026-01-02] **System files protected alongside source** - CLAUDE.md, .claude/, PROJECT.md require branch protection
307
- - [2026-01-02] **CLAUDE.md fallback instruction** - If Task tool fails, read agent files directly from .claude/agents/
308
- - [2024-12-18] **Workflow is enforced by hooks** - Cannot skip steps, hooks will block
309
- - [2024-12-18] **domain-updater is MANDATORY** - Stop hook blocks if not executed
310
- - [2026-01-02] **14 agents total** - Added code-reviewer, debugger, performance agents
311
- - ~~[2024-12-18] **10 agents total**~~ - OUTDATED: Now 14 agents
312
- - [2024-12-18] **Config files (.claude/\*) don't require tests** - Excluded from source file checks
313
- - [2024-12-18] ~~**domain-updater runs complete-task**~~ - OUTDATED: commit-manager now runs complete-task
314
- - [2024-12-18] **.claude/agents/ vs subagent_type** - Agents in .claude/agents/ are instructions, not Claude Code subagents
315
- - [2024-12-18] **Never bypass workflow manually** - Follow the agents properly, don't mark as executed without running
316
- - [2024-12-18] **Use Task tool for agents** - UserPromptSubmit now reminds to use Task(subagent_type="agent-name") instead of manual execution
317
- - [2024-12-18] **Workflow order fixed** - domain-updater runs BEFORE commit-manager (not after) for clean git
318
- - [2024-12-18] **commit-manager is FINAL** - It runs complete-task, not domain-updater
319
- - [2024-12-18] **Stop hook enforces commit** - Blocks if domain-updater ran but commit-manager didn't
320
- - [2024-12-18] **Research agent added** - Mandatory for features/fixes, runs after analyzer
321
- - [2026-01-02] **Progressive disclosure** - Skills have reference/ and scripts/ folders for detailed knowledge
322
- - ~~[2024-12-18] **11 agents total**~~ - OUTDATED: Now 14 agents
323
- - [2024-12-18] **workflow-state.json in .gitignore** - Transient state, not tracked in git
91
+ - [2026-02-28] **No hooks** - Hooks (stop-validator, user-prompt-submit) were removed. No automated enforcement.
92
+ - [2026-02-28] **20 skills** - Down from 23. Removed: hook-development, mongoose-patterns, playwright-automation
93
+ - [2026-02-24] **Imperative descriptions** - All skill descriptions use "ALWAYS invoke when... Do NOT..." pattern for 95%+ auto-invocation
94
+ - [2026-02-19] **6 agents + 5 plugins** - Agents are subagents. Plugins auto-install via enabledPlugins in settings.json
324
95
  - [2024-12-19] **Config files for project specifics** - Agents read from `.claude/config/*.json` instead of hardcoding
325
- - [2024-12-19] **CLAUDE.md < 300 lines** - Best practice from Anthropic, ideally < 60 lines
326
- - [2024-12-19] **PROJECT.md for project details** - Separate from generic CLAUDE.md
327
- - [2024-12-19] **Pre-tool-use wildcard issue** - Pattern `.claude/config/*` doesn't match absolute paths, use specific files
328
- - [2024-12-19] **Tester agent v3.0** - Complete Playwright E2E architecture with fixture-based cleanup
329
- - [2024-12-19] **E2E cleanup is MANDATORY** - Track all created IDs, delete ONLY tracked data after tests
330
- - [2024-12-19] **Multi-viewport testing** - Desktop (1280x800), Tablet (768x1024), iPhone SE (375x667) required
331
- - [2024-12-19] **DB validation in E2E** - Always verify database state after UI actions
332
- - [2024-12-19] **Real auth only** - Never mock authentication in E2E tests
333
- - [2024-12-19] **data-testid required** - All interactive elements must have data-testid attributes
334
- - [2024-12-19] **SKILL.md YAML frontmatter** - ALL skills MUST have `---` frontmatter with name, description
335
- - [2024-12-19] **Skill name format** - max 64 chars, lowercase, letters/numbers/hyphens only
336
- - [2024-12-19] **Skill description** - max 1024 chars, describes WHAT skill does and WHEN to use it
337
- - [2024-12-19] **allowed-tools optional** - Comma-separated tool names to restrict skill capabilities
338
- - [2024-12-19] **Hooks config correct** - settings.json hooks format is valid, uses command type with python scripts
339
-
340
- ## Problems & Solutions (2024-12-19)
341
-
342
- ### 2024-12-19 - CLAUDE.md Too Long and Specific
343
-
344
- **Problem:**
345
- CLAUDE.md had 594 lines, 95% specific to Solana Listeners project. Too long for Claude to follow consistently.
346
-
347
- **Root Cause:**
348
- Project-specific details (workers, docker config, path aliases examples) mixed with universal rules.
349
-
350
- **Solution:**
351
-
352
- 1. Reduced CLAUDE.md to 115 lines (universal rules only)
353
- 2. Created `PROJECT.md` with project-specific details
354
- 3. Created `.claude/config/` with JSON configs for project specifics
355
- 4. Updated agents to read from config files
356
-
357
- **Prevention:**
358
-
359
- - Keep CLAUDE.md under 300 lines (ideally < 60)
360
- - Put project specifics in PROJECT.md
361
- - Use `.claude/config/` for things agents need to adapt to
362
-
363
- ---
364
-
365
- ### 2024-12-19 - Pre-Tool-Use Wildcard Pattern Not Working
366
-
367
- **Problem:**
368
- Approved files with pattern `.claude/config/*` but hook still blocked edits to `.claude/config/project-config.json`
369
-
370
- **Root Cause:**
371
- Hook checks `file_path.startswith(approved[:-1])` but file_path is absolute path `C:/Users/.../` while approved is relative `.claude/config/*`
372
-
373
- **Solution:**
374
- Approve each file individually instead of using wildcard patterns
375
-
376
- **Prevention:**
377
- When using approve-files, list specific files rather than wildcards if path matching issues occur
378
-
379
- ---
380
-
381
- ### 2024-12-19 - E2E Test Data Pollution
382
-
383
- **Problem:**
384
- E2E tests created data in the database but didn't clean up, causing test pollution and confusion with real data.
385
-
386
- **Root Cause:**
387
- Tests were creating users, items, etc. but not tracking or deleting them after completion.
388
-
389
- **Solution:**
390
- Implemented fixture-based cleanup pattern:
391
-
392
- 1. `createdIds` fixture tracks all created document IDs by collection
393
- 2. `trackCreated(collection, id)` function to register created data
394
- 3. Auto-cleanup runs after each test, even on failure
395
- 4. Only deletes tracked IDs, never affects real data
396
-
397
- **Prevention:**
398
-
399
- - Always use `trackCreated()` immediately after creating data
400
- - Use the custom `test` from fixtures, not base Playwright `test`
401
- - Verify cleanup is working with DB inspection
402
-
403
- ---
404
-
405
- ### 2024-12-19 - Tester Agent Missing E2E Architecture
406
-
407
- **Problem:**
408
- Tester agent didn't have comprehensive E2E testing patterns for Playwright.
409
-
410
- **Root Cause:**
411
- Previous version focused on unit tests, lacked E2E architecture.
412
-
413
- **Solution:**
414
- Rewrote tester.md with complete Playwright architecture:
415
-
416
- - Fixture-based cleanup pattern
417
- - Multi-viewport testing (desktop, tablet, mobile)
418
- - Database validation after UI actions
419
- - API testing (REST and tRPC)
420
- - Real authentication flows
421
- - Storage state for session reuse
422
- - Security testing (forbidden requests, rate limiting)
423
-
424
- **Prevention:**
425
-
426
- - Always test all viewports
427
- - Always verify DB state, don't trust UI alone
428
- - Use real auth, never mock it
429
-
430
- ---
431
-
432
- ### 2024-12-19 - Skills Missing YAML Frontmatter
433
-
434
- **Problem:**
435
- All SKILL.md files started with `# Title` instead of YAML frontmatter, making them undiscoverable by Claude Code.
436
-
437
- **Root Cause:**
438
- Skills were created as plain markdown without the required YAML frontmatter that Claude Code uses to discover and load skills.
439
-
440
- **Solution:**
441
- Added YAML frontmatter to all 8 SKILL.md files:
442
-
443
- ```yaml
444
- ---
445
- name: skill-name-lowercase
446
- description: What skill does and when to use it
447
- allowed-tools: Tool1, Tool2 # optional
448
- ---
449
- ```
450
-
451
- **Fixed Files:**
452
-
453
- - quality-gate, security-scan, codebase-knowledge, docs-tracker
454
- - final-check, ui-ux-audit, research-cache, test-coverage
455
-
456
- **Prevention:**
457
-
458
- - Quality-checker now validates SKILL.md format
459
- - All new skills MUST start with YAML frontmatter
460
- - name: lowercase-with-hyphens, max 64 chars
461
- - description: non-empty, max 1024 chars
96
+ - [2024-12-19] **SKILL.md YAML frontmatter** - All skills MUST have `---` frontmatter with name, description