paperclipai/paperclip

directions-lab

Scaffold a directions lab that shows shipped UI (Today) beside 2-3 design directions, with surface tabs, theme and animation toggles and the V1 MVP hover motion, registered in design-proposals Storybook.

  • SKILL.md 已保存
  • 英文来源资料
  • 安装与运行未实测
先判断是否解决你的问题

directions-lab 是什么?

Scaffold a directions lab that shows shipped UI (Today) beside 2-3 design directions, with surface tabs, theme and animation toggles and the V1 MVP hover motion, registered in design-proposals Storybook. Use for a directions page or lab, or to explore design directions next to production.

以上为来源原文,中文用途说明尚待整理。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

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

  2. 交给你正在用的 Agent

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

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

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

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

安装并检查 directions-lab

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

项目身份:paperclipai/paperclip / directions-lab
来源:https://github.com/paperclipai/paperclip/blob/558dbb01320987eb9aba80d5d1a8e66604456f72/.agents/skills/directions-lab/SKILL.md
已定位的源文件:.agents/skills/directions-lab/SKILL.md

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

来源原文与资料状态

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

.agents/skills/directions-lab/SKILL.md · 抓取时间 2026-11-21T19:32:09.269Z

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

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

来源 description(原文)

Scaffold a directions lab that shows shipped UI (Today) beside 2-3 design directions, with surface tabs, theme and animation toggles and the V1 MVP hover motion, registered in design-proposals Storybook. Use for a directions page or lab, or to explore design directions next to production.

查看源文件章节 / Source sections
  • 原文:Directions lab
  • 原文:What you are making
  • 原文:Before you start
  • 原文:Read the brief, then ground the subject
  • 原文:Ask, in one call
  • 原文:State what you derived, then scaffold
  • 原文:Look at it
  • 原文:Commit the scaffold, then draw
  • 原文:Capture
  • 原文:Hand off
  • 原文:Storybook and the design directory
  • 原文:Later asks
  • 原文:Do not
  • 原文:Maintaining the skill
  • 原文:References
原文:Directions lab

A directions lab is how design explorations are made in this repo: one page, one feature, Today plus two or three directions, every surface the feature appears on, and the same controls every time, so a shared link reads the same to everyone. The artifact directions lab (`ui/src/artifact-directions`) is the precedent and stays the frozen reference; this skill generates new labs in the same shape without redrawing the plumbing by hand.

原文:What you are making

- **The page.** `ui/<slug>-directions.html` plus `ui/src/<slug>-directions/`, a second Vite entry with no backend. All state lives in the URL (`?d=&s=&theme=&chrome=&anim=`, plus `proposal=1` for the proposal palette). A registry module is the single source for the direction ids, digit keys, labels, surfaces, landing view and story id; the toolbar, keyboard, overview board and capture script read it at runtime, and `add-direction` keeps the story's per-direction export in step, so a direction is one registry entry plus one directory. - **The toolbar.** Row 1 is the directions row: the numbered directions then `0.Today` last, as a segmented control, with Theme and Animation right-aligned. Row 2 is the surfaces row: Overview plus one tab per surface. Row 2 is written only when the lab is scaffolded with more than one surface (a surface added later to a one-surface lab needs row 2 by hand, `references/lab-anatomy.md` section 8); with one surface the keyboard legend joins row 1. Nothing else goes in the header. - **Today.** Always present, always `0.Today`, always the shipped components mounted on the lab's fixtures through small adapters and a fetch stub. It is the control every direction is judged against, so it is never a redraw. - **The directions.** Two or three, numbered, each a self-contained kit directory with its own scoped `tokens.css`. Every direction carries the V1 MVP motion block verbatim and a test that proves it, so hover feels the same across labs. Read `references/motion-spec.md` before touching any of it. - **The directory entry.** One story file under `ui/storybook/stories/design-proposals/` with a stable id, catalogued as a proposal. The design-proposals Storybook is becoming the canonical directory of the design system; a lab exists there from its first commit. Hard rules, because the repo's gates enforce them and reviewers expect them: no code comments in anything you commit, no file of 600 lines or more in a lab (`check` refuses at 600), no `package.json` script, no lockfile change, no screenshots or generated catalog files in the repo.

原文:Before you start

Run from the repo root on a branch of your own (`claude/<slug>-directions`, from `origin/master`). Check that `ui/node_modules/.bin/vite` exists; if not, `pnpm install --frozen-lockfile`. Then run the generator's own tests: ```sh node --test .agents/skills/directions-lab/scripts/scaffold.test.mjs ``` Red here usually means a template or the motion asset has drifted from the precedent (`ui/src/artifact-directions/directions/d5-v1-mvp/tokens.css`); two cases also read the real feature map and the catalog script, so a changed feature-map row or catalog message shows up here too. Fix the generator before scaffolding anything; a lab built on a stale template fails later in ways that look like your drawing.

原文:Read the brief, then ground the subject

Extract four things from what Tonio wrote: the subject (its slug and title), the places it appears (one surface per place), a stated count or names of the directions, and any flag or component names. Then look at the code before you ask anything: ```sh rg -l "<Subject>" ui/src/components ui/src/pages rg -n "<subject word>" maps/feature-map/*.md ``` The first grep gives the component files, the flag hook (`use<Feature>Enabled`), and, by following `useQuery`/`queryFn` into `ui/src/api/*`, the `/api/` routes Today must answer. The second gives the capability ids the story cites. This grounding is what makes the surfaces question specific instead of generic. `references/questions-and-defaults.md` has the full extraction and derivation tables.

原文:Ask, in one call

Ask at most two questions, in a single `AskUserQuestion` call, and skip each one the brief already answers: 1. **How many directions?** Options `2` and `3`. Say in the question that three unnamed directions scaffold as `1.Refine` (tokens and spacing, same structure), `2.Rework` (new components, same layout) and `3.Rethink` (new layout), two as `1.Refine` and `2.Rethink`, and are renamed later. Skip when the brief states a count or names the directions. 2. **Which surfaces?** Multi-select from the usage sites the grep found, plus "only one place". Two or more selections produce the surfaces row. Skip when the brief names the places. Never ask about theme, animation, Today, ports, the slug or the landing view; those are fixed by the skill. When no question can be asked (a headless run), write this before doing anything else, then proceed: "Defaulting to three directions and one surface (<surface>) because I cannot ask; change later with `scaffold.mjs add-direction`."

原文:State what you derived, then scaffold

Before running the generator, state every derived value in your reply: slug and title, each surface as `id:Label:width@nav` with the line the width comes from, the direction count and names, the group, the capabilities with their feature-map rows (or `[]` and the exception sentence), the flag hook and the `/api/` paths Today will need. A wrong slug or capability is cheap to catch here and expensive after files exist. Then: ```sh node .agents/skills/directions-lab/scripts/scaffold.mjs new \ --slug composer --title "Composer" \ --surfaces thread:Task-thread:960@tasks,panel:Right-panel:434@tasks \ --directions 3 --dry-run ``` Read the plan (paths, ports, cells, story), drop `--dry-run`, and run it. `new` renders everything in memory, refuses existing paths, writes the lab, the html entry, the Vite config, the story file, two `.claude/launch.json` entries and one `.gitignore` line, then verifies: the Storybook catalog check, the lab's own Vitest files, and a Vite build. On any failure it deletes what it wrote and restores the two shared files, so a half-written lab never breaks `pnpm test` or `tsc -b` for the whole repo (`ui/vitest.config.ts` has no include filter and `ui/tsconfig.json` includes all of `src`). Quote the `--json` output in your reply. `--surfaces` takes `id:Label:width@nav` per place, where `nav` is the sidebar item the shell highlights (`tasks`, `artifacts` or `other`) and the width is the product's own constant for that place (see `references/questions-and-defaults.md`). Flags you will use: `--names a,b,c` for stated names, `--group Components|Pages|Layouts|Patterns` (Components when the grep hits `ui/src/components`), `--capabilities area/key,...` (validated against `maps/feature-map`; omit for `[]` plus an exception sentence), `--company name:PREFIX` (default `acmehats:ACM`), `--landing auto|all|today|<id>`, `--ports dev,preview` (the generator picks free ones), `--keep-on-failure` to inspect a failed scaffold.

文件 SHA256:6381a08c83a255573bc01be9f106f3c5656604f64ccc2f1415081bff3fcfc75e

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

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

Scaffold a directions lab that shows shipped UI (Today) beside 2-3 design directions, with surface tabs, theme and animation toggles and the V1 MVP hover motion, registered in design-proposals Storybook. Use for a directions page or lab, or to explore design directions next to production.

查看历史简介来源

历史收录数据

来源仓库paperclipai/paperclip
Skill源路径.agents/skills/directions-lab/SKILL.md

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

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