Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/rexleimo/aiosnpx agentmods add skills/rexleimo/aios/design-contractWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rexleimo/aios/design-contract)<a href="https://agentmods.dev/skills/rexleimo/aios/design-contract"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/design-contract/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rexleimo/aios/design-contract"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/design-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.01635 |
| Opus 5.5 | $0.00030 | $0.00654 |
| Sonnet 5.5 | $0.00015 | $0.00327 |
| Haiku 4.5 | $0.00007 | $0.00163 |
Grade A, and why
design-contract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
A design contract that nobody generated is a document copied from someone else's project. This skill replaces that with two commands: one measures the project, the other refuses to accept a contract that still contains an unanswered decision.
When to use it
- A UI task is starting and the project has no
MOTION.md(or has one that predates the current code). - You suspect a contract drifted: rules deleted, rules reworded, a scope naming directories that no longer exist.
- You need to know which of the rules are actually enforced by something executable, rather than stated in prose.
The loop
1. Measure before writing.
node scripts/design.mjs facts --root . --json
This reports what exists: the UI source files, the framework, the durations and
easings already in use, and which files animate without a
prefers-reduced-motion block. Read the unknown array first. If it is not
empty, the project has not been measured — files may exist but never have been
git added, or there may be no UI sources at all. Do not write a contract from
an unmeasured project, and do not report "0 surfaces" as a finding: it means
nothing was looked at.
2. Generate the skeleton.
node scripts/design.mjs init --root . # writes MOTION.md and DESIGN.md
node scripts/design.mjs init --root . --only design # only the visual contract
node scripts/design.mjs init --root . --force # discards the existing decisions
Both contracts come from one measurement, so they cannot disagree about
which files are in scope. The result is complete as a structure and deliberately
incomplete as a decision: it carries TODO(decision) markers. That is the
contract's honest state, not a bug. Read the generated 适用范围 section — it
lists files the generator actually saw, so a wrong scope there is a measurement
problem, not a prose problem.
DESIGN.md additionally reports contradictions between the evidence and the
rules the project appears to follow: tokens that colours bypass, one motion
curve spread over eight durations, files with motion but no reduced-motion
block. Those are findings, not formatting. Each one is either fixed in the code
or removed from the rules — a rule the evidence disproves teaches readers to
ignore the document.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 27d ago First seen · 144 lines · 74 tokens per session scan A 4f899ad6da2d
design-contract is a skill published in the GitHub repository rexleimo/aios (62 stars, last pushed 6d ago), licensed MIT. It adds 74 tokens to every session and 1,635 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.
design-contract compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-contractrexleimo/aios | Skill | 62 | 6d ago | MIT | A | 74 | Claude Code, Codex |
| landing-cro-reviewAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 28 | Claude Code, Codex |
| motion-craftericrisco/rsc-harness | Skill | 682 | 4d ago | MIT | A | 67 | Claude Code, Codex |
| kirby-panel-and-blueprintsbnomei/kirby-mcp | Skill | 74 | today | MIT | A | 43 | Claude Code, Codex |
| hipson-visual-experience-directorHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 38 | Claude Code, Codex |
| hipson-premium-ui-uxHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| hipson-creative-frontend-motion-architectHipson47/Hipson | Skill | 4 | 6d ago | Apache-2.0 | A | 48 | Claude Code, Codex |