[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E9EWJY7RJEB2X5R2FE4HD3":3,"skill-same:01M7E9EWJY7RJEB2X5R2FE4HD3":76},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M7E9EWJY7RJEB2X5R2FE4HD3","tweaks",null,"Wrap any HTML artifact with a side panel of live, parameterized\ncontrols — accent color, type scale, density, motion, theme — that\nrewrite CSS custom properties in real time and persist to\nlocalStorage. Lets the user explore variants of a design without\nre-prompting the agent. Use when the brief asks for \"variants\",\n\"side-by-side options\", \"tweak this\", \"let me adjust\", \"live\nknobs\", or \"实时调参\".","testground-lab\u002Fdesignground","testground-lab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F213383747?v=4","01M7E8Q0BABJ7Q9AVGKG7SM9V4","TestGround Inc","01M7E8Q0BV18ZX6XCJTGNN3096",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fdesign-templates\u002Ftweaks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tweaks\ndescription: |\n  Wrap any HTML artifact with a side panel of live, parameterized\n  controls — accent color, type scale, density, motion, theme — that\n  rewrite CSS custom properties in real time and persist to\n  localStorage. Lets the user explore variants of a design without\n  re-prompting the agent. Use when the brief asks for \"variants\",\n  \"side-by-side options\", \"tweak this\", \"let me adjust\", \"live\n  knobs\", or \"实时调参\".\ntriggers:\n  - \"tweaks\"\n  - \"variants\"\n  - \"tweak panel\"\n  - \"live controls\"\n  - \"adjust on the fly\"\n  - \"实时调参\"\n  - \"可调参数面板\"\n  - \"side panel\"\n  - \"knobs\"\nod:\n  mode: prototype\n  platform: desktop\n  scenario: design\n  upstream: \"https:\u002F\u002Fgithub.com\u002Falchaincyf\u002Fhuashu-design\"\n  preview:\n    type: html\n    entry: index.html\n  design_system:\n    requires: false\n  example_prompt: \"Wrap this landing page with a tweak panel — accent color, type scale, density, light\u002Fdark — persist to localStorage so the user can refresh without losing their choice.\"\n---\n\n# Tweaks Skill · 参数化变体面板\n\nWrap any HTML artifact with a side panel of live controls that rewrite\nCSS custom properties in real time and persist to `localStorage`.\nInspired by the *huashu-design* tweak pattern.\n\n## What you produce\n\nA single self-contained HTML file with two layers:\n\n1. **Stage** — the original artifact (landing page \u002F deck \u002F dashboard)\n   re-keyed so all visual decisions read from CSS custom properties:\n   `--accent`, `--scale`, `--density`, `--mode`, `--motion`.\n2. **Panel** — a fixed sidebar (or drawer on small viewports) with\n   form controls bound to those custom properties via a tiny\n   vanilla-JS bridge. Persists every change to `localStorage` keyed\n   by the artifact identifier.\n\nThe user can:\n\n- Open the artifact and see the stage rendered with their saved\n  preferences (or sensible defaults).\n- Adjust accent \u002F scale \u002F density \u002F mode \u002F motion in the panel and\n  watch the stage update instantly — no rerender.\n- Press \u003Ckbd>T\u003C\u002Fkbd> to hide \u002F reveal the panel; \u003Ckbd>R\u003C\u002Fkbd> to\n  reset to defaults.\n- Refresh the page — every choice is persisted.\n\n## When to use\n\n- The user generated something they like 80% of, and wants to dial\n  in the last 20% themselves.\n- You're presenting a design system \u002F brand and want the audience to\n  feel the variants live (instead of you re-running the agent).\n- You're shipping a stand-alone demo (e.g. a portfolio piece) and\n  want viewers to play.\n\n## When *not* to use\n\n- One-shot artifacts that won't be iterated on (e.g. a runbook —\n  parameters don't help).\n- When the artifact's value is in fixed ratios (e.g. an infographic\n  with carefully balanced data viz — knobs would degrade it).\n\n## The 5 standard knobs\n\n> Pick a subset that suits the artifact. Don't ship all 5 if only 2\n> matter — clutter is a regression.\n\n### 1. `--accent` — Accent color\n\nA select with 5–8 curated swatches (don't ship a free color picker —\nthe user will pick a bad color and blame you).\n\n```js\nconst ACCENT_PRESETS = [\n  { id: 'rust',    val: '#c96442', label: 'Rust' },\n  { id: 'cobalt',  val: '#2c4d8e', label: 'Cobalt' },\n  { id: 'sage',    val: '#4a7a3f', label: 'Sage' },\n  { id: 'plum',    val: '#7a3f6a', label: 'Plum' },\n  { id: 'graphite',val: '#3a3a3a', label: 'Graphite' },\n];\n```\n\nThe artifact uses `var(--accent)` everywhere it had a hard-coded\naccent before. Border \u002F link \u002F pull-quote rule \u002F CTA all flip\ntogether.\n\n### 2. `--scale` — Type scale (0.85 \u002F 1.0 \u002F 1.15)\n\nThree settings: *Compact* (0.85), *Normal* (1.0), *Generous* (1.15).\nAll `font-size` declarations multiply by `var(--scale)` via\n`calc(... * var(--scale))`.\n\nDon't go beyond ±15% — beyond that the layout breaks (column flow,\nbreakpoints, line counts).\n\n### 3. `--density` — Layout density (Tight \u002F Normal \u002F Roomy)\n\nThree settings that swap the spacing scale: *Tight* (0.75) \u002F\n*Normal* (1.0) \u002F *Roomy* (1.4). All `padding` \u002F `gap` \u002F `margin`\ndeclarations multiply by `var(--density)`.\n\nThis is the highest-impact knob — it's also the most fragile, so\n**every layout-critical container must declare its base spacing in\ncustom properties** before you wrap.\n\n### 4. `--mode` — Light \u002F Dark\n\nA 2-state toggle. Sets `data-mode=\"light\"` vs `\"dark\"` on the\n`\u003Chtml>` element and the artifact's `:root` selector responds with\ntwo color sets.\n\nIf the artifact already has a media-query-based dark mode, *replace*\nit with the data-attr version — the user's choice should win over\ntheir OS.\n\n### 5. `--motion` — Off \u002F Subtle \u002F Lively\n\nThree settings. Maps to a CSS variable `--motion-mult` that scales\nall `transition-duration` \u002F `animation-duration` declarations:\n\n- *Off* — `0s` (also disables WebGL canvases \u002F decorative animation).\n- *Subtle* — `1.0` (the artifact's authored timing).\n- *Lively* — `1.6` (slower transitions, more visible motion).\n\nRespect `prefers-reduced-motion`: default to *Off* if the user has\nthat set, regardless of stored preference.\n\n## Host integration contract (REQUIRED)\n\nThe OpenDesign viewer toolbar has a **Tweaks** toggle that drives panel\nvisibility from outside the iframe. For the toggle to bind to your panel,\nyour artifact **must** speak one of these two protocols (pick one; don't\nmix). The toolbar enables itself the moment it sees either signal.\n\n### Protocol A — postMessage (recommended for agent-generated artifacts)\n\nUse this when the panel mounts via JS (React, vanilla, anything dynamic).\n\n**Artifact → host:**\n- On mount, post `{ type: '__edit_mode_available', visible?: boolean }` to\n  `window.parent`. Tells the toolbar a panel exists; the optional `visible`\n  reports the panel's initial state so the toolbar toggle starts in sync.\n  Omit `visible` for the common \"panel is already on screen\" case (the host\n  treats a missing field as `true` so the legacy zero-arg message keeps\n  working). Pass `visible: false` to declare a default-closed panel.\n- When the user closes the panel locally (× button, Esc, etc.), post\n  `{ type: '__edit_mode_dismissed' }`. Toolbar flips to \"off\".\n\n**Host → artifact:**\n- `{ type: '__activate_edit_mode' }` — open the panel (`setOpen(true)`).\n- `{ type: '__deactivate_edit_mode' }` — close the panel (`setOpen(false)`).\n\nMinimal listener:\n\n```js\nwindow.addEventListener('message', (e) => {\n  const t = e?.data?.type;\n  if (t === '__activate_edit_mode') setOpen(true);\n  else if (t === '__deactivate_edit_mode') setOpen(false);\n});\n\u002F\u002F Or, for a default-closed panel:\n\u002F\u002F   window.parent.postMessage({ type: '__edit_mode_available', visible: open }, '*');\nwindow.parent.postMessage({ type: '__edit_mode_available' }, '*');\n\u002F\u002F in your close handler:\nconst dismiss = () => {\n  setOpen(false);\n  window.parent.postMessage({ type: '__edit_mode_dismissed' }, '*');\n};\n```\n\nPanel may default to open or closed — the host syncs its toggle to\nwhichever state the artifact reports.\n\n### Protocol B — class-based (used by `assets\u002Fwrap.html`)\n\nUse this only when you wrap the template verbatim. The artifact ships a\n`.tw-panel` element and toggles a `.tw-hidden` class for visibility. The\nviewer's iframe bridge (in `apps\u002Fweb\u002Fsrc\u002Fruntime\u002Fsrcdoc.ts`) hides the\npanel on initial paint, watches the class via `MutationObserver`, and\nrelays state both directions. No JS required in the artifact beyond what\nthe template already includes.\n\nSelectors are fixed: `.tw-panel` (the panel root) and `.tw-hidden` (the\nhidden state). If you rename either, the bridge can't find it.\n\n### Anti-pattern\n\nDon't invent a third protocol or rename either set of identifiers. The\ntoolbar toggle only binds to A or B. Custom panels with custom classes\nand no postMessage will leave the toolbar greyed out.\n\n## Implementation primitives\n\nRead `assets\u002Fwrap.html` — it ships the panel + bridge as an\ninert template. Your job is to:\n\n1. Take the user's existing artifact HTML.\n2. Lift its accent \u002F mode \u002F spacing \u002F scale into custom properties\n   (search for hard-coded `#hex` \u002F `Npx` \u002F `Nrem` and convert).\n3. Paste the contents into the marked region of `wrap.html`.\n4. Edit `assets\u002Fwrap.html`'s `KNOBS` array to keep only the knobs\n   you decided are relevant to *this* artifact. Don't ship 5 if 2\n   matter.\n5. Patch the `STORAGE_KEY` to a unique slug (`tweaks-\u003Cartifact-slug>`).\n\nThe bridge in `wrap.html`:\n- Loads `localStorage[STORAGE_KEY]` JSON on first paint.\n- Applies values as `document.documentElement.style.setProperty('--accent', ...)`.\n- Listens to every form control's `change` event and writes back.\n- Exposes \u003Ckbd>T\u003C\u002Fkbd> (toggle panel) and \u003Ckbd>R\u003C\u002Fkbd> (reset).\n\n## Workflow\n\n### Step 1 — Acquire the artifact\n\nSame options as the critique skill:\n\n1. Project file (`index.html` in the project folder).\n2. Pasted HTML in the chat.\n3. Generated by you in this turn.\n\n### Step 2 — Decide which knobs apply\n\nRead the artifact's CSS first. For each knob, decide *yes \u002F no*:\n\n- `--accent` — yes if the artifact has 1 accent color used ≥ 3 times.\n- `--scale` — yes if the artifact is type-driven (article, deck,\n  pricing page).\n- `--density` — yes if the artifact has consistent gap \u002F padding\n  rhythm (deck, dashboard, landing). No for runbooks (already dense).\n- `--mode` — yes if the artifact has authored dark mode tokens, or\n  you're willing to derive them.\n- `--motion` — yes if the artifact has any transition \u002F animation\n  worth scaling. No for static reports \u002F critique reports.\n\nDefault: **3 knobs is the sweet spot.** Five is too busy, one is\nnot worth a panel.\n\n### Step 3 — Lift hard-coded values into custom properties\n\nOpen `assets\u002Fwrap.html`'s `\u003Cstyle>` block — copy its custom-property\nnaming scheme (`--accent`, `--scale`, etc.). In the user's artifact,\nfind every place those concerns live and rewrite:\n\n- `color: #c96442` → `color: var(--accent)`\n- `font-size: 18px` → `font-size: calc(18px * var(--scale))`\n- `padding: 24px 32px` → `padding: calc(24px * var(--density)) calc(32px * var(--density))`\n- `transition: opacity 200ms` → `transition: opacity calc(200ms * var(--motion-mult))`\n\nIf the artifact uses `clamp()` or `vw` already, multiply the\n*outer* value by the custom property — don't tear apart `clamp(...)`.\n\n### Step 4 — Paste into the wrap\n\nCopy the artifact's `\u003Cstyle>` and `\u003Cbody>` into the marked regions\nof `wrap.html`. Keep the panel + bridge intact.\n\n### Step 5 — Test the loop\n\nOpen the result, click each knob at least once, refresh the page,\nconfirm the choice persists. If a knob breaks the layout —\n*remove it*, don't ship it.\n\n## Output contract\n\n```\n\u003Cartifact identifier=\"tweaks-\u003Cartifact-slug>\" type=\"text\u002Fhtml\" title=\"\u003CArtifact Title> · Tweaks\">\n\u003C!doctype html>\n\u003Chtml>...\u003C\u002Fhtml>\n\u003C\u002Fartifact>\n```\n\nOne sentence before the artifact (\"Wrapped X with a 3-knob tweak\npanel — accent \u002F scale \u002F mode.\"). Stop after `\u003C\u002Fartifact>`.\n\n## Hard rules\n\n- **Don't ship a free color picker** — only curated swatches. Users\n  pick bad colors when given freedom; saving them from that is the\n  whole point.\n- **Persist by artifact identifier** — `tweaks-\u003Cslug>`, not a global\n  key. Two artifacts open in two tabs must not share state.\n- **Respect `prefers-reduced-motion`** — default to *Off* for motion\n  if the user has that set, override only on explicit click.\n- **Single-file** — no external CSS \u002F JS \u002F fonts beyond the artifact's\n  existing imports. Inline the panel + bridge.\n- **Panel hidden by default on viewports \u003C 720px** — slide-in drawer\n  via a \"T\" button at top-right.\n- **Don't ship more than 5 knobs.** Three is the sweet spot.\n","# Tweaks Skill · 参数化变体面板\n\nWrap any HTML artifact with a side panel of live controls that rewrite\nCSS custom properties in real time and persist to `localStorage`.\nInspired by the *huashu-design* tweak pattern.\n\n## What you produce\n\nA single self-contained HTML file with two layers:\n\n1. **Stage** — the original artifact (landing page \u002F deck \u002F dashboard)\n   re-keyed so all visual decisions read from CSS custom properties:\n   `--accent`, `--scale`, `--density`, `--mode`, `--motion`.\n2. **Panel** — a fixed sidebar (or drawer on small viewports) with\n   form controls bound to those custom properties via a tiny\n   vanilla-JS bridge. Persists every change to `localStorage` keyed\n   by the artifact identifier.\n\nThe user can:\n\n- Open the artifact and see the stage rendered with their saved\n  preferences (or sensible defaults).\n- Adjust accent \u002F scale \u002F density \u002F mode \u002F motion in the panel and\n  watch the stage update instantly — no rerender.\n- Press \u003Ckbd>T\u003C\u002Fkbd> to hide \u002F reveal the panel; \u003Ckbd>R\u003C\u002Fkbd> to\n  reset to defaults.\n- Refresh the page — every choice is persisted.\n\n## When to use\n\n- The user generated something they like 80% of, and wants to dial\n  in the last 20% themselves.\n- You're presenting a design system \u002F brand and want the audience to\n  feel the variants live (instead of you re-running the agent).\n- You're shipping a stand-alone demo (e.g. a portfolio piece) and\n  want viewers to play.\n\n## When *not* to use\n\n- One-shot artifacts that won't be iterated on (e.g. a runbook —\n  parameters don't help).\n- When the artifact's value is in fixed ratios (e.g. an infographic\n  with carefully balanced data viz — knobs would degrade it).\n\n## The 5 standard knobs\n\n> Pick a subset that suits the artifact. Don't ship all 5 if only 2\n> matter — clutter is a regression.\n\n### 1. `--accent` — Accent color\n\nA select with 5–8 curated swatches (don't ship a free color picker —\nthe user will pick a bad color and blame you).\n\n```js\nconst ACCENT_PRESETS = [\n  { id: 'rust',    val: '#c96442', label: 'Rust' },\n  { id: 'cobalt',  val: '#2c4d8e', label: 'Cobalt' },\n  { id: 'sage',    val: '#4a7a3f', label: 'Sage' },\n  { id: 'plum',    val: '#7a3f6a', label: 'Plum' },\n  { id: 'graphite',val: '#3a3a3a', label: 'Graphite' },\n];\n```\n\nThe artifact uses `var(--accent)` everywhere it had a hard-coded\naccent before. Border \u002F link \u002F pull-quote rule \u002F CTA all flip\ntogether.\n\n### 2. `--scale` — Type scale (0.85 \u002F 1.0 \u002F 1.15)\n\nThree settings: *Compact* (0.85), *Normal* (1.0), *Generous* (1.15).\nAll `font-size` declarations multiply by `var(--scale)` via\n`calc(... * var(--scale))`.\n\nDon't go beyond ±15% — beyond that the layout breaks (column flow,\nbreakpoints, line counts).\n\n### 3. `--density` — Layout density (Tight \u002F Normal \u002F Roomy)\n\nThree settings that swap the spacing scale: *Tight* (0.75) \u002F\n*Normal* (1.0) \u002F *Roomy* (1.4). All `padding` \u002F `gap` \u002F `margin`\ndeclarations multiply by `var(--density)`.\n\nThis is the highest-impact knob — it's also the most fragile, so\n**every layout-critical container must declare its base spacing in\ncustom properties** before you wrap.\n\n### 4. `--mode` — Light \u002F Dark\n\nA 2-state toggle. Sets `data-mode=\"light\"` vs `\"dark\"` on the\n`\u003Chtml>` element and the artifact's `:root` selector responds with\ntwo color sets.\n\nIf the artifact already has a media-query-based dark mode, *replace*\nit with the data-attr version — the user's choice should win over\ntheir OS.\n\n### 5. `--motion` — Off \u002F Subtle \u002F Lively\n\nThree settings. Maps to a CSS variable `--motion-mult` that scales\nall `transition-duration` \u002F `animation-duration` declarations:\n\n- *Off* — `0s` (also disables WebGL canvases \u002F decorative animation).\n- *Subtle* — `1.0` (the artifact's authored timing).\n- *Lively* — `1.6` (slower transitions, more visible motion).\n\nRespect `prefers-reduced-motion`: default to *Off* if the user has\nthat set, regardless of stored preference.\n\n## Host integration contract (REQUIRED)\n\nThe OpenDesign viewer toolbar has a **Tweaks** toggle that drives panel\nvisibility from outside the iframe. For the toggle to bind to your panel,\nyour artifact **must** speak one of these two protocols (pick one; don't\nmix). The toolbar enables itself the moment it sees either signal.\n\n### Protocol A — postMessage (recommended for agent-generated artifacts)\n\nUse this when the panel mounts via JS (React, vanilla, anything dynamic).\n\n**Artifact → host:**\n- On mount, post `{ type: '__edit_mode_available', visible?: boolean }` to\n  `window.parent`. Tells the toolbar a panel exists; the optional `visible`\n  reports the panel's initial state so the toolbar toggle starts in sync.\n  Omit `visible` for the common \"panel is already on screen\" case (the host\n  treats a missing field as `true` so the legacy zero-arg message keeps\n  working). Pass `visible: false` to declare a default-closed panel.\n- When the user closes the panel locally (× button, Esc, etc.), post\n  `{ type: '__edit_mode_dismissed' }`. Toolbar flips to \"off\".\n\n**Host → artifact:**\n- `{ type: '__activate_edit_mode' }` — open the panel (`setOpen(true)`).\n- `{ type: '__deactivate_edit_mode' }` — close the panel (`setOpen(false)`).\n\nMinimal listener:\n\n```js\nwindow.addEventListener('message', (e) => {\n  const t = e?.data?.type;\n  if (t === '__activate_edit_mode') setOpen(true);\n  else if (t === '__deactivate_edit_mode') setOpen(false);\n});\n\u002F\u002F Or, for a default-closed panel:\n\u002F\u002F   window.parent.postMessage({ type: '__edit_mode_available', visible: open }, '*');\nwindow.parent.postMessage({ type: '__edit_mode_available' }, '*');\n\u002F\u002F in your close handler:\nconst dismiss = () => {\n  setOpen(false);\n  window.parent.postMessage({ type: '__edit_mode_dismissed' }, '*');\n};\n```\n\nPanel may default to open or closed — the host syncs its toggle to\nwhichever state the artifact reports.\n\n### Protocol B — class-based (used by `assets\u002Fwrap.html`)\n\nUse this only when you wrap the template verbatim. The artifact ships a\n`.tw-panel` element and toggles a `.tw-hidden` class for visibility. The\nviewer's iframe bridge (in `apps\u002Fweb\u002Fsrc\u002Fruntime\u002Fsrcdoc.ts`) hides the\npanel on initial paint, watches the class via `MutationObserver`, and\nrelays state both directions. No JS required in the artifact beyond what\nthe template already includes.\n\nSelectors are fixed: `.tw-panel` (the panel root) and `.tw-hidden` (the\nhidden state). If you rename either, the bridge can't find it.\n\n### Anti-pattern\n\nDon't invent a third protocol or rename either set of identifiers. The\ntoolbar toggle only binds to A or B. Custom panels with custom classes\nand no postMessage will leave the toolbar greyed out.\n\n## Implementation primitives\n\nRead `assets\u002Fwrap.html` — it ships the panel + bridge as an\ninert template. Your job is to:\n\n1. Take the user's existing artifact HTML.\n2. Lift its accent \u002F mode \u002F spacing \u002F scale into custom properties\n   (search for hard-coded `#hex` \u002F `Npx` \u002F `Nrem` and convert).\n3. Paste the contents into the marked region of `wrap.html`.\n4. Edit `assets\u002Fwrap.html`'s `KNOBS` array to keep only the knobs\n   you decided are relevant to *this* artifact. Don't ship 5 if 2\n   matter.\n5. Patch the `STORAGE_KEY` to a unique slug (`tweaks-\u003Cartifact-slug>`).\n\nThe bridge in `wrap.html`:\n- Loads `localStorage[STORAGE_KEY]` JSON on first paint.\n- Applies values as `document.documentElement.style.setProperty('--accent', ...)`.\n- Listens to every form control's `change` event and writes back.\n- Exposes \u003Ckbd>T\u003C\u002Fkbd> (toggle panel) and \u003Ckbd>R\u003C\u002Fkbd> (reset).\n\n## Workflow\n\n### Step 1 — Acquire the artifact\n\nSame options as the critique skill:\n\n1. Project file (`index.html` in the project folder).\n2. Pasted HTML in the chat.\n3. Generated by you in this turn.\n\n### Step 2 — Decide which knobs apply\n\nRead the artifact's CSS first. For each knob, decide *yes \u002F no*:\n\n- `--accent` — yes if the artifact has 1 accent color used ≥ 3 times.\n- `--scale` — yes if the artifact is type-driven (article, deck,\n  pricing page).\n- `--density` — yes if the artifact has consistent gap \u002F padding\n  rhythm (deck, dashboard, landing). No for runbooks (already dense).\n- `--mode` — yes if the artifact has authored dark mode tokens, or\n  you're willing to derive them.\n- `--motion` — yes if the artifact has any transition \u002F animation\n  worth scaling. No for static reports \u002F critique reports.\n\nDefault: **3 knobs is the sweet spot.** Five is too busy, one is\nnot worth a panel.\n\n### Step 3 — Lift hard-coded values into custom properties\n\nOpen `assets\u002Fwrap.html`'s `\u003Cstyle>` block — copy its custom-property\nnaming scheme (`--accent`, `--scale`, etc.). In the user's artifact,\nfind every place those concerns live and rewrite:\n\n- `color: #c96442` → `color: var(--accent)`\n- `font-size: 18px` → `font-size: calc(18px * var(--scale))`\n- `padding: 24px 32px` → `padding: calc(24px * var(--density)) calc(32px * var(--density))`\n- `transition: opacity 200ms` → `transition: opacity calc(200ms * var(--motion-mult))`\n\nIf the artifact uses `clamp()` or `vw` already, multiply the\n*outer* value by the custom property — don't tear apart `clamp(...)`.\n\n### Step 4 — Paste into the wrap\n\nCopy the artifact's `\u003Cstyle>` and `\u003Cbody>` into the marked regions\nof `wrap.html`. Keep the panel + bridge intact.\n\n### Step 5 — Test the loop\n\nOpen the result, click each knob at least once, refresh the page,\nconfirm the choice persists. If a knob breaks the layout —\n*remove it*, don't ship it.\n\n## Output contract\n\n```\n\u003Cartifact identifier=\"tweaks-\u003Cartifact-slug>\" type=\"text\u002Fhtml\" title=\"\u003CArtifact Title> · Tweaks\">\n\u003C!doctype html>\n\u003Chtml>...\u003C\u002Fhtml>\n\u003C\u002Fartifact>\n```\n\nOne sentence before the artifact (\"Wrapped X with a 3-knob tweak\npanel — accent \u002F scale \u002F mode.\"). Stop after `\u003C\u002Fartifact>`.\n\n## Hard rules\n\n- **Don't ship a free color picker** — only curated swatches. Users\n  pick bad colors when given freedom; saving them from that is the\n  whole point.\n- **Persist by artifact identifier** — `tweaks-\u003Cslug>`, not a global\n  key. Two artifacts open in two tabs must not share state.\n- **Respect `prefers-reduced-motion`** — default to *Off* for motion\n  if the user has that set, override only on explicit click.\n- **Single-file** — no external CSS \u002F JS \u002F fonts beyond the artifact's\n  existing imports. Inline the panel + bridge.\n- **Panel hidden by default on viewports \u003C 720px** — slide-in drawer\n  via a \"T\" button at top-right.\n- **Don't ship more than 5 knobs.** Three is the sweet spot.\n",{"od":24,"name":5,"triggers":34,"description":43},{"mode":25,"preview":26,"platform":29,"scenario":30,"upstream":31,"design_system":32,"example_prompt":33},"prototype",{"type":27,"entry":28},"html","index.html","desktop","design","https:\u002F\u002Fgithub.com\u002Falchaincyf\u002Fhuashu-design",{"requires":20},"Wrap this landing page with a tweak panel — accent color, type scale, density, light\u002Fdark — persist to localStorage so the user can refresh without losing their choice.",[5,35,36,37,38,39,40,41,42],"variants","tweak panel","live controls","adjust on the fly","实时调参","可调参数面板","side panel","knobs","Wrap any HTML artifact with a side panel of live, parameterized\ncontrols — accent color, type scale, density, motion, theme — that\nrewrite CSS custom properties in real time and persist to\nlocalStorage. Lets the user explore variants of a design without\nre-prompting the agent. Use when the brief asks for \"variants\",\n\"side-by-side options\", \"tweak this\", \"let me adjust\", \"live\nknobs\", or \"实时调参\".\n","main","53231d40b778d88eba23f35547bf99485d3ae9fc","design-templates\u002Ftweaks","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground","https:\u002F\u002Fgithub.com\u002Ftestground-lab","2026-10-06 15:26:48",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add testground-lab\u002Fdesignground --skill tweaks",{"tool":56,"command":57},"bunx","bunx skills add testground-lab\u002Fdesignground --skill tweaks",{"tool":59,"command":60},"pnpm","pnpm dlx skills add testground-lab\u002Fdesignground --skill tweaks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fdesign-templates\u002Ftweaks\u002FSKILL.md",true,[64,70],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"assets\u002Fwrap.html","ASSET","资产文件",14482,"https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fdesign-templates\u002Ftweaks\u002Fassets\u002Fwrap.html",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"example.html","REFERENCE","参考文档",24799,"https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fdesign-templates\u002Ftweaks\u002Fexample.html",[77,84,91,98,105,114],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EBNKQZ9A2JHZDHZHQ94JDM","Beta Skill","Instruction-only fixture skill.","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EBNJDND50BQN37ZETG1R52","Alpha Skill","First fixture skill with a runnable demo.","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fskills\u002Falpha\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7EBNG48FMGPH5KMW4D0FAAH","Deck One","A small deck template fixture.","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ftests\u002Ffixtures\u002Fcatalog\u002Fdesign-templates\u002Fdeck-one\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7EBNDZS46J6JG0BPPPWBR0C","youtube-clipper","YouTube clip generation and editing with automated workflows — pull source video, slice highlights, add captions, and export.","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":109,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7EBN9KVM1DJCX1A7T4S7S24","writing-guidelines","Review docs\u002Fprose for Writing Guidelines compliance. Use when asked to \"review my docs\", \"check writing style\", \"audit prose\", \"review docs voice and tone\", or \"check this page against the writing handbook\".","MIT","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7EBN797QTQP07GBV32T8TPF","wpds","WordPress Design System. Apply WordPress's official design tokens, typography, and component patterns to themes and sites.","https:\u002F\u002Fgithub.com\u002Ftestground-lab\u002Fdesignground\u002Fblob\u002Fmain\u002Fskills\u002Fwpds\u002FSKILL.md",[],[]]