Design System Component Reuse Guard

Design System Component Reuse Guard is a skill for Claude Code from s977043/river-review. It costs 67 tokens per session (1,653 once invoked), scanned A, original, MIT.

A code review check that spots new buttons, inputs, modals, cards, and similar interface pieces built from scratch when reusable design-system components already exist. It also suggests importing the existing component.

In plain words
What is it for?
Use it when reviewing frontend changes, especially work based on Figma designs, to find places where shared UI components were ignored.
Why use it?
It helps prevent inconsistent interfaces and duplicated code when turning a design into working software.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit Use it when reviewing frontend changes, especially work based on Figma designs, to find places where shared UI components were ignored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/design-system-component-reuse
Install

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.

Any agent
npx skills add s977043/river-review --skill design-system-component-reuse
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

Wrote 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.

agentmods badge for Design System Component Reuse Guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/design-system-component-reuse/github.svg)](https://agentmods.dev/skills/s977043/river-review/design-system-component-reuse)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/design-system-component-reuse"><img src="https://agentmods.dev/badge/skills/s977043/river-review/design-system-component-reuse/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.

agentmods 80×15 button for Design System Component Reuse Guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/design-system-component-reuse"><img src="https://agentmods.dev/badge/skills/s977043/river-review/design-system-component-reuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01653
Opus 5 $0.00034 $0.00826
Sonnet 5 $0.00013 $0.00331
Haiku 4.5 $0.00007 $0.00165

Measured 7d ago against content hash b45ebca202e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Design System Component Reuse Guard 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 7d 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.

skills/midstream/design-system-component-reuse/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal / 目的

  • 差分が UI プリミティブ(Button / Input / Modal / Card / Badge / Tag / Avatar / Tabs / Dropdown / Tooltip 等)をゼロから再実装していないかを検出する。
  • Figma → コード実装時に「既存のデザインシステムコンポーネントを無視してインラインスタイル付き素の HTML 要素を使う」パターンを防ぐ。
  • 出力は再実装の疑いと既存コンポーネントのインポート提案を示す。

Non-goals / 扱わないこと

  • デザインシステムの実装品質・API 設計の評価。
  • Tailwind / CSS Modules など特定のスタイル技術の是非の判断。
  • フレームワーク選定や状態管理ライブラリの議論。
  • デザインシステム自体の拡張提案(新コンポーネント追加の是非)。

False-positive guards / 抑制条件

  • 差分ファイルのパスが src/components/ui/src/components/base/components/ui/components/base/ 配下である場合 — これはデザインシステム本体の定義であり指摘しない。
  • ファイル名がプリミティブ名そのものの場合(例: Button.tsx, Input.tsx, Modal.tsx)— 定義ファイル自体は指摘しない。
  • children を受け取り内部で別のコンポーネントへ委譲するラッパーコンポーネント — 指摘しない。
  • テストファイル(*.test.tsx, *.spec.tsx)および Storybook ストーリー(*.stories.tsx)— 指摘しない。
  • 差分が既存ファイルへの小修正(props 追加 / バグ修正 / スタイル微調整)であり、新たなプリミティブ再実装を含まない場合 — 指摘しない。

Rule / ルール

対象プリミティブと検出ヒューリスティック

差分が以下のパターンに該当し、かつ抑制条件に当てはまらない場合に指摘する:

プリミティブ 検出シグナル
Button <button + 3 つ以上の className トークン or style= + クリックハンドラ、かつ Button / Btn コンポーネントが存在しそうな文脈
Input / TextField <input + カスタムスタイリング(className または style=)、かつ Input / TextField コンポーネントが存在しそうな文脈
Modal / Dialog position: fixed または z-index の手動管理 + オーバーレイ div でモーダル振る舞いを実装
Card box-shadow / border-radius 付きの汎用 div で「カード」レイアウトを構成
Badge / Tag ピル形状スタイル(rounded-full / border-radius: 9999px 等)付きの <span><div>

判定の手がかり

  • 新規コンポーネントファイルが追加され、ファイル名がアプリ機能名(例: SubmitButton.tsx, UserBadge.tsx)でありながら、内部で素の HTML 要素を直接スタイリングしている。
  • className に 3 トークン以上のスタイルユーティリティ(Tailwind 等)または style= 属性を持つ素の HTML 要素がコンポーネントのルートになっている。
  • 同リポジトリに同名のプリミティブコンポーネント(Button, Input, Modal 等)が存在するはずの構造(components/ui/lib/components/ の存在)が示唆されている。

Read the full file on GitHub · 90 lines

Files

What ships with it

8 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.

Changes

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.

  1. 7d ago First seen · 90 lines · 67 tokens per session scan A b45ebca202e5

Subscribe to this mod's changes

Design System Component Reuse Guard is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 1,653 once invoked, about $0.0003 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.

Related

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.

Manavarya09/design-extract · 30 tokens

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…

murphytrueman/design-system-ops · 95 tokens

hatch3r-design-system-detect

Detects existing design tokens, component library, and theming convention in a project before authoring new UI primitives — output a concise inventory for downstream implementers.

hatch3r/hatch3r · 40 tokens

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…

imsaif/design-with-claude · 0 tokens

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", or "vs best practices".

martineserios/thebrana · 37 tokens

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.

Aboudjem/ui-ux-suite · 52 tokens