ai-developer-skill-os 7.5.0 → 7.5.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/.agents/CHANGELOG.md +2 -1
- package/.agents/README.md +51 -10
- package/.agents/docs/CHI_TIET_SKILLS.md +2 -1
- package/.agents/skills/qk-orchestrator/SKILL.md +3 -2
- package/.agents/skills/qk-orchestrator/references/routing-table.md +3 -2
- package/.agents/skills/qk-project-bootstrap/SKILL.md +2 -1
- package/.agents/skills/qk-project-memory/SKILL.md +46 -0
- package/.agents/skills/qk-ui-audit/SKILL.md +3 -2
- package/.agents/skills/qk-ui-builder/SKILL.md +446 -0
- package/.agents/skills/qk-ui-builder/references/anti-patterns.md +295 -0
- package/.agents/skills/qk-ui-builder/references/color.md +115 -0
- package/.agents/skills/qk-ui-builder/references/component-cookbook.md +1194 -0
- package/.agents/skills/qk-ui-builder/references/copy.md +250 -0
- package/.agents/skills/qk-ui-builder/references/interaction-and-states.md +115 -0
- package/.agents/skills/qk-ui-builder/references/layout-and-space.md +111 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/01-bento-grid.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/02-long-document.md +50 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/03-marquee-hero.md +51 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/04-stat-led.md +49 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/05-workbench.md +44 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/06-conversational-faq.md +50 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/07-manifesto.md +51 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/08-photographic.md +50 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/09-quote-led.md +50 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/11-catalogue.md +49 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/12-letter.md +49 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/13-index-first.md +49 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/14-narrative-workflow.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/15-split-studio.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/16-feature-stack.md +51 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/17-type-specimen.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/18-portfolio-grid.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/19-map-diagram.md +50 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/20-ecosystem-index.md +48 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures/21-component-playground.md +45 -0
- package/.agents/skills/qk-ui-builder/references/macrostructures.md +38 -0
- package/.agents/skills/qk-ui-builder/references/motion.md +95 -0
- package/.agents/skills/qk-ui-builder/references/responsive.md +115 -0
- package/.agents/skills/qk-ui-builder/references/slop-test.md +135 -0
- package/.agents/skills/qk-ui-builder/references/structure.md +280 -0
- package/.agents/skills/qk-ui-builder/references/themes/atmospheric.md +53 -0
- package/.agents/skills/qk-ui-builder/references/themes/carnival.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/cobalt.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/editorial.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/garden.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/hum.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/lumen.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/midnight.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/modern-minimal.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/playful.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/specimen.md +52 -0
- package/.agents/skills/qk-ui-builder/references/themes/terminal.md +52 -0
- package/.agents/skills/qk-ui-builder/references/typography.md +129 -0
- package/.agents/skills.json +4 -4
- package/CHANGELOG.md +2 -1
- package/README.md +36 -16
- package/bin/lint.js +3 -2
- package/docs/CHI_TIET_SKILLS.md +2 -1
- package/framework/decision-primitives.md +2 -1
- package/package.json +2 -2
- package/skills/_template/SKILL.md +2 -1
- package/skills/qk-access-policy/SKILL.md +3 -2
- package/skills/qk-ai-builder/SKILL.md +3 -2
- package/skills/qk-api-lifecycle/SKILL.md +3 -2
- package/skills/qk-bug-resolution/SKILL.md +3 -2
- package/skills/qk-context-loader/SKILL.md +13 -12
- package/skills/qk-data-lifecycle/SKILL.md +3 -2
- package/skills/qk-db-optimizer/SKILL.md +3 -2
- package/skills/qk-docs/SKILL.md +3 -2
- package/skills/qk-engineering-standard/SKILL.md +19 -18
- package/skills/qk-fe-api-integration/SKILL.md +3 -2
- package/skills/qk-feature-delivery/SKILL.md +3 -2
- package/skills/qk-help/SKILL.md +3 -2
- package/skills/qk-orchestrator/SKILL.md +18 -16
- package/skills/qk-orchestrator/references/routing-table.md +3 -2
- package/skills/qk-production-release/SKILL.md +15 -14
- package/skills/qk-project-bootstrap/SKILL.md +5 -3
- package/skills/qk-project-health/SKILL.md +3 -2
- package/skills/qk-project-memory/SKILL.md +49 -2
- package/skills/qk-system-evolution/SKILL.md +16 -15
- package/skills/qk-ui-audit/SKILL.md +21 -19
- package/skills/qk-ui-builder/SKILL.md +447 -0
- package/skills/qk-ui-builder/references/anti-patterns.md +295 -0
- package/skills/qk-ui-builder/references/color.md +115 -0
- package/skills/qk-ui-builder/references/component-cookbook.md +1194 -0
- package/skills/qk-ui-builder/references/copy.md +250 -0
- package/skills/qk-ui-builder/references/interaction-and-states.md +115 -0
- package/skills/qk-ui-builder/references/layout-and-space.md +111 -0
- package/skills/qk-ui-builder/references/macrostructures/01-bento-grid.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/02-long-document.md +50 -0
- package/skills/qk-ui-builder/references/macrostructures/03-marquee-hero.md +51 -0
- package/skills/qk-ui-builder/references/macrostructures/04-stat-led.md +49 -0
- package/skills/qk-ui-builder/references/macrostructures/05-workbench.md +44 -0
- package/skills/qk-ui-builder/references/macrostructures/06-conversational-faq.md +50 -0
- package/skills/qk-ui-builder/references/macrostructures/07-manifesto.md +51 -0
- package/skills/qk-ui-builder/references/macrostructures/08-photographic.md +50 -0
- package/skills/qk-ui-builder/references/macrostructures/09-quote-led.md +50 -0
- package/skills/qk-ui-builder/references/macrostructures/11-catalogue.md +49 -0
- package/skills/qk-ui-builder/references/macrostructures/12-letter.md +49 -0
- package/skills/qk-ui-builder/references/macrostructures/13-index-first.md +49 -0
- package/skills/qk-ui-builder/references/macrostructures/14-narrative-workflow.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/15-split-studio.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/16-feature-stack.md +51 -0
- package/skills/qk-ui-builder/references/macrostructures/17-type-specimen.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/18-portfolio-grid.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/19-map-diagram.md +50 -0
- package/skills/qk-ui-builder/references/macrostructures/20-ecosystem-index.md +48 -0
- package/skills/qk-ui-builder/references/macrostructures/21-component-playground.md +45 -0
- package/skills/qk-ui-builder/references/macrostructures.md +38 -0
- package/skills/qk-ui-builder/references/motion.md +95 -0
- package/skills/qk-ui-builder/references/responsive.md +115 -0
- package/skills/qk-ui-builder/references/slop-test.md +135 -0
- package/skills/qk-ui-builder/references/structure.md +280 -0
- package/skills/qk-ui-builder/references/themes/atmospheric.md +53 -0
- package/skills/qk-ui-builder/references/themes/carnival.md +52 -0
- package/skills/qk-ui-builder/references/themes/cobalt.md +52 -0
- package/skills/qk-ui-builder/references/themes/editorial.md +52 -0
- package/skills/qk-ui-builder/references/themes/garden.md +52 -0
- package/skills/qk-ui-builder/references/themes/hum.md +52 -0
- package/skills/qk-ui-builder/references/themes/lumen.md +52 -0
- package/skills/qk-ui-builder/references/themes/midnight.md +52 -0
- package/skills/qk-ui-builder/references/themes/modern-minimal.md +52 -0
- package/skills/qk-ui-builder/references/themes/playful.md +52 -0
- package/skills/qk-ui-builder/references/themes/specimen.md +52 -0
- package/skills/qk-ui-builder/references/themes/terminal.md +52 -0
- package/skills/qk-ui-builder/references/typography.md +129 -0
- package/skills/qk-ui-system-builder/SKILL.md +3 -2
- package/skills/qk-validation-gate/SKILL.md +18 -17
- package/skills.json +28 -27
- package/.agents/_template/BEHAVIOR_SPEC.md +0 -96
- package/.agents/_template/examples/example-en.md +0 -49
- package/.agents/_template/examples/example-vi.md +0 -49
- package/.agents/skills/qk-design-to-code/SKILL.md +0 -285
- package/.qk-ai-skill-os/CHANGELOG.md +0 -69
- package/.qk-ai-skill-os/LICENSE +0 -21
- package/.qk-ai-skill-os/README.md +0 -59
- package/.qk-ai-skill-os/_template/BEHAVIOR_SPEC.md +0 -96
- package/.qk-ai-skill-os/_template/examples/example-en.md +0 -49
- package/.qk-ai-skill-os/_template/examples/example-vi.md +0 -49
- package/.qk-ai-skill-os/docs/CHI_TIET_SKILLS.md +0 -125
- package/.qk-ai-skill-os/docs/GOVERNANCE.md +0 -40
- package/.qk-ai-skill-os/docs/HUONG_DAN_SU_DUNG.md +0 -120
- package/.qk-ai-skill-os/docs/SPEC.md +0 -87
- package/.qk-ai-skill-os/docs/adr/0001-intent-based-architecture.md +0 -19
- package/.qk-ai-skill-os/docs/adr/0002-kernel-freeze.md +0 -21
- package/.qk-ai-skill-os/docs/adr/0003-risk-based-verification.md +0 -20
- package/.qk-ai-skill-os/docs/adr/0004-progressive-evidence.md +0 -19
- package/.qk-ai-skill-os/docs/skill-classification.md +0 -25
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +0 -121
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +0 -179
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-api-integration/SKILL.md +0 -389
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-auth-security/SKILL.md +0 -96
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +0 -125
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-bug-fix/SKILL.md +0 -213
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-component-generator/SKILL.md +0 -136
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-context-manager/SKILL.md +0 -175
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-database-engineer/SKILL.md +0 -104
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-deployment/SKILL.md +0 -96
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-design-system/SKILL.md +0 -137
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-form-builder/SKILL.md +0 -140
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +0 -155
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +0 -133
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +0 -129
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +0 -146
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-git-engineer/SKILL.md +0 -304
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-help/SKILL.md +0 -68
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-migration/SKILL.md +0 -284
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-project-audit/SKILL.md +0 -280
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-refactor/SKILL.md +0 -222
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-state-management/SKILL.md +0 -140
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +0 -127
- package/.qk-ai-skill-os/skills/_archive_old_skills/qk-ui-builder/SKILL.md +0 -152
- package/.qk-ai-skill-os/skills/_template/SKILL.md +0 -238
- package/.qk-ai-skill-os/skills/qk-access-policy/SKILL.md +0 -179
- package/.qk-ai-skill-os/skills/qk-ai-builder/SKILL.md +0 -221
- package/.qk-ai-skill-os/skills/qk-api-lifecycle/SKILL.md +0 -176
- package/.qk-ai-skill-os/skills/qk-bug-resolution/SKILL.md +0 -307
- package/.qk-ai-skill-os/skills/qk-context-loader/SKILL.md +0 -218
- package/.qk-ai-skill-os/skills/qk-data-lifecycle/SKILL.md +0 -192
- package/.qk-ai-skill-os/skills/qk-db-optimizer/SKILL.md +0 -196
- package/.qk-ai-skill-os/skills/qk-design-to-code/SKILL.md +0 -291
- package/.qk-ai-skill-os/skills/qk-docs/SKILL.md +0 -198
- package/.qk-ai-skill-os/skills/qk-engineering-standard/SKILL.md +0 -351
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/backend.md +0 -122
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/database.md +0 -3
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/frontend.md +0 -152
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/security.md +0 -3
- package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/testing.md +0 -3
- package/.qk-ai-skill-os/skills/qk-fe-api-integration/SKILL.md +0 -326
- package/.qk-ai-skill-os/skills/qk-feature-delivery/SKILL.md +0 -305
- package/.qk-ai-skill-os/skills/qk-help/SKILL.md +0 -193
- package/.qk-ai-skill-os/skills/qk-orchestrator/SKILL.md +0 -277
- package/.qk-ai-skill-os/skills/qk-orchestrator/references/routing-table.md +0 -77
- package/.qk-ai-skill-os/skills/qk-production-release/SKILL.md +0 -290
- package/.qk-ai-skill-os/skills/qk-project-bootstrap/SKILL.md +0 -240
- package/.qk-ai-skill-os/skills/qk-project-health/SKILL.md +0 -199
- package/.qk-ai-skill-os/skills/qk-project-memory/SKILL.md +0 -172
- package/.qk-ai-skill-os/skills/qk-system-evolution/SKILL.md +0 -285
- package/.qk-ai-skill-os/skills/qk-ui-audit/SKILL.md +0 -314
- package/.qk-ai-skill-os/skills/qk-ui-audit/references/anti-slop-checklist.md +0 -136
- package/.qk-ai-skill-os/skills/qk-ui-system-builder/SKILL.md +0 -225
- package/.qk-ai-skill-os/skills/qk-validation-gate/SKILL.md +0 -361
- package/.qk-ai-skill-os/skills.json +0 -819
- package/skills/qk-design-to-code/SKILL.md +0 -285
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: qk-design-to-code
|
|
3
|
-
category: frontend
|
|
4
|
-
version: 7.5.0
|
|
5
|
-
description: "Chuyển thiết kế Figma/Image thành UI component chuẩn pixel — zero AI-slop, 100% DESIGN.md."
|
|
6
|
-
platforms: [antigravity, claude-code, cursor, windsurf, kilo-code]
|
|
7
|
-
execution_mode: deterministic
|
|
8
|
-
|
|
9
|
-
cost: high
|
|
10
|
-
latency: slow
|
|
11
|
-
risk: low
|
|
12
|
-
side_effects: edit_files
|
|
13
|
-
produces: [code]
|
|
14
|
-
consumes: [design-md, design-asset]
|
|
15
|
-
|
|
16
|
-
token_budget:
|
|
17
|
-
max_files_read: 4
|
|
18
|
-
max_lines_per_read: 150
|
|
19
|
-
max_shell_commands: 0
|
|
20
|
-
stop_early: false
|
|
21
|
-
|
|
22
|
-
exit_codes: [SUCCESS, BLOCKED, FAILED, PARTIAL]
|
|
23
|
-
skill_version: 7.5.0
|
|
24
|
-
runtime_version: 1
|
|
25
|
-
schema_version: 2
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
# qk-design-to-code — Pixel-Perfect Builder
|
|
29
|
-
|
|
30
|
-
> **Language rule:** Code, identifiers, file names ? English. Explanations, summaries ? Vietnamese.
|
|
31
|
-
|
|
32
|
-
skill_version: 7.5.0
|
|
33
|
-
runtime_version: 1
|
|
34
|
-
schema_version: 2
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Preconditions
|
|
38
|
-
- [ ] `DESIGN.md` exists with color tokens, spacing scale, typography
|
|
39
|
-
- [ ] Design reference (Figma link, image, or wireframe description) provided
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
On missing precondition:
|
|
43
|
-
EXIT: BLOCKED
|
|
44
|
-
Message: "DESIGN.md missing or design reference not provided."
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
skill_version: 7.5.0
|
|
48
|
-
runtime_version: 1
|
|
49
|
-
schema_version: 2
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Scope
|
|
53
|
-
- ✅ Build UI from design reference using ONLY DESIGN.md tokens
|
|
54
|
-
- ✅ Include all interactive states: hover, focus, active, disabled, loading
|
|
55
|
-
- ✅ Responsive layouts (mobile + desktop)
|
|
56
|
-
- ✅ Semantic HTML with ARIA roles
|
|
57
|
-
|
|
58
|
-
## Non-Goals
|
|
59
|
-
- ❌ Invent design tokens not in DESIGN.md
|
|
60
|
-
- ❌ Use hardcoded hex colors, px sizes not from token system
|
|
61
|
-
- ❌ Copy generic Tailwind/Bootstrap templates
|
|
62
|
-
- ❌ Skip loading/error/empty states
|
|
63
|
-
|
|
64
|
-
skill_version: 7.5.0
|
|
65
|
-
runtime_version: 1
|
|
66
|
-
schema_version: 2
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Priority Order
|
|
70
|
-
|
|
71
|
-
| Priority | Task | Skip Threshold |
|
|
72
|
-
|----------|------|----------------|
|
|
73
|
-
| P1 | HTML structure + semantic markup | Never |
|
|
74
|
-
| P2 | DESIGN.md token application (colors, spacing, typography) | Never |
|
|
75
|
-
| P3 | Interactive states (hover, focus, active) | Budget < 30% |
|
|
76
|
-
| P4 | Responsive breakpoints (mobile) | Budget < 50% |
|
|
77
|
-
| P5 | Loading / error / empty states | Budget < 60% |
|
|
78
|
-
| P6 | Animation / micro-interactions | Budget < 70% |
|
|
79
|
-
| P7 | ARIA roles + keyboard navigation | Budget < 80% |
|
|
80
|
-
|
|
81
|
-
skill_version: 7.5.0
|
|
82
|
-
runtime_version: 1
|
|
83
|
-
schema_version: 2
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Workflow
|
|
87
|
-
|
|
88
|
-
### Phase 1 — Extract Design System
|
|
89
|
-
|
|
90
|
-
**Steps:**
|
|
91
|
-
1. Read `DESIGN.md` → extract: colors (HSL), spacing scale, font families, border-radius, shadows, animation timing
|
|
92
|
-
2. Map tokens to CSS variables or framework equivalents
|
|
93
|
-
|
|
94
|
-
**Decision:**
|
|
95
|
-
```
|
|
96
|
-
IF DESIGN.md has all required tokens
|
|
97
|
-
→ go to Phase 2
|
|
98
|
-
|
|
99
|
-
ELSE IF some tokens missing
|
|
100
|
-
→ Use reasonable fallback, note gap in output
|
|
101
|
-
→ Confidence: MEDIUM
|
|
102
|
-
|
|
103
|
-
ELSE IF DESIGN.md empty
|
|
104
|
-
→ EXIT: BLOCKED
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
skill_version: 7.5.0
|
|
108
|
-
runtime_version: 1
|
|
109
|
-
schema_version: 2
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
### Phase 2 — Build Structure
|
|
113
|
-
|
|
114
|
-
**Steps:**
|
|
115
|
-
1. Create HTML structure (semantic: `article`, `section`, `nav`, `button`, NOT `div` soup)
|
|
116
|
-
2. Apply layout: CSS Grid / Flexbox (NO absolute positioning unless unavoidable)
|
|
117
|
-
3. Apply DESIGN.md tokens for colors, spacing, typography
|
|
118
|
-
|
|
119
|
-
**Self-Check before next phase:**
|
|
120
|
-
```
|
|
121
|
-
✅ No hardcoded hex/rgb values (only CSS vars or DESIGN.md tokens)
|
|
122
|
-
✅ No magic numbers for spacing (only from scale: 4, 8, 16, 24, 32...)
|
|
123
|
-
✅ Semantic HTML elements used
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
skill_version: 7.5.0
|
|
127
|
-
runtime_version: 1
|
|
128
|
-
schema_version: 2
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
### Phase 3 — Interactive States
|
|
132
|
-
|
|
133
|
-
**Steps:**
|
|
134
|
-
1. Add hover, focus, active states for all interactive elements
|
|
135
|
-
2. Add disabled state for form elements
|
|
136
|
-
3. Use CSS transitions (duration from DESIGN.md, typically 150–300ms)
|
|
137
|
-
|
|
138
|
-
**Self-Check:**
|
|
139
|
-
```
|
|
140
|
-
✅ Every button/link has hover + focus state
|
|
141
|
-
✅ Focus visible (not outline: none without replacement)
|
|
142
|
-
✅ Transition duration matches DESIGN.md
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
skill_version: 7.5.0
|
|
146
|
-
runtime_version: 1
|
|
147
|
-
schema_version: 2
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
### Phase 4 — Self-Audit (Anti-Slop Check)
|
|
151
|
-
|
|
152
|
-
**Checklist (must pass ALL):**
|
|
153
|
-
- [ ] No hardcoded colors — only DESIGN.md tokens
|
|
154
|
-
- [ ] No font-size in px without token — use rem/token
|
|
155
|
-
- [ ] No `margin: auto` soup — use proper grid/flex
|
|
156
|
-
- [ ] All interactive elements have hover + focus state
|
|
157
|
-
- [ ] Mobile viewport works (no horizontal overflow)
|
|
158
|
-
- [ ] No `!important` overrides (except resets)
|
|
159
|
-
- [ ] No inline styles except dynamic values
|
|
160
|
-
- [ ] Loading state implemented (skeleton or spinner)
|
|
161
|
-
- [ ] Error state implemented (clear message)
|
|
162
|
-
- [ ] Empty state implemented (helpful illustration/text)
|
|
163
|
-
|
|
164
|
-
**Decision:**
|
|
165
|
-
```
|
|
166
|
-
IF all 10 anti-slop checks pass
|
|
167
|
-
→ EXIT: SUCCESS
|
|
168
|
-
|
|
169
|
-
ELSE IF 1–2 minor fails
|
|
170
|
-
→ Fix immediately, EXIT: SUCCESS
|
|
171
|
-
|
|
172
|
-
ELSE IF > 2 fails OR hardcoded colors found
|
|
173
|
-
→ Fix all, re-audit, EXIT: PARTIAL if still one gap
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
skill_version: 7.5.0
|
|
177
|
-
runtime_version: 1
|
|
178
|
-
schema_version: 2
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Confidence Model
|
|
182
|
-
|
|
183
|
-
| Level | Condition | Action |
|
|
184
|
-
|-------|-----------|--------|
|
|
185
|
-
| HIGH | DESIGN.md complete, design reference clear | Build directly |
|
|
186
|
-
| MEDIUM | Some tokens missing, inferring from context | Note gaps, proceed |
|
|
187
|
-
| LOW | Design reference too vague or DESIGN.md empty | EXIT: BLOCKED |
|
|
188
|
-
|
|
189
|
-
skill_version: 7.5.0
|
|
190
|
-
runtime_version: 1
|
|
191
|
-
schema_version: 2
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
## Evidence Format (Self-Audit Violations)
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
[SEVERITY] path/to/Component.tsx:LINE
|
|
198
|
-
Category: [TOKEN|SEMANTIC|INTERACTION|RESPONSIVE|STATE|ARIA]
|
|
199
|
-
Reason: [specific anti-slop violation]
|
|
200
|
-
Confidence: HIGH
|
|
201
|
-
Fix: [applied immediately]
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
skill_version: 7.5.0
|
|
205
|
-
runtime_version: 1
|
|
206
|
-
schema_version: 2
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## Handoff Contract
|
|
210
|
-
|
|
211
|
-
### Consumes
|
|
212
|
-
```json
|
|
213
|
-
{
|
|
214
|
-
"from": "user",
|
|
215
|
-
"required_fields": ["design_reference", "design_md_path"],
|
|
216
|
-
"optional_fields": ["component_name", "framework"]
|
|
217
|
-
}
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Produces
|
|
221
|
-
```json
|
|
222
|
-
{
|
|
223
|
-
"to": "qk-ui-audit (for verification)",
|
|
224
|
-
"output_fields": ["component_files", "tokens_used", "states_implemented", "exit_code"]
|
|
225
|
-
}
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
skill_version: 7.5.0
|
|
229
|
-
runtime_version: 1
|
|
230
|
-
schema_version: 2
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
## Output Format
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
🎨 Design → Code
|
|
237
|
-
─────────────────────────────────────────────────
|
|
238
|
-
Component: [ComponentName]
|
|
239
|
-
Tokens used: [list of DESIGN.md tokens applied]
|
|
240
|
-
|
|
241
|
-
States implemented:
|
|
242
|
-
✅ Default / ✅ Hover / ✅ Focus / ✅ Active
|
|
243
|
-
✅ Loading / ✅ Error / ✅ Empty
|
|
244
|
-
⚠️ [any state skipped — reason]
|
|
245
|
-
|
|
246
|
-
Anti-Slop Audit:
|
|
247
|
-
✅ [10/10 checks passed | N/10 — list failures]
|
|
248
|
-
|
|
249
|
-
Exit Code: [SUCCESS | PARTIAL | BLOCKED | FAILED]
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
skill_version: 7.5.0
|
|
253
|
-
runtime_version: 1
|
|
254
|
-
schema_version: 2
|
|
255
|
-
---
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
## Escalation Rules
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
---
|
|
264
|
-
|
|
265
|
-
## Severity
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
## Retry Policy
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
---
|
|
274
|
-
## Exit Codes
|
|
275
|
-
|
|
276
|
-
| Code | Meaning | When |
|
|
277
|
-
|------|---------|------|
|
|
278
|
-
| SUCCESS | Component built, all 10 anti-slop checks passed | Production ready |
|
|
279
|
-
| PARTIAL | Built but 1–2 minor gaps (e.g., animation skipped) | User review recommended |
|
|
280
|
-
| BLOCKED | DESIGN.md or design reference missing | Cannot build |
|
|
281
|
-
| FAILED | Anti-slop audit finds > 2 violations or hardcoded values | Rebuild required |
|
|
282
|
-
|
|
283
|
-
---
|
|
284
|
-
|
|
285
|
-
|