AGENT SKILL

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

  1. Design contract: document layout, interactions, and constraints in .opencode/contracts/design.json before implementation.
  2. Token plan: use design tokens (Tailwind config, CSS variables). No magic values.
  3. Anti-slop: no nested CSS overrides, no ad-hoc "quick fix" styles; follow established layout patterns.
  4. States: define loading, error, success, hover, and active explicitly.

Critique Loop

Before finalizing a UI task:

  1. Self-audit the implementation against the design contract.
  2. Detect drift in layout, spacing, and styling.
  3. Refactor drift immediately.
  4. Validate: mark "Contract Compliant" only when drift is zero.

04 同仓库更多 Skills

khnker
khnker/opencode-wait-a-minute

writing-for-agents

Writing and reducing documents for agents. Use when creating, editing, pruning, or restructuring skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
khnker
khnker/opencode-wait-a-minute

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.

★ 0
khnker
khnker/opencode-wait-a-minute

web-design

Routes UI/frontend design work — interfaces, components, design systems, tokens, responsive layouts, accessibility, visual review, anti-slop, DESIGN.md.

★ 0
khnker
khnker/opencode-wait-a-minute

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.

★ 0
khnker
khnker/opencode-wait-a-minute

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.

★ 0
khnker
khnker/opencode-wait-a-minute

unslop

暂无简介

★ 0