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.
- package/package.json +1 -1
- package/template/.claude/CLAUDE.md +129 -168
- package/template/.claude/agents/analyzer.md +0 -14
- package/template/.claude/agents/commit-manager.md +0 -19
- package/template/.claude/agents/documenter.md +0 -10
- package/template/.claude/agents/domain-updater.md +194 -200
- package/template/.claude/agents/final-validator.md +0 -18
- package/template/.claude/agents/orchestrator.md +36 -34
- package/template/.claude/agents/quality-checker.md +0 -24
- package/template/.claude/agents/research.md +299 -262
- package/template/.claude/agents/security-auditor.md +1 -14
- package/template/.claude/agents/tester.md +0 -8
- package/template/.claude/agents/ui-ux-reviewer.md +80 -18
- package/template/.claude/commands/feature.md +48 -102
- package/template/.claude/config/README.md +30 -30
- package/template/.claude/config/project-config.json +53 -53
- package/template/.claude/config/quality-gates.json +46 -46
- package/template/.claude/config/security-rules.json +45 -45
- package/template/.claude/config/testing-config.json +168 -168
- package/template/.claude/hooks/SETUP.md +52 -181
- package/template/.claude/hooks/user-prompt-submit.py +184 -46
- package/template/.claude/settings.json +0 -39
- package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -145
- package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +260 -321
- package/template/.claude/skills/docs-tracker/SKILL.md +239 -239
- package/template/.claude/skills/final-check/SKILL.md +284 -284
- package/template/.claude/skills/quality-gate/SKILL.md +278 -278
- package/template/.claude/skills/research-cache/SKILL.md +207 -207
- package/template/.claude/skills/security-scan/SKILL.md +206 -206
- package/template/.claude/skills/test-coverage/SKILL.md +441 -441
- package/template/.claude/skills/ui-ux-audit/SKILL.md +254 -254
- package/template/.claude/config/domain-mapping.json +0 -26
- package/template/.claude/hooks/post-tool-use.py +0 -155
- package/template/.claude/hooks/pre-tool-use.py +0 -159
- package/template/.claude/hooks/stop-validation.py +0 -155
- package/template/.claude/hooks/validate-commit.py +0 -200
- package/template/.claude/hooks/workflow-manager.py +0 -350
- package/template/.claude/workflow-state.schema.json +0 -200
package/package.json
CHANGED
|
@@ -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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- **
|
|
107
|
-
- **
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|