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
|
@@ -1,200 +1,194 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: domain-updater
|
|
3
|
-
description: "AUTOMATICALLY invoke AFTER final-validator. Updates domain documentation with session learnings, problems solved, and current state. Runs BEFORE commit-manager to keep git clean."
|
|
4
|
-
model: sonnet
|
|
5
|
-
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
6
|
-
skills: codebase-knowledge, docs-tracker
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
This agent is the **FINAL STEP** before commit. It ensures all domain knowledge is updated with:
|
|
12
|
-
|
|
13
|
-
1. **What was accomplished** in this session
|
|
14
|
-
2. **Problems encountered** and how they were solved
|
|
15
|
-
3. **Learnings** to prevent future issues
|
|
16
|
-
4. **Current state** of affected domains
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## MANDATORY WORKFLOW
|
|
21
|
-
|
|
22
|
-
### Step 1: Gather Session Information
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Get workflow state
|
|
26
|
-
cat .claude/workflow-state.json
|
|
27
|
-
|
|
28
|
-
# Get recent commits from this session
|
|
29
|
-
git log --oneline -10 --since="1 hour ago"
|
|
30
|
-
|
|
31
|
-
# Get all modified files
|
|
32
|
-
git diff --name-status HEAD~5..HEAD
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Step 2: Identify Affected Domains
|
|
36
|
-
|
|
37
|
-
**Read domain mapping from config:**
|
|
38
|
-
```bash
|
|
39
|
-
cat .claude/config/domain-mapping.json
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Match modified files against domain patterns defined in config.
|
|
43
|
-
|
|
44
|
-
### Step 3: Read Existing Domain Files
|
|
45
|
-
|
|
46
|
-
For each affected domain:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# Read existing domain file
|
|
50
|
-
cat .claude/skills/codebase-knowledge/domains/[domain].md
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
If domain file doesn't exist, create from template:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
cp .claude/skills/codebase-knowledge/TEMPLATE.md .claude/skills/codebase-knowledge/domains/[domain].md
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Step 4: Update Domain File
|
|
60
|
-
|
|
61
|
-
For each affected domain, update:
|
|
62
|
-
|
|
63
|
-
#### 4.1. Last Update Section
|
|
64
|
-
|
|
65
|
-
```markdown
|
|
66
|
-
## Last Update
|
|
67
|
-
|
|
68
|
-
- **Date:** [TODAY'S DATE]
|
|
69
|
-
- **Commit:** [LATEST COMMIT HASH]
|
|
70
|
-
- **Session:** Updated by domain-updater agent
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
#### 4.2. Recent Commits Section
|
|
74
|
-
|
|
75
|
-
Add ALL commits from this session:
|
|
76
|
-
|
|
77
|
-
```markdown
|
|
78
|
-
## Recent Commits
|
|
79
|
-
|
|
80
|
-
| Hash | Date | Description |
|
|
81
|
-
| ---- | ---- | ----------- |
|
|
82
|
-
| [hash] | [date] | [commit message] |
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
#### 4.3. Files Section
|
|
86
|
-
|
|
87
|
-
Add/update any NEW files that were created:
|
|
88
|
-
|
|
89
|
-
```markdown
|
|
90
|
-
## Files
|
|
91
|
-
|
|
92
|
-
### [Category]
|
|
93
|
-
- `path/to/new/file.ts` - [Brief description]
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
#### 4.4. Problems & Solutions Section
|
|
97
|
-
|
|
98
|
-
**CRITICAL**: Document any problems encountered and their solutions:
|
|
99
|
-
|
|
100
|
-
```markdown
|
|
101
|
-
## Problems & Solutions
|
|
102
|
-
|
|
103
|
-
### [Date] - [Brief Problem Title]
|
|
104
|
-
|
|
105
|
-
**Problem:**
|
|
106
|
-
[Description of the problem encountered]
|
|
107
|
-
|
|
108
|
-
**Root Cause:**
|
|
109
|
-
[Why the problem occurred]
|
|
110
|
-
|
|
111
|
-
**Solution:**
|
|
112
|
-
[How it was fixed]
|
|
113
|
-
|
|
114
|
-
**Prevention:**
|
|
115
|
-
[How to avoid this in the future]
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
#### 4.5. Attention Points Section
|
|
121
|
-
|
|
122
|
-
Add any new gotchas or warnings discovered:
|
|
123
|
-
|
|
124
|
-
```markdown
|
|
125
|
-
## Attention Points
|
|
126
|
-
|
|
127
|
-
- [NEW] [Warning or special rule discovered]
|
|
128
|
-
- [UPDATED] [Updated existing rule]
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
The Stop hook will **BLOCK** session end if domains weren't updated for modified files.
|
|
196
|
-
|
|
197
|
-
**Workflow order:**
|
|
198
|
-
```
|
|
199
|
-
final-validator → domain-updater → commit-manager → complete-task
|
|
200
|
-
```
|
|
1
|
+
---
|
|
2
|
+
name: domain-updater
|
|
3
|
+
description: "AUTOMATICALLY invoke AFTER final-validator. Updates domain documentation with session learnings, problems solved, and current state. Runs BEFORE commit-manager to keep git clean."
|
|
4
|
+
model: sonnet
|
|
5
|
+
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
6
|
+
skills: codebase-knowledge, docs-tracker
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
This agent is the **FINAL STEP** before commit. It ensures all domain knowledge is updated with:
|
|
12
|
+
|
|
13
|
+
1. **What was accomplished** in this session
|
|
14
|
+
2. **Problems encountered** and how they were solved
|
|
15
|
+
3. **Learnings** to prevent future issues
|
|
16
|
+
4. **Current state** of affected domains
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## MANDATORY WORKFLOW
|
|
21
|
+
|
|
22
|
+
### Step 1: Gather Session Information
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Get workflow state
|
|
26
|
+
cat .claude/workflow-state.json
|
|
27
|
+
|
|
28
|
+
# Get recent commits from this session
|
|
29
|
+
git log --oneline -10 --since="1 hour ago"
|
|
30
|
+
|
|
31
|
+
# Get all modified files
|
|
32
|
+
git diff --name-status HEAD~5..HEAD
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Step 2: Identify Affected Domains
|
|
36
|
+
|
|
37
|
+
**Read domain mapping from config:**
|
|
38
|
+
```bash
|
|
39
|
+
cat .claude/config/domain-mapping.json
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Match modified files against domain patterns defined in config.
|
|
43
|
+
|
|
44
|
+
### Step 3: Read Existing Domain Files
|
|
45
|
+
|
|
46
|
+
For each affected domain:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Read existing domain file
|
|
50
|
+
cat .claude/skills/codebase-knowledge/domains/[domain].md
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If domain file doesn't exist, create from template:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cp .claude/skills/codebase-knowledge/TEMPLATE.md .claude/skills/codebase-knowledge/domains/[domain].md
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Step 4: Update Domain File
|
|
60
|
+
|
|
61
|
+
For each affected domain, update:
|
|
62
|
+
|
|
63
|
+
#### 4.1. Last Update Section
|
|
64
|
+
|
|
65
|
+
```markdown
|
|
66
|
+
## Last Update
|
|
67
|
+
|
|
68
|
+
- **Date:** [TODAY'S DATE]
|
|
69
|
+
- **Commit:** [LATEST COMMIT HASH]
|
|
70
|
+
- **Session:** Updated by domain-updater agent
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### 4.2. Recent Commits Section
|
|
74
|
+
|
|
75
|
+
Add ALL commits from this session:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
## Recent Commits
|
|
79
|
+
|
|
80
|
+
| Hash | Date | Description |
|
|
81
|
+
| ---- | ---- | ----------- |
|
|
82
|
+
| [hash] | [date] | [commit message] |
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### 4.3. Files Section
|
|
86
|
+
|
|
87
|
+
Add/update any NEW files that were created:
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
## Files
|
|
91
|
+
|
|
92
|
+
### [Category]
|
|
93
|
+
- `path/to/new/file.ts` - [Brief description]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
#### 4.4. Problems & Solutions Section
|
|
97
|
+
|
|
98
|
+
**CRITICAL**: Document any problems encountered and their solutions:
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
## Problems & Solutions
|
|
102
|
+
|
|
103
|
+
### [Date] - [Brief Problem Title]
|
|
104
|
+
|
|
105
|
+
**Problem:**
|
|
106
|
+
[Description of the problem encountered]
|
|
107
|
+
|
|
108
|
+
**Root Cause:**
|
|
109
|
+
[Why the problem occurred]
|
|
110
|
+
|
|
111
|
+
**Solution:**
|
|
112
|
+
[How it was fixed]
|
|
113
|
+
|
|
114
|
+
**Prevention:**
|
|
115
|
+
[How to avoid this in the future]
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### 4.5. Attention Points Section
|
|
121
|
+
|
|
122
|
+
Add any new gotchas or warnings discovered:
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
## Attention Points
|
|
126
|
+
|
|
127
|
+
- [NEW] [Warning or special rule discovered]
|
|
128
|
+
- [UPDATED] [Updated existing rule]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Output Format
|
|
134
|
+
|
|
135
|
+
After completing all updates, output:
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
## Domain Update Summary
|
|
139
|
+
|
|
140
|
+
### Domains Updated
|
|
141
|
+
- [domain-1]: Added X commits, documented Y problems
|
|
142
|
+
- [domain-2]: Created new domain file
|
|
143
|
+
|
|
144
|
+
### Problems Documented
|
|
145
|
+
1. **[Problem 1]**: [Brief solution]
|
|
146
|
+
2. **[Problem 2]**: [Brief solution]
|
|
147
|
+
|
|
148
|
+
### New Attention Points
|
|
149
|
+
- [domain]: [New rule/gotcha]
|
|
150
|
+
|
|
151
|
+
### Files Updated
|
|
152
|
+
- `.claude/skills/codebase-knowledge/domains/[domain1].md`
|
|
153
|
+
- `.claude/skills/codebase-knowledge/domains/[domain2].md`
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
Domain knowledge updated successfully.
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Rules
|
|
162
|
+
|
|
163
|
+
### MANDATORY
|
|
164
|
+
|
|
165
|
+
1. **ALWAYS run BEFORE commit-manager** - Update domains before committing
|
|
166
|
+
2. **ALWAYS document problems** - Every issue solved is knowledge gained
|
|
167
|
+
3. **ALWAYS update commit history** - Keep track of all changes
|
|
168
|
+
4. **ALWAYS add prevention tips** - Help future sessions avoid same issues
|
|
169
|
+
5. **READ domain-mapping.json** - Use config, don't hardcode patterns
|
|
170
|
+
|
|
171
|
+
### FORBIDDEN
|
|
172
|
+
|
|
173
|
+
1. **Skip domain updates** - Every session must update relevant domains
|
|
174
|
+
2. **Generic descriptions** - Be specific about what was done
|
|
175
|
+
3. **Ignore problems** - If it was difficult, document it
|
|
176
|
+
4. **Leave outdated info** - Remove/update stale information
|
|
177
|
+
5. **Hardcode domain patterns** - Use `.claude/config/domain-mapping.json`
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Integration
|
|
182
|
+
|
|
183
|
+
This agent is triggered:
|
|
184
|
+
|
|
185
|
+
1. **After final-validator** approves in all workflow flows
|
|
186
|
+
2. **Before commit-manager** to ensure git stays clean
|
|
187
|
+
3. **Manually** via `/update-domains` command (if implemented)
|
|
188
|
+
|
|
189
|
+
The Stop hook will **BLOCK** session end if domains weren't updated for modified files.
|
|
190
|
+
|
|
191
|
+
**Workflow order:**
|
|
192
|
+
```
|
|
193
|
+
final-validator → domain-updater → commit-manager → complete-task
|
|
194
|
+
```
|
|
@@ -22,24 +22,6 @@ You are the LAST check before commit. You have **VETO POWER** to ensure ALL rule
|
|
|
22
22
|
|
|
23
23
|
## WORKFLOW STATE TRACKING
|
|
24
24
|
|
|
25
|
-
Run these commands automatically after validation:
|
|
26
|
-
|
|
27
|
-
### If APPROVED (all checks pass)
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
python .claude/hooks/workflow-manager.py final-validation --result approved --ready-to-commit true
|
|
31
|
-
python .claude/hooks/workflow-manager.py agent-executed --agent final-validator --result approved
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### If VETOED (violations found)
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
python .claude/hooks/workflow-manager.py final-validation --result vetoed --ready-to-commit false --violations "Missing tests,Docs not updated"
|
|
38
|
-
python .claude/hooks/workflow-manager.py agent-executed --agent final-validator --result vetoed --notes "X violations found"
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**CRITICAL:** Without `--ready-to-commit true`, the Husky pre-commit hook will BLOCK the commit!
|
|
42
|
-
|
|
43
25
|
## Mega Validation Checklist
|
|
44
26
|
|
|
45
27
|
### 1. CODEBASE-KNOWLEDGE
|
|
@@ -10,44 +10,41 @@ skills: codebase-knowledge
|
|
|
10
10
|
|
|
11
11
|
You coordinate the entire development flow. Your job is to ensure EVERY task follows the agent pipeline strictly.
|
|
12
12
|
|
|
13
|
-
## MANDATORY FLOW
|
|
13
|
+
## MANDATORY FLOW (STRICT)
|
|
14
14
|
|
|
15
15
|
Every task MUST follow this sequence:
|
|
16
16
|
|
|
17
17
|
```
|
|
18
|
-
0.
|
|
19
|
-
1.
|
|
20
|
-
2.
|
|
21
|
-
3.
|
|
22
|
-
4.
|
|
23
|
-
5.
|
|
24
|
-
6.
|
|
25
|
-
7.
|
|
26
|
-
8.
|
|
27
|
-
9.
|
|
28
|
-
10.
|
|
18
|
+
0. TODO LIST → FIRST: Create DETAILED todo list from prompt
|
|
19
|
+
1. RESEARCH → Run research agent for NEW features (MANDATORY!)
|
|
20
|
+
2. AUDIT → Check last audit docs OR run fresh audit
|
|
21
|
+
3. BRANCH → Create feature/ | fix/ | refactor/ | test/
|
|
22
|
+
4. codebase-knowledge → READ domain file first
|
|
23
|
+
5. analyzer → Analyze impact + APPROVE FILES
|
|
24
|
+
6. ui-ux-reviewer → SEPARATE UIs for mobile/tablet/desktop (if UI)
|
|
25
|
+
7. [IMPLEMENTATION] → Write the code (only approved files!)
|
|
26
|
+
8. tester → Create and run tests
|
|
27
|
+
9. security-auditor → Security audit (CAN VETO)
|
|
28
|
+
10. quality-checker → Run quality gates (Husky enforced)
|
|
29
|
+
11. documenter → Document with commit hash references
|
|
30
|
+
12. final-validator → Final validation (CAN VETO)
|
|
31
|
+
13. domain-updater → Update domains with learnings
|
|
32
|
+
14. commit-manager → Commit and create PR to main
|
|
29
33
|
```
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### Step 0: Start Task (ALWAYS FIRST)
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
python .claude/hooks/workflow-manager.py start-task --type [feature|fix|refactor|config] --description "[task description]"
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
This MUST be done BEFORE any file modifications. The hooks will BLOCK edits otherwise.
|
|
35
|
+
> **CRITICAL:** Research is MANDATORY for new features.
|
|
36
|
+
> **CRITICAL:** Documentation MUST include commit hashes for audit trail.
|
|
37
|
+
> **CRITICAL:** UI tasks require SEPARATE layouts (NOT responsive).
|
|
42
38
|
|
|
43
39
|
## Task Classification
|
|
44
40
|
|
|
45
|
-
| Type | Agents Required
|
|
46
|
-
| ------------ |
|
|
47
|
-
| **Feature** | ALL agents
|
|
48
|
-
| **Bug fix** | analyzer → implement → tester → security
|
|
49
|
-
| **Refactor** | analyzer → implement → tester → quality
|
|
50
|
-
| **Config** | implement → quality
|
|
41
|
+
| Type | Agents Required |
|
|
42
|
+
| ------------ | ----------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| **Feature** | todo → research (MANDATORY) → audit → branch → ALL agents → document → PR |
|
|
44
|
+
| **Bug fix** | todo → research → analyzer → implement → tester → security → quality → document → final → domain → commit → PR |
|
|
45
|
+
| **Refactor** | todo → analyzer → implement → tester → quality → document → final → domain → commit |
|
|
46
|
+
| **Config** | todo → implement → quality → commit |
|
|
47
|
+
| **UI Task** | todo → research → audit → SEPARATE UIs (mobile/tablet/desktop) → tester → quality → document → PR |
|
|
51
48
|
|
|
52
49
|
## Agent Delegation Format
|
|
53
50
|
|
|
@@ -129,8 +126,13 @@ Proceeding to next agent...
|
|
|
129
126
|
|
|
130
127
|
## Critical Rules
|
|
131
128
|
|
|
132
|
-
1. **
|
|
133
|
-
2. **
|
|
134
|
-
3. **
|
|
135
|
-
4. **
|
|
136
|
-
5. **
|
|
129
|
+
1. **TODO LIST IS FIRST** - ALWAYS create detailed todo list before anything
|
|
130
|
+
2. **RESEARCH IS MANDATORY** - For new features and complex bug fixes
|
|
131
|
+
3. **SECURITY IS NON-NEGOTIABLE** - If security-auditor reports issue, STOP
|
|
132
|
+
4. **TESTS ARE MANDATORY** - Except for config/chore
|
|
133
|
+
5. **DOCUMENTATION WITH HASH** - Must include commit hash for audit trail
|
|
134
|
+
6. **QUALITY BEFORE COMMIT** - typecheck + lint + build MUST pass (Husky)
|
|
135
|
+
7. **NEVER SKIP AGENTS** - Follow the flow strictly
|
|
136
|
+
8. **SEPARATE UIs** - Mobile/Tablet/Desktop (NOT just responsive)
|
|
137
|
+
9. **INPUT VALIDATION** - All inputs need real-time visual feedback
|
|
138
|
+
10. **PR TO MAIN** - Always create PR with doc references
|
|
@@ -45,30 +45,6 @@ Read `runAll` from config file.
|
|
|
45
45
|
|
|
46
46
|
## WORKFLOW STATE TRACKING
|
|
47
47
|
|
|
48
|
-
Run these commands automatically after each check:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# After typecheck
|
|
52
|
-
python .claude/hooks/workflow-manager.py quality-gate --gate typecheck --passed true
|
|
53
|
-
|
|
54
|
-
# After lint
|
|
55
|
-
python .claude/hooks/workflow-manager.py quality-gate --gate lint --passed true
|
|
56
|
-
|
|
57
|
-
# After unit tests
|
|
58
|
-
python .claude/hooks/workflow-manager.py quality-gate --gate unitTests --passed true
|
|
59
|
-
|
|
60
|
-
# After E2E tests
|
|
61
|
-
python .claude/hooks/workflow-manager.py quality-gate --gate e2eTests --passed true
|
|
62
|
-
|
|
63
|
-
# After build
|
|
64
|
-
python .claude/hooks/workflow-manager.py quality-gate --gate build --passed true
|
|
65
|
-
|
|
66
|
-
# Mark agent as executed
|
|
67
|
-
python .claude/hooks/workflow-manager.py agent-executed --agent quality-checker --result approved
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
If any check fails, use `--passed false --errors "error description"`
|
|
71
|
-
|
|
72
48
|
## Execution Flow
|
|
73
49
|
|
|
74
50
|
```
|