[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DAEZ292823WXD2SSTC6FG9":3,"skill-same:01M7DAEZ292823WXD2SSTC6FG9":66},{"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":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M7DAEZ292823WXD2SSTC6FG9","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 \"实时调参\".","feimacode\u002Fopen-design-agent-kit","feimacode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264390570?v=4","01M7D3HQSP5EP4Z4JECTSQ7EBD","Feima Code","01M7D3HQT72Q4EVQJP89MR9WP1",1129,"MIT","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\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","e38061066b92c298798dbddc1decbae8c026464f","packages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fdesign-templates\u002Ftweaks",104,"https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=feima.open-design-agent-kit","https:\u002F\u002Fgithub.com\u002Ffeimacode","2026-11-14 17:32:48",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add feimacode\u002Fopen-design-agent-kit --skill tweaks",{"tool":58,"command":59},"bunx","bunx skills add feimacode\u002Fopen-design-agent-kit --skill tweaks",{"tool":61,"command":62},"pnpm","pnpm dlx skills add feimacode\u002Fopen-design-agent-kit --skill tweaks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fdesign-templates\u002Ftweaks\u002FSKILL.md",true,[],[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7DDR9C4RR6E8F46YBJ8MW64","youtube-clipper","YouTube clip generation and editing with automated workflows — pull source video, slice highlights, add captions, and export.","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7DDR57XHXAFBGKX3SYTGSJB","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\".","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fwriting-guidelines\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7DDR2RM4F3FM5642JZBGJSF","wpds","WordPress Design System. Apply WordPress's official design tokens, typography, and component patterns to themes and sites.","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fwpds\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DDQX3G9QDCBV5GGZGQ1NZN","weread-year-in-review-video-template","WeRead-inspired HyperFrames video template for vertical annual reading reports,\npersonal reading dashboards, book-note recaps, and shareable year-in-review\nstories. Use when users want a 9:16 HTML-to-MP4 reading report with warm paper\ntexture, editorial Chinese typography, book-page metaphors, data highlights,\nand deterministic motion.","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fweread-year-in-review-video-template\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7DDQRGJEHQST6TXDH6ZAV5G","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.","https:\u002F\u002Fgithub.com\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7DDQKADVPZW1Z1HTVKXY542","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\u002Ffeimacode\u002Fopen-design-agent-kit\u002Fblob\u002Fmain\u002Fpackages\u002Fvscode\u002Fassets\u002Fopen-design\u002Fskills\u002Fweb-clone\u002FSKILL.md",[],[]]