Agent Skills › nightly-labs/openbot › Build Spec

Build Spec

GitHub

将设计稿转化为开发构建规范,提取组件、布局、Token、状态及动效,并识别与设计系统的偏差,为开发者提供无需猜测的精确实现依据。

marketplace/production-catalog/skills/build-spec/SKILL.md nightly-labs/openbot

Trigger Scenarios

需要将设计稿转换为开发规格说明 检查设计是否符合设计规范或存在偏差

Install

npx skills add nightly-labs/openbot --skill Build Spec -g -y
More Options

Non-standard path

npx skills add https://github.com/nightly-labs/openbot/tree/main/marketplace/production-catalog/skills/build-spec -g -y

Use without installing

npx skills use nightly-labs/openbot@Build Spec

指定 Agent (Claude Code)

npx skills add nightly-labs/openbot --skill Build Spec -a claude-code -g -y

安装 repo 全部 skill

npx skills add nightly-labs/openbot --all -g -y

预览 repo 内 skill

npx skills add nightly-labs/openbot --list

SKILL.md

Frontmatter
{
    "name": "Build Spec",
    "description": "Turn a design frame into a spec a developer can build from: components, layout and spacing, tokens and where values drift from the design system, states, motion, content rules and open questions. Works from an installed Figma plugin, a signed-in Figma tab, or a screenshot."
}

Build Spec

When to use

  • When a design is ready and a developer needs to build it without guessing.
  • When the user wants to know where a frame does not follow the design system.
  • Not for judging whether the design is good. Use Interface Critique for that.

Inputs

  1. The frame. In this order:
    • An installed Figma plugin. Find it with tool_search in the openbot tools. Read the frame, its components, styles and variables.
    • A signed-in Figma tab in openbot_browser. Call openbot_browser.list_tabs first. Read values from the inspect panel.
    • A screenshot or export. Values from an image are estimates. Mark them "est."
    • If no Figma plugin is installed and Figma would help, suggest one with suggest_marketplace_app.
  2. The design system. Figma styles and variables, a tokens file in the user's repository, or a pasted list. If there is none, report raw values and write "no system to compare".
  3. Target. Web or mobile, and the component library in use. If it is not clear, ask once with ask_user.

Steps

  1. Name the frame, its size, and the date and version you read.
  2. List the components. For each one, give the system component name and variant, or "custom".
  3. Describe the layout: grid or stack, direction, gaps, padding, alignment, and how it behaves at narrower and wider widths. If the frame shows one width only, write the behavior as an open question.
  4. List the tokens used: color, type, radius, spacing, shadow. Give the token name and value.
  5. Find drift: each value that matches no token, or is close to a token but not equal. Give the value, the nearest token, and the place.
  6. List the states for each interactive element: default, hover, focus, active, disabled, loading, empty, error, success. Mark each state "shown" or "missing".
  7. Describe motion: what moves, duration, easing, and the reduced-motion behavior. Write "none shown" if none.
  8. Write content rules: text limits, truncation, number and date formats, and what happens with long or missing text.
  9. List open questions. Each names who can answer it.

Checks

  • Every value has a source: a style, a variable, the inspect panel, or "est." from an image.
  • Every interactive element has all its states, or the missing ones are open questions.
  • Drift lists only real differences. Do not guess a token for a value.
  • A developer could build the screen from the spec without opening the design.

Output

Build spec — <frame name> — <date> — source: <Figma plugin, Figma tab, or image>

Components
- <name> — <system component / variant or "custom">
Layout
- <region>: <stack or grid>, gap <n>, padding <n>, <resize behavior>
Tokens
| Kind | Token | Value | Used in |
Drift
| Place | Value | Nearest token | Note |
| Card padding | 18 px | space-4 (16 px) | Use space-4 or add a token |
States
| Element | Default | Hover | Focus | Disabled | Loading | Empty | Error |
Motion: <items or "none shown">
Content rules: <limits and formats>
Open questions
1. <question> — ask: <designer, owner>

Approvals and stop conditions

  • Never edit the Figma file, leave comments, change tokens, or write code unless the user asks.
  • Stop and ask if you cannot open the frame. Do not build a spec from memory or a different frame.

Common failures

  • Values read from a screenshot reported as exact.
  • A spec with only the default state.
  • Calling a value drift when it is a token you did not find.
  • No resize behavior, so the developer guesses.
  • Copying every layer instead of the components a developer needs.

Version History

  • ac99196 Current 2026-11-02 08:40

Same Skill Collection

.agents/skills/babysit/SKILL.md
.agents/skills/biome-anti-slop/SKILL.md
.agents/skills/openpanel/SKILL.md
.agents/skills/prototype/SKILL.md
.agents/skills/react-to-solid/SKILL.md
.agents/skills/release-upgrade-safety/SKILL.md
.agents/skills/ship/SKILL.md
.agents/skills/signal-deploy/SKILL.md
.agents/skills/smoke-and-ship/SKILL.md
.agents/skills/smoke/SKILL.md
.agents/skills/triage/SKILL.md
.agents/skills/zaidan/SKILL.md
marketplace/production-catalog/skills/acceptance-check/SKILL.md
marketplace/production-catalog/skills/accessibility-audit/SKILL.md
marketplace/production-catalog/skills/account-brief/SKILL.md
marketplace/production-catalog/skills/agent-chat-healthcheck/SKILL.md
marketplace/production-catalog/skills/agent-designer/SKILL.md
marketplace/production-catalog/skills/alt-text/SKILL.md
marketplace/production-catalog/skills/api-skill-builder/SKILL.md
marketplace/production-catalog/skills/bug-triage/SKILL.md
marketplace/production-catalog/skills/call-scorecard/SKILL.md
marketplace/production-catalog/skills/campaign-analysis/SKILL.md
marketplace/production-catalog/skills/care-log/SKILL.md
marketplace/production-catalog/skills/change-review/SKILL.md
marketplace/production-catalog/skills/competitor-comparison/SKILL.md
marketplace/production-catalog/skills/daily-brief/SKILL.md
marketplace/production-catalog/skills/data-quality-review/SKILL.md
marketplace/production-catalog/skills/decision-quality-check/SKILL.md
marketplace/production-catalog/skills/distinctive-frontend-design/SKILL.md
marketplace/production-catalog/skills/eggbot-getting-started/SKILL.md
marketplace/production-catalog/skills/evidence-brief/SKILL.md
marketplace/production-catalog/skills/hiring-scorecard/SKILL.md
marketplace/production-catalog/skills/interface-critique/SKILL.md
marketplace/production-catalog/skills/internal-communications/SKILL.md
marketplace/production-catalog/skills/launch-notes/SKILL.md
marketplace/production-catalog/skills/meeting-actions/SKILL.md
marketplace/production-catalog/skills/outreach-draft/SKILL.md
marketplace/production-catalog/skills/pr-follow-up/SKILL.md
marketplace/production-catalog/skills/project-plan/SKILL.md
marketplace/production-catalog/skills/prototype-build/SKILL.md
marketplace/production-catalog/skills/recurring-charges/SKILL.md
marketplace/production-catalog/skills/repository-threat-model/SKILL.md
marketplace/production-catalog/skills/request-scoring/SKILL.md
marketplace/production-catalog/skills/routine-healthcheck/SKILL.md
marketplace/production-catalog/skills/search-content-brief/SKILL.md
marketplace/production-catalog/skills/secure-code-guidance/SKILL.md
marketplace/production-catalog/skills/spend-audit/SKILL.md
marketplace/production-catalog/skills/support-reply/SKILL.md
marketplace/production-catalog/skills/voice-edit/SKILL.md

Metadata

Files
0
Version
ac99196
Hash
6b72eeb8
Indexed
2026-11-02 08:40

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 18:16
浙ICP备14020137号-1