reference-design-contract
Convert a reference product, screenshot set, Figma note, or style audit into a reusable design contract with tokens, component rules, accessibility gates, and implementation constraints. Use when the user asks for a reference design contract, design-system brief, UI audit, or source-of-truth handoff.
- License 许可
- Apache-2.0
- 所属仓库
- bravew/Neumar
- 最近更新
- 2026-11-14
- Stars
- ★ 12
- Forks
- 4
01 前言 Front Matter
- od
- { "mode": "document", "outputs": { "primary": "DESIGN-CONTRACT.md", "secondary": "example.html" }, "preview": { "type": "html", "entry": "example.html" }, "platform": "desktop", "scenario": "design-system", "design_system": { "requires": false, "sections": [ "tokens", "components", "states", "accessibility", "implementation" ], "generates": true }, "example_prompt": "Create a reference design contract from these product screenshots: navigation, cards, buttons, states, token rules, and implementation constraints.", "capabilities_required": [ "file_write" ] }
- name
- reference-design-contract
- triggers
- [ "reference design contract", "design contract", "design system brief", "style audit", "component contract", "handoff contract" ]
- description
- Convert a reference product, screenshot set, Figma note, or style audit into a reusable design contract with tokens, component rules, accessibility gates, and implementation constraints. Use when the user asks for a reference design contract, design-system brief, UI audit, or source-of-truth handoff.
02 资源文件 1
- 参考文档example.html2.5 KB
03 SKILL.md 正文
Reference Design Contract Skill
Create a concise design contract that turns references into reusable rules. The contract is for agents and engineers who need to implement the same design language repeatedly without guessing.
License note: First-party Neuma-authored skill content for this repository. No upstream proprietary text, images, templates, or third-party code were copied.
Workflow
-
Inventory the references
- List every source the user provided: screenshot, Figma node, current app page, brand guide, or written brief.
- Do not fetch external URLs yourself unless an approved tool/context pack already provided bounded metadata.
- If references conflict, record the conflict instead of silently blending.
-
Extract the system decisions
- Color roles: background, surface, text, muted text, border, accent, success, warning, danger.
- Typography roles: display, heading, body, label, code/mono.
- Layout rhythm: grid, max width, section spacing, density, breakpoints.
- Component families: buttons, inputs, cards, navigation, tables, dialogs, empty/loading/error states.
-
Write
DESIGN-CONTRACT.md- Start with a one-paragraph product/design intent.
- Include token tables with names, role descriptions, and example values.
- Include component contracts with required anatomy, variants, states, and accessibility requirements.
- Include implementation rules: what to reuse, what not to invent, how to handle responsive behavior, and which areas require user confirmation.
-
Produce a compact preview
- Write
example.htmlas a single-page visual summary of the contract. - The preview is not the source of truth;
DESIGN-CONTRACT.mdis. - Use semantic sections and
data-od-idattributes for review comments.
- Write
-
Self-check
- No "make it modern" filler. Every rule must map to a reference or a stated assumption.
- Every component has default, hover/focus, disabled, loading, and error guidance when relevant.
- Accessibility notes include focus rings, contrast, target size, keyboard behavior, and reduced-motion expectations.
Output Contract
Write both files into the project:
DESIGN-CONTRACT.md
example.html
Then summarize the highest-risk assumptions in three bullets or fewer.
04 同仓库更多 Skills
yt-dlp
A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.
weather
Get current weather and forecasts (no API key required).
video-editing
Video Mode editing guidance for agentic storyboard, timeline, caption, audio, render, and publish work through video_* MCP tools.
video-edit
Conversational video editing workflow for cuts, transcript-based edits, overlays, captions, subtitle burn-in, and render planning with ffmpeg. Use when the user asks to edit video by instruction, cut silence or words, add subtitles, add overlays, transcribe video, or render a final clip.
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
ship
Full shipping workflow: test, review, version, changelog, and PR creation. Use when: preparing to ship code, creating releases, merging PRs.