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.
Files changed (204) hide show
  1. package/.agents/CHANGELOG.md +2 -1
  2. package/.agents/README.md +51 -10
  3. package/.agents/docs/CHI_TIET_SKILLS.md +2 -1
  4. package/.agents/skills/qk-orchestrator/SKILL.md +3 -2
  5. package/.agents/skills/qk-orchestrator/references/routing-table.md +3 -2
  6. package/.agents/skills/qk-project-bootstrap/SKILL.md +2 -1
  7. package/.agents/skills/qk-project-memory/SKILL.md +46 -0
  8. package/.agents/skills/qk-ui-audit/SKILL.md +3 -2
  9. package/.agents/skills/qk-ui-builder/SKILL.md +446 -0
  10. package/.agents/skills/qk-ui-builder/references/anti-patterns.md +295 -0
  11. package/.agents/skills/qk-ui-builder/references/color.md +115 -0
  12. package/.agents/skills/qk-ui-builder/references/component-cookbook.md +1194 -0
  13. package/.agents/skills/qk-ui-builder/references/copy.md +250 -0
  14. package/.agents/skills/qk-ui-builder/references/interaction-and-states.md +115 -0
  15. package/.agents/skills/qk-ui-builder/references/layout-and-space.md +111 -0
  16. package/.agents/skills/qk-ui-builder/references/macrostructures/01-bento-grid.md +48 -0
  17. package/.agents/skills/qk-ui-builder/references/macrostructures/02-long-document.md +50 -0
  18. package/.agents/skills/qk-ui-builder/references/macrostructures/03-marquee-hero.md +51 -0
  19. package/.agents/skills/qk-ui-builder/references/macrostructures/04-stat-led.md +49 -0
  20. package/.agents/skills/qk-ui-builder/references/macrostructures/05-workbench.md +44 -0
  21. package/.agents/skills/qk-ui-builder/references/macrostructures/06-conversational-faq.md +50 -0
  22. package/.agents/skills/qk-ui-builder/references/macrostructures/07-manifesto.md +51 -0
  23. package/.agents/skills/qk-ui-builder/references/macrostructures/08-photographic.md +50 -0
  24. package/.agents/skills/qk-ui-builder/references/macrostructures/09-quote-led.md +50 -0
  25. package/.agents/skills/qk-ui-builder/references/macrostructures/11-catalogue.md +49 -0
  26. package/.agents/skills/qk-ui-builder/references/macrostructures/12-letter.md +49 -0
  27. package/.agents/skills/qk-ui-builder/references/macrostructures/13-index-first.md +49 -0
  28. package/.agents/skills/qk-ui-builder/references/macrostructures/14-narrative-workflow.md +48 -0
  29. package/.agents/skills/qk-ui-builder/references/macrostructures/15-split-studio.md +48 -0
  30. package/.agents/skills/qk-ui-builder/references/macrostructures/16-feature-stack.md +51 -0
  31. package/.agents/skills/qk-ui-builder/references/macrostructures/17-type-specimen.md +48 -0
  32. package/.agents/skills/qk-ui-builder/references/macrostructures/18-portfolio-grid.md +48 -0
  33. package/.agents/skills/qk-ui-builder/references/macrostructures/19-map-diagram.md +50 -0
  34. package/.agents/skills/qk-ui-builder/references/macrostructures/20-ecosystem-index.md +48 -0
  35. package/.agents/skills/qk-ui-builder/references/macrostructures/21-component-playground.md +45 -0
  36. package/.agents/skills/qk-ui-builder/references/macrostructures.md +38 -0
  37. package/.agents/skills/qk-ui-builder/references/motion.md +95 -0
  38. package/.agents/skills/qk-ui-builder/references/responsive.md +115 -0
  39. package/.agents/skills/qk-ui-builder/references/slop-test.md +135 -0
  40. package/.agents/skills/qk-ui-builder/references/structure.md +280 -0
  41. package/.agents/skills/qk-ui-builder/references/themes/atmospheric.md +53 -0
  42. package/.agents/skills/qk-ui-builder/references/themes/carnival.md +52 -0
  43. package/.agents/skills/qk-ui-builder/references/themes/cobalt.md +52 -0
  44. package/.agents/skills/qk-ui-builder/references/themes/editorial.md +52 -0
  45. package/.agents/skills/qk-ui-builder/references/themes/garden.md +52 -0
  46. package/.agents/skills/qk-ui-builder/references/themes/hum.md +52 -0
  47. package/.agents/skills/qk-ui-builder/references/themes/lumen.md +52 -0
  48. package/.agents/skills/qk-ui-builder/references/themes/midnight.md +52 -0
  49. package/.agents/skills/qk-ui-builder/references/themes/modern-minimal.md +52 -0
  50. package/.agents/skills/qk-ui-builder/references/themes/playful.md +52 -0
  51. package/.agents/skills/qk-ui-builder/references/themes/specimen.md +52 -0
  52. package/.agents/skills/qk-ui-builder/references/themes/terminal.md +52 -0
  53. package/.agents/skills/qk-ui-builder/references/typography.md +129 -0
  54. package/.agents/skills.json +4 -4
  55. package/CHANGELOG.md +2 -1
  56. package/README.md +36 -16
  57. package/bin/lint.js +3 -2
  58. package/docs/CHI_TIET_SKILLS.md +2 -1
  59. package/framework/decision-primitives.md +2 -1
  60. package/package.json +2 -2
  61. package/skills/_template/SKILL.md +2 -1
  62. package/skills/qk-access-policy/SKILL.md +3 -2
  63. package/skills/qk-ai-builder/SKILL.md +3 -2
  64. package/skills/qk-api-lifecycle/SKILL.md +3 -2
  65. package/skills/qk-bug-resolution/SKILL.md +3 -2
  66. package/skills/qk-context-loader/SKILL.md +13 -12
  67. package/skills/qk-data-lifecycle/SKILL.md +3 -2
  68. package/skills/qk-db-optimizer/SKILL.md +3 -2
  69. package/skills/qk-docs/SKILL.md +3 -2
  70. package/skills/qk-engineering-standard/SKILL.md +19 -18
  71. package/skills/qk-fe-api-integration/SKILL.md +3 -2
  72. package/skills/qk-feature-delivery/SKILL.md +3 -2
  73. package/skills/qk-help/SKILL.md +3 -2
  74. package/skills/qk-orchestrator/SKILL.md +18 -16
  75. package/skills/qk-orchestrator/references/routing-table.md +3 -2
  76. package/skills/qk-production-release/SKILL.md +15 -14
  77. package/skills/qk-project-bootstrap/SKILL.md +5 -3
  78. package/skills/qk-project-health/SKILL.md +3 -2
  79. package/skills/qk-project-memory/SKILL.md +49 -2
  80. package/skills/qk-system-evolution/SKILL.md +16 -15
  81. package/skills/qk-ui-audit/SKILL.md +21 -19
  82. package/skills/qk-ui-builder/SKILL.md +447 -0
  83. package/skills/qk-ui-builder/references/anti-patterns.md +295 -0
  84. package/skills/qk-ui-builder/references/color.md +115 -0
  85. package/skills/qk-ui-builder/references/component-cookbook.md +1194 -0
  86. package/skills/qk-ui-builder/references/copy.md +250 -0
  87. package/skills/qk-ui-builder/references/interaction-and-states.md +115 -0
  88. package/skills/qk-ui-builder/references/layout-and-space.md +111 -0
  89. package/skills/qk-ui-builder/references/macrostructures/01-bento-grid.md +48 -0
  90. package/skills/qk-ui-builder/references/macrostructures/02-long-document.md +50 -0
  91. package/skills/qk-ui-builder/references/macrostructures/03-marquee-hero.md +51 -0
  92. package/skills/qk-ui-builder/references/macrostructures/04-stat-led.md +49 -0
  93. package/skills/qk-ui-builder/references/macrostructures/05-workbench.md +44 -0
  94. package/skills/qk-ui-builder/references/macrostructures/06-conversational-faq.md +50 -0
  95. package/skills/qk-ui-builder/references/macrostructures/07-manifesto.md +51 -0
  96. package/skills/qk-ui-builder/references/macrostructures/08-photographic.md +50 -0
  97. package/skills/qk-ui-builder/references/macrostructures/09-quote-led.md +50 -0
  98. package/skills/qk-ui-builder/references/macrostructures/11-catalogue.md +49 -0
  99. package/skills/qk-ui-builder/references/macrostructures/12-letter.md +49 -0
  100. package/skills/qk-ui-builder/references/macrostructures/13-index-first.md +49 -0
  101. package/skills/qk-ui-builder/references/macrostructures/14-narrative-workflow.md +48 -0
  102. package/skills/qk-ui-builder/references/macrostructures/15-split-studio.md +48 -0
  103. package/skills/qk-ui-builder/references/macrostructures/16-feature-stack.md +51 -0
  104. package/skills/qk-ui-builder/references/macrostructures/17-type-specimen.md +48 -0
  105. package/skills/qk-ui-builder/references/macrostructures/18-portfolio-grid.md +48 -0
  106. package/skills/qk-ui-builder/references/macrostructures/19-map-diagram.md +50 -0
  107. package/skills/qk-ui-builder/references/macrostructures/20-ecosystem-index.md +48 -0
  108. package/skills/qk-ui-builder/references/macrostructures/21-component-playground.md +45 -0
  109. package/skills/qk-ui-builder/references/macrostructures.md +38 -0
  110. package/skills/qk-ui-builder/references/motion.md +95 -0
  111. package/skills/qk-ui-builder/references/responsive.md +115 -0
  112. package/skills/qk-ui-builder/references/slop-test.md +135 -0
  113. package/skills/qk-ui-builder/references/structure.md +280 -0
  114. package/skills/qk-ui-builder/references/themes/atmospheric.md +53 -0
  115. package/skills/qk-ui-builder/references/themes/carnival.md +52 -0
  116. package/skills/qk-ui-builder/references/themes/cobalt.md +52 -0
  117. package/skills/qk-ui-builder/references/themes/editorial.md +52 -0
  118. package/skills/qk-ui-builder/references/themes/garden.md +52 -0
  119. package/skills/qk-ui-builder/references/themes/hum.md +52 -0
  120. package/skills/qk-ui-builder/references/themes/lumen.md +52 -0
  121. package/skills/qk-ui-builder/references/themes/midnight.md +52 -0
  122. package/skills/qk-ui-builder/references/themes/modern-minimal.md +52 -0
  123. package/skills/qk-ui-builder/references/themes/playful.md +52 -0
  124. package/skills/qk-ui-builder/references/themes/specimen.md +52 -0
  125. package/skills/qk-ui-builder/references/themes/terminal.md +52 -0
  126. package/skills/qk-ui-builder/references/typography.md +129 -0
  127. package/skills/qk-ui-system-builder/SKILL.md +3 -2
  128. package/skills/qk-validation-gate/SKILL.md +18 -17
  129. package/skills.json +28 -27
  130. package/.agents/_template/BEHAVIOR_SPEC.md +0 -96
  131. package/.agents/_template/examples/example-en.md +0 -49
  132. package/.agents/_template/examples/example-vi.md +0 -49
  133. package/.agents/skills/qk-design-to-code/SKILL.md +0 -285
  134. package/.qk-ai-skill-os/CHANGELOG.md +0 -69
  135. package/.qk-ai-skill-os/LICENSE +0 -21
  136. package/.qk-ai-skill-os/README.md +0 -59
  137. package/.qk-ai-skill-os/_template/BEHAVIOR_SPEC.md +0 -96
  138. package/.qk-ai-skill-os/_template/examples/example-en.md +0 -49
  139. package/.qk-ai-skill-os/_template/examples/example-vi.md +0 -49
  140. package/.qk-ai-skill-os/docs/CHI_TIET_SKILLS.md +0 -125
  141. package/.qk-ai-skill-os/docs/GOVERNANCE.md +0 -40
  142. package/.qk-ai-skill-os/docs/HUONG_DAN_SU_DUNG.md +0 -120
  143. package/.qk-ai-skill-os/docs/SPEC.md +0 -87
  144. package/.qk-ai-skill-os/docs/adr/0001-intent-based-architecture.md +0 -19
  145. package/.qk-ai-skill-os/docs/adr/0002-kernel-freeze.md +0 -21
  146. package/.qk-ai-skill-os/docs/adr/0003-risk-based-verification.md +0 -20
  147. package/.qk-ai-skill-os/docs/adr/0004-progressive-evidence.md +0 -19
  148. package/.qk-ai-skill-os/docs/skill-classification.md +0 -25
  149. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-accessibility-audit/SKILL.md +0 -121
  150. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-agent-orchestrator/SKILL.md +0 -179
  151. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-api-integration/SKILL.md +0 -389
  152. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-auth-security/SKILL.md +0 -96
  153. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-backend-architecture/SKILL.md +0 -125
  154. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-bug-fix/SKILL.md +0 -213
  155. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-component-generator/SKILL.md +0 -136
  156. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-context-manager/SKILL.md +0 -175
  157. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-database-engineer/SKILL.md +0 -104
  158. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-deployment/SKILL.md +0 -96
  159. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-design-system/SKILL.md +0 -137
  160. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-form-builder/SKILL.md +0 -140
  161. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-architecture/SKILL.md +0 -155
  162. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-debug/SKILL.md +0 -133
  163. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-performance/SKILL.md +0 -129
  164. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-frontend-testing/SKILL.md +0 -146
  165. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-git-engineer/SKILL.md +0 -304
  166. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-help/SKILL.md +0 -68
  167. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-migration/SKILL.md +0 -284
  168. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-project-audit/SKILL.md +0 -280
  169. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-refactor/SKILL.md +0 -222
  170. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-state-management/SKILL.md +0 -140
  171. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-table-crud-generator/SKILL.md +0 -127
  172. package/.qk-ai-skill-os/skills/_archive_old_skills/qk-ui-builder/SKILL.md +0 -152
  173. package/.qk-ai-skill-os/skills/_template/SKILL.md +0 -238
  174. package/.qk-ai-skill-os/skills/qk-access-policy/SKILL.md +0 -179
  175. package/.qk-ai-skill-os/skills/qk-ai-builder/SKILL.md +0 -221
  176. package/.qk-ai-skill-os/skills/qk-api-lifecycle/SKILL.md +0 -176
  177. package/.qk-ai-skill-os/skills/qk-bug-resolution/SKILL.md +0 -307
  178. package/.qk-ai-skill-os/skills/qk-context-loader/SKILL.md +0 -218
  179. package/.qk-ai-skill-os/skills/qk-data-lifecycle/SKILL.md +0 -192
  180. package/.qk-ai-skill-os/skills/qk-db-optimizer/SKILL.md +0 -196
  181. package/.qk-ai-skill-os/skills/qk-design-to-code/SKILL.md +0 -291
  182. package/.qk-ai-skill-os/skills/qk-docs/SKILL.md +0 -198
  183. package/.qk-ai-skill-os/skills/qk-engineering-standard/SKILL.md +0 -351
  184. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/backend.md +0 -122
  185. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/database.md +0 -3
  186. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/frontend.md +0 -152
  187. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/security.md +0 -3
  188. package/.qk-ai-skill-os/skills/qk-engineering-standard/rules/testing.md +0 -3
  189. package/.qk-ai-skill-os/skills/qk-fe-api-integration/SKILL.md +0 -326
  190. package/.qk-ai-skill-os/skills/qk-feature-delivery/SKILL.md +0 -305
  191. package/.qk-ai-skill-os/skills/qk-help/SKILL.md +0 -193
  192. package/.qk-ai-skill-os/skills/qk-orchestrator/SKILL.md +0 -277
  193. package/.qk-ai-skill-os/skills/qk-orchestrator/references/routing-table.md +0 -77
  194. package/.qk-ai-skill-os/skills/qk-production-release/SKILL.md +0 -290
  195. package/.qk-ai-skill-os/skills/qk-project-bootstrap/SKILL.md +0 -240
  196. package/.qk-ai-skill-os/skills/qk-project-health/SKILL.md +0 -199
  197. package/.qk-ai-skill-os/skills/qk-project-memory/SKILL.md +0 -172
  198. package/.qk-ai-skill-os/skills/qk-system-evolution/SKILL.md +0 -285
  199. package/.qk-ai-skill-os/skills/qk-ui-audit/SKILL.md +0 -314
  200. package/.qk-ai-skill-os/skills/qk-ui-audit/references/anti-slop-checklist.md +0 -136
  201. package/.qk-ai-skill-os/skills/qk-ui-system-builder/SKILL.md +0 -225
  202. package/.qk-ai-skill-os/skills/qk-validation-gate/SKILL.md +0 -361
  203. package/.qk-ai-skill-os/skills.json +0 -819
  204. 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
-