@su-record/vibe 3.1.0 → 3.2.0
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/CLAUDE.md +2 -2
- package/README.en.md +6 -4
- package/README.md +5 -3
- package/dist/__tests__/wiring-integrity.test.d.ts +2 -0
- package/dist/__tests__/wiring-integrity.test.d.ts.map +1 -0
- package/dist/__tests__/wiring-integrity.test.js +160 -0
- package/dist/__tests__/wiring-integrity.test.js.map +1 -0
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +2 -1
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +4 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/index.js +102 -128
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/claude-agents.js +0 -5
- package/dist/cli/postinstall/claude-agents.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts +6 -0
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +42 -60
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/postinstall/inline-skills.js +2 -2
- package/dist/cli/postinstall/inline-skills.js.map +1 -1
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +2 -0
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/cli/postinstall.d.ts +6 -1
- package/dist/cli/postinstall.d.ts.map +1 -1
- package/dist/cli/postinstall.js +6 -1
- package/dist/cli/postinstall.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.d.ts +1 -15
- package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
- package/dist/cli/setup/GlobalInstaller.js +16 -115
- package/dist/cli/setup/GlobalInstaller.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.test.d.ts +2 -0
- package/dist/cli/setup/GlobalInstaller.test.d.ts.map +1 -0
- package/dist/cli/setup/GlobalInstaller.test.js +16 -0
- package/dist/cli/setup/GlobalInstaller.test.js.map +1 -0
- package/dist/cli/setup/ProjectSetup.js +2 -2
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/dist/cli/setup.d.ts +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +1 -1
- package/dist/cli/setup.js.map +1 -1
- package/dist/infra/lib/SkillRepository.js +1 -1
- package/dist/infra/lib/evolution/__tests__/integration.test.js +0 -42
- package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
- package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -3
- package/hooks/scripts/__tests__/clone-behaviors.test.js +33 -1
- package/hooks/scripts/__tests__/code-check-memory-write.test.js +81 -0
- package/hooks/scripts/__tests__/step-counter.test.js +21 -0
- package/hooks/scripts/auto-format.js +2 -11
- package/hooks/scripts/auto-test.js +2 -11
- package/hooks/scripts/clone-extract.js +146 -10
- package/hooks/scripts/code-check.js +27 -55
- package/hooks/scripts/lib/glob.js +32 -0
- package/hooks/scripts/lib/hook-context.js +19 -2
- package/hooks/scripts/post-edit.js +2 -3
- package/hooks/scripts/prompt-dispatcher.js +1 -1
- package/hooks/scripts/scope-guard.js +3 -42
- package/hooks/scripts/sentinel-guard.js +5 -20
- package/hooks/scripts/session-start.js +2 -2
- package/hooks/scripts/step-counter.js +35 -57
- package/package.json +2 -3
- package/skills/clone/SKILL.md +10 -216
- package/skills/clone/references/capture-rules.md +48 -0
- package/skills/clone/references/legal-and-error-recovery.md +40 -0
- package/skills/clone/references/refine-rules.md +61 -0
- package/skills/clone/references/scaffold-phases.md +59 -0
- package/skills/clone/references/setup-and-layout.md +30 -0
- package/skills/docs/SKILL.md +39 -4
- package/skills/docs/references/api-docs-changelog.md +34 -0
- package/skills/docs/references/codemaps-output.md +23 -0
- package/{agents/diagrammer.md → skills/docs/references/diagram-spec.md} +2 -15
- package/skills/exec-plan/SKILL.md +1 -1
- package/skills/exec-plan/templates/plan.md +1 -1
- package/skills/handoff/SKILL.md +3 -3
- package/skills/handoff/templates/handoff.md +1 -1
- package/skills/vibe/SKILL.md +3 -2
- package/skills/vibe.analyze/SKILL.md +12 -249
- package/skills/vibe.analyze/references/output-templates.md +188 -0
- package/skills/vibe.analyze/references/quality-gate.md +93 -0
- package/skills/vibe.clone/SKILL.md +14 -1
- package/skills/vibe.continue/SKILL.md +32 -0
- package/skills/vibe.design/SKILL.md +23 -1
- package/skills/vibe.design/references/ui-preview.md +20 -0
- package/skills/vibe.docs/SKILL.md +4 -2
- package/skills/vibe.figma/SKILL.md +33 -260
- package/skills/vibe.figma/references/branch-phases.md +113 -0
- package/skills/vibe.figma/references/state-schema.md +42 -0
- package/skills/vibe.figma/references/step-algorithms.md +204 -0
- package/skills/vibe.image/SKILL.md +62 -0
- package/skills/vibe.image/references/image-generation-examples.md +39 -0
- package/skills/vibe.reason/SKILL.md +3 -183
- package/skills/vibe.reason/references/output-format-template.md +57 -0
- package/skills/vibe.reason/references/quality-rubrics.md +94 -0
- package/skills/vibe.reason/references/worked-example.md +45 -0
- package/skills/vibe.review/SKILL.md +13 -348
- package/skills/vibe.review/references/boundary-check.md +25 -0
- package/skills/vibe.review/references/output-template.md +74 -0
- package/skills/vibe.review/references/quality-gate.md +84 -0
- package/skills/vibe.review/references/race-mode.md +117 -0
- package/skills/vibe.review/references/worked-examples.md +94 -0
- package/vibe/templates/claudemd-template.md +1 -1
- package/agents/acceptance-tester.md +0 -56
- package/agents/documenter.md +0 -43
- package/agents/figma/figma-engineer.md +0 -76
- package/dist/cli/postinstall/index.d.ts +0 -23
- package/dist/cli/postinstall/index.d.ts.map +0 -1
- package/dist/cli/postinstall/index.js +0 -23
- package/dist/cli/postinstall/index.js.map +0 -1
- package/dist/cli/setup/index.d.ts +0 -9
- package/dist/cli/setup/index.d.ts.map +0 -1
- package/dist/cli/setup/index.js +0 -12
- package/dist/cli/setup/index.js.map +0 -1
- package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
- package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
- package/hooks/scripts/evolution-engine.js +0 -91
- package/hooks/scripts/hud-status.js +0 -321
- package/hooks/scripts/skill-injector.js +0 -83
- package/skills/vibe.utils/SKILL.md +0 -415
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vibe.utils
|
|
3
|
-
description: Utility tools (UI preview, diagram, E2E test, image generation, etc.)
|
|
4
|
-
argument-hint: "--ui, --diagram, --e2e, --image, or other options"
|
|
5
|
-
user-invocable: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# /vibe.utils
|
|
9
|
-
|
|
10
|
-
Collection of utility tools. Use with options.
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
/vibe.utils --ui "description" # UI ASCII preview
|
|
16
|
-
/vibe.utils --diagram # Architecture diagram
|
|
17
|
-
/vibe.utils --diagram --er # ERD diagram
|
|
18
|
-
/vibe.utils --diagram --flow # Flowchart
|
|
19
|
-
/vibe.utils --e2e "scenario" # E2E browser test (Playwright)
|
|
20
|
-
/vibe.utils --e2e --visual # Visual regression test
|
|
21
|
-
/vibe.utils --e2e --record # Video recording
|
|
22
|
-
/vibe.utils --image "description" # Generate image with Antigravity (icon, banner, etc.)
|
|
23
|
-
/vibe.utils --image --icon "AppName" # Generate app icon/favicon
|
|
24
|
-
/vibe.utils --build-fix # Fix build errors (minimal diff)
|
|
25
|
-
/vibe.utils --clean # Remove dead code + DELETION_LOG
|
|
26
|
-
/vibe.utils --codemaps # Generate architecture docs
|
|
27
|
-
/vibe.utils --compound # Document solution (usually auto-triggered)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## --ui (UI Preview)
|
|
33
|
-
|
|
34
|
-
Generate the UI preview directly in the main session (native capability — no dedicated agent).
|
|
35
|
-
|
|
36
|
-
Generate UI preview from description or design folder.
|
|
37
|
-
|
|
38
|
-
- **Antigravity enabled**: UI mockup image + component code generation
|
|
39
|
-
- **Antigravity disabled**: ASCII art fallback
|
|
40
|
-
|
|
41
|
-
**Input types:**
|
|
42
|
-
|
|
43
|
-
| Input | Example |
|
|
44
|
-
| ----- | ------- |
|
|
45
|
-
| Text description | `"Login form with email, password"` |
|
|
46
|
-
| Design folder | `./design/` |
|
|
47
|
-
| Single file | `./mockups/login.html` |
|
|
48
|
-
|
|
49
|
-
**Supported file formats in folder:**
|
|
50
|
-
|
|
51
|
-
- `*.html` - HTML mockups
|
|
52
|
-
- `*.png` / `*.jpg` / `*.webp` - UI screenshots (Claude reads images)
|
|
53
|
-
- `*.json` - Design tokens
|
|
54
|
-
- `*.css` / `*.scss` - Style variables
|
|
55
|
-
- `*.md` - Style guides
|
|
56
|
-
- `*.svg` - Vector graphics
|
|
57
|
-
|
|
58
|
-
**Example:**
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
/vibe.utils --ui "Login form - email, password input + login button"
|
|
62
|
-
/vibe.utils --ui ./design/dashboard/
|
|
63
|
-
/vibe.utils --ui ./mockups/homepage.png
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## --diagram (Diagram Generation)
|
|
69
|
-
|
|
70
|
-
Read and follow `agents/diagrammer.md` for diagram generation.
|
|
71
|
-
|
|
72
|
-
Generate Mermaid diagrams for architecture visualization.
|
|
73
|
-
|
|
74
|
-
**Options:**
|
|
75
|
-
- `--diagram`: Architecture overview
|
|
76
|
-
- `--diagram --er`: Entity-Relationship Diagram
|
|
77
|
-
- `--diagram --flow`: Flowchart
|
|
78
|
-
- `--diagram --seq`: Sequence Diagram
|
|
79
|
-
|
|
80
|
-
**Example:**
|
|
81
|
-
```
|
|
82
|
-
/vibe.utils --diagram --er
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## --image (Image Generation)
|
|
88
|
-
|
|
89
|
-
Generate images using the Antigravity image backend.
|
|
90
|
-
|
|
91
|
-
- **Default**: Antigravity fast image - 빠르고 가벼운 이미지 생성
|
|
92
|
-
- **--pro**: Antigravity pro image - 고품질 이미지 생성
|
|
93
|
-
|
|
94
|
-
### MANDATORY Tool Invocation
|
|
95
|
-
|
|
96
|
-
**CRITICAL: You MUST use the following command to generate images. Do NOT search for scripts, do NOT use gcloud, do NOT use any other method.**
|
|
97
|
-
|
|
98
|
-
**Step 0: Script path:**
|
|
99
|
-
- `[LLM_SCRIPT]` = `{{VIBE_PATH}}/hooks/scripts/llm-orchestrate.js`
|
|
100
|
-
|
|
101
|
-
**General image generation (Antigravity fast image):**
|
|
102
|
-
```bash
|
|
103
|
-
node "[LLM_SCRIPT]" antigravity image "IMAGE_DESCRIPTION" --output "OUTPUT_PATH"
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Pro quality (Antigravity pro image):**
|
|
107
|
-
```bash
|
|
108
|
-
node "[LLM_SCRIPT]" antigravity image "IMAGE_DESCRIPTION" --pro --output "OUTPUT_PATH"
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**With size option:**
|
|
112
|
-
```bash
|
|
113
|
-
node "[LLM_SCRIPT]" antigravity image "IMAGE_DESCRIPTION" --size "1920x1080" --output "OUTPUT_PATH"
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### How to Parse User Request
|
|
117
|
-
|
|
118
|
-
1. Extract the **image description** from the user's message (what to generate)
|
|
119
|
-
2. Extract the **output path** from the user's message (where to save)
|
|
120
|
-
- If user specifies a path, use that path
|
|
121
|
-
- Default: `--output "./generated-image.png"`
|
|
122
|
-
3. Extract **size** if specified, otherwise default 1024x1024
|
|
123
|
-
4. If user requests **high quality / pro / 고품질**, add `--pro` flag
|
|
124
|
-
|
|
125
|
-
### Examples
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
node "[LLM_SCRIPT]" antigravity image "A friendly AI character mascot, colorful, approachable" --output "./ai-character.png"
|
|
129
|
-
|
|
130
|
-
node "[LLM_SCRIPT]" antigravity image "Professional website banner, modern design" --pro --size "1920x400" --output "./banner.png"
|
|
131
|
-
|
|
132
|
-
node "[LLM_SCRIPT]" antigravity image "Modern minimal logo design" --output "./public/logo.png"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Output Format
|
|
136
|
-
|
|
137
|
-
The command outputs JSON to stdout:
|
|
138
|
-
```json
|
|
139
|
-
{ "success": true, "path": "/absolute/path/to/image.png", "size": 123456, "sizeKB": "120.5 KB" }
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
On error:
|
|
143
|
-
```json
|
|
144
|
-
{ "success": false, "error": "Error message" }
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Icon Generation (--icon)
|
|
148
|
-
|
|
149
|
-
Use the same command with a pre-built icon prompt template:
|
|
150
|
-
|
|
151
|
-
**Prompt template:** `"App icon for {APP_NAME}, primary color {COLOR}, square format 1:1, simple recognizable design, works well at small sizes, no text or letters, solid or gradient background, modern minimalist"`
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
# --icon "MyApp"
|
|
155
|
-
node "[LLM_SCRIPT]" antigravity image "App icon for MyApp, square format 1:1, simple recognizable design, works well at small sizes, no text or letters, solid or gradient background, modern minimalist" --output "./public/app-icon.png"
|
|
156
|
-
|
|
157
|
-
# --icon "MyApp" --color "#2F6BFF"
|
|
158
|
-
node "[LLM_SCRIPT]" antigravity image "App icon for MyApp, primary color #2F6BFF, square format 1:1, simple recognizable design, works well at small sizes, no text or letters, solid or gradient background, modern minimalist" --output "./public/app-icon.png"
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### Prerequisites
|
|
162
|
-
|
|
163
|
-
- Antigravity API key configured (`vibe antigravity key <key>`)
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
## --e2e (E2E Testing)
|
|
168
|
-
|
|
169
|
-
Read and follow `agents/e2e-tester.md` for Playwright-based E2E testing.
|
|
170
|
-
|
|
171
|
-
**Options:**
|
|
172
|
-
- `--e2e "scenario"`: Run specific scenario
|
|
173
|
-
- `--e2e --visual`: Visual regression testing
|
|
174
|
-
- `--e2e --record`: Video recording
|
|
175
|
-
|
|
176
|
-
**Features:**
|
|
177
|
-
- Screenshot capture and comparison
|
|
178
|
-
- Console error collection
|
|
179
|
-
- Accessibility (a11y) testing
|
|
180
|
-
- Bug reproduction automation
|
|
181
|
-
|
|
182
|
-
**Example:**
|
|
183
|
-
```
|
|
184
|
-
/vibe.utils --e2e "login flow"
|
|
185
|
-
/vibe.utils --e2e --visual --record
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
## --build-fix (Build Error Resolution)
|
|
191
|
-
|
|
192
|
-
Read and follow `agents/build-error-resolver.md` for minimal-diff build fixes.
|
|
193
|
-
|
|
194
|
-
Fix TypeScript/build errors with minimal changes.
|
|
195
|
-
|
|
196
|
-
**Philosophy:** Changes must be < 5% of file. No refactoring.
|
|
197
|
-
|
|
198
|
-
**Allowed:**
|
|
199
|
-
- Add type annotations
|
|
200
|
-
- Fix imports
|
|
201
|
-
- Add null checks
|
|
202
|
-
- Install missing deps
|
|
203
|
-
|
|
204
|
-
**Forbidden:**
|
|
205
|
-
- Refactor unrelated code
|
|
206
|
-
- Change architecture
|
|
207
|
-
- Rename variables
|
|
208
|
-
|
|
209
|
-
**Example:**
|
|
210
|
-
```
|
|
211
|
-
/vibe.utils --build-fix
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
**Output:** List of minimal fixes applied + build status
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## --clean (Dead Code Removal)
|
|
219
|
-
|
|
220
|
-
Perform safe dead code removal directly (native capability — the `/simplify` skill covers reuse/simplification cleanups; this mode handles detection + removal with an audit trail).
|
|
221
|
-
|
|
222
|
-
Detect and remove unused code with audit trail.
|
|
223
|
-
|
|
224
|
-
**Analysis Tools:**
|
|
225
|
-
- knip (unused exports, files, deps)
|
|
226
|
-
- depcheck (unused npm packages)
|
|
227
|
-
- ts-prune (unused TS exports)
|
|
228
|
-
|
|
229
|
-
**Safety Levels:**
|
|
230
|
-
| Level | Category | Action |
|
|
231
|
-
|-------|----------|--------|
|
|
232
|
-
| SAFE | Private functions, local vars | Auto-delete |
|
|
233
|
-
| CAREFUL | Unused exports | Verify then delete |
|
|
234
|
-
| RISKY | Public API, shared utils | Report only |
|
|
235
|
-
|
|
236
|
-
**Example:**
|
|
237
|
-
```
|
|
238
|
-
/vibe.utils --clean
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
**Output:**
|
|
242
|
-
- Removed items list
|
|
243
|
-
- `.vibe/DELETION_LOG.md` updated
|
|
244
|
-
- Build/test verification
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
## --codemaps (Architecture Documentation)
|
|
249
|
-
|
|
250
|
-
Generate auto-documentation from codebase structure.
|
|
251
|
-
|
|
252
|
-
**Output Location:** `docs/CODEMAPS/`
|
|
253
|
-
|
|
254
|
-
**Generated Files:**
|
|
255
|
-
```
|
|
256
|
-
docs/CODEMAPS/
|
|
257
|
-
├── INDEX.md # Overview of all areas
|
|
258
|
-
├── frontend.md # Frontend structure
|
|
259
|
-
├── backend.md # API/backend structure
|
|
260
|
-
├── database.md # Schema documentation
|
|
261
|
-
└── integrations.md # External services
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
**Each file contains:**
|
|
265
|
-
- Module table (name, path, description)
|
|
266
|
-
- Data flow diagram (Mermaid)
|
|
267
|
-
- Dependencies list
|
|
268
|
-
- Related areas
|
|
269
|
-
|
|
270
|
-
**Tools Used:**
|
|
271
|
-
- ts-morph (TypeScript AST)
|
|
272
|
-
- madge (dependency graph)
|
|
273
|
-
|
|
274
|
-
**Example:**
|
|
275
|
-
```
|
|
276
|
-
/vibe.utils --codemaps
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## --compound (Solution Documentation)
|
|
282
|
-
|
|
283
|
-
Document the solved problem directly (native capability — no dedicated agent).
|
|
284
|
-
|
|
285
|
-
Document solved problems for knowledge accumulation.
|
|
286
|
-
|
|
287
|
-
**Usually auto-triggered by hooks when:**
|
|
288
|
-
- "bug fixed", "PR merged" detected
|
|
289
|
-
|
|
290
|
-
**Output location:** `.vibe/solutions/`
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
.vibe/solutions/
|
|
294
|
-
├── security/ # Security solutions
|
|
295
|
-
├── performance/ # Performance optimizations
|
|
296
|
-
├── database/ # Database related
|
|
297
|
-
└── integration/ # External integrations
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
---
|
|
301
|
-
|
|
302
|
-
## --continue (Session Restore)
|
|
303
|
-
|
|
304
|
-
Restore previous session context for continuity.
|
|
305
|
-
|
|
306
|
-
**Usage:**
|
|
307
|
-
```
|
|
308
|
-
/vibe.utils --continue
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
**What it does:**
|
|
312
|
-
1. Calls `core_start_session` to load project memories
|
|
313
|
-
2. Restores previous conversation context
|
|
314
|
-
3. Resumes work from last checkpoint
|
|
315
|
-
|
|
316
|
-
---
|
|
317
|
-
|
|
318
|
-
## Quality Gate (Mandatory)
|
|
319
|
-
|
|
320
|
-
### UI Preview Quality Checklist (--ui)
|
|
321
|
-
|
|
322
|
-
| Category | Check Item | Weight |
|
|
323
|
-
|----------|------------|--------|
|
|
324
|
-
| **Completeness** | All requested elements present | 30% |
|
|
325
|
-
| **Layout** | Proper spacing and alignment | 20% |
|
|
326
|
-
| **Labels** | All buttons/inputs labeled | 20% |
|
|
327
|
-
| **Accessibility** | Tab order logical | 15% |
|
|
328
|
-
| **Responsiveness** | Mobile/desktop variants shown | 15% |
|
|
329
|
-
|
|
330
|
-
### Diagram Quality Checklist (--diagram)
|
|
331
|
-
|
|
332
|
-
| Category | Check Item | Weight |
|
|
333
|
-
|----------|------------|--------|
|
|
334
|
-
| **Accuracy** | Matches actual codebase structure | 30% |
|
|
335
|
-
| **Completeness** | All major components included | 25% |
|
|
336
|
-
| **Relationships** | Connections correctly shown | 20% |
|
|
337
|
-
| **Readability** | Not too cluttered | 15% |
|
|
338
|
-
| **Mermaid Syntax** | Valid, renders correctly | 10% |
|
|
339
|
-
|
|
340
|
-
### E2E Test Quality Checklist (--e2e)
|
|
341
|
-
|
|
342
|
-
| Category | Check Item | Weight |
|
|
343
|
-
|----------|------------|--------|
|
|
344
|
-
| **Coverage** | All critical paths tested | 25% |
|
|
345
|
-
| **Assertions** | Each step has verification | 20% |
|
|
346
|
-
| **Stability** | No flaky selectors | 20% |
|
|
347
|
-
| **Error Handling** | Failures captured with screenshots | 15% |
|
|
348
|
-
| **Performance** | Tests complete in reasonable time | 10% |
|
|
349
|
-
| **Accessibility** | a11y checks included | 10% |
|
|
350
|
-
|
|
351
|
-
### E2E Test Requirements
|
|
352
|
-
|
|
353
|
-
| Test Type | Required Output |
|
|
354
|
-
|-----------|-----------------|
|
|
355
|
-
| Standard | Pass/fail status + console errors |
|
|
356
|
-
| Visual (`--visual`) | Screenshot comparison + diff |
|
|
357
|
-
| Recording (`--record`) | Video file path + duration |
|
|
358
|
-
|
|
359
|
-
### E2E Forbidden Patterns
|
|
360
|
-
|
|
361
|
-
| Pattern | Issue | Required Fix |
|
|
362
|
-
|---------|-------|--------------|
|
|
363
|
-
| Hardcoded waits (`sleep(5000)`) | Flaky tests | Use `waitFor` conditions |
|
|
364
|
-
| XPath selectors | Brittle | Use data-testid |
|
|
365
|
-
| No assertions | Useless test | Add expect() calls |
|
|
366
|
-
| Ignoring console errors | Missing bugs | Capture and report |
|
|
367
|
-
|
|
368
|
-
### Compound (Solution) Quality Checklist (--compound)
|
|
369
|
-
|
|
370
|
-
| Category | Check Item | Weight |
|
|
371
|
-
|----------|------------|--------|
|
|
372
|
-
| **Problem** | Clearly described root cause | 25% |
|
|
373
|
-
| **Solution** | Step-by-step fix documented | 25% |
|
|
374
|
-
| **Prevention** | How to avoid in future | 20% |
|
|
375
|
-
| **Code Samples** | Before/after snippets | 15% |
|
|
376
|
-
| **Tags** | Properly categorized | 15% |
|
|
377
|
-
|
|
378
|
-
### Quality Score Calculation
|
|
379
|
-
|
|
380
|
-
```
|
|
381
|
-
Score = Σ(checked items × weight) / 100
|
|
382
|
-
|
|
383
|
-
Grades:
|
|
384
|
-
- 95-100: ✅ EXCELLENT - Ready to use
|
|
385
|
-
- 90-94: ⚠️ GOOD - Minor improvements recommended
|
|
386
|
-
- 80-89: ⚠️ FAIR - Improvements needed
|
|
387
|
-
- 0-79: ❌ POOR - Redo required
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
### Image Generation Quality Checklist (--image)
|
|
391
|
-
|
|
392
|
-
| Category | Check Item | Weight |
|
|
393
|
-
|----------|------------|--------|
|
|
394
|
-
| **Relevance** | Image matches description/app concept | 30% |
|
|
395
|
-
| **Format** | Correct sizes for all platforms | 25% |
|
|
396
|
-
| **Quality** | Clear at small sizes (16x16) | 20% |
|
|
397
|
-
| **Consistency** | Works in light/dark backgrounds | 15% |
|
|
398
|
-
| **Completeness** | All required files generated | 10% |
|
|
399
|
-
|
|
400
|
-
### Output Requirements by Tool
|
|
401
|
-
|
|
402
|
-
| Tool | Required Output |
|
|
403
|
-
|------|-----------------|
|
|
404
|
-
| `--ui` | ASCII preview + component list |
|
|
405
|
-
| `--diagram` | Valid Mermaid code + rendered preview |
|
|
406
|
-
| `--diagram --er` | Entity names, fields, relationships |
|
|
407
|
-
| `--diagram --flow` | Start/end nodes, decision points |
|
|
408
|
-
| `--e2e` | Test file + execution results |
|
|
409
|
-
| `--image` | Generated image file(s) + path |
|
|
410
|
-
| `--image --icon` | Full icon set + webmanifest |
|
|
411
|
-
| `--compound` | Solution markdown + category tag |
|
|
412
|
-
|
|
413
|
-
---
|
|
414
|
-
|
|
415
|
-
ARGUMENTS: $ARGUMENTS
|