Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计提醒

design-notebook设计笔记本

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

242

周安装

10

GitHub Stars

1

下载量

79
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:design-notebook(设计笔记本)
来源仓库:https://github.com/idamadam/skills
仓库路径:skills/design-notebook
安装命令:
npx skills add https://github.com/idamadam/skills --skill design-notebook
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/idamadam/skills --skill design-notebook

简介

构建设计迭代笔记本,支持单步展示、前后对比与胶片条回顾。

  • 适用于发散探索与收敛决策之间的视觉过程管理。
  • 使用时可选择独立项目或集成到现有 React 框架中。
  • 安装方式:GitHub,命令为 npx skills add https://github.com/idamadam/skills --skill design-notebook。
  • 注意:必须使用 cp 复制模板文件,禁止读取后重写造成数据丢失。

SKILL.md

Design Notebook

Scaffold and run a design iteration notebook — a focused canvas that shows one iteration at a time, with prev/next navigation, side-by-side comparisons for divergent exploration, and a collapsible filmstrip drawer for visual overview of every step.

Step 1: Choose Scaffold Path

Path A: Standalone project (no existing React framework)

Use this when the working directory is empty or has no React framework.

The template directory is at template/ relative to this SKILL.md file. Use cp commands to copy files — do NOT read and rewrite them.

# Copy project config files
cp template/package.json template/tsconfig.json template/vite.config.ts template/index.html .

# Copy all source files
cp -r template/src .

# Copy AGENTS.md and symlink CLAUDE.md
cp template/AGENTS.md .
ln -s AGENTS.md CLAUDE.md

# Install dependencies and start dev server
npm install && npm run dev

Path B: Inject into existing React project

Each notebook gets a slug — a lowercase-kebab-case name derived from the user's topic (e.g. "nav redesign" → nav-redesign). If the user doesn't provide one, ask.

The harness (NotebookApp, chrome, state-explorer, etc.) is shared across all notebooks. It lives in src/design-notebooks/_harness/ and is copied once. Each notebook only contains its own iterations/, main.tsx, and index.css.

src/design-notebooks/
  _harness/          ← shared, copied once from template/src
    NotebookApp.tsx
    chrome.tsx
    state-explorer.tsx
    types.ts
    notebook.css
  CLAUDE.md          ← copied once
  <slug>/            ← per notebook
    main.tsx
    index.css
    types.ts         ← re-exports from _harness/types
    iterations/
      index.ts
      baseline/

The template directory is at template/ relative to this SKILL.md file. Use cp commands to copy files — do NOT read and rewrite them.

First notebook (sets up harness + first notebook):

# Copy shared harness files
mkdir -p src/design-notebooks/_harness
cp template/src/NotebookApp.tsx template/src/chrome.tsx template/src/state-explorer.tsx template/src/types.ts template/src/notebook.css src/design-notebooks/_harness/

# Copy CLAUDE.md
cp template/AGENTS.md src/design-notebooks/CLAUDE.md

# Create the notebook
mkdir -p src/design-notebooks/<slug>/iterations
cp -r template/src/iterations/* src/design-notebooks/<slug>/iterations/
cp template/inject/main.tsx template/inject/index.css template/inject/types.ts src/design-notebooks/<slug>/

Additional notebooks (harness already exists):

mkdir -p src/design-notebooks/<slug>/iterations
cp -r template/src/iterations/* src/design-notebooks/<slug>/iterations/
cp template/inject/main.tsx template/inject/index.css template/inject/types.ts src/design-notebooks/<slug>/

Then wire a framework-specific entry point using the slug (see table below).

Framework-specific entry point wiring:

FrameworkWhat to createHow to wire
Vitedesign-notebooks/<slug>.html at project rootCopy template/inject/entry.html, replace __SLUG__ with the notebook slug. Add to build.rollupOptions.input in vite.config.*
Next.js App Routerapp/design-notebooks/<slug>/page.tsx that imports and renders NotebookApp from _harness/No config changes needed — file-based routing
Next.js Pages Routerpages/design-notebooks/<slug>.tsx that imports and renders NotebookApp from _harness/No config changes needed — file-based routing
Remixapp/routes/design-notebooks.<slug>.tsx that imports and renders NotebookApp from _harness/No config changes needed — file-based routing
Astrosrc/pages/design-notebooks/<slug>.astro with <NotebookApp client:only="react" />No config changes needed

For inject entry points (Next.js, Remix, Astro), create a page component that imports notebook.css from _harness/ and renders NotebookApp from _harness/, passing iterations={ITERATIONS} and project={PROJECT} from the notebook's own iterations/index.ts. For Next.js, add 'use client' directive.

Import paths: Check tsconfig.json/jsconfig.json for path aliases (e.g. @/*, ~/). If the project has one configured, use it (e.g. @/design-notebooks/_harness/NotebookApp). Otherwise use relative paths from the entry point file.

Step 2: Set the Project Context

After scaffolding, ask the user what they're iterating on. Use their answer to set the PROJECT metadata in iterations/index.ts.

Populate the baseline (Path B only)

When injecting into an existing project, the baseline iteration MUST render the project's actual components — do not rebuild or mock them.

  1. Import the real components into baseline/Content.tsx. The project already has working UI; wrap it with any missing context providers (e.g. theme, auth) so it renders correctly in isolation.
  2. Define 4-6 presets in baseline/definition.ts that represent the component's meaningful states (loading, error, empty, edge cases, highlight modes). Look at the component's props and internal state to identify what varies.
  3. Build fine-tuning controls in baseline/controls.tsx for any continuous values (speeds, opacities, counts) or toggles.

The baseline must look identical to the live site. If it doesn't, something is wrong.

Then begin the iteration workflow as described in AGENTS.md.

The Iteration Workflow

Once the notebook is scaffolded, follow the workflow documented in AGENTS.md (which was placed in the project root during scaffolding). The core loop:

Refine or Diverge?

When the user requests a change, ask whether to refine the current iteration in-place or diverge into a new one. Small fixes (copy, spacing, colours) usually refine; new concepts or structural changes usually diverge.

Sharpen

Ask 2-3 clarifying questions before generating. Target: scope, tone, constraints, reference points.

Diverge

Generate 3-4 variations as a {group: [...]} entry in ITERATIONS. Each gets its own folder under iterations/ with definition.ts, Content.tsx, and controls.tsx.

Converge

User picks a direction. Mark with tag: 'picked', then generate next iteration as a single entry building on the pick.

Repeat

Append to ITERATIONS, never delete. The notebook tracks all iterations via filmstrip navigation.

Iteration Convention

Each iteration is a 3-file folder under iterations/:

iterations/
  baseline/
    definition.ts   # config, state shape, presets, resolvePreset
    Content.tsx      # the full mockup
    controls.tsx     # fine-tuning controls (FineTuning component)
  v2/
    definition.ts
    Content.tsx
    controls.tsx

When creating a new iteration, copy the previous iteration's folder (cp -r iterations/baseline/ iterations/v2/) and edit the copy. Do not rewrite files from scratch — start from the last iteration and modify what changed.

Each folder is a complete copy — duplicate components freely, no shared primitives between iterations. However, iterations CAN and SHOULD import components from the host project (Path B) — the "no shared primitives" rule applies between iteration folders, not between iterations and the project.

Register each iteration in iterations/index.ts:

import { baseline } from './baseline/definition'
import { v2 } from './v2/definition'

export const ITERATIONS: IterationDefinitionEntry[] = [baseline, v2]

Semantic Diffs

The changes array describes design shifts, not code changes. Prefix with + (additions) and (removals) for green/red coloring.

changes: ['+ source citations', '+ favicon pills']
changes: ['+ guided questions from v4b', '− separate approaches']

Keep chips to 2-5 words. Name concepts, not implementation details.

Presets & State Explorer

Each iteration MUST define 4-6 presets as combo snapshots. This includes the baseline — never ship an iteration with empty presets:

  • Default / happy path
  • Loading / in-progress
  • Edge case (overflow, multi-turn)
  • Error / degraded
  • Empty / new

Build fine-tuning controls in controls.tsx with a FineTuning component that takes {state, onChange} props.

Working State

Before editing any Content.tsx, add className="nb-working" to its root <div>. Save immediately — HMR shows a shimmer overlay so the user knows which iteration is being worked on. Remove when done.

Filmstrip & History

The filmstrip is a collapsible drawer toggled via the "History" button in the header bar. It shows scaled thumbnails of all iterations with change summaries on each card. Write summaries as past-tense outcomes:

  • Single: 'Switched to dark palette, warm neutrals'
  • Group: 'Tried 3 nav patterns: tabs, sidebar, floating'
  • Converge: 'Picked sidebar nav, dropped tabs'

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.71%
按下载量换算28

Claude

33.93%
按下载量换算27

Cursor

18.03%
按下载量换算14

Gemini CLI

8.9%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills