design-contract
design system contracts, token plans, anti-slop rules, state definitions, and critique loops
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- design-contract
- license
- MIT
- description
- design system contracts, token plans, anti-slop rules, state definitions, and critique loops
- compatibility
- opencode, claude-code
03 SKILL.md 正文
Design Contract & System Governance
Contract Requirements
- Design contract: document layout, interactions, and constraints in
.opencode/contracts/design.jsonbefore implementation. - Token plan: use design tokens (Tailwind config, CSS variables). No magic values.
- Anti-slop: no nested CSS overrides, no ad-hoc "quick fix" styles; follow established layout patterns.
- States: define loading, error, success, hover, and active explicitly.
Critique Loop
Before finalizing a UI task:
- Self-audit the implementation against the design contract.
- Detect drift in layout, spacing, and styling.
- Refactor drift immediately.
- Validate: mark "Contract Compliant" only when drift is zero.
04 同仓库更多 Skills
writing-for-agents
Writing and reducing documents for agents. Use when creating, editing, pruning, or restructuring skills, or modifying AGENTS.md or CLAUDE.md.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
web-design
Routes UI/frontend design work — interfaces, components, design systems, tokens, responsive layouts, accessibility, visual review, anti-slop, DESIGN.md.
design-visual-frontend
Design, build, redesign, or critically review distinctive frontend interfaces with strong composition, domain authenticity, responsive behavior, component coherence, and browser-verified visual quality. Use for websites, landing pages, login and form flows, dashboards, admin tools, product pages, portfolios, visual UI reviews, anti-template redesigns, or any request where frontend aesthetics and usability both matter.
verify
Evidence-backed verification before completion. Use when the user asks to verify, validate, test, or confirm work, or before claiming DONE, fixed, working, completed, or ready. Maps each mandatory criterion to an observable check and refuses completion while the runtime gate has pending work.
unslop
暂无简介