[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQVNKW5X2MSXK2R9B53235":3,"skill-same:01M6HQVNKW5X2MSXK2R9B53235":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6HQVNKW5X2MSXK2R9B53235","frontend-mockup-loop",null,"Plan, build, and iterate UX-friendly frontend mockups via a ground→contract→mockup→test→fix→learn loop, acting as an expert UX designer who grounds every decision in externally documented public design rules (Nielsen heuristics, Laws of UX, WCAG, GOV.UK\u002FUSWDS\u002FMaterial). Uses the bundled serve_mockup, score_mockup, and init_ui_contract tools plus a ui-contract.md design control plane to keep screens consistent. Works in any React\u002FTailwind\u002Fshadcn (or plain HTML) project. Use when designing new screens, adapting existing UI, enforcing cross-screen consistency, or doing a UX review. Triggers: \"design a screen\", \"mockup this UI\", \"wireframe\", \"make the UI consistent\", \"adapt the existing design\", \"improve this layout\", \"UX review\", \"is this good UX\".","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fmockup-loop\u002F.pi\u002Fskills\u002Ffrontend-mockup-loop\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"loop","mockup","frontend mockup loop","frontend","new","when","plan","review","react","plane","learn","design","improve","init","good","decision","fix","Tailwind","expert","project","heuristics","2026-11-10 10:12:30",false,"---\nname: frontend-mockup-loop\ndescription: \"Plan, build, and iterate UX-friendly frontend mockups via a ground→contract→mockup→test→fix→learn loop, acting as an expert UX designer who grounds every decision in externally documented public design rules (Nielsen heuristics, Laws of UX, WCAG, GOV.UK\u002FUSWDS\u002FMaterial). Uses the bundled serve_mockup, score_mockup, and init_ui_contract tools plus a ui-contract.md design control plane to keep screens consistent. Works in any React\u002FTailwind\u002Fshadcn (or plain HTML) project. Use when designing new screens, adapting existing UI, enforcing cross-screen consistency, or doing a UX review. Triggers: \\\"design a screen\\\", \\\"mockup this UI\\\", \\\"wireframe\\\", \\\"make the UI consistent\\\", \\\"adapt the existing design\\\", \\\"improve this layout\\\", \\\"UX review\\\", \\\"is this good UX\\\".\"\nlicense: MIT\nmetadata:\n  author: blackbelt-technology\n  version: \"0.3\"\n---\n\n# frontend-mockup-loop\n\nA disciplined loop for designing frontend surfaces. It exists to defeat\n**distributional convergence**: an undirected agent regresses to the\nstatistical mean of its training data — generic Inter font, a purple gradient,\na centered hero. \"Make it look better\" just returns the average again.\n\nThe fix the whole agentic-design field converged on, and what this loop\nenforces every time:\n\n1. **deliberate direction** from a real reference (GROUND),\n2. a **consistent token system** (the ui-contract),\n3. a **screenshot feedback loop** (eyes on output).\n\nThis skill is paired with an extension that registers five tools:\n`serve_mockup`, `score_mockup`, `init_ui_contract`, `list_design_systems`,\n`validate_mockup`.\n\n## Select a design system (optional)\n\nThe loop runs design-system **agnostic** by default (generic anti-slop rubric).\nTo target a specific system, pick a preset and pass its id to the tools'\n`system` param. v1 presets (`list_design_systems` enumerates them):\n\n| id | system | platform | substrate |\n|---|---|---|---|\n| `shadcn` | shadcn\u002Fui + Tailwind | web | HTML + Tailwind |\n| `mui` | Material UI | web | HTML |\n| `material-3` | Material Design 3 | web | HTML |\n| `fluent-2` | Fluent 2 | web | HTML |\n| `apple-hig` | Apple HIG | iOS | HTML approximation → SwiftUI on promote |\n\nWith a system selected: `init_ui_contract{system}` writes that system's DTCG\ntoken contract (from a bundled, offline snapshot; `refresh:true` re-fetches\nupstream), `score_mockup{system}` swaps in the system's boolean rubric, and\n`validate_mockup{system,dir}` runs the gated pipeline.\n\n### Gate vs advisory\n\nValidation is layered. **Gates** block `pass`; **advisory** layers only score\nand drive the fix loop (LLM visual scores skew positive — never hard-block):\n\n- **L1 token-lint** — static; HARD GATE when a linter applies (off-token color\n  literals fail shadcn\u002Fmaterial-3).\n- **L2 a11y floor** — rendered axe + WCAG contrast; HARD GATE, every system.\n- **L3 named-system auditor** — `hig-doctor` \u002F `material3-mcp` etc., advisory,\n  shelled out only if installed (absent → skipped + noted, never errors).\n- **L4 vision rubric** — per-preset boolean checks; `score = pass\u002FN` computed in\n  code, advisory.\n\n`validate_mockup` returns `{ gates, advisory, pass }`; `pass` is gate-only.\n\n### Apple HIG in a browser-first loop\n\nApple publishes no token JSON, so `apple-hig` ships a hand-authored rule pack\n(`presets-data\u002Fapple-hig\u002Frules.md`). Render an **HTML approximation** of the iOS\nscreen so `serve_mockup` can serve it and `hig-doctor` (if installed) can audit\nit — no SwiftUI\u002FXcode required in-loop:\n\n- SF Pro stack: `font-family: -apple-system, \"SF Pro Text\", system-ui`.\n- 44×44pt minimum tap targets; 8pt spacing grid.\n- Safe areas: `padding: env(safe-area-inset-top) … env(safe-area-inset-bottom)`.\n- Bottom tab bar, **≤5 items**; iOS semantic colors (label, systemBackground,\n  systemBlue), no hardcoded brand hex on system chrome.\n\nOn **PROMOTE**, optionally emit real SwiftUI — validated on source by\n`hig-doctor` \u002F `orchard-hig` (no live browser preview; real-device fidelity\nneeds macOS\u002FXcode). SwiftUI is never required for the in-loop preview.\n\n## Act as an expert UX designer\n\n**Rule: ground every UX decision in an externally documented, public-facing\ndesign rule — never invent one.** When you make a call, you must be able to name\nthe rule and cite its public source. \"I think it looks better\" is not a reason;\n\"Hick's Law — reduce the choices here (lawsofux.com\u002Fhicks-law)\" is.\n\nThe full citable rule corpus lives in\n[`references\u002Fux-best-practices.md`](..\u002F..\u002F..\u002Freferences\u002Fux-best-practices.md):\nNielsen's 10 heuristics, Laws of UX, Gestalt, cognitive load, per-component\npattern rules, the 5-step expert evaluation protocol, and a 22-item checkable\nrubric seed. **Read it before designing or reviewing.**\n\n**Source order (adapt, don't copy):** the selected design system's documented\nguidance first → then the universal sources, in licensing-safe order (USWDS is\nCC0; GOV.UK is OGL; NN\u002Fg + Laws of UX cite-with-attribution; Material\u002FCarbon are\nApache-2.0). Adapt the *principle* to this product; never copy proprietary\nassets\u002Ftext (Apple HIG, Refactoring UI, Mobbin).\n\n**Anti-slop companion (advisory).** For the *AI-tell* layer — the countable\nsignatures an undirected model defaults to (AI-purple, Inter-everywhere,\nem-dashes, div-based fake screenshots, eyebrow-per-section, Jane Doe \u002F Acme\ndata) — pull the `anti-slop-frontend` skill\n(`@blackbelt-technology\u002Fanti-slop-frontend`). It is **advisory only**: its tells\nfeed the FIX step's defect list (step 5), but they NEVER override this loop's\nhard gates. When an anti-slop tell conflicts with a cited public rule or the\nWCAG-AA \u002F severity-4 floor, the cited rule and the gate win. Apply its Part A\n(universal) to any surface; skip its Part B (marketing-only) for product UI.\n\n## When to Use\n\nDesigning or refining any frontend surface — new screens, redesigns, or a\nconsistency pass across existing screens. Skip for trivial one-class tweaks.\nNot for backend\u002Fprotocol work.\n\n## Procedure\n\n### 1. GROUND — adapt what ships + what's documented, don't invent\nTwo grounds, both external:\n- **The real UI** — open the running app and READ the authoritative component\n  source. Capture the EXACT tokens already in use: class names, CSS custom\n  properties (`--background`, `--primary`, `--radius`), spacing, dark + light.\n- **The documented rules** — open `references\u002Fux-best-practices.md` and the\n  selected design system's public guidance. Identify the specific patterns and\n  laws that govern this surface (e.g. a form → NN\u002Fg web-form-design + GOV.UK\n  error-summary; a nav → Hick's Law + hamburger-menu guidance).\n\nDesigning without either ground produces a parallel style that looks \"off\" and a\nUX that violates well-known rules — the opposite of adapting documented design.\n\n### 2. CONTRACT — the consistency control plane\nRead or scaffold `ui-contract.md` (run `init_ui_contract`). It is the single\nsource of truth for cross-screen properties: color ramps, spacing scale, type\nscale, radius, elevation, motion, component invariants. **Every value\nreferences a design token — never a raw hex or px literal.** If a surface needs\na token that doesn't exist, add it to the theme layer first, then cite it in\nthe contract. This file is what stops screens from drifting apart.\n\n### 3. MOCKUP — live components, mandatory default\n**Any mock, mockup, UI-option, variant or redesign request in a project the mock\nsite can build is a live-component mock — no exceptions by habit.** One page per\n`mockups\u002F\u003Cyyyy-mm-dd-slug>\u002Fmock.tsx` renders the app's REAL components in\nCurrent | Proposed frames, with numbered rings (`Issue` red \u002F `Fix` green) around\nthe parts that change and a `#ref` link for every page \u002F frame \u002F side \u002F ring \u002F\nstep. The site inherits the app's own build config (package.json `mockSite`\n`{ launcher, config }`, else detected), so no aliases or plugins are copied.\nFull guide: `references\u002Flive-mock-site.md`.\n\n**Static HTML is a named exception, never a default.** Only (a) a pure geometry\nrepro, or (b) a project with no buildable components. \"No components yet\" does\nNOT apply when the surface is composed of existing app components. Say which\nexception applies whenever you build one; a static board lives in its own\ndirectory with a `STATIC.md` naming the exception, served with `serve_mockup`.\n\n**Fidelity rules — confirm all four before showing a mock:**\n- **R1 same surroundings** — both panes render the same shell (frame\n  `surroundings`, or bare in both).\n- **R2 Current is today** — Current renders the SHIPPED components with today's\n  props; never a redraw or copied markup.\n- **R3 only ringed parts differ** — anything that differs between panes is ringed.\n- **R4 real data** — fixtures follow real record shapes (`mock-capture` records\n  them); real product nouns, never placeholder names.\n\n**Behaviour is shown, not described.** When the reviewer must judge an\ninteraction, give the frame a `script` (click \u002F type \u002F clear \u002F hover \u002F press \u002F\nwait on the real DOM, `unless` \u002F `expect` per step) over a fixture factory\n(`fixtures`, fresh per pane and loop). Check it with `mock-check \u003Cref> --loops 10`\nbefore showing it.\n\n**Show it with the package tools.** Serve with `serve_mock_site{}` and show the\nreturned URL to the user (LAN URL only for a phone check) — **not a screenshot**.\nEvery question to the user about a mock carries the full clickable `#ref` URL of\neach page, frame, side, ring or step it concerns (e.g. both rings when asking\nthe user to pick between two variants). Render dark AND light.\n\n**Decisions are recorded by you, with the CLI.** The site shows decisions\nread-only. After the user's verdict in conversation (or your own scored review),\nrun `mock-decide accept \u003Cref> [\"note\"]` or `mock-decide reject \u003Cref> \"why\"` (a\nreject always carries a reason) and report what was recorded.\n\n### 4. TEST — run the expert-UX evaluation protocol\nRun `score_mockup` to capture full-page screenshots at mobile\u002Ftablet\u002Fdesktop\nwidths, then apply the **5-step protocol** from `references\u002Fux-best-practices.md`:\n1. **Accessibility floor (hard gate)** — contrast 4.5:1, target size, focus\n   visible, color-not-sole-channel, reduced-motion.\n2. **Heuristic boolean rubric** — the 22-item rubric seed (Nielsen + Laws of UX\n   + component rules) scored yes\u002Fno; for a user flow, the cognitive-walkthrough\n   4 questions per step.\n3. **PURE friction** — rate each task step green\u002Fyellow\u002Fred; worst step wins.\n4. **Severity 0–4** per defect (Nielsen scale).\n5. **Prioritized fix list** — accessibility-gate first, then severity.\n\n**Score = passed \u002F N, derived in code** — never a subjective \"looks good\" and\nnever a free-form float (LLM visual scores skew positive). Each failed check\ncites the rule it violates.\n\n### 5. FIX — one criterion at a time\nApply the top failing item, re-serve, re-score. Loop 3–5 until every rubric\nline passes in both themes at all three breakpoints.\n\n### 6. PROMOTE — close the apply-gap\nTranslate the approved HTML direction into real React\u002Fshadcn components.\nDo this in an ISOLATED environment (temp workspace, non-production ports),\nnever against a live server. Map the mockup's tokens 1:1 so shipped code\nmatches the approved mockup with zero drift.\n\n### 7. LEARN — compound across runs\nRecord durable taste decisions so the next run starts smarter: stable rules →\nagent memory; repo design rules → patch `ui-contract.md`; one-off rationale →\nthe change's notes.\n\n## Tools (bundled by the extension)\n\n- `serve_mockup{dir, port?, stop?}` — Node static server on 0.0.0.0; returns\n  local + LAN URLs. Zero external deps.\n- `serve_mock_site{dir?, port?, lan?, stop?}` — start the project's\n  live-component mock site through the project's own launcher with the\n  inherited build config, plus the optional `mockups\u002Fmock-site.config.ts`\n  options (default port 5299; reserved ports refused; localhost-only unless\n  `lan`, and LAN clients are view-only). The result names the launcher and app\n  config used.\n- CLIs: `mock-decide list|accept|reject|reopen|adoptable|move` (the only writer\n  of `decision.json`, `by: \"agent\"`), `mock-capture \u003Curl> \u003CmockDir>` (HTTP →\n  redacted `fixtures.har.json`; refuses on a surviving secret),\n  `mock-check \u003Cref> [--loops N]` (headless script loops, default 3, non-zero on\n  a failed loop), `mock-video \u003Cref> [--out f.webm]` (one loop; default under the\n  project's build cache).\n- `score_mockup{url, widths?, outDir?, system?}` — Playwright breakpoint screenshots +\n  scoring rubric. Chromium is declared in this package's `pi.tools` (optional\n  `pw-browser` probe). When Playwright's pinned build is missing it tries the\n  cached builds, newest first; none launches → install guidance\n  (`npx playwright install chromium`).\n- `init_ui_contract{path?, force?, system?, refresh?}` — scaffold the\n  token-referencing contract. With `system`, write that preset's DTCG contract\n  (offline snapshot; `refresh` re-fetches upstream first). No `system` →\n  generic blank template (unchanged).\n- `list_design_systems{}` — enumerate the preset registry (id, label, platform,\n  substrate, validators).\n- `validate_mockup{system, url?, dir?}` — run L1+L2 (gates) + L3+L4 (advisory);\n  returns `{ gates, advisory, pass }`. Pass `dir` so L1\u002FL2 can scan the source.\n\n## Pitfalls\n\n- Live mock site: decisions are per PAGE (never per frame), recorded only with\n  `mock-decide`; a reject needs a reason. Unfixtured requests show under\n  \"Missing fixtures\": add a fixture, never a live backend. A ring adds one wrapper element — use `block` for grid\u002Fflex children,\n  and know that `>` \u002F `first:` \u002F `space-x-*` selectors can shift. App overlays\n  portaled to `document.body` escape pane containment: render dialogs inline. A\n  rejected mock is revised and reopened, or deleted together with its\n  `mockups\u002FAGENTS.md` row.\n\n- Do NOT verify against a live\u002Fproduction server — isolate the env so mockup\n  edits actually load.\n- Do NOT put raw hex\u002Fpx in the contract or mockups; reference tokens, else\n  consistency erodes the moment a theme changes.\n- Do NOT skip GROUND — parallel styling looks \"off\" next to shipped screens.\n- Do NOT hand back screenshots for HUMAN review when a live URL is possible.\n  Screenshots are for the AGENT's scoring step; live URLs are for the human.\n- Do NOT let \"make it nicer\" be the instruction to yourself — score against the\n  named rubric.\n- Do NOT invent a UX rule or justify a decision by taste alone — cite an\n  external documented public source (see `references\u002Fux-best-practices.md`).\n- Do NOT block \"pass\" on advisory taste while a WCAG-AA or severity-4 defect\n  remains — the accessibility floor is the hard gate.\n\n## Verification\n\n- `ui-contract.md` exists; every value references a token; the new surface's\n  tokens appear in it.\n- A live mockup URL (local + LAN) was handed back and renders in BOTH themes at\n  mobile\u002Ftablet\u002Fdesktop.\n- A written rubric passes — not a subjective \"looks good\".\n- Every UX decision traces to a cited external rule (heuristic \u002F law \u002F pattern \u002F\n  WCAG criterion), not taste.\n- The accessibility floor passes (no WCAG-AA or severity-4 defect open).\n- If promoted: components were verified in an isolated env; production was left\n  untouched.\n- Durable learnings were recorded so the loop compounds.\n","# frontend-mockup-loop\n\nA disciplined loop for designing frontend surfaces. It exists to defeat\n**distributional convergence**: an undirected agent regresses to the\nstatistical mean of its training data — generic Inter font, a purple gradient,\na centered hero. \"Make it look better\" just returns the average again.\n\nThe fix the whole agentic-design field converged on, and what this loop\nenforces every time:\n\n1. **deliberate direction** from a real reference (GROUND),\n2. a **consistent token system** (the ui-contract),\n3. a **screenshot feedback loop** (eyes on output).\n\nThis skill is paired with an extension that registers five tools:\n`serve_mockup`, `score_mockup`, `init_ui_contract`, `list_design_systems`,\n`validate_mockup`.\n\n## Select a design system (optional)\n\nThe loop runs design-system **agnostic** by default (generic anti-slop rubric).\nTo target a specific system, pick a preset and pass its id to the tools'\n`system` param. v1 presets (`list_design_systems` enumerates them):\n\n| id | system | platform | substrate |\n|---|---|---|---|\n| `shadcn` | shadcn\u002Fui + Tailwind | web | HTML + Tailwind |\n| `mui` | Material UI | web | HTML |\n| `material-3` | Material Design 3 | web | HTML |\n| `fluent-2` | Fluent 2 | web | HTML |\n| `apple-hig` | Apple HIG | iOS | HTML approximation → SwiftUI on promote |\n\nWith a system selected: `init_ui_contract{system}` writes that system's DTCG\ntoken contract (from a bundled, offline snapshot; `refresh:true` re-fetches\nupstream), `score_mockup{system}` swaps in the system's boolean rubric, and\n`validate_mockup{system,dir}` runs the gated pipeline.\n\n### Gate vs advisory\n\nValidation is layered. **Gates** block `pass`; **advisory** layers only score\nand drive the fix loop (LLM visual scores skew positive — never hard-block):\n\n- **L1 token-lint** — static; HARD GATE when a linter applies (off-token color\n  literals fail shadcn\u002Fmaterial-3).\n- **L2 a11y floor** — rendered axe + WCAG contrast; HARD GATE, every system.\n- **L3 named-system auditor** — `hig-doctor` \u002F `material3-mcp` etc., advisory,\n  shelled out only if installed (absent → skipped + noted, never errors).\n- **L4 vision rubric** — per-preset boolean checks; `score = pass\u002FN` computed in\n  code, advisory.\n\n`validate_mockup` returns `{ gates, advisory, pass }`; `pass` is gate-only.\n\n### Apple HIG in a browser-first loop\n\nApple publishes no token JSON, so `apple-hig` ships a hand-authored rule pack\n(`presets-data\u002Fapple-hig\u002Frules.md`). Render an **HTML approximation** of the iOS\nscreen so `serve_mockup` can serve it and `hig-doctor` (if installed) can audit\nit — no SwiftUI\u002FXcode required in-loop:\n\n- SF Pro stack: `font-family: -apple-system, \"SF Pro Text\", system-ui`.\n- 44×44pt minimum tap targets; 8pt spacing grid.\n- Safe areas: `padding: env(safe-area-inset-top) … env(safe-area-inset-bottom)`.\n- Bottom tab bar, **≤5 items**; iOS semantic colors (label, systemBackground,\n  systemBlue), no hardcoded brand hex on system chrome.\n\nOn **PROMOTE**, optionally emit real SwiftUI — validated on source by\n`hig-doctor` \u002F `orchard-hig` (no live browser preview; real-device fidelity\nneeds macOS\u002FXcode). SwiftUI is never required for the in-loop preview.\n\n## Act as an expert UX designer\n\n**Rule: ground every UX decision in an externally documented, public-facing\ndesign rule — never invent one.** When you make a call, you must be able to name\nthe rule and cite its public source. \"I think it looks better\" is not a reason;\n\"Hick's Law — reduce the choices here (lawsofux.com\u002Fhicks-law)\" is.\n\nThe full citable rule corpus lives in\n[`references\u002Fux-best-practices.md`](..\u002F..\u002F..\u002Freferences\u002Fux-best-practices.md):\nNielsen's 10 heuristics, Laws of UX, Gestalt, cognitive load, per-component\npattern rules, the 5-step expert evaluation protocol, and a 22-item checkable\nrubric seed. **Read it before designing or reviewing.**\n\n**Source order (adapt, don't copy):** the selected design system's documented\nguidance first → then the universal sources, in licensing-safe order (USWDS is\nCC0; GOV.UK is OGL; NN\u002Fg + Laws of UX cite-with-attribution; Material\u002FCarbon are\nApache-2.0). Adapt the *principle* to this product; never copy proprietary\nassets\u002Ftext (Apple HIG, Refactoring UI, Mobbin).\n\n**Anti-slop companion (advisory).** For the *AI-tell* layer — the countable\nsignatures an undirected model defaults to (AI-purple, Inter-everywhere,\nem-dashes, div-based fake screenshots, eyebrow-per-section, Jane Doe \u002F Acme\ndata) — pull the `anti-slop-frontend` skill\n(`@blackbelt-technology\u002Fanti-slop-frontend`). It is **advisory only**: its tells\nfeed the FIX step's defect list (step 5), but they NEVER override this loop's\nhard gates. When an anti-slop tell conflicts with a cited public rule or the\nWCAG-AA \u002F severity-4 floor, the cited rule and the gate win. Apply its Part A\n(universal) to any surface; skip its Part B (marketing-only) for product UI.\n\n## When to Use\n\nDesigning or refining any frontend surface — new screens, redesigns, or a\nconsistency pass across existing screens. Skip for trivial one-class tweaks.\nNot for backend\u002Fprotocol work.\n\n## Procedure\n\n### 1. GROUND — adapt what ships + what's documented, don't invent\nTwo grounds, both external:\n- **The real UI** — open the running app and READ the authoritative component\n  source. Capture the EXACT tokens already in use: class names, CSS custom\n  properties (`--background`, `--primary`, `--radius`), spacing, dark + light.\n- **The documented rules** — open `references\u002Fux-best-practices.md` and the\n  selected design system's public guidance. Identify the specific patterns and\n  laws that govern this surface (e.g. a form → NN\u002Fg web-form-design + GOV.UK\n  error-summary; a nav → Hick's Law + hamburger-menu guidance).\n\nDesigning without either ground produces a parallel style that looks \"off\" and a\nUX that violates well-known rules — the opposite of adapting documented design.\n\n### 2. CONTRACT — the consistency control plane\nRead or scaffold `ui-contract.md` (run `init_ui_contract`). It is the single\nsource of truth for cross-screen properties: color ramps, spacing scale, type\nscale, radius, elevation, motion, component invariants. **Every value\nreferences a design token — never a raw hex or px literal.** If a surface needs\na token that doesn't exist, add it to the theme layer first, then cite it in\nthe contract. This file is what stops screens from drifting apart.\n\n### 3. MOCKUP — live components, mandatory default\n**Any mock, mockup, UI-option, variant or redesign request in a project the mock\nsite can build is a live-component mock — no exceptions by habit.** One page per\n`mockups\u002F\u003Cyyyy-mm-dd-slug>\u002Fmock.tsx` renders the app's REAL components in\nCurrent | Proposed frames, with numbered rings (`Issue` red \u002F `Fix` green) around\nthe parts that change and a `#ref` link for every page \u002F frame \u002F side \u002F ring \u002F\nstep. The site inherits the app's own build config (package.json `mockSite`\n`{ launcher, config }`, else detected), so no aliases or plugins are copied.\nFull guide: `references\u002Flive-mock-site.md`.\n\n**Static HTML is a named exception, never a default.** Only (a) a pure geometry\nrepro, or (b) a project with no buildable components. \"No components yet\" does\nNOT apply when the surface is composed of existing app components. Say which\nexception applies whenever you build one; a static board lives in its own\ndirectory with a `STATIC.md` naming the exception, served with `serve_mockup`.\n\n**Fidelity rules — confirm all four before showing a mock:**\n- **R1 same surroundings** — both panes render the same shell (frame\n  `surroundings`, or bare in both).\n- **R2 Current is today** — Current renders the SHIPPED components with today's\n  props; never a redraw or copied markup.\n- **R3 only ringed parts differ** — anything that differs between panes is ringed.\n- **R4 real data** — fixtures follow real record shapes (`mock-capture` records\n  them); real product nouns, never placeholder names.\n\n**Behaviour is shown, not described.** When the reviewer must judge an\ninteraction, give the frame a `script` (click \u002F type \u002F clear \u002F hover \u002F press \u002F\nwait on the real DOM, `unless` \u002F `expect` per step) over a fixture factory\n(`fixtures`, fresh per pane and loop). Check it with `mock-check \u003Cref> --loops 10`\nbefore showing it.\n\n**Show it with the package tools.** Serve with `serve_mock_site{}` and show the\nreturned URL to the user (LAN URL only for a phone check) — **not a screenshot**.\nEvery question to the user about a mock carries the full clickable `#ref` URL of\neach page, frame, side, ring or step it concerns (e.g. both rings when asking\nthe user to pick between two variants). Render dark AND light.\n\n**Decisions are recorded by you, with the CLI.** The site shows decisions\nread-only. After the user's verdict in conversation (or your own scored review),\nrun `mock-decide accept \u003Cref> [\"note\"]` or `mock-decide reject \u003Cref> \"why\"` (a\nreject always carries a reason) and report what was recorded.\n\n### 4. TEST — run the expert-UX evaluation protocol\nRun `score_mockup` to capture full-page screenshots at mobile\u002Ftablet\u002Fdesktop\nwidths, then apply the **5-step protocol** from `references\u002Fux-best-practices.md`:\n1. **Accessibility floor (hard gate)** — contrast 4.5:1, target size, focus\n   visible, color-not-sole-channel, reduced-motion.\n2. **Heuristic boolean rubric** — the 22-item rubric seed (Nielsen + Laws of UX\n   + component rules) scored yes\u002Fno; for a user flow, the cognitive-walkthrough\n   4 questions per step.\n3. **PURE friction** — rate each task step green\u002Fyellow\u002Fred; worst step wins.\n4. **Severity 0–4** per defect (Nielsen scale).\n5. **Prioritized fix list** — accessibility-gate first, then severity.\n\n**Score = passed \u002F N, derived in code** — never a subjective \"looks good\" and\nnever a free-form float (LLM visual scores skew positive). Each failed check\ncites the rule it violates.\n\n### 5. FIX — one criterion at a time\nApply the top failing item, re-serve, re-score. Loop 3–5 until every rubric\nline passes in both themes at all three breakpoints.\n\n### 6. PROMOTE — close the apply-gap\nTranslate the approved HTML direction into real React\u002Fshadcn components.\nDo this in an ISOLATED environment (temp workspace, non-production ports),\nnever against a live server. Map the mockup's tokens 1:1 so shipped code\nmatches the approved mockup with zero drift.\n\n### 7. LEARN — compound across runs\nRecord durable taste decisions so the next run starts smarter: stable rules →\nagent memory; repo design rules → patch `ui-contract.md`; one-off rationale →\nthe change's notes.\n\n## Tools (bundled by the extension)\n\n- `serve_mockup{dir, port?, stop?}` — Node static server on 0.0.0.0; returns\n  local + LAN URLs. Zero external deps.\n- `serve_mock_site{dir?, port?, lan?, stop?}` — start the project's\n  live-component mock site through the project's own launcher with the\n  inherited build config, plus the optional `mockups\u002Fmock-site.config.ts`\n  options (default port 5299; reserved ports refused; localhost-only unless\n  `lan`, and LAN clients are view-only). The result names the launcher and app\n  config used.\n- CLIs: `mock-decide list|accept|reject|reopen|adoptable|move` (the only writer\n  of `decision.json`, `by: \"agent\"`), `mock-capture \u003Curl> \u003CmockDir>` (HTTP →\n  redacted `fixtures.har.json`; refuses on a surviving secret),\n  `mock-check \u003Cref> [--loops N]` (headless script loops, default 3, non-zero on\n  a failed loop), `mock-video \u003Cref> [--out f.webm]` (one loop; default under the\n  project's build cache).\n- `score_mockup{url, widths?, outDir?, system?}` — Playwright breakpoint screenshots +\n  scoring rubric. Chromium is declared in this package's `pi.tools` (optional\n  `pw-browser` probe). When Playwright's pinned build is missing it tries the\n  cached builds, newest first; none launches → install guidance\n  (`npx playwright install chromium`).\n- `init_ui_contract{path?, force?, system?, refresh?}` — scaffold the\n  token-referencing contract. With `system`, write that preset's DTCG contract\n  (offline snapshot; `refresh` re-fetches upstream first). No `system` →\n  generic blank template (unchanged).\n- `list_design_systems{}` — enumerate the preset registry (id, label, platform,\n  substrate, validators).\n- `validate_mockup{system, url?, dir?}` — run L1+L2 (gates) + L3+L4 (advisory);\n  returns `{ gates, advisory, pass }`. Pass `dir` so L1\u002FL2 can scan the source.\n\n## Pitfalls\n\n- Live mock site: decisions are per PAGE (never per frame), recorded only with\n  `mock-decide`; a reject needs a reason. Unfixtured requests show under\n  \"Missing fixtures\": add a fixture, never a live backend. A ring adds one wrapper element — use `block` for grid\u002Fflex children,\n  and know that `>` \u002F `first:` \u002F `space-x-*` selectors can shift. App overlays\n  portaled to `document.body` escape pane containment: render dialogs inline. A\n  rejected mock is revised and reopened, or deleted together with its\n  `mockups\u002FAGENTS.md` row.\n\n- Do NOT verify against a live\u002Fproduction server — isolate the env so mockup\n  edits actually load.\n- Do NOT put raw hex\u002Fpx in the contract or mockups; reference tokens, else\n  consistency erodes the moment a theme changes.\n- Do NOT skip GROUND — parallel styling looks \"off\" next to shipped screens.\n- Do NOT hand back screenshots for HUMAN review when a live URL is possible.\n  Screenshots are for the AGENT's scoring step; live URLs are for the human.\n- Do NOT let \"make it nicer\" be the instruction to yourself — score against the\n  named rubric.\n- Do NOT invent a UX rule or justify a decision by taste alone — cite an\n  external documented public source (see `references\u002Fux-best-practices.md`).\n- Do NOT block \"pass\" on advisory taste while a WCAG-AA or severity-4 defect\n  remains — the accessibility floor is the hard gate.\n\n## Verification\n\n- `ui-contract.md` exists; every value references a token; the new surface's\n  tokens appear in it.\n- A live mockup URL (local + LAN) was handed back and renders in BOTH themes at\n  mobile\u002Ftablet\u002Fdesktop.\n- A written rubric passes — not a subjective \"looks good\".\n- Every UX decision traces to a cited external rule (heuristic \u002F law \u002F pattern \u002F\n  WCAG criterion), not taste.\n- The accessibility floor passes (no WCAG-AA or severity-4 defect open).\n- If promoted: components were verified in an isolated env; production was left\n  untouched.\n- Durable learnings were recorded so the loop compounds.\n",{"name":5,"license":15,"metadata":45,"description":7},{"author":46,"version":47},"blackbelt-technology","0.3","develop","3cf8afe9f75a2790c7c479dd3ccaee78ae168820","packages\u002Fmockup-loop\u002F.pi\u002Fskills\u002Ffrontend-mockup-loop",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill frontend-mockup-loop",{"tool":63,"command":64},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill frontend-mockup-loop",{"tool":66,"command":67},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill frontend-mockup-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fmockup-loop\u002F.pi\u002Fskills\u002Ffrontend-mockup-loop\u002FSKILL.md",true,[],[72,100,126,149,170,191],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":40},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","use","update docs","yt-dlp","local","mine","via","ai models","last","for","media download",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":40},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[86,107,108,109,84,110,111,112,113,114,115,90,116,117,118,119,120,121,122,80,123,124,125,24],"transcription","video transcription","transcribe","api","Audio","convert","mp4","text","meetings","files","default","mp3","triggers","with","videos","assemblyai","my","srt subtitles","request",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":40},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[133,134,135,136,110,137,138,139,140,141,142,93,119,143,144,145,146,80,147,148],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":40},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[156,157,158,159,160,161,162,86,163,164,165,166,120,167,168,169],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":40},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[157,177,178,179,180,160,110,86,113,163,90,181,139,182,183,184,185,38,166,186,187,188,189,120,190,98,168],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","cut","scripts","make","render","google veo",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":40},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[198,199,200,86,201,202,203,90,204,205,206,139,207,208,209,210,211,189,120,212],"hyperframes","hyperframes showreel","qa","Composition","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]