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.
- package/package.json +1 -1
- package/template/.claude/CLAUDE.md +129 -168
- package/template/.claude/README.md +135 -126
- 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 +0 -12
- package/template/.claude/agents/quality-checker.md +0 -24
- package/template/.claude/agents/research.md +251 -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 +0 -8
- package/template/.claude/commands/feature.md +48 -102
- package/template/.claude/config/README.md +30 -30
- package/template/.claude/config/domain-mapping.json +55 -26
- package/template/.claude/config/project-config.json +56 -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 +37 -246
- package/template/.claude/settings.json +39 -267
- package/template/.claude/skills/codebase-knowledge/SKILL.md +71 -145
- package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +54 -321
- package/template/.claude/skills/docs-tracker/SKILL.md +63 -239
- package/template/.claude/skills/final-check/SKILL.md +72 -284
- package/template/.claude/skills/quality-gate/SKILL.md +71 -278
- package/template/.claude/skills/research-cache/SKILL.md +73 -207
- package/template/.claude/skills/security-scan/SKILL.md +75 -206
- package/template/.claude/skills/test-coverage/SKILL.md +66 -441
- package/template/.claude/skills/ui-ux-audit/SKILL.md +68 -254
- 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`
|
|
@@ -1,55 +1,76 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Claude Development System
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
##
|
|
7
|
+
## Structure
|
|
9
8
|
|
|
10
9
|
```
|
|
11
10
|
.claude/
|
|
12
|
-
├── CLAUDE.md #
|
|
13
|
-
├── settings.json #
|
|
14
|
-
├── README.md #
|
|
11
|
+
├── CLAUDE.md # Agent context
|
|
12
|
+
├── settings.json # Global settings
|
|
13
|
+
├── README.md # This file
|
|
15
14
|
│
|
|
16
|
-
├── agents/ #
|
|
17
|
-
│ ├── orchestrator.md #
|
|
18
|
-
│ ├── analyzer.md #
|
|
19
|
-
│ ├──
|
|
20
|
-
│ ├──
|
|
21
|
-
│ ├──
|
|
22
|
-
│ ├──
|
|
23
|
-
│ ├──
|
|
24
|
-
│
|
|
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
|
-
├──
|
|
27
|
-
│
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
##
|
|
59
|
+
## Agents
|
|
39
60
|
|
|
40
|
-
###
|
|
61
|
+
### Hierarchy
|
|
41
62
|
|
|
42
63
|
```
|
|
43
64
|
┌─────────────────┐
|
|
44
65
|
│ ORCHESTRATOR │
|
|
45
|
-
│ (
|
|
66
|
+
│ (coordinator) │
|
|
46
67
|
└────────┬────────┘
|
|
47
68
|
│
|
|
48
69
|
┌────────────────────┼────────────────────┐
|
|
49
70
|
│ │ │
|
|
50
71
|
┌────▼────┐ ┌────▼────┐ ┌────▼────┐
|
|
51
72
|
│ANALYZER │ │ TESTER │ │ UI/UX │
|
|
52
|
-
│(
|
|
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
|
-
###
|
|
67
|
-
|
|
68
|
-
|
|
|
69
|
-
| ---------------- |
|
|
70
|
-
| orchestrator |
|
|
71
|
-
| analyzer |
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
##
|
|
115
|
+
## Workflows
|
|
97
116
|
|
|
98
|
-
### Feature
|
|
117
|
+
### Feature (default_flow)
|
|
99
118
|
|
|
100
119
|
```
|
|
101
|
-
1. analyzer →
|
|
102
|
-
2.
|
|
103
|
-
3.
|
|
104
|
-
4.
|
|
105
|
-
5.
|
|
106
|
-
6.
|
|
107
|
-
7.
|
|
108
|
-
8.
|
|
109
|
-
9.
|
|
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-checker → typecheck + 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 →
|
|
116
|
-
2.
|
|
117
|
-
3.
|
|
118
|
-
4.
|
|
119
|
-
5.
|
|
120
|
-
6.
|
|
121
|
-
7.
|
|
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-checker → typecheck + 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 →
|
|
128
|
-
2. [
|
|
129
|
-
3. tester →
|
|
130
|
-
4. security-auditor →
|
|
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 →
|
|
133
|
-
7.
|
|
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 →
|
|
140
|
-
2.
|
|
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
|
-
##
|
|
170
|
+
## Commands
|
|
146
171
|
|
|
147
|
-
|
|
|
148
|
-
| ----------- | ------------------- |
|
|
149
|
-
| `/feature` |
|
|
150
|
-
| `/fix` |
|
|
151
|
-
| `/validate` |
|
|
152
|
-
| `/research` |
|
|
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
|
-
##
|
|
181
|
+
## Configuration
|
|
157
182
|
|
|
158
|
-
|
|
183
|
+
Project-specific settings are in `.claude/config/`:
|
|
159
184
|
|
|
160
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
204
|
+
### security-check.js
|
|
191
205
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
-
##
|
|
202
|
-
|
|
203
|
-
Ao adicionar novas regras ao projeto:
|
|
213
|
+
## Getting Started
|
|
204
214
|
|
|
205
|
-
1.
|
|
206
|
-
2.
|
|
207
|
-
3.
|
|
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
|