start-vibing 1.1.1
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/README.md +149 -0
- package/dist/cli.js +199 -0
- package/package.json +42 -0
- package/template/.claude/CLAUDE.md +168 -0
- package/template/.claude/README.md +208 -0
- package/template/.claude/agents/analyzer.md +139 -0
- package/template/.claude/agents/commit-manager.md +231 -0
- package/template/.claude/agents/documenter.md +160 -0
- package/template/.claude/agents/domain-updater.md +200 -0
- package/template/.claude/agents/final-validator.md +182 -0
- package/template/.claude/agents/orchestrator.md +136 -0
- package/template/.claude/agents/quality-checker.md +264 -0
- package/template/.claude/agents/research.md +262 -0
- package/template/.claude/agents/security-auditor.md +199 -0
- package/template/.claude/agents/tester.md +572 -0
- package/template/.claude/agents/ui-ux-reviewer.md +180 -0
- package/template/.claude/commands/feature.md +102 -0
- package/template/.claude/commands/fix.md +80 -0
- package/template/.claude/commands/research.md +107 -0
- package/template/.claude/commands/validate.md +72 -0
- package/template/.claude/config/README.md +30 -0
- package/template/.claude/config/domain-mapping.json +26 -0
- package/template/.claude/config/project-config.json +53 -0
- package/template/.claude/config/quality-gates.json +46 -0
- package/template/.claude/config/security-rules.json +45 -0
- package/template/.claude/config/testing-config.json +168 -0
- package/template/.claude/hooks/SETUP.md +181 -0
- package/template/.claude/hooks/post-tool-use.py +155 -0
- package/template/.claude/hooks/pre-tool-use.py +159 -0
- package/template/.claude/hooks/security-check.js +202 -0
- package/template/.claude/hooks/stop-validation.py +155 -0
- package/template/.claude/hooks/user-prompt-submit.py +277 -0
- package/template/.claude/hooks/validate-commit.py +200 -0
- package/template/.claude/hooks/workflow-manager.py +350 -0
- package/template/.claude/settings.json +269 -0
- package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -0
- package/template/.claude/skills/codebase-knowledge/TEMPLATE.md +35 -0
- package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +321 -0
- package/template/.claude/skills/docs-tracker/SKILL.md +239 -0
- package/template/.claude/skills/final-check/SKILL.md +284 -0
- package/template/.claude/skills/quality-gate/SKILL.md +278 -0
- package/template/.claude/skills/research-cache/SKILL.md +207 -0
- package/template/.claude/skills/security-scan/SKILL.md +206 -0
- package/template/.claude/skills/test-coverage/SKILL.md +441 -0
- package/template/.claude/skills/ui-ux-audit/SKILL.md +254 -0
- package/template/.claude/workflow-state.schema.json +200 -0
- package/template/CLAUDE.md +96 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Claude Workflow State",
|
|
4
|
+
"description": "Tracks agent workflow execution state for enforcement",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["version", "currentTask", "sessions"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Schema version"
|
|
11
|
+
},
|
|
12
|
+
"currentTask": {
|
|
13
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/definitions/task" }],
|
|
14
|
+
"description": "Currently active task (null if no task in progress)"
|
|
15
|
+
},
|
|
16
|
+
"sessions": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": { "$ref": "#/definitions/session" },
|
|
19
|
+
"description": "History of completed sessions"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {
|
|
23
|
+
"task": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": [
|
|
26
|
+
"id",
|
|
27
|
+
"type",
|
|
28
|
+
"description",
|
|
29
|
+
"startedAt",
|
|
30
|
+
"agents",
|
|
31
|
+
"approvedFiles",
|
|
32
|
+
"modifiedFiles"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"id": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Unique task ID (timestamp-based)"
|
|
38
|
+
},
|
|
39
|
+
"type": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["feature", "fix", "refactor", "config", "research"],
|
|
42
|
+
"description": "Task classification"
|
|
43
|
+
},
|
|
44
|
+
"description": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Task description from user"
|
|
47
|
+
},
|
|
48
|
+
"startedAt": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "date-time",
|
|
51
|
+
"description": "When task started"
|
|
52
|
+
},
|
|
53
|
+
"agents": {
|
|
54
|
+
"$ref": "#/definitions/agentExecution",
|
|
55
|
+
"description": "Track which agents have executed"
|
|
56
|
+
},
|
|
57
|
+
"approvedFiles": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": { "type": "string" },
|
|
60
|
+
"description": "Files approved for modification by analyzer"
|
|
61
|
+
},
|
|
62
|
+
"modifiedFiles": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": { "$ref": "#/definitions/fileModification" },
|
|
65
|
+
"description": "Files actually modified"
|
|
66
|
+
},
|
|
67
|
+
"testsCreated": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "type": "string" },
|
|
70
|
+
"description": "Test files created"
|
|
71
|
+
},
|
|
72
|
+
"docsUpdated": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": { "type": "string" },
|
|
75
|
+
"description": "Documentation files updated"
|
|
76
|
+
},
|
|
77
|
+
"qualityGates": {
|
|
78
|
+
"$ref": "#/definitions/qualityGates",
|
|
79
|
+
"description": "Quality gate results"
|
|
80
|
+
},
|
|
81
|
+
"securityAudit": {
|
|
82
|
+
"$ref": "#/definitions/securityAudit",
|
|
83
|
+
"description": "Security audit result"
|
|
84
|
+
},
|
|
85
|
+
"finalValidation": {
|
|
86
|
+
"$ref": "#/definitions/finalValidation",
|
|
87
|
+
"description": "Final validation result"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"agentExecution": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"orchestrator": { "$ref": "#/definitions/agentStatus" },
|
|
95
|
+
"analyzer": { "$ref": "#/definitions/agentStatus" },
|
|
96
|
+
"uiUxReviewer": { "$ref": "#/definitions/agentStatus" },
|
|
97
|
+
"documenter": { "$ref": "#/definitions/agentStatus" },
|
|
98
|
+
"tester": { "$ref": "#/definitions/agentStatus" },
|
|
99
|
+
"securityAuditor": { "$ref": "#/definitions/agentStatus" },
|
|
100
|
+
"qualityChecker": { "$ref": "#/definitions/agentStatus" },
|
|
101
|
+
"finalValidator": { "$ref": "#/definitions/agentStatus" },
|
|
102
|
+
"commitManager": { "$ref": "#/definitions/agentStatus" }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"agentStatus": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"required": ["executed"],
|
|
108
|
+
"properties": {
|
|
109
|
+
"executed": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"description": "Whether this agent has executed"
|
|
112
|
+
},
|
|
113
|
+
"executedAt": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "date-time",
|
|
116
|
+
"description": "When executed"
|
|
117
|
+
},
|
|
118
|
+
"result": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": ["pending", "approved", "vetoed", "skipped"],
|
|
121
|
+
"description": "Agent result"
|
|
122
|
+
},
|
|
123
|
+
"notes": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "Any notes from execution"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"fileModification": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"required": ["path", "action", "timestamp"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"path": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "File path"
|
|
136
|
+
},
|
|
137
|
+
"action": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"enum": ["created", "modified", "deleted"],
|
|
140
|
+
"description": "Type of modification"
|
|
141
|
+
},
|
|
142
|
+
"timestamp": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "date-time"
|
|
145
|
+
},
|
|
146
|
+
"approved": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"description": "Was this file in approvedFiles list?"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"qualityGates": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"typecheck": { "$ref": "#/definitions/gateResult" },
|
|
156
|
+
"lint": { "$ref": "#/definitions/gateResult" },
|
|
157
|
+
"unitTests": { "$ref": "#/definitions/gateResult" },
|
|
158
|
+
"e2eTests": { "$ref": "#/definitions/gateResult" },
|
|
159
|
+
"build": { "$ref": "#/definitions/gateResult" }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"gateResult": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"passed": { "type": "boolean" },
|
|
166
|
+
"executedAt": { "type": "string", "format": "date-time" },
|
|
167
|
+
"errors": { "type": "array", "items": { "type": "string" } }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"securityAudit": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"executed": { "type": "boolean" },
|
|
174
|
+
"executedAt": { "type": "string", "format": "date-time" },
|
|
175
|
+
"result": { "type": "string", "enum": ["approved", "vetoed"] },
|
|
176
|
+
"vulnerabilities": { "type": "array", "items": { "type": "string" } }
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"finalValidation": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"executed": { "type": "boolean" },
|
|
183
|
+
"executedAt": { "type": "string", "format": "date-time" },
|
|
184
|
+
"result": { "type": "string", "enum": ["approved", "vetoed"] },
|
|
185
|
+
"violations": { "type": "array", "items": { "type": "string" } },
|
|
186
|
+
"readyToCommit": { "type": "boolean" }
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"session": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"required": ["id", "task", "completedAt", "commitHash"],
|
|
192
|
+
"properties": {
|
|
193
|
+
"id": { "type": "string" },
|
|
194
|
+
"task": { "$ref": "#/definitions/task" },
|
|
195
|
+
"completedAt": { "type": "string", "format": "date-time" },
|
|
196
|
+
"commitHash": { "type": "string" }
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Development Rules
|
|
2
|
+
|
|
3
|
+
> **THESE RULES ARE MANDATORY. NO EXCEPTIONS.**
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
1. READ AGENTS → .claude/agents/*.md
|
|
11
|
+
2. START TASK → python .claude/hooks/workflow-manager.py start-task --type feature --description "..."
|
|
12
|
+
3. IMPLEMENT → Follow project rules
|
|
13
|
+
4. QUALITY CHECK → Run all quality gates
|
|
14
|
+
5. COMMIT → Conventional commits
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Agent System
|
|
20
|
+
|
|
21
|
+
This project uses 11 specialized AI agents:
|
|
22
|
+
|
|
23
|
+
| Agent | Purpose | Priority |
|
|
24
|
+
| ---------------- | --------------------------------- | -------- |
|
|
25
|
+
| orchestrator | Coordinates entire workflow | 1 |
|
|
26
|
+
| analyzer | Analyzes change impact | 2 |
|
|
27
|
+
| research | Researches best practices | 3 |
|
|
28
|
+
| documenter | Creates/updates documentation | 3 |
|
|
29
|
+
| tester | Creates unit and E2E tests | 4 |
|
|
30
|
+
| security-auditor | Audits security (VETO POWER) | 5 |
|
|
31
|
+
| ui-ux-reviewer | Reviews UI/UX patterns | 6 |
|
|
32
|
+
| quality-checker | Runs quality gates | 7 |
|
|
33
|
+
| final-validator | Final validation (VETO POWER) | 8 |
|
|
34
|
+
| domain-updater | Updates domain knowledge | 9 |
|
|
35
|
+
| commit-manager | Manages commits (FINAL step) | 10 |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Configuration
|
|
40
|
+
|
|
41
|
+
Edit these files in `.claude/config/` for your project:
|
|
42
|
+
|
|
43
|
+
| File | Purpose |
|
|
44
|
+
| --------------------- | -------------------------- |
|
|
45
|
+
| `project-config.json` | Stack, structure, commands |
|
|
46
|
+
| `quality-gates.json` | Quality check commands |
|
|
47
|
+
| `testing-config.json` | Test framework config |
|
|
48
|
+
| `security-rules.json` | Security audit rules |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Quick Start
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# 1. Start a task
|
|
56
|
+
python .claude/hooks/workflow-manager.py start-task --type feature --description "Add user authentication"
|
|
57
|
+
|
|
58
|
+
# 2. Approve files for modification
|
|
59
|
+
python .claude/hooks/workflow-manager.py approve-files --files "src/auth/*.ts"
|
|
60
|
+
|
|
61
|
+
# 3. Mark agents as executed
|
|
62
|
+
python .claude/hooks/workflow-manager.py agent-executed --agent analyzer --result approved
|
|
63
|
+
|
|
64
|
+
# 4. Run quality gates
|
|
65
|
+
python .claude/hooks/workflow-manager.py quality-gate --gate typecheck --passed true
|
|
66
|
+
|
|
67
|
+
# 5. Final validation
|
|
68
|
+
python .claude/hooks/workflow-manager.py final-validation --result approved --ready-to-commit true
|
|
69
|
+
|
|
70
|
+
# 6. Complete task
|
|
71
|
+
python .claude/hooks/workflow-manager.py complete-task --commit-hash abc123
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Critical Rules
|
|
77
|
+
|
|
78
|
+
1. **ALWAYS start task first** - Hooks block without active task
|
|
79
|
+
2. **ALWAYS approve files** - Pre-tool-use hook blocks unapproved edits
|
|
80
|
+
3. **NEVER skip agents** - Stop hook blocks incomplete workflows
|
|
81
|
+
4. **ALWAYS use conventional commits** - feat:, fix:, refactor:, docs:
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Documentation
|
|
86
|
+
|
|
87
|
+
- [Agent System](.claude/CLAUDE.md) - Full agent documentation
|
|
88
|
+
- [Skills](.claude/skills/) - Available skills and templates
|
|
89
|
+
- [Hooks](.claude/hooks/) - Workflow enforcement hooks
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Setup by start-vibing
|
|
94
|
+
|
|
95
|
+
This project was set up with `npx start-vibing`.
|
|
96
|
+
For updates: `npx start-vibing --force`
|