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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-vibing",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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`
@@ -1,55 +1,76 @@
1
- # Configuracao de Agentes - AI Builder
1
+ # Claude Development System
2
2
 
3
- Este diretorio contem a configuracao completa do sistema de agentes
4
- para o fluxo de desenvolvimento do AI Builder.
3
+ This directory contains the complete agent configuration for an automated development workflow.
5
4
 
6
5
  ---
7
6
 
8
- ## Estrutura
7
+ ## Structure
9
8
 
10
9
  ```
11
10
  .claude/
12
- ├── CLAUDE.md # Contexto geral para agentes
13
- ├── settings.json # Configuracoes globais
14
- ├── README.md # Este arquivo
11
+ ├── CLAUDE.md # Agent context
12
+ ├── settings.json # Global settings
13
+ ├── README.md # This file
15
14
 
16
- ├── agents/ # Subagentes especializados
17
- │ ├── orchestrator.md # Coordena o fluxo
18
- │ ├── analyzer.md # Analisa impacto
19
- │ ├── documenter.md # Cria documentacao
20
- │ ├── tester.md # Cria e executa testes
21
- │ ├── security-auditor.md # Audita seguranca
22
- │ ├── ui-ux-reviewer.md # Revisa UI/UX
23
- │ ├── quality-checker.md # Verifica qualidade
24
- └── final-validator.md # Validacao final
15
+ ├── agents/ # Specialized subagents
16
+ │ ├── orchestrator.md # Coordinates flow
17
+ │ ├── analyzer.md # Analyzes impact
18
+ │ ├── research.md # Researches best practices
19
+ │ ├── documenter.md # Creates documentation
20
+ │ ├── tester.md # Creates and runs tests
21
+ │ ├── security-auditor.md # Security audits
22
+ │ ├── ui-ux-reviewer.md # UI/UX reviews
23
+ ├── quality-checker.md # Quality checks
24
+ │ ├── final-validator.md # Final validation
25
+ │ ├── domain-updater.md # Updates domain knowledge
26
+ │ └── commit-manager.md # Manages commits
25
27
 
26
- ├── hooks/ # Hooks de seguranca
27
- └── security-check.js # Bloqueia acoes perigosas
28
+ ├── skills/ # Skill systems with cache
29
+ ├── codebase-knowledge/
30
+ │ ├── research-cache/
31
+ │ ├── docs-tracker/
32
+ │ ├── test-coverage/
33
+ │ ├── security-scan/
34
+ │ ├── ui-ux-audit/
35
+ │ ├── quality-gate/
36
+ │ ├── final-check/
37
+ │ └── workflow-state/
28
38
 
29
- └── commands/ # Slash commands customizados
30
- ├── feature.md # /feature - nova feature
31
- ├── fix.md # /fix - corrigir bug
32
- ├── validate.md # /validate - validacao completa
33
- └── research.md # /research - pesquisar topico
39
+ ├── config/ # Project-specific configuration
40
+ ├── project-config.json
41
+ ├── domain-mapping.json
42
+ ├── quality-gates.json
43
+ │ ├── testing-config.json
44
+ │ └── security-rules.json
45
+
46
+ ├── hooks/ # Automation hooks
47
+ │ ├── user-prompt-submit.py
48
+ │ └── security-check.js
49
+
50
+ └── commands/ # Slash commands
51
+ ├── feature.md
52
+ ├── fix.md
53
+ ├── validate.md
54
+ └── research.md
34
55
  ```
35
56
 
36
57
  ---
37
58
 
38
- ## Agentes
59
+ ## Agents
39
60
 
40
- ### Hierarquia
61
+ ### Hierarchy
41
62
 
42
63
  ```
43
64
  ┌─────────────────┐
44
65
  │ ORCHESTRATOR │
45
- │ (coordenador) │
66
+ │ (coordinator) │
46
67
  └────────┬────────┘
47
68
 
48
69
  ┌────────────────────┼────────────────────┐
49
70
  │ │ │
50
71
  ┌────▼────┐ ┌────▼────┐ ┌────▼────┐
51
72
  │ANALYZER │ │ TESTER │ │ UI/UX │
52
- │(impacto)│ │(testes) │ │REVIEWER │
73
+ │(impact) │ │ (tests) │ │REVIEWER │
53
74
  └─────────┘ └─────────┘ └─────────┘
54
75
  │ │ │
55
76
  ┌────▼────┐ ┌────▼────┐ ┌────▼────┐
@@ -60,149 +81,137 @@ para o fluxo de desenvolvimento do AI Builder.
60
81
  ┌────────▼────────┐
61
82
  │ FINAL VALIDATOR │
62
83
  │ (veto power) │
84
+ └────────┬────────┘
85
+
86
+ ┌────────▼────────┐
87
+ │ DOMAIN UPDATER │
88
+ │ (updates docs) │
89
+ └────────┬────────┘
90
+
91
+ ┌────────▼────────┐
92
+ │ COMMIT MANAGER │
93
+ │ (final) │
63
94
  └─────────────────┘
64
95
  ```
65
96
 
66
- ### Funcoes
67
-
68
- | Agente | Funcao | Pesquisa? | Pode Vetar? |
69
- | ---------------- | -------------------------------- | --------------------------------------- | ----------- |
70
- | orchestrator | Coordena fluxo, delega tarefas | **SIM** - best practices gerais | Nao |
71
- | analyzer | Analisa impacto de mudancas | **SIM** - arquitetura, migracoes | Nao |
72
- | documenter | Cria/atualiza documentacao | **SIM** - padroes de docs | Nao |
73
- | tester | Cria e executa testes | **SIM** - padroes de teste, edge cases | Nao |
74
- | security-auditor | Valida seguranca | **SIM** - OWASP, CVEs, vulnerabilidades | **SIM** |
75
- | ui-ux-reviewer | Pesquisa competidores, valida UI | **SIM** - competidores, UX, WCAG | Nao |
76
- | quality-checker | Roda typecheck/lint/build | **SIM** - solucoes para erros | Nao |
77
- | final-validator | Checklist final completo | **SIM** - valida que outros pesquisaram | **SIM** |
78
-
79
- ### TODOS os Agentes Pesquisam
80
-
81
- Cada agente tem a obrigacao de pesquisar best practices antes de agir:
82
-
83
- ```
84
- orchestrator → Pesquisa padroes de arquitetura e implementacao
85
- analyzer → Pesquisa riscos e migracoes
86
- documenter → Pesquisa padroes de documentacao
87
- tester → Pesquisa edge cases e padroes de teste
88
- security-auditor → Pesquisa OWASP, CVEs, vulnerabilidades conhecidas
89
- ui-ux-reviewer → Pesquisa competidores, UX patterns, WCAG
90
- quality-checker → Pesquisa solucoes para erros encontrados
91
- final-validator → Valida que TODOS os outros pesquisaram
92
- ```
97
+ ### Functions
98
+
99
+ | Agent | Function | Can Veto? |
100
+ | ---------------- | --------------------------- | --------- |
101
+ | orchestrator | Coordinates flow | No |
102
+ | analyzer | Analyzes change impact | No |
103
+ | research | Researches best practices | No |
104
+ | documenter | Creates documentation | No |
105
+ | tester | Creates and runs tests | No |
106
+ | security-auditor | Validates security | **YES** |
107
+ | ui-ux-reviewer | Reviews UI/UX | No |
108
+ | quality-checker | Runs quality gates | No |
109
+ | final-validator | Final validation checklist | **YES** |
110
+ | domain-updater | Updates domain knowledge | No |
111
+ | commit-manager | Creates commits | No |
93
112
 
94
113
  ---
95
114
 
96
- ## Fluxos
115
+ ## Workflows
97
116
 
98
- ### Feature Completa (default_flow)
117
+ ### Feature (default_flow)
99
118
 
100
119
  ```
101
- 1. analyzer → Analisa impacto
102
- 2. ui-ux-reviewer Pesquisa competidores (se UI)
103
- 3. documenter Documenta fluxo
104
- 4. [IMPLEMENTACAO]
105
- 5. tester → Cria testes
106
- 6. security-auditor Valida seguranca
107
- 7. quality-checker typecheck + lint + build
108
- 8. final-validatorChecklist final
109
- 9. [COMMIT]
120
+ 1. analyzer → Analyzes impact
121
+ 2. research Researches best practices
122
+ 3. ui-ux-reviewer Research competitors (if UI)
123
+ 4. documenter → Documents flow
124
+ 5. [IMPLEMENTATION]
125
+ 6. tester Creates tests
126
+ 7. security-auditor Validates security
127
+ 8. quality-checkertypecheck + lint + build
128
+ 9. final-validator → Final checklist
129
+ 10. domain-updater → Updates domain docs
130
+ 11. commit-manager → Creates commit
110
131
  ```
111
132
 
112
133
  ### Bug Fix (bug_fix_flow)
113
134
 
114
135
  ```
115
- 1. analyzer → Identifica causa raiz
116
- 2. [IMPLEMENTACAO]
117
- 3. tester → Cria teste de regressao
118
- 4. security-auditor Valida que fix nao introduz vuln
119
- 5. quality-checker typecheck + lint + build
120
- 6. final-validatorChecklist adaptado
121
- 7. [COMMIT]
136
+ 1. analyzer → Identifies root cause
137
+ 2. research → Researches solutions
138
+ 3. [IMPLEMENTATION]
139
+ 4. tester Creates regression test
140
+ 5. security-auditor Validates fix doesn't introduce vuln
141
+ 6. quality-checkertypecheck + lint + build
142
+ 7. final-validator → Adapted checklist
143
+ 8. domain-updater → Updates domain docs
144
+ 9. commit-manager → Creates commit
122
145
  ```
123
146
 
124
147
  ### Refactor (refactor_flow)
125
148
 
126
149
  ```
127
- 1. analyzer → Mapeia dependencias
128
- 2. [IMPLEMENTACAO]
129
- 3. tester → Atualiza testes
130
- 4. security-auditor → Valida seguranca
150
+ 1. analyzer → Maps dependencies
151
+ 2. [IMPLEMENTATION]
152
+ 3. tester → Updates tests
153
+ 4. security-auditor → Validates security
131
154
  5. quality-checker → typecheck + lint + build
132
- 6. final-validator → Checklist adaptado
133
- 7. [COMMIT]
155
+ 6. final-validator → Adapted checklist
156
+ 7. domain-updater → Updates domain docs
157
+ 8. commit-manager → Creates commit
134
158
  ```
135
159
 
136
160
  ### Config/Chore (config_flow)
137
161
 
138
162
  ```
139
- 1. quality-checker → Apenas qualidade
140
- 2. [COMMIT]
163
+ 1. quality-checker → Quality only
164
+ 2. domain-updater → Updates domain docs
165
+ 3. commit-manager → Creates commit
141
166
  ```
142
167
 
143
168
  ---
144
169
 
145
- ## Comandos
170
+ ## Commands
146
171
 
147
- | Comando | Descricao | Uso |
148
- | ----------- | ------------------- | ------------------------- |
149
- | `/feature` | Inicia nova feature | `/feature [descricao]` |
150
- | `/fix` | Corrige bug | `/fix [descricao do bug]` |
151
- | `/validate` | Validacao completa | `/validate` |
152
- | `/research` | Pesquisa topico | `/research [topico]` |
172
+ | Command | Description | Usage |
173
+ | ----------- | ------------------- | ---------------------- |
174
+ | `/feature` | Start new feature | `/feature [desc]` |
175
+ | `/fix` | Fix a bug | `/fix [bug desc]` |
176
+ | `/validate` | Full validation | `/validate` |
177
+ | `/research` | Research topic | `/research [topic]` |
153
178
 
154
179
  ---
155
180
 
156
- ## Hooks
181
+ ## Configuration
157
182
 
158
- ### security-check.js
183
+ Project-specific settings are in `.claude/config/`:
159
184
 
160
- Executado ANTES de cada tool call. Bloqueia:
185
+ - `project-config.json` - Stack, structure, commands
186
+ - `domain-mapping.json` - File patterns to domains
187
+ - `quality-gates.json` - Quality check commands
188
+ - `testing-config.json` - Test framework config
189
+ - `security-rules.json` - Security audit rules
161
190
 
162
- - Comandos destrutivos (`rm -rf`, `sudo`, etc)
163
- - Codigo inseguro (`eval()`, `innerHTML`, etc)
164
- - Dados sensiveis hardcoded (passwords, API keys)
165
- - Violacoes de regras do projeto (userId do request, z.any(), etc)
191
+ **IMPORTANT:** Agents read from config files. Update these when adapting to a new project.
166
192
 
167
193
  ---
168
194
 
169
- ## Como Usar
170
-
171
- ### No Claude Code (Interativo)
172
-
173
- Os agentes sao carregados automaticamente quando voce abre o projeto.
174
- O orchestrator coordena o fluxo baseado no tipo de tarefa.
175
-
176
- ### Com Claude Agent SDK (Programatico)
177
-
178
- ```python
179
- from claude_agent_sdk import ClaudeSDKClient
180
-
181
- client = ClaudeSDKClient(
182
- setting_sources=["project"] # Carrega .claude/settings.json
183
- )
195
+ ## Hooks
184
196
 
185
- result = await client.query("Implementar feature X")
186
- ```
197
+ ### user-prompt-submit.py
187
198
 
188
- ---
199
+ Runs BEFORE each prompt. Provides:
200
+ - Agent recommendations based on task
201
+ - Workflow guidance
202
+ - Enforcement reminders
189
203
 
190
- ## Regras Garantidas pelos Agentes
204
+ ### security-check.js
191
205
 
192
- 1. **Seguranca** - security-auditor valida TODAS as regras
193
- 2. **Testes** - tester garante cobertura adequada
194
- 3. **Documentacao** - documenter cria docs obrigatorias
195
- 4. **UI/UX** - ui-ux-reviewer pesquisa competidores
196
- 5. **Qualidade** - quality-checker roda verificacoes
197
- 6. **Conformidade** - final-validator valida TUDO antes do commit
206
+ Blocks dangerous operations:
207
+ - Destructive commands (`rm -rf`, `sudo`, etc)
208
+ - Insecure code patterns
209
+ - Hardcoded sensitive data
198
210
 
199
211
  ---
200
212
 
201
- ## Atualizacao
202
-
203
- Ao adicionar novas regras ao projeto:
213
+ ## Getting Started
204
214
 
205
- 1. Atualizar `/claude.md` com a regra
206
- 2. Atualizar agente relevante em `.claude/agents/`
207
- 3. Atualizar `final-validator.md` com novo item no checklist
208
- 4. Se necessario, adicionar pattern em `hooks/security-check.js`
215
+ 1. Configure `.claude/config/project-config.json` for your project
216
+ 2. Update `.claude/config/domain-mapping.json` with your domains
217
+ 3. Agents will automatically coordinate based on task type