@srobroek/pi-design 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +51 -14
  3. package/_kit/prereqs.json +2 -2
  4. package/agents/ui-implementer.md +2 -2
  5. package/agents/ui-ux-specialist.md +4 -3
  6. package/extensions/design.js +10 -3
  7. package/formulas/design-surface.formula.toml +2 -2
  8. package/formulas/design-system.formula.toml +2 -2
  9. package/formulas/mol-design-iterate.formula.toml +2 -2
  10. package/package.json +1 -1
  11. package/skills/design-guide/SKILL.md +4 -2
  12. package/skills/design-prototype/SKILL.md +9 -0
  13. package/skills/design-prototype/references/upstream.md +3 -0
  14. package/skills/design-upstream-preflight/SKILL.md +31 -5
  15. package/skills/impeccable/LICENSE +191 -0
  16. package/skills/impeccable/LICENSE-platform-design-skills +21 -0
  17. package/skills/impeccable/NOTICE +87 -0
  18. package/skills/impeccable/REUSE.toml +26 -0
  19. package/skills/impeccable/SKILL.md +95 -0
  20. package/skills/impeccable/reference/adapt.md +318 -0
  21. package/skills/impeccable/reference/adapt.native.md +58 -0
  22. package/skills/impeccable/reference/android.md +46 -0
  23. package/skills/impeccable/reference/animate.md +108 -0
  24. package/skills/impeccable/reference/audit.md +159 -0
  25. package/skills/impeccable/reference/audit.native.md +152 -0
  26. package/skills/impeccable/reference/bolder.md +33 -0
  27. package/skills/impeccable/reference/clarify.md +94 -0
  28. package/skills/impeccable/reference/colorize.md +86 -0
  29. package/skills/impeccable/reference/component-review.md +65 -0
  30. package/skills/impeccable/reference/craft-floor.md +46 -0
  31. package/skills/impeccable/reference/craft.md +5 -0
  32. package/skills/impeccable/reference/critique-rubric.md +496 -0
  33. package/skills/impeccable/reference/critique.md +331 -0
  34. package/skills/impeccable/reference/degraded/asset-producer.md +44 -0
  35. package/skills/impeccable/reference/degraded/documenter.md +24 -0
  36. package/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
  37. package/skills/impeccable/reference/degraded/manual-edit-applier.md +93 -0
  38. package/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  39. package/skills/impeccable/reference/delight.md +70 -0
  40. package/skills/impeccable/reference/distill.md +111 -0
  41. package/skills/impeccable/reference/doctor.md +60 -0
  42. package/skills/impeccable/reference/document.md +418 -0
  43. package/skills/impeccable/reference/extract.md +69 -0
  44. package/skills/impeccable/reference/foundations.md +46 -0
  45. package/skills/impeccable/reference/generate.md +103 -0
  46. package/skills/impeccable/reference/harden.md +362 -0
  47. package/skills/impeccable/reference/hooks.md +33 -0
  48. package/skills/impeccable/reference/init.md +133 -0
  49. package/skills/impeccable/reference/ios.md +51 -0
  50. package/skills/impeccable/reference/layout.md +86 -0
  51. package/skills/impeccable/reference/live-setup.md +106 -0
  52. package/skills/impeccable/reference/live.md +345 -0
  53. package/skills/impeccable/reference/mode-operate.md +21 -0
  54. package/skills/impeccable/reference/mode-persuade.md +19 -0
  55. package/skills/impeccable/reference/mode-read.md +21 -0
  56. package/skills/impeccable/reference/new-work-comp.md +26 -0
  57. package/skills/impeccable/reference/new-work-world.md +22 -0
  58. package/skills/impeccable/reference/new-work.md +125 -0
  59. package/skills/impeccable/reference/onboard.md +235 -0
  60. package/skills/impeccable/reference/operate.md +61 -0
  61. package/skills/impeccable/reference/optimize.md +257 -0
  62. package/skills/impeccable/reference/overdrive.md +127 -0
  63. package/skills/impeccable/reference/polish.md +107 -0
  64. package/skills/impeccable/reference/quieter.md +99 -0
  65. package/skills/impeccable/reference/region-map.md +28 -0
  66. package/skills/impeccable/reference/routing.md +26 -0
  67. package/skills/impeccable/reference/shape.md +59 -0
  68. package/skills/impeccable/reference/typeset.md +98 -0
  69. package/skills/impeccable/reference/visualize.md +49 -0
  70. package/skills/impeccable/scripts/VERSION +1 -0
  71. package/skills/impeccable/scripts/command-metadata.json +98 -0
  72. package/skills/impeccable/scripts/data/font-index-failures.json +121 -0
  73. package/skills/impeccable/scripts/data/font-index.json +1 -0
  74. package/skills/impeccable/scripts/engine-checksums.txt +9 -0
  75. package/skills/impeccable/scripts/impeccable +349 -0
  76. package/skills/impeccable/scripts/impeccable.cmd +371 -0
  77. package/skills/impeccable/scripts/live-browser-dom.js +320 -0
  78. package/skills/impeccable/scripts/live-browser-ignores.js +246 -0
  79. package/skills/impeccable/scripts/live-browser-session.js +183 -0
  80. package/skills/impeccable/scripts/live-browser.js +13925 -0
  81. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## design [0.13.0](https://github.com/srobroek/harness-plugins/compare/design--v0.12.2...design--v0.13.0) (2026-12-01)
2
+
3
+ ### Features
4
+
5
+ * **design:** ship the impeccable skill pack in every harness tree ([37a0957](https://github.com/srobroek/harness-plugins/commit/37a09574e0c3ac7b393b624715b97ef84e8849f2))
6
+
7
+ ## design [0.12.2](https://github.com/srobroek/harness-plugins/compare/design--v0.12.1...design--v0.12.2) (2026-11-30)
8
+
9
+ ### Bug Fixes
10
+
11
+ * let nested pi subagents launch helpers that select context7 ([8a13764](https://github.com/srobroek/harness-plugins/commit/8a1376461423e24a8f7e10f7e8d470406d0b5cf0))
12
+
1
13
  ## design [0.12.1](https://github.com/srobroek/harness-plugins/compare/design--v0.12.0...design--v0.12.1) (2026-11-29)
2
14
 
3
15
  ### Bug Fixes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # design
2
2
 
3
- UI and UX design for OpenCode: eight workflow skills, five design rules as skills,
3
+ UI and UX design for OpenCode: the vendored impeccable skill, eight workflow skills, five design rules as skills,
4
4
  four design subagents, nine beads formulas with a `design_setup` tool that installs
5
5
  them, a `design_impeccable_scan` tool that runs impeccable's detector, and optional
6
6
  accessibility, wireframing and Storybook MCP integrations.
@@ -17,6 +17,7 @@ entry instead of one per skill keeps the per-request skills listing short. Claud
17
17
 
18
18
  | Skill | Phase | When |
19
19
  | --- | --- | --- |
20
+ | `impeccable` | ALL | Design steering for any new or redesigned UI: shape, critique, audit, polish, animate (vendored, see [impeccable](#impeccable)) |
20
21
  | `design-system-audit` | GROUND | Inventory existing tokens, scales and primitives before UI work |
21
22
  | `design-md` | SPECIFY | Write or update `DESIGN.md` from the audit, then lint it |
22
23
  | `design-prototype` | SPECIFY | Route a wireframe, mockup, prototype or deck request to the right producer |
@@ -37,6 +38,44 @@ load by name:
37
38
  | `design-evidence` | Any claim about a rendered surface: ARIA, computed style or screenshot, plus the width |
38
39
  | `design-upstream-preflight` | Before routing to an upstream skill or CLI: install and probe only what the route needs |
39
40
 
41
+ ## impeccable
42
+
43
+ The plugin ships [impeccable](https://github.com/pbakaus/impeccable)'s skill pack, its
44
+ `SKILL.md`, `reference/` and `scripts/`, as the `impeccable` skill on OpenCode, Claude Code
45
+ and pi. Installing the plugin installs it; `impeccable install` is not needed. `design-guide`
46
+ loads it first for any new or redesigned UI, and `ui-ux-specialist` and `ui-implementer` load
47
+ it before they start.
48
+
49
+ - Pin: release `skill-v4.12.0`. `scripts/impeccable-pins.json` approves the tarball's sha256,
50
+ and the vendor script refuses to extract a tarball that does not match it.
51
+ `common/skills/impeccable/NOTICE` records the commit and the approved digest. Each harness gets upstream's own compiled form for that harness:
52
+ the Claude Code plugin form, and the OpenCode and pi forms with their project install path
53
+ made relative to the skill directory.
54
+ - Engine: the skill's `scripts/impeccable` launcher runs the impeccable CLI on `PATH`, or an
55
+ engine already in `~/.impeccable`. With neither, it prints the install command and exits
56
+ 127. It downloads the engine only with `IMPECCABLE_ALLOW_DOWNLOAD=1`, which an agent sets
57
+ only after you agree, so nothing is fetched unasked.
58
+ - Not shipped: upstream's Claude Code agents (`impeccable-*`) and its hooks. The skill falls
59
+ back to its `reference/degraded/` paths without those agents.
60
+ - Licence: Apache-2.0, Copyright 2025 Paul Bakaus. `reference/ios.md` and
61
+ `reference/android.md` derive from ehmo's MIT `platform-design-skills`, so they are
62
+ Apache-2.0 AND MIT, with that licence in `LICENSE-platform-design-skills`. The skill
63
+ directory also has the `LICENSE`, the `NOTICE` that lists every modification, and a
64
+ `REUSE.toml`.
65
+
66
+ To move to another release, download its tarball and check the digest yourself, then run one
67
+ command and commit the result:
68
+
69
+ ```sh
70
+ curl -fsSL https://api.github.com/repos/pbakaus/impeccable/tarball/refs/tags/skill-v<version> | shasum -a 256
71
+ bun scripts/vendor-impeccable.ts <version> --approve <sha256>
72
+ ```
73
+
74
+ It fetches that `skill-v<version>` tag, refuses it unless its sha256 is the approved one, adds
75
+ the pin to `scripts/impeccable-pins.json`, rewrites `common/skills/impeccable/`, moves the pin
76
+ in the script, `package.json` and this README, and runs `bun run build`. It fails when an
77
+ upstream launcher no longer has the line its download guard is anchored to.
78
+
40
79
  ## Agents
41
80
 
42
81
  | Agent | Role | Permissions |
@@ -86,12 +125,14 @@ tools, a browser MCP server, or Playwright through the shell. The `ui-review` sk
86
125
  | Tool | What it does |
87
126
  | --- | --- |
88
127
  | `design_setup` | Copies the nine formulas into a beads workspace's `.beads/formulas/`. Identical copies stay; a divergent copy is refused unless `force=true`; a symlinked `.beads` or formulas path is refused. The workspace needs `.beads/` already (`bd init`). |
89
- | `design_impeccable_scan` | Runs `npx --yes impeccable detect --json` over files, directories or a URL (optional `viewport`, `noConfig`, `timeoutSeconds`) and returns the JSON. Exit 0 is clean, 2 is findings, 1 is a target it could not scan. |
128
+ | `design_impeccable_scan` | Runs `impeccable detect --json`, with the impeccable on `PATH` or a cached engine, over files, directories or a URL (optional `viewport`, `noConfig`, `timeoutSeconds`) and returns the JSON. Exit 0 is clean, 2 is findings, 1 is a target it could not scan. |
90
129
 
91
130
  Both tools run under your permission rules: an allowed call runs without a prompt, and a
92
- deny or ask rule always wins. `design_impeccable_scan` runs npx, which may download
93
- impeccable and its engine. To prompt before every run even when a rule allows it, set the
94
- plugin option `confirmScan` to `true` (default `false`):
131
+ deny or ask rule always wins. `design_impeccable_scan` runs the impeccable on `PATH`, or, on
132
+ macOS and Linux, the vendored skill's launcher over an engine already cached in `~/.impeccable`,
133
+ with `IMPECCABLE_ALLOW_DOWNLOAD` removed from its environment. With neither it refuses at once
134
+ and names `mise use -g npm:impeccable`. It has no npx fallback and never downloads anything.
135
+ To prompt before every run, set the plugin option `confirmScan` to `true` (default `false`):
95
136
 
96
137
  ```jsonc
97
138
  {
@@ -194,22 +235,18 @@ At session start, the package looks for these tools on `PATH` and names each mis
194
235
 
195
236
  | Tool | Used for | Install |
196
237
  | --- | --- | --- |
197
- | `impeccable` 4.10.0 or later | `design_impeccable_scan` and the upstream impeccable skill pack | `mise use -g npm:impeccable` |
238
+ | `impeccable` 4.12.0 or later | `design_impeccable_scan` and the engine of the `impeccable` skill | `mise use -g npm:impeccable` |
198
239
  | `npx` | the Playwright, `accessibility-scanner` and `wire-dsl` MCP servers | `mise use -g node` |
199
240
 
200
- The impeccable skill pack is a separate install. This command writes it to
201
- `.pi/skills/impeccable/`:
202
-
203
- ```sh
204
- impeccable install -y --providers=pi --scope=project --no-hooks
205
- ```
241
+ The `impeccable` skill ships with the package. Remove an earlier project copy in
242
+ `.pi/skills/impeccable/` so it does not shadow the package's skill.
206
243
 
207
244
  The Playwright server drives Google Chrome where it is installed. On a host without it, such
208
245
  as a Linux ARM server, it drives Playwright's Chromium. Install that Chromium once for the
209
246
  pinned Playwright:
210
247
 
211
248
  ```sh
212
- npx -y playwright-core@1.66.0-alpha-2026-11-26 install chromium chromium-headless-shell
249
+ npx -y playwright-core@1.66.0-alpha-2026-11-27 install chromium chromium-headless-shell
213
250
  ```
214
251
 
215
252
  ### Scan tool
@@ -406,7 +443,7 @@ All four advisors only read files.
406
443
 
407
444
  ## Attribution
408
445
 
409
- `design-md`, `ui-microcopy` and `wireloom` carry vendored upstream material; each
446
+ `design-md`, `impeccable`, `ui-microcopy` and `wireloom` carry vendored upstream material; each
410
447
  skill directory has its LICENSE and NOTICE. The other upstream skills the workflow
411
448
  routes to are installed from their authors, never bundled; see
412
449
  `design-upstream-preflight`.
package/_kit/prereqs.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "prerequisites": [
4
4
  {
5
5
  "bin": "impeccable",
6
- "for": "design_impeccable_scan and the upstream impeccable skill pack",
6
+ "for": "design_impeccable_scan and the engine of the vendored impeccable skill",
7
7
  "required": true,
8
8
  "install": {
9
9
  "mise": "npm:impeccable",
10
10
  "url": "https://github.com/pbakaus/impeccable#readme"
11
11
  },
12
- "version": ">=4.10.0"
12
+ "version": ">=4.12.0"
13
13
  },
14
14
  {
15
15
  "bin": "npx",
@@ -5,14 +5,14 @@ acceptanceRole: writer
5
5
  tools: read, grep, find, ls, edit, write, bash, design_impeccable_scan, mcp:playwright
6
6
  subagentOnlyExtensions: ../extensions/design.js
7
7
  async: true
8
- skills: ui-review, design-token-discipline, design-no-slop, design-component-truth, design-evidence
8
+ skills: impeccable, ui-review, design-token-discipline, design-no-slop, design-component-truth, design-evidence
9
9
  inheritProjectContext: true
10
10
  inheritSkills: true
11
11
  ---
12
12
 
13
13
  You are the implementer of one UI unit: one component, or one change to one region of an
14
14
  existing screen. Multi-component work and design direction belong to `ui-ux-specialist`.
15
- Load the `ui-review` skill before you start.
15
+ Load the `impeccable` skill, for its design steering, and the `ui-review` skill before you start.
16
16
 
17
17
  ## Task
18
18
 
@@ -2,12 +2,12 @@
2
2
  name: ui-ux-specialist
3
3
  description: "Leads multi-component UI and UX work through six design phases, delegating critique; not for architecture or routine builds."
4
4
  acceptanceRole: writer
5
- tools: read, grep, find, ls, edit, write, bash, subagent, contact_supervisor, design_impeccable_scan, web_search, fetch_content, get_search_content, source_check, mcp:playwright
5
+ tools: read, grep, find, ls, edit, write, bash, subagent, contact_supervisor, design_impeccable_scan, web_search, fetch_content, get_search_content, source_check, mcp:playwright, mcp:context7
6
6
  subagentOnlyExtensions: ../extensions/design.js, npm:pi-web-access
7
7
  allowedAgents: design-critic, a11y-auditor, scout, worker
8
8
  allowNestedSubagents: true
9
9
  async: true
10
- skills: design-system-audit, ui-review, design-prototype, design-upstream-preflight, design-token-discipline, design-component-truth, design-no-slop, design-evidence, design-md, ui-microcopy
10
+ skills: impeccable, design-system-audit, ui-review, design-prototype, design-upstream-preflight, design-token-discipline, design-component-truth, design-no-slop, design-evidence, design-md, ui-microcopy
11
11
  inheritProjectContext: true
12
12
  inheritSkills: true
13
13
  ---
@@ -16,7 +16,8 @@ You are the design lead for a repository's user interface. You ground every chan
16
16
  design system that already exists, build it bottom-up, verify it against the running
17
17
  surface, and hand critique to independent readers.
18
18
 
19
- Before acting, load the `design-system-audit`, `ui-review`, and `design-prototype` skills,
19
+ Before acting, load the `impeccable` skill first, for its design steering, then the
20
+ `design-system-audit`, `ui-review`, and `design-prototype` skills,
20
21
  and apply the `design-upstream-preflight` skill for the routes this task enables.
21
22
 
22
23
  ## Task
@@ -153,6 +153,7 @@ function signalName(code) {
153
153
 
154
154
  // plugins/design/shared/impeccable.ts
155
155
  var SCAN_TOOL = "design_impeccable_scan";
156
+ var IMPECCABLE_INSTALL = "mise use -g npm:impeccable";
156
157
  var DEFAULT_TIMEOUT_SECONDS = 180;
157
158
  var MAX_TIMEOUT_SECONDS = 900;
158
159
  var MAX_OUTPUT_CHARS = 60000;
@@ -280,10 +281,12 @@ function interpretScan(run, timeoutSeconds) {
280
281
  ${clip(body)}` : head
281
282
  };
282
283
  }
283
- var spawnScan = async (argv, { cwd, timeoutMs, signal }) => {
284
+ var spawnScan = async (argv, { cwd, timeoutMs, signal, unsetEnv }) => {
284
285
  try {
286
+ const env = unsetEnv ? Object.fromEntries(Object.entries(process.env).filter(([key]) => !unsetEnv.includes(key))) : undefined;
285
287
  const child = Bun.spawn(argv, {
286
288
  cwd,
289
+ ...env ? { env } : {},
287
290
  stdin: "ignore",
288
291
  stdout: "pipe",
289
292
  stderr: "pipe",
@@ -296,7 +299,12 @@ var spawnScan = async (argv, { cwd, timeoutMs, signal }) => {
296
299
  };
297
300
  async function runScan(params, cwd, signal, exec = spawnScan, runner = NPX_RUNNER) {
298
301
  const argv = scanArgv(params, resolveTargets(params.targets, cwd), runner);
299
- const run = await exec(argv, { cwd, timeoutMs: params.timeoutSeconds * 1000, signal });
302
+ const run = await exec(argv, {
303
+ cwd,
304
+ timeoutMs: params.timeoutSeconds * 1000,
305
+ signal,
306
+ ...runner.unsetEnv ? { unsetEnv: runner.unsetEnv } : {}
307
+ });
300
308
  return interpretScan(run, params.timeoutSeconds);
301
309
  }
302
310
 
@@ -364,7 +372,6 @@ function hostBrowserMode(env, platform, exists) {
364
372
  }
365
373
 
366
374
  // plugins/design/pi-src/design.ts
367
- var IMPECCABLE_INSTALL = "mise use -g npm:impeccable";
368
375
  var PI_SCAN_DESCRIPTION = `${SCAN_SUMMARY}
369
376
  ` + "Runs the impeccable on PATH (the design package's prerequisite) without a prompt. Without it, npx may download " + "impeccable and its engine, so the tool asks first, and refuses in a session that cannot ask. " + SCAN_CAVEAT;
370
377
  function scanConsent(runner, hasUI) {
@@ -239,8 +239,8 @@ is smaller and more precise to locate than a page-level one. Walk the stage-one
239
239
  components in isolation first, then the compositions, then {{surface}} itself.
240
240
  Every claim carries a named citation; an unwitnessed state is not verified.
241
241
 
242
- Then run the design_impeccable_scan tool on "{{surface}}" (it asks before it runs
243
- npx --yes impeccable detect --json) and record its JSON on this bead. CRITIQUE
242
+ Then run the design_impeccable_scan tool on "{{surface}}" (it runs impeccable detect --json
243
+ and never downloads unasked) and record its JSON on this bead. CRITIQUE
244
244
  needs it, and design-critic has no shell to run it.
245
245
  """
246
246
 
@@ -375,8 +375,8 @@ last. Widths 1440, 768, 375. Walk the compositions, then the page itself. Every
375
375
  claim carries a named citation; an unwitnessed state is not verified. A reflow or
376
376
  target-size problem bonds mol-design-responsive onto this step.
377
377
 
378
- Then run the design_impeccable_scan tool on "{{surface}}" (it asks before it runs
379
- npx --yes impeccable detect --json) and record its JSON on this bead. CRITIQUE
378
+ Then run the design_impeccable_scan tool on "{{surface}}" (it runs impeccable detect --json
379
+ and never downloads unasked) and record its JSON on this bead. CRITIQUE
380
380
  needs it, and design-critic has no shell to run it.
381
381
  """
382
382
 
@@ -104,8 +104,8 @@ last. Widths 1440, 768, 375, and only for the assertions in scope. Verify at
104
104
  component level before page level. Cite each re-run.
105
105
 
106
106
  Then apply the design-upstream-preflight skill for the impeccable row, run the
107
- design_impeccable_scan tool on "{{surface}}" (it asks before it runs
108
- npx --yes impeccable detect --json), and record its JSON on this bead. RECRITIQUE
107
+ design_impeccable_scan tool on "{{surface}}" (it runs impeccable detect --json
108
+ and never downloads unasked), and record its JSON on this bead. RECRITIQUE
109
109
  needs it, and design-critic has no shell to run it.
110
110
  """
111
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srobroek/pi-design",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "description": "UI and UX design skills: design-system audit, DESIGN.md, rendered-surface review, accessibility audit, motion, microcopy, prototypes, and wireframes.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,16 +1,18 @@
1
1
  ---
2
2
  name: design-guide
3
- description: "Use for UI/design work: DESIGN.md, wireframes, prototypes, tokens, WCAG, motion, UX copy, UI review or UI claims."
3
+ description: "Use for UI: build or redesign, DESIGN.md, wireframes, prototypes, tokens, WCAG, motion, UX copy, UI review, UI claims."
4
4
  ---
5
5
 
6
6
  # Design guide
7
7
 
8
8
  This guide only routes. Before you answer or act, load the matching skill with the skill
9
9
  tool, by id, in this same turn, and every other row the task spans. Answer from the loaded
10
- skill, not from this table.
10
+ skill, not from this table. When the work starts, builds or redesigns a UI, load
11
+ `impeccable` first: its steering applies before any other row.
11
12
 
12
13
  | Situation | Load skill |
13
14
  | --- | --- |
15
+ | Start, build or redesign a UI, page or component; critique, audit, polish or animate one | `impeccable` |
14
16
  | Write or lint a DESIGN.md, document the design | `design-md` |
15
17
  | What tokens, scales and primitives does this project use; before UI work | `design-system-audit` |
16
18
  | Wireframe, mockup, prototype or deck request: route to the right producer | `design-prototype` |
@@ -21,6 +21,14 @@ TRIGGER
21
21
  ## Workflow
22
22
  1. Pick the route from the fidelity table below, then resolve it by KIND, because the rows
23
23
  are not all skills.
24
+ - A PLUGIN SKILL row (`wireloom`, `impeccable`): load it by name; it ships with the design
25
+ plugin and needs no install. For `impeccable`, probe its launcher with downloads off, as
26
+ the `design-upstream-preflight` skill describes:
27
+ `IMPECCABLE_ALLOW_DOWNLOAD= "<skill-base-dir>/scripts/impeccable" engine-probe`, or in
28
+ Windows `cmd`, `set "IMPECCABLE_ALLOW_DOWNLOAD=" && "<skill-base-dir>\scripts\impeccable.cmd" engine-probe`.
29
+ An engine on `PATH` or in the cache counts.
30
+ On exit 127, report the missing engine (`mise use -g npm:impeccable`) and skip its script
31
+ steps, and run the launcher with `IMPECCABLE_ALLOW_DOWNLOAD=1` only after the user agrees.
24
32
  - An UPSTREAM SKILL row: apply the `design-upstream-preflight` skill for that row BEFORE
25
33
  loading it. -> installed, and loaded by name or, when installed this session and not
26
34
  yet listed, from its install path. Install refused or failed: STOP and report the gap. Do NOT
@@ -52,6 +60,7 @@ TRIGGER
52
60
  |---|---|
53
61
  | low-fidelity layout, one self-contained file | upstream `html-wireframe` |
54
62
  | wireframe inside a Markdown doc, git-diffable | the `wireloom` skill, vendored here, always available |
63
+ | shape a new screen or flow before code, or variants of an element in the live browser | the `impeccable` skill (`shape`, `live`, `generate`), vendored here, always available |
55
64
  | clickable multi-screen flow with keyboard support | upstream `html-prototype` |
56
65
  | vector wireframe as SVG, PNG, or PDF | the `wire-dsl` MCP server, configured as the design plugin's README shows |
57
66
  | raster visual concept | the harness's image-generation tool, when it has one; pass reference images as its input |
@@ -21,6 +21,9 @@ The other three install one skill each, which is unusually clean.
21
21
  - the `wireloom` skill is vendored into this package, so it is always available. Its renderer
22
22
  is the unversioned `npm install wireloom`, and its grammar is read from the upstream
23
23
  `main` URL rather than vendored, so both follow the current release.
24
+ - the `impeccable` skill is vendored into this package at a pinned release, so it is always
25
+ available. Its script steps need the engine, on `PATH` or in `~/.impeccable` (`mise use -g npm:impeccable`);
26
+ its launcher downloads the engine only with `IMPECCABLE_ALLOW_DOWNLOAD=1`, after the user agrees.
24
27
  - Image generation, when the harness has a tool for it, is raster only, so no SVG and no
25
28
  PDF. Pass reference images as its input; never let it overwrite them.
26
29
  - Reading two images side by side with a vision-capable model yields a judgement, never
@@ -8,12 +8,36 @@ metadata:
8
8
  # Design Upstream Preflight
9
9
 
10
10
  Run this when a design skill or agent is loaded, before its first routed step.
11
- Check only the rows the current route reaches. The `design` package bundles none of these;
12
- each comes from its upstream author.
11
+ Check only the rows the current route reaches. The `design` package ships the `impeccable`
12
+ skill itself (vendored, see its NOTICE); every other row comes from its upstream author.
13
+
14
+ ## Impeccable: plugin-provided
15
+
16
+ The `impeccable` skill is installed with this plugin on every harness: load it by name and
17
+ never install it. Its commands run its launcher, `scripts/impeccable` in the directory that
18
+ holds its SKILL.md (`scripts/impeccable.cmd` on Windows). The launcher finds the engine on
19
+ `PATH` or in the `~/.impeccable` cache.
20
+
21
+ 1. Probe the launcher with downloads off. -> it prints `impeccable-engine <version>`: the
22
+ skill's script steps work, with no download. A cached engine counts, even with no CLI on
23
+ `PATH`.
24
+ - POSIX shell: `IMPECCABLE_ALLOW_DOWNLOAD= "<skill-base-dir>/scripts/impeccable" engine-probe`
25
+ - Windows `cmd`: `set "IMPECCABLE_ALLOW_DOWNLOAD=" && "<skill-base-dir>\scripts\impeccable.cmd" engine-probe`
26
+ 2. Exit 127: report the missing engine and its install, `mise use -g npm:impeccable`. Until
27
+ it is installed, use the skill's guidance and `reference/` files and skip its script steps.
28
+ 3. Download the engine only when the user agrees in this session: then run the launcher with
29
+ `IMPECCABLE_ALLOW_DOWNLOAD=1`. -> it fetches the checksummed engine into `~/.impeccable`.
30
+ 4. For the `design_impeccable_scan` tool, probe `impeccable --version` separately. -> it
31
+ answers: on pi and OpenCode the tool runs that CLI, with no download. No answer:
32
+ - OpenCode: the tool uses an engine cached in `~/.impeccable` (macOS, Linux); with none it
33
+ refuses at once, naming `mise use -g npm:impeccable`. It never downloads.
34
+ - pi: the tool falls back to npx, which may download impeccable, so it asks the user first
35
+ and refuses, naming the same install, in a session that cannot ask.
36
+
37
+ ## Upstream rows
13
38
 
14
39
  | Routed name | Upstream repo | Marketplace | Install address | Prerequisite probe | Needed when |
15
40
  |---|---|---|---|---|---|
16
- | `impeccable` skill; `impeccable detect` CLI | `pbakaus/impeccable` | `impeccable` | `impeccable@impeccable` | `impeccable --version`, or `npx --version` where the scan runs through npx | design workflow; critique steps run the CLI |
17
41
  | `ss-lint`, `ss-review`, `ss-tokens`, `ss-score`, `ss-motion` | `bitjaru/styleseed` | `styleseed` | `styleseed@styleseed` | `node --version` | `design-system-audit` StyleSeed route, only after the user opts in; `motion-design` React `motion.X` authoring |
18
42
  | `accessibility` | `addyosmani/web-quality-skills` | `addy-web-quality-skills` | `web-quality-skills@addy-web-quality-skills` | none | `accessibility-audit` |
19
43
  | `html-wireframe`, `html-prototype` | `plannotator/effective-html` | `effective-html` | `plannotator-effective-html@effective-html` | `python3 --version` to serve | `design-prototype` |
@@ -34,8 +58,7 @@ each comes from its upstream author.
34
58
  `git clone --depth 1 "https://github.com/OWNER/REPO" "$HOME/.local/share/design-upstream/REPO"`,
35
59
  then add the clone's skills directory to the `skills` array of the global OpenCode
36
60
  config. OpenCode reloads skills after the config is saved.
37
- - pi: for `impeccable`, run `impeccable install -y --providers=pi --scope=project --no-hooks`.
38
- It writes `.pi/skills/impeccable/`. For another row, clone the repo as for OpenCode.
61
+ - pi: clone the repo as for OpenCode.
39
62
  Then add the clone's skills directory to the `skills` array of
40
63
  `~/.pi/agent/settings.json`. Run `/reload` to list the new skills.
41
64
  - Another harness: its own plugin or skill install route for the listed repo.
@@ -52,6 +75,9 @@ each comes from its upstream author.
52
75
  ## Rules
53
76
 
54
77
  MUST Install only the rows in the table, from the listed repo and address.
78
+ NOT Install `impeccable` with `impeccable install`, a marketplace or a clone: the plugin ships it,
79
+ and a second copy shadows the plugin's.
80
+ NOT Run the impeccable launcher with `IMPECCABLE_ALLOW_DOWNLOAD=1` before the user agrees.
55
81
  MUST STOP and report when an install or probe fails. Never substitute your own guidance
56
82
  for the routed upstream.
57
83
  ASK Before adding the `superdesign` marketplace or installing it: it needs an account and
@@ -0,0 +1,191 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright
52
+ owner or by an individual or Legal Entity authorized to submit on
53
+ behalf of the copyright owner. For the purposes of this definition,
54
+ "submitted" means any form of electronic, verbal, or written
55
+ communication sent to the Licensor or its representatives, including
56
+ but not limited to communication on electronic mailing lists, source
57
+ code control systems, and issue tracking systems that are managed by,
58
+ or on behalf of, the Licensor for the purpose of discussing and
59
+ improving the Work, but excluding communication that is conspicuously
60
+ marked or otherwise designated in writing by the copyright owner as
61
+ "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025 Paul Bakaus
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.