start-vibing 1.1.3 → 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/README.md +126 -135
- package/template/.claude/agents/orchestrator.md +37 -23
- package/template/.claude/agents/research.md +51 -3
- package/template/.claude/agents/ui-ux-reviewer.md +80 -10
- package/template/.claude/config/project-config.json +4 -7
- package/template/.claude/hooks/user-prompt-submit.py +384 -37
- package/template/.claude/settings.json +228 -39
- package/template/.claude/skills/codebase-knowledge/SKILL.md +111 -37
- package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +216 -10
- package/template/.claude/skills/docs-tracker/SKILL.md +206 -30
- package/template/.claude/skills/final-check/SKILL.md +252 -40
- package/template/.claude/skills/quality-gate/SKILL.md +238 -31
- package/template/.claude/skills/research-cache/SKILL.md +162 -28
- package/template/.claude/skills/security-scan/SKILL.md +165 -34
- package/template/.claude/skills/test-coverage/SKILL.md +416 -41
- package/template/.claude/skills/ui-ux-audit/SKILL.md +222 -36
- package/template/.claude/config/domain-mapping.json +0 -55
|
@@ -1,41 +1,230 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
2
|
+
|
|
3
|
+
"model": "claude-opus-4-5-20251101",
|
|
4
|
+
"max_tokens": 8192,
|
|
5
|
+
"max_turns": 100,
|
|
6
|
+
|
|
7
|
+
"context": {
|
|
8
|
+
"compaction_threshold": 0.85,
|
|
9
|
+
"enable_compaction": true,
|
|
10
|
+
"enable_semantic_search": true,
|
|
11
|
+
"memory_files": [".claude/CLAUDE.md", "claude.md"]
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
"permissions": {
|
|
15
|
+
"mode": "strict",
|
|
16
|
+
"allowed_tools": [
|
|
17
|
+
"file_read",
|
|
18
|
+
"file_write",
|
|
19
|
+
"file_edit",
|
|
20
|
+
"bash_grep",
|
|
21
|
+
"bash_find",
|
|
22
|
+
"bash_ls",
|
|
23
|
+
"bash_bun",
|
|
24
|
+
"bash_git",
|
|
25
|
+
"web_search"
|
|
26
|
+
],
|
|
27
|
+
"disallowed_tools": [
|
|
28
|
+
"bash_rm_rf",
|
|
29
|
+
"bash_sudo",
|
|
30
|
+
"bash_chmod",
|
|
31
|
+
"bash_chown",
|
|
32
|
+
"file_delete_recursive"
|
|
33
|
+
],
|
|
34
|
+
"allowed_directories": [
|
|
35
|
+
".",
|
|
36
|
+
"app",
|
|
37
|
+
"components",
|
|
38
|
+
"lib",
|
|
39
|
+
"server",
|
|
40
|
+
"tests",
|
|
41
|
+
"docs",
|
|
42
|
+
"types",
|
|
43
|
+
".claude"
|
|
44
|
+
],
|
|
45
|
+
"protected_files": [".env", ".env.local", ".env.production", "bun.lockb"],
|
|
46
|
+
"allow": [
|
|
47
|
+
"Bash(bun run typecheck:*)",
|
|
48
|
+
"Bash(git add:*)",
|
|
49
|
+
"Bash(git commit:*)",
|
|
50
|
+
"Bash(python .claude/hooks/*)"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
"hooks": {
|
|
55
|
+
"UserPromptSubmit": [
|
|
56
|
+
{
|
|
57
|
+
"matcher": "",
|
|
58
|
+
"hooks": [
|
|
59
|
+
{
|
|
60
|
+
"type": "command",
|
|
61
|
+
"command": "python .claude/hooks/user-prompt-submit.py",
|
|
62
|
+
"timeout": 10
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
"agents": {
|
|
70
|
+
"orchestrator": {
|
|
71
|
+
"file": "agents/orchestrator.md",
|
|
72
|
+
"description": "Coordena todo o fluxo de desenvolvimento",
|
|
73
|
+
"priority": 1
|
|
74
|
+
},
|
|
75
|
+
"analyzer": {
|
|
76
|
+
"file": "agents/analyzer.md",
|
|
77
|
+
"description": "Analisa impacto de mudancas",
|
|
78
|
+
"priority": 2
|
|
79
|
+
},
|
|
80
|
+
"research": {
|
|
81
|
+
"file": "agents/research.md",
|
|
82
|
+
"description": "Pesquisa best practices e solucoes recentes (2024-2025) antes da implementacao",
|
|
83
|
+
"priority": 3
|
|
84
|
+
},
|
|
85
|
+
"documenter": {
|
|
86
|
+
"file": "agents/documenter.md",
|
|
87
|
+
"description": "Cria e mantem documentacao",
|
|
88
|
+
"priority": 3
|
|
89
|
+
},
|
|
90
|
+
"tester": {
|
|
91
|
+
"file": "agents/tester.md",
|
|
92
|
+
"description": "Cria e executa testes",
|
|
93
|
+
"priority": 4
|
|
94
|
+
},
|
|
95
|
+
"security-auditor": {
|
|
96
|
+
"file": "agents/security-auditor.md",
|
|
97
|
+
"description": "Audita seguranca do codigo",
|
|
98
|
+
"priority": 5,
|
|
99
|
+
"can_veto": true
|
|
100
|
+
},
|
|
101
|
+
"ui-ux-reviewer": {
|
|
102
|
+
"file": "agents/ui-ux-reviewer.md",
|
|
103
|
+
"description": "Revisa UI/UX e pesquisa competidores",
|
|
104
|
+
"priority": 6
|
|
105
|
+
},
|
|
106
|
+
"quality-checker": {
|
|
107
|
+
"file": "agents/quality-checker.md",
|
|
108
|
+
"description": "Verifica qualidade (typecheck, lint, build)",
|
|
109
|
+
"priority": 7
|
|
110
|
+
},
|
|
111
|
+
"final-validator": {
|
|
112
|
+
"file": "agents/final-validator.md",
|
|
113
|
+
"description": "Validacao final antes do commit",
|
|
114
|
+
"priority": 8,
|
|
115
|
+
"can_veto": true
|
|
116
|
+
},
|
|
117
|
+
"commit-manager": {
|
|
118
|
+
"file": "agents/commit-manager.md",
|
|
119
|
+
"description": "Manages commits and workflow state tracking",
|
|
120
|
+
"priority": 9
|
|
121
|
+
},
|
|
122
|
+
"domain-updater": {
|
|
123
|
+
"file": "agents/domain-updater.md",
|
|
124
|
+
"description": "Updates domain documentation with session learnings and problems solved. FINAL step after commit.",
|
|
125
|
+
"priority": 10
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
"workflow": {
|
|
130
|
+
"default_flow": [
|
|
131
|
+
"analyzer",
|
|
132
|
+
"research",
|
|
133
|
+
"ui-ux-reviewer",
|
|
134
|
+
"documenter",
|
|
135
|
+
"tester",
|
|
136
|
+
"security-auditor",
|
|
137
|
+
"quality-checker",
|
|
138
|
+
"final-validator",
|
|
139
|
+
"domain-updater",
|
|
140
|
+
"commit-manager"
|
|
141
|
+
],
|
|
142
|
+
"bug_fix_flow": [
|
|
143
|
+
"analyzer",
|
|
144
|
+
"research",
|
|
145
|
+
"tester",
|
|
146
|
+
"security-auditor",
|
|
147
|
+
"quality-checker",
|
|
148
|
+
"final-validator",
|
|
149
|
+
"domain-updater",
|
|
150
|
+
"commit-manager"
|
|
151
|
+
],
|
|
152
|
+
"refactor_flow": [
|
|
153
|
+
"analyzer",
|
|
154
|
+
"tester",
|
|
155
|
+
"security-auditor",
|
|
156
|
+
"quality-checker",
|
|
157
|
+
"final-validator",
|
|
158
|
+
"domain-updater",
|
|
159
|
+
"commit-manager"
|
|
160
|
+
],
|
|
161
|
+
"config_flow": ["quality-checker", "domain-updater", "commit-manager"]
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
"rules": {
|
|
165
|
+
"research": {
|
|
166
|
+
"required_before_implementation": true,
|
|
167
|
+
"sources_must_be_recent": "2024-2025",
|
|
168
|
+
"must_document_findings": true,
|
|
169
|
+
"must_cite_sources": true
|
|
170
|
+
},
|
|
171
|
+
"typescript": {
|
|
172
|
+
"strict": true,
|
|
173
|
+
"no_any": true,
|
|
174
|
+
"explicit_return_types": true
|
|
175
|
+
},
|
|
176
|
+
"security": {
|
|
177
|
+
"user_id_from_session_only": true,
|
|
178
|
+
"sanitize_all_responses": true,
|
|
179
|
+
"zod_validation_required": true,
|
|
180
|
+
"explicit_select_required": true,
|
|
181
|
+
"owasp_validation_required": true,
|
|
182
|
+
"cve_check_required": true
|
|
183
|
+
},
|
|
184
|
+
"ux": {
|
|
185
|
+
"skeleton_required_for_async": true,
|
|
186
|
+
"touch_friendly_min_size": "44px",
|
|
187
|
+
"competitor_research_required": true,
|
|
188
|
+
"wcag_compliance_required": true
|
|
189
|
+
},
|
|
190
|
+
"testing": {
|
|
191
|
+
"unit_tests_required": true,
|
|
192
|
+
"e2e_for_ui_features": true,
|
|
193
|
+
"data_testid_required": true,
|
|
194
|
+
"edge_cases_research_required": true
|
|
195
|
+
},
|
|
196
|
+
"documentation": {
|
|
197
|
+
"flow_docs_required": true,
|
|
198
|
+
"competitor_research_for_ui": true,
|
|
199
|
+
"research_must_be_documented": true
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
"quality_gates": {
|
|
204
|
+
"typecheck": {
|
|
205
|
+
"command": "bun run typecheck",
|
|
206
|
+
"required": true,
|
|
207
|
+
"blocking": true
|
|
208
|
+
},
|
|
209
|
+
"lint": {
|
|
210
|
+
"command": "bun run lint",
|
|
211
|
+
"required": true,
|
|
212
|
+
"blocking": true
|
|
213
|
+
},
|
|
214
|
+
"test": {
|
|
215
|
+
"command": "bun run test",
|
|
216
|
+
"required": true,
|
|
217
|
+
"blocking": true
|
|
218
|
+
},
|
|
219
|
+
"test_e2e": {
|
|
220
|
+
"command": "bun run test:e2e",
|
|
221
|
+
"required": "when_ui_changes",
|
|
222
|
+
"blocking": true
|
|
223
|
+
},
|
|
224
|
+
"build": {
|
|
225
|
+
"command": "bun run build",
|
|
226
|
+
"required": true,
|
|
227
|
+
"blocking": true
|
|
228
|
+
}
|
|
229
|
+
}
|
|
41
230
|
}
|
|
@@ -1,71 +1,145 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: codebase-knowledge
|
|
3
|
-
description:
|
|
3
|
+
description: Provides cached knowledge about project domains. Maps files by domain, tracks connections between components, records recent commits. Use before implementing to understand affected areas.
|
|
4
4
|
allowed-tools: Read, Glob, Grep
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Codebase Knowledge
|
|
7
|
+
# Codebase Knowledge - Domain Mapping System
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Purpose
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- When exploring: find related files
|
|
13
|
-
- After implementing: update domain knowledge
|
|
11
|
+
This skill provides cached knowledge about project domains:
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
- **Maps** files by domain/feature area
|
|
14
|
+
- **Tracks** connections between components
|
|
15
|
+
- **Records** recent commits per area
|
|
16
|
+
- **Caches** architecture decisions
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Each domain file tracks:
|
|
20
|
-
- Files in that area
|
|
21
|
-
- Connections to other domains
|
|
22
|
-
- Recent commits
|
|
23
|
-
- Attention points (gotchas)
|
|
18
|
+
---
|
|
24
19
|
|
|
25
|
-
##
|
|
20
|
+
## How It Works
|
|
26
21
|
|
|
27
|
-
###
|
|
22
|
+
### Domain Files Location
|
|
28
23
|
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# 2. Check recent changes
|
|
34
|
-
git log --oneline -5 -- [domain files]
|
|
24
|
+
```
|
|
25
|
+
.claude/skills/codebase-knowledge/domains/
|
|
26
|
+
├── [domain-name].md # One file per domain
|
|
27
|
+
└── ...
|
|
35
28
|
```
|
|
36
29
|
|
|
37
|
-
###
|
|
38
|
-
|
|
39
|
-
Update domain file with:
|
|
40
|
-
- New/modified files
|
|
41
|
-
- New commit in "Recent Commits"
|
|
42
|
-
- Updated connections if changed
|
|
43
|
-
|
|
44
|
-
## Domain File Template
|
|
30
|
+
### Domain File Template
|
|
45
31
|
|
|
46
32
|
```markdown
|
|
47
33
|
# [Domain Name]
|
|
48
34
|
|
|
49
35
|
## Last Update
|
|
36
|
+
|
|
50
37
|
- **Date:** YYYY-MM-DD
|
|
51
38
|
- **Commit:** [hash]
|
|
52
39
|
|
|
53
40
|
## Files
|
|
54
|
-
|
|
41
|
+
|
|
42
|
+
### Frontend
|
|
43
|
+
|
|
44
|
+
- `app/[path]/page.tsx` - Description
|
|
45
|
+
- `components/[path]/*.tsx` - Description
|
|
46
|
+
|
|
47
|
+
### Backend
|
|
48
|
+
|
|
49
|
+
- `server/trpc/routers/[name].router.ts` - Router
|
|
50
|
+
- `server/db/models/[name].model.ts` - Model
|
|
51
|
+
|
|
52
|
+
### Types/Schemas
|
|
53
|
+
|
|
54
|
+
- `lib/validators/[name].ts` - Zod schemas
|
|
55
55
|
|
|
56
56
|
## Connections
|
|
57
|
+
|
|
57
58
|
- **[other-domain]:** How they connect
|
|
58
59
|
|
|
59
60
|
## Recent Commits
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
|
|
62
|
+
| Hash | Date | Description |
|
|
63
|
+
| ------ | ---------- | ----------------- |
|
|
64
|
+
| abc123 | YYYY-MM-DD | feat: description |
|
|
62
65
|
|
|
63
66
|
## Attention Points
|
|
64
|
-
|
|
67
|
+
|
|
68
|
+
- [Special rules, gotchas, etc]
|
|
65
69
|
```
|
|
66
70
|
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Workflow
|
|
74
|
+
|
|
75
|
+
### BEFORE Implementation
|
|
76
|
+
|
|
77
|
+
1. **Identify** which domain is affected
|
|
78
|
+
2. **Read** `domains/[domain].md` file
|
|
79
|
+
3. **Check** affected files listed
|
|
80
|
+
4. **Verify** recent commits for context
|
|
81
|
+
5. **Note** connections with other domains
|
|
82
|
+
|
|
83
|
+
### AFTER Implementation
|
|
84
|
+
|
|
85
|
+
1. **Update** the domain file
|
|
86
|
+
2. **Add** new commit to "Recent Commits"
|
|
87
|
+
3. **Add/remove** files if changed
|
|
88
|
+
4. **Update** connections if affected
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Commands
|
|
93
|
+
|
|
94
|
+
### Check Recent Commits by Domain
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
git log --oneline -10 -- [list of domain files]
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Check Uncommitted Changes
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
git diff --name-status main..HEAD
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Create New Domain File
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Copy template
|
|
110
|
+
cp .claude/skills/codebase-knowledge/TEMPLATE.md .claude/skills/codebase-knowledge/domains/[name].md
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
67
115
|
## Rules
|
|
68
116
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
117
|
+
### MANDATORY
|
|
118
|
+
|
|
119
|
+
1. **READ domain before implementing** - Always check cached knowledge
|
|
120
|
+
2. **UPDATE after implementing** - Keep cache current
|
|
121
|
+
3. **VERIFY connections** - Changes may affect other domains
|
|
122
|
+
4. **RECORD commits** - Maintain history
|
|
123
|
+
|
|
124
|
+
### FORBIDDEN
|
|
125
|
+
|
|
126
|
+
1. **Ignore cached knowledge** - It exists to accelerate development
|
|
127
|
+
2. **Leave outdated** - Old docs are worse than none
|
|
128
|
+
3. **Modify without recording** - Every commit should be noted
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Integration with Agents
|
|
133
|
+
|
|
134
|
+
The **analyzer** agent MUST use this skill:
|
|
135
|
+
|
|
136
|
+
1. Check which domain is affected
|
|
137
|
+
2. Read domain file for context
|
|
138
|
+
3. Report affected files and connections
|
|
139
|
+
4. Update domain after implementation
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Version
|
|
144
|
+
|
|
145
|
+
- **v2.0.0** - Generic template (no project-specific domains)
|