Agent Skills: component-contract-design
從規格狀態表、設計畫布或既有程式碼推導元件目錄,逐元件填齊元件契約欄位表(語意、變體、狀態、操作機制、尺寸、內容政策、slot、組合、無障礙、套用時點、回饋契約、測試、反例),盤點容器元件與排列不變式,產出讓畫面票只需選件與排位的元件庫規格;也定義建 design token 層的人要交付什麼才算齊(哪些值取名、primitive 與 semantic 分層、手寫 CSS 或 DTCG 來源檔、擋寫死值的檢查與正對照、加暗色或品牌主題與拿掉陰影之前要留意什麼),以及 Web 端(HTML/CSS)契約齊全而畫面不符時要多寫的組合規則與驗收。觸發詞:元件契約、元件庫設計、元件目錄、容器元件、按鈕重疊、文字溢位、拆解設計稿、接手既有元件庫、design system、design token 分層、DTCG、token 檢查、暗色主題、主題切換、陰影改框線、ThemeExtension、CSS 元件、宿主樣式。Do NOT use for 接手時的 token 盤點萃取順序(用 foundation-design)或畫面級狀態矩陣(用 ux-design-evaluation)。
ui-designID: tarrragon/claude/component-contract-design
1
Install this agent skill to your local
Skill Files
The files that make up component-contract-design.
More agent skills
- releaseReleases Plain packages with intelligent version suggestions and parallel release notes generation. Use when releasing packages to PyPI.
- acestepAI music generation with ACE-Step 1.5 — background music, vocal tracks, covers, stem extraction, audio repainting, and continuation for video production. Use when generating music, soundtracks, jingles, or working with audio stems. Triggers include background music, soundtrack, jingle, music generation, stem extraction, cover, style transfer, repaint, continuation, or musical composition tasks.
- azure-keyvault-keys-tsManage cryptographic keys using Azure Key Vault Keys SDK for JavaScript (@azure/keyvault-keys). Use when creating, encrypting/decrypting, signing, or rotating keys.
- ngit-prHow to create, review, revise, and merge pull requests in this repo, which can be published TWO ways — GitHub (the `gh` CLI) and git-over-nostr (the `ngit` CLI, where PRs are nostr **proposals** reviewed on gitworkshop.dev). Use whenever a task involves opening/updating/merging a PR by either mechanism, the `pr/feat/*` branches, the `ngit` or `gh` CLIs, gitworkshop.dev, or a `nostr://` remote. Remote names vary per clone (and a collaborator may have only one) — this skill identifies remotes by URL, and covers the three-mains alignment gate the nostr flow depends on.
- baoyu-format-markdownFormats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md.
- wordpress-contentCreate and manage WordPress posts, pages, media, categories, tags, and menus via WP-CLI or the REST API. Use whenever the user wants to publish a blog post on WordPress, update a page, upload media, manage categories or tags, update navigation menus, schedule posts, or do bulk content operations on a WordPress site.