[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7892H5CE9SN87JS8QN0BNGG":3,"skill-same:01M7892H5CE9SN87JS8QN0BNGG":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M7892H5CE9SN87JS8QN0BNGG","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 \"实时调参\".","bluesman1971\u002Fopen-design","bluesman1971","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F96430007?v=4","01M788AK0TR13JE8ART2WNQZV6","01M788AK1PVB085AS9SP38WWGK",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\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 Open Design 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 Open Design 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":23,"name":5,"triggers":33,"description":42},{"mode":24,"preview":25,"platform":28,"scenario":29,"upstream":30,"design_system":31,"example_prompt":32},"prototype",{"type":26,"entry":27},"html","index.html","desktop","design","https:\u002F\u002Fgithub.com\u002Falchaincyf\u002Fhuashu-design",{"requires":19},"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,34,35,36,37,38,39,40,41],"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","0467f0e19df12a6994ec7fb20ff6e9e23cd704e7","design-templates\u002Ftweaks","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design","https:\u002F\u002Fopen-design.ai","https:\u002F\u002Fgithub.com\u002Fbluesman1971","2026-07-09 04:08:20",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add bluesman1971\u002Fopen-design --skill tweaks",{"tool":56,"command":57},"bunx","bunx skills add bluesman1971\u002Fopen-design --skill tweaks",{"tool":59,"command":60},"pnpm","pnpm dlx skills add bluesman1971\u002Fopen-design --skill tweaks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\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\u002Fbluesman1971\u002Fopen-design\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\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fdesign-templates\u002Ftweaks\u002Fexample.html",[77,86,94,101,108,115],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":81,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M78AMRG8NAGKWKNDQE39ZZFQ","web-design-guidelines","Review UI code for Web Interface Guidelines compliance by the Vercel engineering team. Covers layout, typography, color, motion, and accessibility for product UI.","MIT","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":81,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M78AMKHTFS149JGEYNQM5AXR","web-clone","网站复刻 \u002F 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互\u002FWebGL\u002FCanvas\u002FThree.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树，覆盖静态站 \u002F React-Vue-Next 内容站 \u002F WebGL-Canvas 重前端站三大分支，并强制核对任何 AI 二手分析里的可执行代码。","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fweb-clone\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fweb-clone\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M78AMH25JH2SH3AWTRSDCM9F","venice-video","Video generation and transcription workflows via the Venice.ai API.","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fvenice-video\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M78AMF0M4FFKFWXFJ9NHTF5M","venice-image-generate","Image generation endpoints and available styles via the Venice.ai API.","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fvenice-image-generate\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M78AMCH68X46SHNZVD284KXS","threejs","Three.js skills for creating 3D elements and interactive experiences in the browser — scenes, materials, controls, and post-processing.","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Fthreejs\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M78AM7P8WSBZDNZZ42BQHGK7","taste","Brief-time anti-AI-slop taste checklist — read the room and set the\ndesign dials BEFORE generating a landing page, portfolio, or redesign,\nso the first draft doesn't need a post-generation rescue. Use at the\nstart of a visual\u002Fcreative brief, not after the artifact exists.","https:\u002F\u002Fgithub.com\u002Fbluesman1971\u002Fopen-design\u002Fblob\u002Fmain\u002Fskills\u002Ftaste\u002FSKILL.md",[],[]]