Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add s977043/river-review --skill design-source-conformancegit clone --depth 1 https://github.com/s977043/river-reviewWrote 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/s977043/river-review/design-source-conformance)<a href="https://agentmods.dev/skills/s977043/river-review/design-source-conformance"><img src="https://agentmods.dev/badge/skills/s977043/river-review/design-source-conformance/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/s977043/river-review/design-source-conformance"><img src="https://agentmods.dev/badge/skills/s977043/river-review/design-source-conformance.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.00090 | $0.01613 |
| Opus 5 | $0.00045 | $0.00807 |
| Sonnet 5 | $0.00018 | $0.00323 |
| Haiku 4.5 | $0.00009 | $0.00161 |
Grade A, and why
Design Source-of-Truth Conformance デザイン定義準拠 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 5d 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pattern declaration
Primary pattern: Reviewer Secondary patterns: Inversion Why: 定義済みスケールとの照合は決定論で判定できる部分が大きいが、まず参照すべきデザイン定義(DESIGN.md / トークン)の所在を grep で特定する必要がある。定義が無ければ実行を止めるゲートが必要。
Goal / 目的
- リポジトリにデザイン定義のソース(
DESIGN.md/design-tokens.*/tailwind.config.*の theme / CSS custom properties など)が存在する場合に、新規 UI 実装の値がその定義済みスケールに準拠しているかを照合する。 - 「トークンは存在するのに、定義外のスケール(例: spacing が 4/8/12 と定義されているのに
10px)を新規導入した」逸脱を検出する。
Non-goals / 扱わないこと
- デザイン定義が存在しないリポジトリでの生値ハードコード検出(
design-token-enforcementの領域。本スキルは定義との照合に限定する)。 - 既存コンポーネントの再利用可否(
design-system-component-reuseの領域)。 - アクセシビリティやインタラクティブ状態(a11y / loading-state 系の領域)。
Pre-execution Gate / 実行前ゲート
このスキルは以下の条件がすべて満たされない限り NO_REVIEW を返す。
- リポジトリにデザイン定義のソース(
DESIGN.md/ デザイントークン定義 /tailwind.config.*の theme など)がcode_searchで実在確認できる - 差分に UI 実装の値(色・余白・フォントサイズ・角丸・シャドウ)の追加・変更が含まれている
- inputContext に diff が含まれ、
code_search(grep)が利用可能である
ゲート不成立時の出力: NO_REVIEW: design-source-conformance — 参照すべきデザイン定義または UI 値の変更が検出されない
False-positive guards / 抑制条件
- デザイン定義が grep で見つからない場合は指摘しない(生値検出は token-enforcement に委ねる)。
- 定義済みスケールに含まれる値は指摘しない(準拠している実装は対象外)。
- 定義からの逸脱が差分内で根拠とともに明記されている場合は抑制する(意図的な例外)。
- スケール外でも、定義が明示的に任意値を許容している領域は対象外とする。
Rule / ルール
検出ロジック
- 定義の特定:
code_searchでデザイン定義のソースを特定し、色・余白・フォントサイズ・角丸・シャドウの定義済みスケールを読み取る。 - 値の照合: 差分の新規 UI 値が、定義済みスケールに含まれるか照合する。含まれない値(off-scale)を逸脱候補とする。
- 報告: 逸脱値と参照した定義箇所を両方
<file>:<line>で示し、最も近い定義済みスケール値への置き換えを提案する。
制約
- 検出は最大 5 件。スケール逸脱の影響が大きいもの(広く使われる色・余白)を優先する。
- 各指摘に「逸脱値」「参照した定義」「準拠候補」を必ず含める。
- 定義の読み取りは grep で再現可能にする(検索語を明示する)。
Evidence / 根拠の取り方
- 逸脱値と参照定義は両方
<file>:<line>に紐づけ、推測でスケールを述べない。 - 「定義ではこのスケール / 新実装はこの値」を対比し、off-scale を具体的に示す。
Output / 出力フォーマット
すべて日本語。
(design-source-conformance):1: [要約] 最も重大なスケール逸脱は〈1文〉
<file>:<line>: [スケール逸脱1] <タイトル>
定義: <参照したスケール>(検索語: `<grep pattern>`, <file>:<line>)
新実装: <off-scale な値>(<file>:<line>)
影響: <デザイン不整合 / トークン体系の形骸化>
Fix: <最も近い定義済みスケール値への置き換え、または逸脱の根拠を明文化>
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 96 lines · 90 tokens per session scan A 02ed6468a9dc
Design Source-of-Truth Conformance デザイン定義準拠 is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 1,613 once invoked, about $0.0005 per session on Opus 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-09-03.
Other skills, from other repositories
designlang-tokens
Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.
design-to-code-check
Check alignment between a specific design specification and its code implementation — a focused, single-component or single-screen comparison. Trigger when someone says: does this match the design, check implementation, design code alignment, what's different between the design and the build, spec check…
design-with-claude
Use when design work needs a product designer's eye: auditing a codebase for design-system gaps, fixing WCAG contrast and unlabeled inputs, choosing type scales or spacing steps, reviewing UI that looks generic or AI-generated, or designing forms, tables, dashboards, navigation, checkout, onboarding, dark mode, and…
theme-builder
Build a light/dark theme from scratch or improve an existing one, with a complete surface, text, and interactive color system. Use when the user asks to build or create a theme, use the theme builder, or set up a light and dark theme.
color-audit
Color-only audit that extracts, evaluates, and recommends improvements for the project's color system. Use when the user asks to audit colors, run a color review or color audit, fix their colors, or work on the color palette or color system.
layout-audit
Layout and spacing audit covering grid, spacing consistency, density, and responsive behavior. Use when the user asks to audit the layout, run a layout audit or grid audit, review spacing, or fix their spacing.