start-vibing 1.1.2 → 1.1.4

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 (38) hide show
  1. package/package.json +1 -1
  2. package/template/.claude/CLAUDE.md +129 -168
  3. package/template/.claude/agents/analyzer.md +0 -14
  4. package/template/.claude/agents/commit-manager.md +0 -19
  5. package/template/.claude/agents/documenter.md +0 -10
  6. package/template/.claude/agents/domain-updater.md +194 -200
  7. package/template/.claude/agents/final-validator.md +0 -18
  8. package/template/.claude/agents/orchestrator.md +36 -34
  9. package/template/.claude/agents/quality-checker.md +0 -24
  10. package/template/.claude/agents/research.md +299 -262
  11. package/template/.claude/agents/security-auditor.md +1 -14
  12. package/template/.claude/agents/tester.md +0 -8
  13. package/template/.claude/agents/ui-ux-reviewer.md +80 -18
  14. package/template/.claude/commands/feature.md +48 -102
  15. package/template/.claude/config/README.md +30 -30
  16. package/template/.claude/config/project-config.json +53 -53
  17. package/template/.claude/config/quality-gates.json +46 -46
  18. package/template/.claude/config/security-rules.json +45 -45
  19. package/template/.claude/config/testing-config.json +168 -168
  20. package/template/.claude/hooks/SETUP.md +52 -181
  21. package/template/.claude/hooks/user-prompt-submit.py +184 -46
  22. package/template/.claude/settings.json +0 -39
  23. package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -145
  24. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +260 -321
  25. package/template/.claude/skills/docs-tracker/SKILL.md +239 -239
  26. package/template/.claude/skills/final-check/SKILL.md +284 -284
  27. package/template/.claude/skills/quality-gate/SKILL.md +278 -278
  28. package/template/.claude/skills/research-cache/SKILL.md +207 -207
  29. package/template/.claude/skills/security-scan/SKILL.md +206 -206
  30. package/template/.claude/skills/test-coverage/SKILL.md +441 -441
  31. package/template/.claude/skills/ui-ux-audit/SKILL.md +254 -254
  32. package/template/.claude/config/domain-mapping.json +0 -26
  33. package/template/.claude/hooks/post-tool-use.py +0 -155
  34. package/template/.claude/hooks/pre-tool-use.py +0 -159
  35. package/template/.claude/hooks/stop-validation.py +0 -155
  36. package/template/.claude/hooks/validate-commit.py +0 -200
  37. package/template/.claude/hooks/workflow-manager.py +0 -350
  38. package/template/.claude/workflow-state.schema.json +0 -200
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-vibing",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Setup Claude Code agents, skills, and hooks in your project. Smart copy that preserves your custom domains and configurations.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,168 +1,129 @@
1
- # Claude Development System - Agent Context
2
-
3
- This file provides context for all agents. For user-facing rules, see `/CLAUDE.md`.
4
-
5
- ---
6
-
7
- ## System Architecture
8
-
9
- ```
10
- .claude/
11
- ├── agents/ # 11 specialized agents (READ before acting)
12
- ├── skills/ # 8 skill systems with cache
13
- ├── config/ # Project-specific configuration
14
- ├── commands/ # Slash commands
15
- └── hooks/ # Security hooks
16
- ```
17
-
18
- ---
19
-
20
- ## Configuration Files
21
-
22
- Project-specific settings are in `.claude/config/`:
23
-
24
- | File | Purpose |
25
- | ---------------------- | ------------------------------------ |
26
- | `project-config.json` | Stack, structure, commands |
27
- | `domain-mapping.json` | File patterns to domains |
28
- | `quality-gates.json` | Quality check commands |
29
- | `testing-config.json` | Test framework and conventions |
30
- | `security-rules.json` | Security audit rules |
31
-
32
- **RULE:** Agents MUST read config files before acting. Do NOT hardcode project specifics.
33
-
34
- ---
35
-
36
- ## Agent → Skill Mapping
37
-
38
- | Agent | Primary Skill | Secondary |
39
- | ---------------- | ------------------ | -------------------------------- |
40
- | analyzer | codebase-knowledge | - |
41
- | research | research-cache | codebase-knowledge |
42
- | documenter | docs-tracker | codebase-knowledge |
43
- | tester | test-coverage | - |
44
- | ui-ux-reviewer | ui-ux-audit | - |
45
- | security-auditor | security-scan | - |
46
- | quality-checker | quality-gate | - |
47
- | final-validator | final-check | ALL |
48
- | commit-manager | workflow-state | docs-tracker, codebase-knowledge |
49
- | domain-updater | codebase-knowledge | docs-tracker |
50
-
51
- ---
52
-
53
- ## Execution Protocol
54
-
55
- ### Before ANY implementation:
56
-
57
- 1. **Start task** via `workflow-manager.py start-task --type [feature|fix|refactor] --description "..."`
58
- 2. **Read config** from `.claude/config/` for project specifics
59
- 3. Read relevant skill SKILL.md file
60
- 4. Check skill cache for existing data
61
- 5. Research if needed (web search)
62
- 6. **Approve files** via `workflow-manager.py approve-files --files "path/to/file.ts"`
63
-
64
- ### After implementation:
65
-
66
- 1. Update skill cache with changes
67
- 2. Run quality gates + record results
68
- 3. Security audit (if auth/data involved)
69
- 4. Final validation
70
- 5. **Mark workflow ready** via `workflow-manager.py final-validation --result approved --ready-to-commit true`
71
- 6. **Update domains** via domain-updater agent (BEFORE commit, keeps git clean)
72
- 7. **Commit + complete task** via commit-manager agent (FINAL step, runs complete-task)
73
-
74
- ---
75
-
76
- ## Workflow State Tracking
77
-
78
- Location: `.claude/workflow-state.json`
79
-
80
- ### CLI Commands (MANDATORY)
81
-
82
- ```bash
83
- # 1. Start task (MUST be first)
84
- python .claude/hooks/workflow-manager.py start-task --type feature --description "..."
85
-
86
- # 2. After analyzer approves, register files
87
- python .claude/hooks/workflow-manager.py approve-files --files "src/*.ts"
88
-
89
- # 3. After each agent
90
- python .claude/hooks/workflow-manager.py agent-executed --agent [name] --result approved
91
-
92
- # 4. After quality gates
93
- python .claude/hooks/workflow-manager.py quality-gate --gate [typecheck|lint|build] --passed true
94
-
95
- # 5. Final validation
96
- python .claude/hooks/workflow-manager.py final-validation --result approved --ready-to-commit true
97
-
98
- # 6. After commit
99
- python .claude/hooks/workflow-manager.py complete-task --commit-hash [hash]
100
- ```
101
-
102
- ### Hooks Enforcement
103
-
104
- - **PreToolUse**: Blocks file edits if task not started or file not approved
105
- - **PostToolUse**: Auto-tracks all file modifications
106
- - **Stop**: Blocks session end if workflow incomplete
107
- - **Husky**: Blocks commit if validation failed
108
-
109
- ---
110
-
111
- ## VETO Power Agents
112
-
113
- These agents CAN and MUST stop the flow if rules are violated:
114
-
115
- | Agent | Blocks When |
116
- | -------------------- | -------------------------------------------------- |
117
- | **security-auditor** | User ID from request, sensitive data, no validation |
118
- | **final-validator** | Any rule violated, tests failing, docs missing |
119
-
120
- ---
121
-
122
- ## Quality Requirements
123
-
124
- All implementations MUST:
125
-
126
- - [ ] Pass typecheck (command from config)
127
- - [ ] Pass lint (command from config)
128
- - [ ] Pass unit tests (command from config)
129
- - [ ] Pass E2E tests (command from config)
130
- - [ ] Pass build (command from config)
131
- - [ ] Have E2E tests with real auth
132
- - [ ] Have documentation in `docs/`
133
- - [ ] Be security audited
134
- - [ ] Be committed with conventional commits
135
- - [ ] Have domains updated with session learnings
136
-
137
- ---
138
-
139
- ## Domain Updater Agent
140
-
141
- The **domain-updater** runs BEFORE commit-manager to ensure git stays clean.
142
-
143
- ### Purpose
144
-
145
- - Document **problems encountered** during the session
146
- - Record **solutions** applied to fix issues
147
- - Add **prevention tips** for future sessions
148
- - Update **attention points** with new learnings
149
- - Keep domain knowledge **current and accurate**
150
-
151
- ### Trigger
152
-
153
- Runs automatically:
154
- 1. After final-validator approves in any workflow
155
- 2. BEFORE commit-manager (so changes are included in commit)
156
- 3. Stop hook blocks session end until domain-updater executes (if files were modified)
157
-
158
- ### Workflow Order
159
-
160
- ```
161
- final-validator → domain-updater → commit-manager → complete-task
162
- ↑ ↑
163
- (updates domains) (commits all + archives)
164
- ```
165
-
166
- ### Configuration
167
-
168
- Reads domain patterns from `.claude/config/domain-mapping.json`
1
+ # Claude Development System - Agent Context
2
+
3
+ This file provides context for all agents. For user-facing rules, see `/CLAUDE.md`.
4
+
5
+ ---
6
+
7
+ ## System Architecture
8
+
9
+ ```
10
+ .claude/
11
+ ├── agents/ # 11 specialized agents (READ before acting)
12
+ ├── skills/ # 8 skill systems with cache
13
+ ├── config/ # Project-specific configuration
14
+ ├── commands/ # Slash commands
15
+ └── hooks/ # Security hooks
16
+ ```
17
+
18
+ ---
19
+
20
+ ## Configuration Files
21
+
22
+ Project-specific settings are in `.claude/config/`:
23
+
24
+ | File | Purpose |
25
+ | ---------------------- | ------------------------------------ |
26
+ | `project-config.json` | Stack, structure, commands |
27
+ | `domain-mapping.json` | File patterns to domains |
28
+ | `quality-gates.json` | Quality check commands |
29
+ | `testing-config.json` | Test framework and conventions |
30
+ | `security-rules.json` | Security audit rules |
31
+
32
+ **RULE:** Agents MUST read config files before acting. Do NOT hardcode project specifics.
33
+
34
+ ---
35
+
36
+ ## Agent → Skill Mapping
37
+
38
+ | Agent | Primary Skill | Secondary |
39
+ | ---------------- | ------------------ | -------------------------------- |
40
+ | analyzer | codebase-knowledge | - |
41
+ | research | research-cache | codebase-knowledge |
42
+ | documenter | docs-tracker | codebase-knowledge |
43
+ | tester | test-coverage | - |
44
+ | ui-ux-reviewer | ui-ux-audit | - |
45
+ | security-auditor | security-scan | - |
46
+ | quality-checker | quality-gate | - |
47
+ | final-validator | final-check | ALL |
48
+ | commit-manager | workflow-state | docs-tracker, codebase-knowledge |
49
+ | domain-updater | codebase-knowledge | docs-tracker |
50
+
51
+ ---
52
+
53
+ ## Execution Protocol
54
+
55
+ ### Before ANY implementation:
56
+ 1. **Read config** from `.claude/config/` for project specifics
57
+ 2. Read relevant skill SKILL.md file
58
+ 3. Check skill cache for existing data
59
+ 4. Research if needed (web search)
60
+
61
+ ### After implementation:
62
+
63
+ 1. Update skill cache with changes
64
+ 2. Run quality gates + record results
65
+ 3. Security audit (if auth/data involved)
66
+ 4. Final validation
67
+ 5. **Update domains** via domain-updater agent (BEFORE commit, keeps git clean)
68
+ 6. **Commit** via commit-manager agent (FINAL step)
69
+
70
+ ---
71
+
72
+ ## VETO Power Agents
73
+
74
+ These agents CAN and MUST stop the flow if rules are violated:
75
+
76
+ | Agent | Blocks When |
77
+ | -------------------- | -------------------------------------------------- |
78
+ | **security-auditor** | User ID from request, sensitive data, no validation |
79
+ | **final-validator** | Any rule violated, tests failing, docs missing |
80
+
81
+ ---
82
+
83
+ ## Quality Requirements
84
+
85
+ All implementations MUST:
86
+
87
+ - [ ] Pass typecheck (command from config)
88
+ - [ ] Pass lint (command from config)
89
+ - [ ] Pass unit tests (command from config)
90
+ - [ ] Pass E2E tests (command from config)
91
+ - [ ] Pass build (command from config)
92
+ - [ ] Have E2E tests with real auth
93
+ - [ ] Have documentation in `docs/`
94
+ - [ ] Be security audited
95
+ - [ ] Be committed with conventional commits
96
+ - [ ] Have domains updated with session learnings
97
+
98
+ ---
99
+
100
+ ## Domain Updater Agent
101
+
102
+ The **domain-updater** runs BEFORE commit-manager to ensure git stays clean.
103
+
104
+ ### Purpose
105
+
106
+ - Document **problems encountered** during the session
107
+ - Record **solutions** applied to fix issues
108
+ - Add **prevention tips** for future sessions
109
+ - Update **attention points** with new learnings
110
+ - Keep domain knowledge **current and accurate**
111
+
112
+ ### Trigger
113
+
114
+ Runs automatically:
115
+ 1. After final-validator approves in any workflow
116
+ 2. BEFORE commit-manager (so changes are included in commit)
117
+ 3. Stop hook blocks session end until domain-updater executes (if files were modified)
118
+
119
+ ### Workflow Order
120
+
121
+ ```
122
+ final-validator domain-updater → commit-manager → complete-task
123
+ ↑ ↑
124
+ (updates domains) (commits all + archives)
125
+ ```
126
+
127
+ ### Configuration
128
+
129
+ Reads domain patterns from `.claude/config/domain-mapping.json`
@@ -27,20 +27,6 @@ You analyze the impact of any change before implementation begins.
27
27
  - Attention points (already identified!)
28
28
  4. **APPROVE FILES** for modification (see below)
29
29
 
30
- ## WORKFLOW STATE TRACKING
31
-
32
- Run these commands automatically after analysis:
33
-
34
- ```bash
35
- # 1. Mark analyzer as executed
36
- python .claude/hooks/workflow-manager.py agent-executed --agent analyzer --result approved
37
-
38
- # 2. Approve files that can be modified
39
- python .claude/hooks/workflow-manager.py approve-files --files "path/to/file1.ts" "path/to/file2.tsx" "src/feature/*"
40
- ```
41
-
42
- **CRITICAL:** Without running `approve-files`, the hooks will BLOCK all Edit/Write operations!
43
-
44
30
  ## Research Requirement
45
31
 
46
32
  For changes affecting architecture:
@@ -34,25 +34,6 @@ If any item is NO, **DO NOT COMMIT**.
34
34
 
35
35
  Run these commands automatically during commit process:
36
36
 
37
- ### Before Commit - Verify State
38
-
39
- ```bash
40
- python .claude/hooks/workflow-manager.py status
41
- ```
42
-
43
- ### After Commit Success
44
-
45
- ```bash
46
- # Get the commit hash
47
- COMMIT_HASH=$(git log -1 --format="%h")
48
-
49
- # Mark commit-manager as executed
50
- python .claude/hooks/workflow-manager.py agent-executed --agent commit-manager --result approved --notes "Commit: $COMMIT_HASH"
51
-
52
- # Complete the workflow (FINAL STEP)
53
- python .claude/hooks/workflow-manager.py complete-task --commit-hash $COMMIT_HASH
54
- ```
55
-
56
37
  **IMPORTANT:** commit-manager is the FINAL agent. The correct flow is:
57
38
 
58
39
  ```
@@ -16,16 +16,6 @@ You create and maintain all documentation.
16
16
  > - `.claude/skills/docs-tracker/SKILL.md` - Detection and update rules
17
17
  > - `.claude/config/domain-mapping.json` - File-to-domain mapping
18
18
 
19
- ## WORKFLOW STATE TRACKING
20
-
21
- Run this command automatically after documenting:
22
-
23
- ```bash
24
- python .claude/hooks/workflow-manager.py agent-executed --agent documenter --result approved --notes "Updated domain X, changelog, flow docs"
25
- ```
26
-
27
- Note: Documentation files are auto-tracked by PostToolUse hook when created/modified.
28
-
29
19
  ## Responsibilities
30
20
 
31
21
  1. **Detect** changed files via git diff