Design Spec Personal

👤 hilper 📦 v0.1.1 ⭐ 4.5 ⬇️ 238 下載
🎨 設計多媒體 免費

📖 技能介紹

design

A unified design skill that produces hi-fi interactive prototypes and implementation-ready specs in a single run. Every output is simultaneously a visual artifact and a precise engineering specification.

What it produces

From any input, always generates the design deliverables plus browser evidence:

File For whom What it is
preview.html PM / Designer Hi-fi interactive prototype
annotated.html Engineer / AI coding tool Spec-annotated HTML with data-spec-* attributes
tokens.css Everyone CSS custom properties — the single source of truth
spec.json AI coding tool Machine-readable full spec with states and assumptions
assumptions.log AI coding tool Every inferred/estimated value, marked with confidence
preview.measure-report.json QA / AI coding tool Browser-measured geometry, contrast, overflow, and P0/P1 findings
preview.measured.png Reviewer Screenshot captured from the same measured browser session
acceptance.spec.mjs Engineer / CI Executable P0/P1 and geometry regression contract

How to use this skill

1. Detect your harness. Read the matching reference doc once:

2. Load the core methodology. Read system-prompt.md — the L1→L4 pipeline, quality rules, and output generation guidelines.

3. Identify input type. Read the matching handler:

4. Load the design system. Three-layer stack: universal → standard → brand. Load in order, later layers override earlier ones.

Layer 1 — Universal (progressive load):

Core:

Load only when the current decision needs it:

Layer 2 — Design Standard Profile (load when user specifies a standard, or when platform implies one):

  • 先讀 design-system/profiles/registry.json,把使用者指定標準按忽略大小寫、合併空白的規則匹配唯一 profile_id 或 alias;未知或衝突時阻斷,不猜測。
  • 命中後先讀 profile.json 和 <profile.entry>,按 tier/capabilities 載入,不通過目錄猜能力。禁止在根入口硬編碼新增 profile 的檔案清單。
  • Tier 1:讀 semantic/token-map.json、semantic/unmapped-tokens.json 與 tokens.css;元件和佈局使用 universal,未對映語義必須阻斷確認。
  • Tier 2:在 Tier 1 基礎上讀取 routing/component-routing.md 和當前平臺 registry;Profile 元件路由是權威來源。
  • Tier 3:再讀取 <profile.guide>、深元件規格、templates 和 runtime;Ant Design、Arco Design 屬於 Tier 3。
  • 請求的平臺必須存在於 profile.platforms。只有 Profile 宣告對應 capability 時,才要求 component registry、templates 或 runtime。
  • Ant Design 舊路徑 design-system/standards/ant-design 僅作相容入口;新增規範只進入 design-system/profiles/<profile_id>/。

When the user supplies W3C Design Tokens or Style Dictionary JSON, create a Tier 1 profile with:

node scripts/create-profile.mjs --profile <profile-id> --name "<name>" \
  --tokens <tokens.json> --register

Review semantic/unmapped-tokens.json before generation. Do not promote a partial profile to stable or infer unresolved semantic roles without user input.

Layer 3 — Brand (load when user specifies a brand):

5. Run the pipeline. Follow system-prompt.md through L1 → Scene Engine → design-system load → binding gate → L2 → L3 → L4 → output.

6. Verify and deliver. Run agents/run-pipeline.mjs <project-dir> --strict-measure with Node >= 22. A P0/P1 measurement, including icon provenance/rendering/alignment failure, blocks acceptance. Per your harness reference: serve over HTTP, inspect the measured screenshot, fix errors, rerun, then send file + URL.

Output location

All files go to designs/<project-name>/:

designs/<project-name>/
├── preview.html
├── annotated.html
├── tokens.css
├── spec.json
├── assumptions.log
├── preview.measure-report.json
├── preview.measured.png
└── acceptance.spec.mjs

Invocation examples

設計一個商品詳情頁,移動端,有加購欄和圖文詳情
從這張截圖還原規格,輸出給 AI coding 工具用
用 Example Brand 設計系統,設計一個入職申請表單頁面
用 Ant Design,設計一個移動端 H5 商品列表頁,支援篩選和排序

訪問小蔥技能站7w4.net,解鎖更多實用的AI技能外掛。

用 Ant Design,設計一個 PC 後臺資料包表頁面,含圖表和資料表格

🤖 AI 評測

這個技能質量較高,能從文字描述、截圖、設計稿等多種輸入生成高保真互動原型和工程級設計規範,輸出包括 HTML 原型、設計令牌、規格文件和驗收測試。優點是架構嚴謹、質量控制到位,生成的規範可直接用於 AI 開發;不足是設計系統覆蓋以基礎元件為主,複雜場景支援可能有限,且文件分散在多個檔案中,完整理解需要一定時間。整體屬於中上水平的專業設計工具。

📊 多維度評分

適應性4.1
規範性4.5
有效性4.7
可靠性4.4
可信度4.5

📁 包含檔案 (26 個)

📄 SKILL.md 7.6 KB
📄 _meta.json 137 B
📄 design-system/brand/index.md 2.1 KB
📄 design-system/profiles/registry.json 1.2 KB
📄 design-system/universal/component-tokens.css 23.5 KB
📄 design-system/universal/components.md 18.1 KB
📄 design-system/universal/interaction-patterns.md 31 KB
📄 design-system/universal/layout-patterns.md 16.3 KB
📄 design-system/universal/references/anti-examples.md 20.7 KB
📄 design-system/universal/references/component-routing.md 7.5 KB
📄 design-system/universal/references/critic-checklist.md 8.1 KB
📄 design-system/universal/references/icon-policy.md 2.9 KB
📄 design-system/universal/references/macos-patterns.md 8 KB
📄 design-system/universal/references/token-exceptions.md 3 KB
📄 design-system/universal/references/visual-critic.md 5.8 KB
📄 design-system/universal/tokens.css 14.6 KB
📄 design-system/universal/usage-guidelines.md 9.7 KB
📄 input-handlers/figma.md 1.7 KB
📄 input-handlers/screenshot.md 2.2 KB
📄 input-handlers/sketch.md 2.6 KB
📄 input-handlers/text.md 2.3 KB
📄 references/claude.md 4.5 KB
📄 references/codex.md 4.7 KB
📄 references/cursor.md 790 B
📄 skill-card.md 3 KB
📄 system-prompt.md 33.8 KB