nexu-io/open-design

tweaks

Wrap any HTML artifact with a side panel of live, parameterized controls — accent color, type scale, density, motion, theme — that rewrite CSS custom properties in real time and persist to localStorage.

  • SKILL.md 已保存
  • 已有中文用途摘要
  • 安装与运行未实测
先判断是否解决你的问题

tweaks 是什么?

Wrap any HTML artifact with a side panel of live, parameterized controls — accent color, type scale, density, motion, theme — that rewrite CSS custom properties in real time and persist to localStorage. Lets the user explore variants of a design without re-prompting the agent. Use when the brief asks for "variants", "side-by-side options", "tweak this", "let me adjust", "live knobs", or "实时调参".

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 tweaks,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 tweaks

请在 Codex 的当前工作环境中安装并检查 tweaks 这个 Skill。

项目身份:nexu-io/open-design / tweaks
来源:https://github.com/nexu-io/open-design/blob/e033aad1d15a9d4084316e5223f2c6597fd32619/design-templates/tweaks/SKILL.md
已定位的源文件:design-templates/tweaks/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-21T19:32:09.269Z
中文使用说明
已有中文用途摘要;具体用法尚待逐项整理
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

design-templates/tweaks/SKILL.md · 抓取时间 2026-11-21T19:32:09.269Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Wrap any HTML artifact with a side panel of live, parameterized controls — accent color, type scale, density, motion, theme — that rewrite CSS custom properties in real time and persist to localStorage. Lets the user explore variants of a design without re-prompting the agent. Use when the brief asks for "variants", "side-by-side options", "tweak this", "let me adjust", "live knobs", or "实时调参".

查看源文件章节 / Source sections
  • 原文:Tweaks Skill · 参数化变体面板
  • 原文:What you produce
  • 原文:When to use
  • 原文:When *not* to use
  • 原文:The 5 standard knobs
  • 原文:1. `--accent` — Accent color
  • 原文:2. `--scale` — Type scale (0.85 / 1.0 / 1.15)
  • 原文:3. `--density` — Layout density (Tight / Normal / Roomy)
  • 原文:4. `--mode` — Light / Dark
  • 原文:5. `--motion` — Off / Subtle / Lively
  • 原文:Host integration contract (REQUIRED)
  • 原文:Protocol A — postMessage (recommended for agent-generated artifacts)
  • 原文:Protocol B — class-based (used by `assets/wrap.html`)
  • 原文:Anti-pattern
  • 原文:Implementation primitives
  • 工作流程 / Workflow
  • 原文:Step 1 — Acquire the artifact
  • 原文:Step 2 — Decide which knobs apply
  • 原文:Step 3 — Lift hard-coded values into custom properties
  • 原文:Step 4 — Paste into the wrap
  • 原文:Step 5 — Test the loop
  • 原文:Output contract
  • 原文:Hard rules
原文:Tweaks Skill · 参数化变体面板

Wrap any HTML artifact with a side panel of live controls that rewrite CSS custom properties in real time and persist to `localStorage`. Inspired by the *huashu-design* tweak pattern.

原文:What you produce

A single self-contained HTML file with two layers: 1. **Stage** — the original artifact (landing page / deck / dashboard) re-keyed so all visual decisions read from CSS custom properties: `--accent`, `--scale`, `--density`, `--mode`, `--motion`. 2. **Panel** — a fixed sidebar (or drawer on small viewports) with form controls bound to those custom properties via a tiny vanilla-JS bridge. Persists every change to `localStorage` keyed by the artifact identifier. The user can: - Open the artifact and see the stage rendered with their saved preferences (or sensible defaults). - Adjust accent / scale / density / mode / motion in the panel and watch the stage update instantly — no rerender. - Press <kbd>T</kbd> to hide / reveal the panel; <kbd>R</kbd> to reset to defaults. - Refresh the page — every choice is persisted.

原文:When to use

- The user generated something they like 80% of, and wants to dial in the last 20% themselves. - You're presenting a design system / brand and want the audience to feel the variants live (instead of you re-running the agent). - You're shipping a stand-alone demo (e.g. a portfolio piece) and want viewers to play.

原文:When *not* to use

- One-shot artifacts that won't be iterated on (e.g. a runbook — parameters don't help). - When the artifact's value is in fixed ratios (e.g. an infographic with carefully balanced data viz — knobs would degrade it).

原文:The 5 standard knobs

> Pick a subset that suits the artifact. Don't ship all 5 if only 2 > matter — clutter is a regression.

原文:1. `--accent` — Accent color

A select with 5–8 curated swatches (don't ship a free color picker — the user will pick a bad color and blame you). ```js const ACCENT_PRESETS = [ { id: 'rust', val: '#c96442', label: 'Rust' }, { id: 'cobalt', val: '#2c4d8e', label: 'Cobalt' }, { id: 'sage', val: '#4a7a3f', label: 'Sage' }, { id: 'plum', val: '#7a3f6a', label: 'Plum' }, { id: 'graphite',val: '#3a3a3a', label: 'Graphite' }, ]; ``` The artifact uses `var(--accent)` everywhere it had a hard-coded accent before. Border / link / pull-quote rule / CTA all flip together.

文件 SHA256:20bf24da801d27d50ffb5e1c6c304aaaa16aebf4795fa392c91d37730edd12a4

仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。

SKILL.md原文description · 2026-11-21T19:32:09.269Z

Wrap any HTML artifact with a side panel of live, parameterized controls — accent color, type scale, density, motion, theme — that rewrite CSS custom properties in real time and persist to localStorage. Lets the user explore variants of a design without re-prompting the agent. Use when the brief asks for "variants", "side-by-side options", "tweak this", "let me adjust", "live knobs", or "实时调参".

查看历史简介来源

历史收录数据

来源仓库nexu-io/open-design
Skill源路径design-templates/tweaks/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源