vc-extras 0.1.0 → 0.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.
Files changed (249) hide show
  1. package/README.md +128 -71
  2. package/agent-install.mjs +159 -0
  3. package/agents/tester.md +23 -23
  4. package/install-extras.mjs +41 -109
  5. package/install-menu.mjs +22 -43
  6. package/install-skills.mjs +112 -112
  7. package/package.json +72 -28
  8. package/plugin-registry.mjs +73 -0
  9. package/plugins/config-ui/index.ts +159 -159
  10. package/plugins/config-ui/lib/arguments.mjs +24 -24
  11. package/plugins/config-ui/lib/documents.mjs +67 -67
  12. package/plugins/config-ui/lib/frontmatter.mjs +91 -91
  13. package/plugins/config-ui/lib/open.mjs +16 -16
  14. package/plugins/config-ui/lib/ownership.mjs +99 -99
  15. package/plugins/config-ui/lib/page.mjs +11 -11
  16. package/plugins/config-ui/lib/patch.mjs +35 -35
  17. package/plugins/config-ui/lib/paths.mjs +14 -14
  18. package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
  19. package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
  20. package/plugins/config-ui/lib/redaction.mjs +8 -8
  21. package/plugins/config-ui/lib/registry.mjs +282 -282
  22. package/plugins/config-ui/lib/secrets.mjs +44 -44
  23. package/plugins/config-ui/lib/server.mjs +250 -250
  24. package/plugins/config-ui/lib/sources.mjs +96 -96
  25. package/plugins/config-ui/lib/state.mjs +156 -156
  26. package/plugins/config-ui/lib/themes.mjs +113 -113
  27. package/plugins/config-ui/lib/writer.mjs +690 -690
  28. package/plugins/config-ui/project-local-owner.ts +106 -106
  29. package/plugins/config-ui/vc-extras.plugin.json +13 -0
  30. package/plugins/config-ui/web/app.mjs +997 -997
  31. package/plugins/config-ui/web/index.html +342 -342
  32. package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
  33. package/plugins/pi-btw/vc-extras.plugin.json +12 -0
  34. package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
  35. package/plugins/pi-fff/vc-extras.plugin.json +12 -0
  36. package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
  37. package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
  38. package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
  39. package/plugins/vc-ask/claude-hook.mjs +37 -0
  40. package/plugins/vc-ask/codex-native.mjs +28 -0
  41. package/plugins/vc-ask/host-channel.mjs +75 -0
  42. package/plugins/vc-ask/index.ts +57 -0
  43. package/plugins/vc-ask/native-questions.mjs +33 -0
  44. package/plugins/vc-ask/package.json +10 -0
  45. package/plugins/vc-ask/payload.ts +170 -0
  46. package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
  47. package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
  48. package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
  49. package/plugins/vc-ask/questionnaire/config.ts +180 -0
  50. package/plugins/vc-ask/questionnaire/events.ts +154 -0
  51. package/plugins/vc-ask/questionnaire/execute.ts +688 -0
  52. package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
  53. package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
  54. package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
  55. package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
  56. package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
  57. package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
  58. package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
  59. package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
  60. package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
  61. package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
  62. package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
  63. package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
  64. package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
  65. package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
  66. package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
  67. package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
  68. package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
  69. package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
  70. package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
  71. package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
  72. package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
  73. package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
  74. package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
  75. package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
  76. package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
  77. package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
  78. package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
  79. package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
  80. package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
  81. package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
  82. package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
  83. package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
  84. package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
  85. package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
  86. package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
  87. package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
  88. package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
  89. package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
  90. package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
  91. package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
  92. package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
  93. package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
  94. package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
  95. package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
  96. package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
  97. package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
  98. package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
  99. package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
  100. package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
  101. package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
  102. package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
  103. package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
  104. package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
  105. package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
  106. package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
  107. package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
  108. package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
  109. package/plugins/vc-ask/user-input-events.ts +34 -0
  110. package/plugins/vc-ask/vc-extras.plugin.json +18 -0
  111. package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
  112. package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
  113. package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
  114. package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
  115. package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
  116. package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
  117. package/plugins/vc-footer/agents/codex/native.mjs +19 -0
  118. package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
  119. package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
  120. package/plugins/vc-footer/agents/pi/index.js +84 -0
  121. package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
  122. package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
  123. package/plugins/vc-footer/core/data.mjs +218 -0
  124. package/plugins/vc-footer/core/render.mjs +291 -0
  125. package/plugins/vc-footer/core/types.d.ts +29 -0
  126. package/plugins/vc-footer/package.json +22 -0
  127. package/plugins/vc-footer/vc-extras.plugin.json +32 -0
  128. package/skills/animate/LICENSE +21 -21
  129. package/skills/animate/RECIPES.md +324 -324
  130. package/skills/animate/SKILL.md +208 -208
  131. package/skills/animate/UPSTREAM.md +19 -19
  132. package/skills/animation-performance/LICENSE +21 -21
  133. package/skills/animation-performance/SKILL.md +223 -223
  134. package/skills/animation-performance/UPSTREAM.md +19 -19
  135. package/skills/answer-me-with-html/SKILL.md +174 -174
  136. package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
  137. package/skills/apple-design/LICENSE +21 -21
  138. package/skills/apple-design/SKILL.md +291 -291
  139. package/skills/apple-design/UPSTREAM.md +19 -19
  140. package/skills/bad-smell/SKILL.md +44 -44
  141. package/skills/commit/SKILL.md +90 -90
  142. package/skills/emil-design-eng/LICENSE +21 -21
  143. package/skills/emil-design-eng/SKILL.md +677 -677
  144. package/skills/emil-design-eng/UPSTREAM.md +19 -19
  145. package/skills/find-the-truth/SKILL.md +38 -38
  146. package/skills/find-the-truth/references/trace-method.md +48 -48
  147. package/skills/find-the-truth/references/truth-method.md +39 -39
  148. package/skills/gestures/LICENSE +21 -21
  149. package/skills/gestures/SKILL.md +107 -107
  150. package/skills/gestures/UPSTREAM.md +19 -19
  151. package/skills/humanizer-zh/LICENSE +21 -21
  152. package/skills/humanizer-zh/SKILL.md +409 -409
  153. package/skills/humanizer-zh/UPSTREAM.md +7 -7
  154. package/skills/impeccable/LICENSE +191 -191
  155. package/skills/impeccable/NOTICE.md +11 -11
  156. package/skills/impeccable/SKILL.md +89 -89
  157. package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
  158. package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
  159. package/skills/impeccable/reference/adapt.md +318 -318
  160. package/skills/impeccable/reference/adapt.native.md +58 -58
  161. package/skills/impeccable/reference/android.md +46 -46
  162. package/skills/impeccable/reference/animate.md +89 -89
  163. package/skills/impeccable/reference/audit.md +139 -139
  164. package/skills/impeccable/reference/audit.native.md +139 -139
  165. package/skills/impeccable/reference/bolder.md +33 -33
  166. package/skills/impeccable/reference/clarify.md +94 -94
  167. package/skills/impeccable/reference/colorize.md +86 -86
  168. package/skills/impeccable/reference/component-review.md +63 -63
  169. package/skills/impeccable/reference/craft-floor.md +44 -44
  170. package/skills/impeccable/reference/craft.md +5 -5
  171. package/skills/impeccable/reference/critique.md +819 -819
  172. package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
  173. package/skills/impeccable/reference/degraded/documenter.md +23 -23
  174. package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
  175. package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
  176. package/skills/impeccable/reference/delight.md +70 -70
  177. package/skills/impeccable/reference/distill.md +111 -111
  178. package/skills/impeccable/reference/doctor.md +54 -54
  179. package/skills/impeccable/reference/document.md +416 -416
  180. package/skills/impeccable/reference/extract.md +69 -69
  181. package/skills/impeccable/reference/generate.md +101 -101
  182. package/skills/impeccable/reference/harden.md +362 -362
  183. package/skills/impeccable/reference/hooks.md +114 -114
  184. package/skills/impeccable/reference/init.md +131 -131
  185. package/skills/impeccable/reference/ios.md +51 -51
  186. package/skills/impeccable/reference/layout.md +84 -84
  187. package/skills/impeccable/reference/live-setup.md +104 -104
  188. package/skills/impeccable/reference/live.md +327 -327
  189. package/skills/impeccable/reference/mode-operate.md +21 -21
  190. package/skills/impeccable/reference/mode-persuade.md +19 -19
  191. package/skills/impeccable/reference/mode-read.md +21 -21
  192. package/skills/impeccable/reference/new-work.md +152 -152
  193. package/skills/impeccable/reference/onboard.md +234 -234
  194. package/skills/impeccable/reference/operate.md +61 -61
  195. package/skills/impeccable/reference/optimize.md +257 -257
  196. package/skills/impeccable/reference/overdrive.md +127 -127
  197. package/skills/impeccable/reference/polish.md +105 -105
  198. package/skills/impeccable/reference/quieter.md +99 -99
  199. package/skills/impeccable/reference/region-map.md +26 -26
  200. package/skills/impeccable/reference/routing.md +24 -24
  201. package/skills/impeccable/reference/shape.md +59 -59
  202. package/skills/impeccable/reference/typeset.md +90 -90
  203. package/skills/impeccable/reference/visualize.md +47 -47
  204. package/skills/impeccable/scripts/VERSION +1 -1
  205. package/skills/impeccable/scripts/command-metadata.json +98 -98
  206. package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
  207. package/skills/impeccable/scripts/engine-checksums.txt +9 -9
  208. package/skills/impeccable/scripts/impeccable +249 -249
  209. package/skills/impeccable/scripts/impeccable.cmd +278 -278
  210. package/skills/impeccable/scripts/live-browser-dom.js +320 -320
  211. package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
  212. package/skills/impeccable/scripts/live-browser-session.js +183 -183
  213. package/skills/impeccable/scripts/live-browser.js +13862 -13862
  214. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
  215. package/skills/improve-animations/AUDIT.md +115 -115
  216. package/skills/improve-animations/LICENSE +21 -21
  217. package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
  218. package/skills/improve-animations/SKILL.md +110 -110
  219. package/skills/improve-animations/UPSTREAM.md +19 -19
  220. package/skills/pick-ui-library/LICENSE +21 -21
  221. package/skills/pick-ui-library/SKILL.md +85 -85
  222. package/skills/pick-ui-library/UPSTREAM.md +19 -19
  223. package/skills/review-animations/LICENSE +21 -21
  224. package/skills/review-animations/SKILL.md +120 -120
  225. package/skills/review-animations/STANDARDS.md +187 -187
  226. package/skills/review-animations/UPSTREAM.md +19 -19
  227. package/skills/test/SKILL.md +29 -29
  228. package/skills/test/references/test-method.md +60 -60
  229. package/skills/write-doc/SKILL.md +115 -115
  230. package/skills/write-doc/examples/result-report.md +53 -53
  231. package/skills/write-doc/examples/task-summary.md +45 -45
  232. package/skills/write-doc/references/terminology.md +147 -147
  233. package/specs/ask-host-protocol-v1.md +58 -0
  234. package/specs/design-demo.md +1102 -1102
  235. package/specs/frontend-immersive.md +28 -28
  236. package/specs/plugin-install-v2.md +123 -0
  237. package/specs/plugin-install.md +38 -0
  238. package/specs/web-modes/explore.md +31 -31
  239. package/specs/web-modes/risk.md +15 -15
  240. package/specs/web-modes/verify.md +16 -16
  241. package/vc-extras.mjs +46 -62
  242. package/plugins/essrj/context.ts +0 -47
  243. package/plugins/essrj/data.ts +0 -190
  244. package/plugins/essrj/index.ts +0 -139
  245. package/plugins/essrj/package.json +0 -12
  246. package/plugins/essrj/project-local-owner.ts +0 -106
  247. package/plugins/essrj/render.ts +0 -217
  248. package/plugins/essrj/types.ts +0 -40
  249. package/plugins.json +0 -38
@@ -1,33 +1,33 @@
1
- > **Additional context needed**: which section is the target, and what must stay untouched.
2
-
3
- An open direction round owns the word first: "bolder" said while a direction decision is on the table is the Bolder hand register steer, a fresh deal of foreign forms (see new-work.md), not this command. This command refines a surface whose world already shipped.
4
-
5
- "Bolder" is an amplification request, and almost always it is scoped to something that already exists. The surrounding page, its system, and its conventions are the given. Your job is to raise one part to the conviction the rest already implies, without rebuilding anything the brief did not name. The reflex answer, reaching for more effects, is the opposite of bold; reject it first.
6
-
7
- ## Scope is sovereign
8
-
9
- "Everything else stays" is a literal instruction. Touch only the named target. Do not restyle its neighbors, do not migrate the page to a new idea, do not add colors, fonts, radii, shadows, or system primitives the surface does not already own. If the existing system genuinely cannot express the direction, do not expand it on your own. Ask the user directly to clarify what you cannot infer. Name the exact addition and the job it would do.
10
-
11
- ## Why it reads flat
12
-
13
- A section usually reads flat for reasons its neighbors have already solved. Look at what the rest of the page does that this section does not: the display type at full strength, the structural devices that carry meaning, the signature motif, the density and pacing. A flat section is typically one that quietly opts out of the system's own strongest moves. The most reliable bolder pass brings the target up to the expressive level its neighbors already reach, in the system's own vocabulary rather than a new one.
14
-
15
- ## The amplification
16
-
17
- - **Amplify what the system already owns.** Reuse its motif and its type scale at full strength, turned up for this section rather than invented for it. The bolder version should look more like the same brand, not less.
18
- - **Keep content true.** Existing claims are part of the scope: preserve them unless the user supplies replacements. If real evidence is essential to the direction but absent, ask for it.
19
- - **Commit, then clarify.** Half-measures read as noise. Make the one decisive move completely, then quiet everything around it so the move is legible. If every element got louder, the section got flatter.
20
- - **Give it its own rhythm.** The target should read as a peak in the scroll, a shift in density or pace from what surrounds it, not simply more of the same.
21
-
22
- ## The skeleton test
23
-
24
- Strip the copy out of your planned section and study the bare structure. Does the skeleton still say what this section is and why it matters, through hierarchy and the system's devices alone? If it only works once the words return, the boldness is in the text size, not the design. A placeholder for an image or artifact names a job, an anchor and a piece of evidence, not a cue to drop in a decorative photo; fill that job with whatever the subject actually has.
25
-
26
- ## Before you finish
27
-
28
- - Everything outside the named target is unchanged.
29
- - No new color, font, or system primitive appeared without being asked for.
30
- - The conventions the section carried, including anything that drives an action, still work the same way.
31
- - The section is unmistakably the same brand, only more sure of itself.
32
-
33
- When the target holds its own without pulling the page apart, hand off to `/impeccable polish` for the final pass.
1
+ > **Additional context needed**: which section is the target, and what must stay untouched.
2
+
3
+ An open direction round owns the word first: "bolder" said while a direction decision is on the table is the Bolder hand register steer, a fresh deal of foreign forms (see new-work.md), not this command. This command refines a surface whose world already shipped.
4
+
5
+ "Bolder" is an amplification request, and almost always it is scoped to something that already exists. The surrounding page, its system, and its conventions are the given. Your job is to raise one part to the conviction the rest already implies, without rebuilding anything the brief did not name. The reflex answer, reaching for more effects, is the opposite of bold; reject it first.
6
+
7
+ ## Scope is sovereign
8
+
9
+ "Everything else stays" is a literal instruction. Touch only the named target. Do not restyle its neighbors, do not migrate the page to a new idea, do not add colors, fonts, radii, shadows, or system primitives the surface does not already own. If the existing system genuinely cannot express the direction, do not expand it on your own. Ask the user directly to clarify what you cannot infer. Name the exact addition and the job it would do.
10
+
11
+ ## Why it reads flat
12
+
13
+ A section usually reads flat for reasons its neighbors have already solved. Look at what the rest of the page does that this section does not: the display type at full strength, the structural devices that carry meaning, the signature motif, the density and pacing. A flat section is typically one that quietly opts out of the system's own strongest moves. The most reliable bolder pass brings the target up to the expressive level its neighbors already reach, in the system's own vocabulary rather than a new one.
14
+
15
+ ## The amplification
16
+
17
+ - **Amplify what the system already owns.** Reuse its motif and its type scale at full strength, turned up for this section rather than invented for it. The bolder version should look more like the same brand, not less.
18
+ - **Keep content true.** Existing claims are part of the scope: preserve them unless the user supplies replacements. If real evidence is essential to the direction but absent, ask for it.
19
+ - **Commit, then clarify.** Half-measures read as noise. Make the one decisive move completely, then quiet everything around it so the move is legible. If every element got louder, the section got flatter.
20
+ - **Give it its own rhythm.** The target should read as a peak in the scroll, a shift in density or pace from what surrounds it, not simply more of the same.
21
+
22
+ ## The skeleton test
23
+
24
+ Strip the copy out of your planned section and study the bare structure. Does the skeleton still say what this section is and why it matters, through hierarchy and the system's devices alone? If it only works once the words return, the boldness is in the text size, not the design. A placeholder for an image or artifact names a job, an anchor and a piece of evidence, not a cue to drop in a decorative photo; fill that job with whatever the subject actually has.
25
+
26
+ ## Before you finish
27
+
28
+ - Everything outside the named target is unchanged.
29
+ - No new color, font, or system primitive appeared without being asked for.
30
+ - The conventions the section carried, including anything that drives an action, still work the same way.
31
+ - The section is unmistakably the same brand, only more sure of itself.
32
+
33
+ When the target holds its own without pulling the page apart, hand off to `/impeccable polish` for the final pass.
@@ -1,94 +1,94 @@
1
- > **Additional context needed**: audience knowledge and emotional state.
2
-
3
- Rewrite unclear interface text so users understand what happened, what matters, and what to do next. Preserve factual meaning, product terminology, and brand voice.
4
-
5
- ## Audit the language
6
-
7
- Read the entire interaction path, not isolated strings. Identify:
8
-
9
- - ambiguous nouns, verbs, and actions;
10
- - internal jargon or assumed knowledge;
11
- - vague labels, outcomes, and system states;
12
- - missing consequences, recovery, or timing;
13
- - inconsistent terminology and capitalization;
14
- - redundant headings, intros, helper text, and confirmations;
15
- - text that breaks at realistic widths or in translation;
16
- - tone that ignores stress, risk, success, or urgency.
17
-
18
- Infer audience and task from product context and surrounding UI. Ask before changing factual claims, legal meaning, or a term that may be domain-specific.
19
-
20
- ## Set the message hierarchy
21
-
22
- For each state, decide:
23
-
24
- 1. the one fact the user needs now;
25
- 2. the action available next;
26
- 3. supporting context that changes the decision;
27
- 4. the appropriate tone for this moment.
28
-
29
- Say each idea once. If the heading already explains the state, the introduction should add new information or disappear.
30
-
31
- ## Rewrite by function
32
-
33
- ### Actions and navigation
34
-
35
- Use a specific verb and object when the outcome is not already obvious. Labels should describe what will happen, not the gesture used to trigger it. Keep the same noun and verb for the same concept throughout the product.
36
-
37
- For destructive actions, name the object and consequence. Prefer undo over confirmation when recovery is safe. When confirmation is necessary, name the action on both the message and button instead of using `Yes`, `No`, `OK`, or `Submit`.
38
-
39
- ### Forms
40
-
41
- Use persistent labels; placeholders are examples, not labels. Put format and eligibility requirements before submission. Explain why information is requested only when it is not obvious. Required and optional treatment should be consistent.
42
-
43
- Validation says what needs attention and how to correct it without blaming the user. Keep related instructions near the field and announce errors accessibly.
44
-
45
- ### Errors and permissions
46
-
47
- An actionable error answers:
48
-
49
- 1. what failed;
50
- 2. why, when known and useful;
51
- 3. how to recover or what alternative remains.
52
-
53
- Do not expose internal codes as the primary message. Do not promise a cause or resolution the system cannot know. Treat privacy, payment, deletion, access loss, and blocked work seriously; warmth is welcome, jokes are not.
54
-
55
- ### Loading, empty, and success states
56
-
57
- Loading text names the real operation and sets an honest expectation when the wait is meaningful. Show determinate progress when available; never invent progress.
58
-
59
- An empty state distinguishes first use, no results, filters, permissions, and failure. Explain the state and provide the next useful action.
60
-
61
- Success confirms the completed outcome and mentions the next consequence only when it changes what the user should do. Routine success should be brief.
62
-
63
- ### Help and instructional text
64
-
65
- Helper text answers an implicit question instead of restating the control. Use progressive disclosure for uncommon detail. Link text must make sense out of context; icon-only controls need accessible names.
66
-
67
- ## Voice, accessibility, and localization
68
-
69
- Voice stays consistent; tone adapts to the moment. Use plain language without flattening terminology the audience genuinely knows.
70
-
71
- - Write complete translatable messages rather than concatenated fragments.
72
- - Keep variables and numbers structured so translators can reorder them.
73
- - Allow expansion instead of abbreviating prematurely.
74
- - Make alt text convey the image's information; use empty alt for decoration.
75
- - Keep screen-reader names aligned with visible labels and outcomes.
76
- - Do not rely on punctuation, color, or iconography to carry the message alone.
77
-
78
- Maintain a short terminology glossary when inconsistency spans the product. Do not vary words for literary effect in an interface.
79
-
80
- ## Verify
81
-
82
- Read the flow in context and test:
83
-
84
- - comprehension without hidden product knowledge;
85
- - actionability at errors, empty states, and decision points;
86
- - factual accuracy and consistent terminology;
87
- - scanability at target widths and 200% zoom;
88
- - long names, localization expansion, pluralization, and dynamic values;
89
- - accessible names and announced state changes;
90
- - tone appropriate to consequence and emotional context.
91
-
92
- The final copy is as short as it can be without removing meaning or recovery.
93
-
94
- When the language reads cleanly, hand off to `/impeccable polish` for the final pass.
1
+ > **Additional context needed**: audience knowledge and emotional state.
2
+
3
+ Rewrite unclear interface text so users understand what happened, what matters, and what to do next. Preserve factual meaning, product terminology, and brand voice.
4
+
5
+ ## Audit the language
6
+
7
+ Read the entire interaction path, not isolated strings. Identify:
8
+
9
+ - ambiguous nouns, verbs, and actions;
10
+ - internal jargon or assumed knowledge;
11
+ - vague labels, outcomes, and system states;
12
+ - missing consequences, recovery, or timing;
13
+ - inconsistent terminology and capitalization;
14
+ - redundant headings, intros, helper text, and confirmations;
15
+ - text that breaks at realistic widths or in translation;
16
+ - tone that ignores stress, risk, success, or urgency.
17
+
18
+ Infer audience and task from product context and surrounding UI. Ask before changing factual claims, legal meaning, or a term that may be domain-specific.
19
+
20
+ ## Set the message hierarchy
21
+
22
+ For each state, decide:
23
+
24
+ 1. the one fact the user needs now;
25
+ 2. the action available next;
26
+ 3. supporting context that changes the decision;
27
+ 4. the appropriate tone for this moment.
28
+
29
+ Say each idea once. If the heading already explains the state, the introduction should add new information or disappear.
30
+
31
+ ## Rewrite by function
32
+
33
+ ### Actions and navigation
34
+
35
+ Use a specific verb and object when the outcome is not already obvious. Labels should describe what will happen, not the gesture used to trigger it. Keep the same noun and verb for the same concept throughout the product.
36
+
37
+ For destructive actions, name the object and consequence. Prefer undo over confirmation when recovery is safe. When confirmation is necessary, name the action on both the message and button instead of using `Yes`, `No`, `OK`, or `Submit`.
38
+
39
+ ### Forms
40
+
41
+ Use persistent labels; placeholders are examples, not labels. Put format and eligibility requirements before submission. Explain why information is requested only when it is not obvious. Required and optional treatment should be consistent.
42
+
43
+ Validation says what needs attention and how to correct it without blaming the user. Keep related instructions near the field and announce errors accessibly.
44
+
45
+ ### Errors and permissions
46
+
47
+ An actionable error answers:
48
+
49
+ 1. what failed;
50
+ 2. why, when known and useful;
51
+ 3. how to recover or what alternative remains.
52
+
53
+ Do not expose internal codes as the primary message. Do not promise a cause or resolution the system cannot know. Treat privacy, payment, deletion, access loss, and blocked work seriously; warmth is welcome, jokes are not.
54
+
55
+ ### Loading, empty, and success states
56
+
57
+ Loading text names the real operation and sets an honest expectation when the wait is meaningful. Show determinate progress when available; never invent progress.
58
+
59
+ An empty state distinguishes first use, no results, filters, permissions, and failure. Explain the state and provide the next useful action.
60
+
61
+ Success confirms the completed outcome and mentions the next consequence only when it changes what the user should do. Routine success should be brief.
62
+
63
+ ### Help and instructional text
64
+
65
+ Helper text answers an implicit question instead of restating the control. Use progressive disclosure for uncommon detail. Link text must make sense out of context; icon-only controls need accessible names.
66
+
67
+ ## Voice, accessibility, and localization
68
+
69
+ Voice stays consistent; tone adapts to the moment. Use plain language without flattening terminology the audience genuinely knows.
70
+
71
+ - Write complete translatable messages rather than concatenated fragments.
72
+ - Keep variables and numbers structured so translators can reorder them.
73
+ - Allow expansion instead of abbreviating prematurely.
74
+ - Make alt text convey the image's information; use empty alt for decoration.
75
+ - Keep screen-reader names aligned with visible labels and outcomes.
76
+ - Do not rely on punctuation, color, or iconography to carry the message alone.
77
+
78
+ Maintain a short terminology glossary when inconsistency spans the product. Do not vary words for literary effect in an interface.
79
+
80
+ ## Verify
81
+
82
+ Read the flow in context and test:
83
+
84
+ - comprehension without hidden product knowledge;
85
+ - actionability at errors, empty states, and decision points;
86
+ - factual accuracy and consistent terminology;
87
+ - scanability at target widths and 200% zoom;
88
+ - long names, localization expansion, pluralization, and dynamic values;
89
+ - accessible names and announced state changes;
90
+ - tone appropriate to consequence and emotional context.
91
+
92
+ The final copy is as short as it can be without removing meaning or recovery.
93
+
94
+ When the language reads cleanly, hand off to `/impeccable polish` for the final pass.
@@ -1,86 +1,86 @@
1
- > **Additional context needed**: existing brand colors.
2
-
3
- Introduce color as hierarchy, meaning, and atmosphere. Preserve confirmed brand and semantic conventions; do not replace a visual world under the guise of colorizing it.
4
-
5
- ---
6
-
7
- ## Visitor mode
8
-
9
- - **Persuade + Experience:** color may carry the voice and own large regions when the selected world calls for it.
10
- - **Operate + Read:** color primarily encodes action, selection, status, wayfinding, and reading hierarchy. Rarity gives an accent force.
11
-
12
- ## Audit before choosing
13
-
14
- Read DESIGN.md, tokens, assets, current themes, and representative states. Identify:
15
-
16
- - which colors are confirmed brand commitments;
17
- - current surface, text, action, and semantic roles;
18
- - places where grayscale obscures hierarchy or state;
19
- - contrast failures and color-only communication;
20
- - light/dark or data-visualization requirements;
21
- - whether the task asks for more color or a new identity.
22
-
23
- If a new identity is required, use [new-work.md](new-work.md). Ask only when a binding brand decision cannot be inferred.
24
-
25
- ## Choose a strategy
26
-
27
- Name the intended emotional temperature, dominant relationship, contrast range, and color dosage before editing. The strategy may be restrained or immersive; it must follow the brief and selected world rather than a fixed percentage rule.
28
-
29
- Build roles, not a bag of swatches:
30
-
31
- - canvas and elevated surfaces;
32
- - primary and secondary text;
33
- - action, focus, and selection;
34
- - borders and separators;
35
- - success, warning, error, and information;
36
- - data categories or scales when needed.
37
-
38
- Use the project's existing color space. For a new web palette, prefer OKLCH because lightness and chroma can be adjusted predictably. Choose hue from product meaning and visual direction, never from a default category association.
39
-
40
- ## Apply at system scale
41
-
42
- - Let the strongest color own a deliberate region or role instead of scattering tiny accents.
43
- - Keep the primary action easy to find; do not spend its color on decoration.
44
- - Tint neutrals only when the brand hue genuinely creates cohesion. Neutral gray is valid when it serves the world.
45
- - On colored surfaces, derive secondary text from the foreground or surface hue rather than using washed-out generic gray.
46
- - Keep semantic meanings consistent, but respect platform and domain conventions instead of assuming fixed hues.
47
- - For data, use distinct lightness, chroma, shape, label, or pattern so color is not the only code.
48
- - In dark mode, design surface elevation and contrast explicitly; do not invert the light theme mechanically.
49
- - Define primitive values and semantic tokens when the project has a token system. Theme changes should normally remap semantic roles.
50
-
51
- Decoration without a relationship to hierarchy, state, content, or the visual world is not a color strategy.
52
-
53
- ## Contrast and perception
54
-
55
- Verify computed foreground/background pairs:
56
-
57
- | Content | WCAG AA minimum |
58
- |---|---|
59
- | body text | 4.5:1 |
60
- | large text | 3:1 |
61
- | controls, icons, focus indicators | 3:1 |
62
-
63
- Do not rely on eyesight alone. Check interactive states, overlays, text on images, disabled content, and both themes. Simulate common vision deficiencies. Information conveyed by color also needs text, shape, iconography, or position.
64
-
65
- When deriving OKLCH ramps, vary lightness and reduce chroma near white and black. Do not keep high chroma at extreme lightness merely to make the math uniform. Prefer explicit colors over chains of translucent overlays when alpha would make contrast context-dependent.
66
-
67
- ## Verify
68
-
69
- - Every color has a stable role or a world-specific atmospheric purpose.
70
- - Attention lands on the intended action, content, or state.
71
- - The palette works across quiet, dense, interactive, error, and empty states.
72
- - Light and dark themes are each composed, not mechanically inverted.
73
- - Contrast and non-color cues pass in all relevant states.
74
- - The result is recognizably this product, not a generic “colorful” treatment.
75
-
76
- When the palette earns its place, hand off to `/impeccable polish` for the final pass.
77
-
78
- ## Live-mode signature params
79
-
80
- When invoked from live mode, every variant declares a `color-amount` parameter. Author CSS against `var(--p-color-amount, 0.5)` so the user can move from neutral to the variant's full color strategy without regeneration.
81
-
82
- ```json
83
- {"id":"color-amount","kind":"range","min":0,"max":1,"step":0.05,"default":0.5,"label":"Color amount"}
84
- ```
85
-
86
- Add at most two variant-specific parameters, such as palette, temperature, or tint behavior. Follow [live.md](live.md)'s parameter contract.
1
+ > **Additional context needed**: existing brand colors.
2
+
3
+ Introduce color as hierarchy, meaning, and atmosphere. Preserve confirmed brand and semantic conventions; do not replace a visual world under the guise of colorizing it.
4
+
5
+ ---
6
+
7
+ ## Visitor mode
8
+
9
+ - **Persuade + Experience:** color may carry the voice and own large regions when the selected world calls for it.
10
+ - **Operate + Read:** color primarily encodes action, selection, status, wayfinding, and reading hierarchy. Rarity gives an accent force.
11
+
12
+ ## Audit before choosing
13
+
14
+ Read DESIGN.md, tokens, assets, current themes, and representative states. Identify:
15
+
16
+ - which colors are confirmed brand commitments;
17
+ - current surface, text, action, and semantic roles;
18
+ - places where grayscale obscures hierarchy or state;
19
+ - contrast failures and color-only communication;
20
+ - light/dark or data-visualization requirements;
21
+ - whether the task asks for more color or a new identity.
22
+
23
+ If a new identity is required, use [new-work.md](new-work.md). Ask only when a binding brand decision cannot be inferred.
24
+
25
+ ## Choose a strategy
26
+
27
+ Name the intended emotional temperature, dominant relationship, contrast range, and color dosage before editing. The strategy may be restrained or immersive; it must follow the brief and selected world rather than a fixed percentage rule.
28
+
29
+ Build roles, not a bag of swatches:
30
+
31
+ - canvas and elevated surfaces;
32
+ - primary and secondary text;
33
+ - action, focus, and selection;
34
+ - borders and separators;
35
+ - success, warning, error, and information;
36
+ - data categories or scales when needed.
37
+
38
+ Use the project's existing color space. For a new web palette, prefer OKLCH because lightness and chroma can be adjusted predictably. Choose hue from product meaning and visual direction, never from a default category association.
39
+
40
+ ## Apply at system scale
41
+
42
+ - Let the strongest color own a deliberate region or role instead of scattering tiny accents.
43
+ - Keep the primary action easy to find; do not spend its color on decoration.
44
+ - Tint neutrals only when the brand hue genuinely creates cohesion. Neutral gray is valid when it serves the world.
45
+ - On colored surfaces, derive secondary text from the foreground or surface hue rather than using washed-out generic gray.
46
+ - Keep semantic meanings consistent, but respect platform and domain conventions instead of assuming fixed hues.
47
+ - For data, use distinct lightness, chroma, shape, label, or pattern so color is not the only code.
48
+ - In dark mode, design surface elevation and contrast explicitly; do not invert the light theme mechanically.
49
+ - Define primitive values and semantic tokens when the project has a token system. Theme changes should normally remap semantic roles.
50
+
51
+ Decoration without a relationship to hierarchy, state, content, or the visual world is not a color strategy.
52
+
53
+ ## Contrast and perception
54
+
55
+ Verify computed foreground/background pairs:
56
+
57
+ | Content | WCAG AA minimum |
58
+ |---|---|
59
+ | body text | 4.5:1 |
60
+ | large text | 3:1 |
61
+ | controls, icons, focus indicators | 3:1 |
62
+
63
+ Do not rely on eyesight alone. Check interactive states, overlays, text on images, disabled content, and both themes. Simulate common vision deficiencies. Information conveyed by color also needs text, shape, iconography, or position.
64
+
65
+ When deriving OKLCH ramps, vary lightness and reduce chroma near white and black. Do not keep high chroma at extreme lightness merely to make the math uniform. Prefer explicit colors over chains of translucent overlays when alpha would make contrast context-dependent.
66
+
67
+ ## Verify
68
+
69
+ - Every color has a stable role or a world-specific atmospheric purpose.
70
+ - Attention lands on the intended action, content, or state.
71
+ - The palette works across quiet, dense, interactive, error, and empty states.
72
+ - Light and dark themes are each composed, not mechanically inverted.
73
+ - Contrast and non-color cues pass in all relevant states.
74
+ - The result is recognizably this product, not a generic “colorful” treatment.
75
+
76
+ When the palette earns its place, hand off to `/impeccable polish` for the final pass.
77
+
78
+ ## Live-mode signature params
79
+
80
+ When invoked from live mode, every variant declares a `color-amount` parameter. Author CSS against `var(--p-color-amount, 0.5)` so the user can move from neutral to the variant's full color strategy without regeneration.
81
+
82
+ ```json
83
+ {"id":"color-amount","kind":"range","min":0,"max":1,"step":0.05,"default":0.5,"label":"Color amount"}
84
+ ```
85
+
86
+ Add at most two variant-specific parameters, such as palette, temperature, or tint behavior. Follow [live.md](live.md)'s parameter contract.
@@ -1,63 +1,63 @@
1
- # Plan and asset review
2
-
3
- Use this checkpoint on comp-led builds once every raster region has its plate and the plates gate has scored them, before any page code exists. The approved comp is the reference. The user reviews two things: the plates that will ship, and the production plan for everything else, meaning which regions code draws. A painted region planned as code is the most expensive mistake a comp-led build makes, and this is where the user catches it. Text, controls and chrome are judged later, in the assembled first viewport.
4
-
5
- ## Plan, capture, serve
6
-
7
- Run `.pi/skills/impeccable/scripts/impeccable component-review plan`. It writes `.impeccable/review/components.json` from the measured spec, the comp and the plate files, and refuses, naming each one, while any raster region lacks its plate. Never write or edit that file for this stage: the packet is derived from the spec, so every change belongs in the regions file.
8
-
9
- If the harness exposes `component_review`, call it with `manifest_path` set to `.impeccable/review/components.json`. The host captures, presents the review and returns the user's decisions. A suspended request is waiting for the user; it is not a failed build or an approval.
10
-
11
- Otherwise run `.pi/skills/impeccable/scripts/impeccable component-review capture --manifest .impeccable/review/components.json`, then start `.pi/skills/impeccable/scripts/impeccable component-review serve --session <returned session>` in the background. Open the URL it prints in the available browser and wait for the user; `serve` exits 0 once they submit. Read the decisions with `.pi/skills/impeccable/scripts/impeccable component-review status --session <id>`; `.pi/skills/impeccable/scripts/impeccable component-review verify --manifest .impeccable/review/components.json` confirms approval and refuses pending, needs-work and stale input. Never submit the page or write a receipt on the user's behalf.
12
-
13
- `serve` exits 2 when this session has no browser (the same signal as the decision page) and 4 when it closes after 30 idle minutes without a decision. Either way no one is reviewing: stop waiting, do not approve anything yourself, and do not build past this checkpoint. End the run and report the plan and asset review as pending with its session ID, so the user can resume it. A waiting review is pending work, not a completed build.
14
-
15
- ## Act on the receipt
16
-
17
- Apply the user's decisions as given, never your own favorable verdict in their place.
18
-
19
- - **approve**: once every item is approved and the inventory is confirmed, advance to the hero.
20
- - **revise** (a plate): regenerate that plate at the same path with the user's feedback.
21
- - **revise with split** (an asset): replace that region in the regions file with its layers: a frame plate with a transparent opening (kind `plate`, same box), the content as its own `image` region at the opening's box, and each moving part (a shutter, a door) as its own plate. Name each layer after the original region, as `<id>-frame`, `<id>-view` or `<id>-shutter-left`, so the next round shows it as part of the user's request. Rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>` and produce the plates.
22
- - **revise** (a plan item): change the regions file as the feedback says (resize or extend a raster region, split material into its own plate region, or adjust the code region), rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce any new plates.
23
- - **reclassify** (a code region): in the regions file, change that region's `kind` to the one the user chose and rewrite its `note` to describe the material. Rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, then produce the new plates, with the asset producer when subagents are available.
24
- - **missing**: add the region to the regions file, rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce its plate if it is raster.
25
-
26
- Then run `plan`, `capture` and `serve` again. Unchanged decisions carry over, so the user sees only what changed. Any spec change, or a plate replaced after acceptance, needs a new round; the build-phase gate stays closed until the review of the current spec is accepted.
27
-
28
- ## Assemble and review
29
-
30
- Build the first viewport from the approved plates and plan, and run the hero gate. Human review does not waive its integrity checks. After three failed hero attempts, or three failed responsive attempts before any first viewport is accepted, stop iterating and present the first-viewport review with the current build; the user's eye settles what the readings could not.
31
-
32
- Present a second manifest at `.impeccable/review/hero.json`. You write this one, and its shape is fixed:
33
-
34
- ```json
35
- {
36
- "schemaVersion": 2,
37
- "stage": "hero",
38
- "id": "hero",
39
- "title": "First viewport",
40
- "comp": {"path": ".impeccable/mocks/comp.png", "width": 1536, "height": 1024},
41
- "components": [{
42
- "id": "first-viewport",
43
- "name": "First viewport",
44
- "medium": "HTML / CSS",
45
- "note": "Assembled first viewport",
46
- "box": {"x": 0, "y": 0, "w": 1, "h": 1},
47
- "preview": {"kind": "page", "path": "index.html"},
48
- "dependencies": ["styles.css", "assets/plates/sky.png", "fonts/display.woff2"]
49
- }]
50
- }
51
- ```
52
-
53
- - `schemaVersion` is 2. Version 3 is the plan review packet and requires stage `components`. `codeRegions` and `specSha256` exist only in version 3 and are refused here. `reviewGroup` is refused too: version 3 rejects it, and any other version accepts it only on a page preview in a `components`-stage manifest, never in a hero manifest.
54
- - `comp.path` is the `comp` value in `.impeccable/build/spec.json`, and `width` and `height` are that PNG's pixel size.
55
- - Exactly one component, with `box` exactly `{"x": 0, "y": 0, "w": 1, "h": 1}` and `name`, `medium` and `note` as strings.
56
- - `preview.path` is the page entry the build gates (`artifact` in `.impeccable/build/state.json`).
57
- - `dependencies` lists every other file the page loads (stylesheets, scripts, plates, images, fonts) as bare strings. Every path, here and above, is project-relative and plain: no leading `./` or `/`, no `..`, no URL, no `?`, `#`, `%`, `:` or backslash. A request to a file missing from this list, or to another host, fails the capture.
58
-
59
- The reference stays the approved comp. Call the same host review tool, or run `capture`, `serve` and `verify` with this manifest. Needs-work feedback starts another assembly round.
60
-
61
- Acceptance closes human review for this build: never request plan, asset or assembly approval again. While the page renders what the user accepted, the hero score, the palette check and every numeric reading are advisories; material vetoes still hold (a missing or unreferenced plate, an SVG illustration, an organic clip, a clipped plate, invented ink, failed rendered presence). A text, control or chrome region the accepted screenshot also lacks is settled by the acceptance; a plate it lacks is a question for the user that the gate's reason spells out: do not move off what they accepted on your own, but carry out their answer, including placing the plate. When the capture no longer matches the accepted screenshot, restore what the user accepted; until then the readings apply. Complete the rest of the page, responsive behavior, finish checks and documentation with the accepted first viewport as the visual direction. This is first-viewport calibration, not a claim that the user reviewed the rest of the page. Shared stylesheet edits do not reopen approval. Preserve the accepted direction; a later explicit user change is a new task.
62
-
63
- Assembled-page capture executes inline and declared local scripts from the pinned inputs. Network APIs, frames and workers are unavailable; the initial viewport must settle before capture. Keep the real page and declare its scripts rather than removing behavior to pass review.
1
+ # Plan and asset review
2
+
3
+ Use this checkpoint on comp-led builds once every raster region has its plate and the plates gate has scored them, before any page code exists. The approved comp is the reference. The user reviews two things: the plates that will ship, and the production plan for everything else, meaning which regions code draws. A painted region planned as code is the most expensive mistake a comp-led build makes, and this is where the user catches it. Text, controls and chrome are judged later, in the assembled first viewport.
4
+
5
+ ## Plan, capture, serve
6
+
7
+ Run `.pi/skills/impeccable/scripts/impeccable component-review plan`. It writes `.impeccable/review/components.json` from the measured spec, the comp and the plate files, and refuses, naming each one, while any raster region lacks its plate. Never write or edit that file for this stage: the packet is derived from the spec, so every change belongs in the regions file.
8
+
9
+ If the harness exposes `component_review`, call it with `manifest_path` set to `.impeccable/review/components.json`. The host captures, presents the review and returns the user's decisions. A suspended request is waiting for the user; it is not a failed build or an approval.
10
+
11
+ Otherwise run `.pi/skills/impeccable/scripts/impeccable component-review capture --manifest .impeccable/review/components.json`, then start `.pi/skills/impeccable/scripts/impeccable component-review serve --session <returned session>` in the background. Open the URL it prints in the available browser and wait for the user; `serve` exits 0 once they submit. Read the decisions with `.pi/skills/impeccable/scripts/impeccable component-review status --session <id>`; `.pi/skills/impeccable/scripts/impeccable component-review verify --manifest .impeccable/review/components.json` confirms approval and refuses pending, needs-work and stale input. Never submit the page or write a receipt on the user's behalf.
12
+
13
+ `serve` exits 2 when this session has no browser (the same signal as the decision page) and 4 when it closes after 30 idle minutes without a decision. Either way no one is reviewing: stop waiting, do not approve anything yourself, and do not build past this checkpoint. End the run and report the plan and asset review as pending with its session ID, so the user can resume it. A waiting review is pending work, not a completed build.
14
+
15
+ ## Act on the receipt
16
+
17
+ Apply the user's decisions as given, never your own favorable verdict in their place.
18
+
19
+ - **approve**: once every item is approved and the inventory is confirmed, advance to the hero.
20
+ - **revise** (a plate): regenerate that plate at the same path with the user's feedback.
21
+ - **revise with split** (an asset): replace that region in the regions file with its layers: a frame plate with a transparent opening (kind `plate`, same box), the content as its own `image` region at the opening's box, and each moving part (a shutter, a door) as its own plate. Name each layer after the original region, as `<id>-frame`, `<id>-view` or `<id>-shutter-left`, so the next round shows it as part of the user's request. Rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>` and produce the plates.
22
+ - **revise** (a plan item): change the regions file as the feedback says (resize or extend a raster region, split material into its own plate region, or adjust the code region), rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce any new plates.
23
+ - **reclassify** (a code region): in the regions file, change that region's `kind` to the one the user chose and rewrite its `note` to describe the material. Rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, then produce the new plates, with the asset producer when subagents are available.
24
+ - **missing**: add the region to the regions file, rerun `.pi/skills/impeccable/scripts/impeccable comp-spec --comp <comp.png> --regions <regions.json>`, and produce its plate if it is raster.
25
+
26
+ Then run `plan`, `capture` and `serve` again. Unchanged decisions carry over, so the user sees only what changed. Any spec change, or a plate replaced after acceptance, needs a new round; the build-phase gate stays closed until the review of the current spec is accepted.
27
+
28
+ ## Assemble and review
29
+
30
+ Build the first viewport from the approved plates and plan, and run the hero gate. Human review does not waive its integrity checks. After three failed hero attempts, or three failed responsive attempts before any first viewport is accepted, stop iterating and present the first-viewport review with the current build; the user's eye settles what the readings could not.
31
+
32
+ Present a second manifest at `.impeccable/review/hero.json`. You write this one, and its shape is fixed:
33
+
34
+ ```json
35
+ {
36
+ "schemaVersion": 2,
37
+ "stage": "hero",
38
+ "id": "hero",
39
+ "title": "First viewport",
40
+ "comp": {"path": ".impeccable/mocks/comp.png", "width": 1536, "height": 1024},
41
+ "components": [{
42
+ "id": "first-viewport",
43
+ "name": "First viewport",
44
+ "medium": "HTML / CSS",
45
+ "note": "Assembled first viewport",
46
+ "box": {"x": 0, "y": 0, "w": 1, "h": 1},
47
+ "preview": {"kind": "page", "path": "index.html"},
48
+ "dependencies": ["styles.css", "assets/plates/sky.png", "fonts/display.woff2"]
49
+ }]
50
+ }
51
+ ```
52
+
53
+ - `schemaVersion` is 2. Version 3 is the plan review packet and requires stage `components`. `codeRegions` and `specSha256` exist only in version 3 and are refused here. `reviewGroup` is refused too: version 3 rejects it, and any other version accepts it only on a page preview in a `components`-stage manifest, never in a hero manifest.
54
+ - `comp.path` is the `comp` value in `.impeccable/build/spec.json`, and `width` and `height` are that PNG's pixel size.
55
+ - Exactly one component, with `box` exactly `{"x": 0, "y": 0, "w": 1, "h": 1}` and `name`, `medium` and `note` as strings.
56
+ - `preview.path` is the page entry the build gates (`artifact` in `.impeccable/build/state.json`).
57
+ - `dependencies` lists every other file the page loads (stylesheets, scripts, plates, images, fonts) as bare strings. Every path, here and above, is project-relative and plain: no leading `./` or `/`, no `..`, no URL, no `?`, `#`, `%`, `:` or backslash. A request to a file missing from this list, or to another host, fails the capture.
58
+
59
+ The reference stays the approved comp. Call the same host review tool, or run `capture`, `serve` and `verify` with this manifest. Needs-work feedback starts another assembly round.
60
+
61
+ Acceptance closes human review for this build: never request plan, asset or assembly approval again. While the page renders what the user accepted, the hero score, the palette check and every numeric reading are advisories; material vetoes still hold (a missing or unreferenced plate, an SVG illustration, an organic clip, a clipped plate, invented ink, failed rendered presence). A text, control or chrome region the accepted screenshot also lacks is settled by the acceptance; a plate it lacks is a question for the user that the gate's reason spells out: do not move off what they accepted on your own, but carry out their answer, including placing the plate. When the capture no longer matches the accepted screenshot, restore what the user accepted; until then the readings apply. Complete the rest of the page, responsive behavior, finish checks and documentation with the accepted first viewport as the visual direction. This is first-viewport calibration, not a claim that the user reviewed the rest of the page. Shared stylesheet edits do not reopen approval. Preserve the accepted direction; a later explicit user change is a new task.
62
+
63
+ Assembled-page capture executes inline and declared local scripts from the pinned inputs. Network APIs, frames and workers are unavailable; the initial viewport must settle before capture. Keep the real page and declare its scripts rather than removing behavior to pass review.