Component Variants / States Documentation コンポーネント状態の文書化

Component Variants / States Documentation コンポーネント状態の文書化 is a skill for Claude Code from s977043/river-review. It costs 75 tokens per session (1,565 once invoked), scanned A, original, MIT.

A code review check for new reusable interface components and the variations and states they support, such as hover, focus, disabled, loading, and error states.

In plain words
What is it for?
Use it when adding frontend components to check that their visual variants and interactive states are defined and documented.
Why use it?
It helps prevent components that work only in their simplest case and need awkward fixes later.

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 adding frontend components to check that their visual variants and interactive states are defined and documented.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/component-variants-states
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 component-variants-states
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 Component Variants / States Documentation コンポーネント状態の文書化

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/component-variants-states/github.svg)](https://agentmods.dev/skills/s977043/river-review/component-variants-states)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/component-variants-states"><img src="https://agentmods.dev/badge/skills/s977043/river-review/component-variants-states/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 Component Variants / States Documentation コンポーネント状態の文書化

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/component-variants-states"><img src="https://agentmods.dev/badge/skills/s977043/river-review/component-variants-states.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,565 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.00075 $0.01565
Opus 5 $0.00037 $0.00783
Sonnet 5 $0.00015 $0.00313
Haiku 4.5 $0.00007 $0.00156

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

Security

Grade A, and why

Component Variants / States Documentation コンポーネント状態の文書化 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/component-variants-states/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 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: 新規コンポーネントの状態網羅はチェックリスト的に確認できるが、対象が「新規 UI コンポーネントの追加」かどうかの判定が必要。新規コンポーネント追加を含まない変更では実行を止めるゲートが必要。

Goal / 目的

  • 新規追加された UI コンポーネントに、variants(種類・バリエーション)とインタラクティブ状態(hover / focus / disabled / loading / error)が定義・文書化されているかを確認する。
  • 「コンポーネントは追加したが、disabled / loading / error の状態設計が欠落し、後から後付けで破綻する」パターンを検出する。

Non-goals / 扱わないこと

  • 既存コンポーネントの再利用可否(design-system-component-reuse の領域)。
  • 実行時の loading / error 状態の配線そのもの(mutation 中の loading は loading-state の領域。本スキルはコンポーネント定義側の状態網羅を見る)。
  • focus-visible のアクセシビリティ実装(modern-web-a11y-interactive の領域)。
  • デザイントークン準拠(design-source / token-enforcement の領域)。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限り NO_REVIEW を返す。

  • 差分に新規 UI コンポーネント(再利用可能な表示要素を export する .tsx / .jsx の追加)が含まれている
  • inputContext に diff が含まれ、code_search(grep)が利用可能である

ゲート不成立時の出力: NO_REVIEW: component-variants-states — 新規 UI コンポーネントの追加が検出されない

False-positive guards / 抑制条件

  • 状態を持たない純粋な表示コンポーネント(静的なテキスト・アイコン表示など、インタラクションが無い)は指摘しない。
  • variants / states が別ファイル(Storybook の *.stories.*、型定義、ドキュメント)に定義されている場合は、code_search で確認してから指摘する。差分内に見えないだけで断定しない。
  • 既存コンポーネントの軽微な変更(新規追加でないもの)は対象外とする。
  • プロトタイプ・内部限定など、状態網羅が不要と差分内で明記されている場合は抑制する。

Rule / ルール

検出ロジック

  1. 新規コンポーネントの特定: 差分から、新規に追加された再利用可能な UI コンポーネント(export される表示要素)を特定する。
  2. 状態・variants の確認: そのコンポーネントが受け付けるべき状態を判定し、定義・文書化を確認する。
    • インタラクティブ要素での disabled / loading / error 状態の扱い
    • variants(サイズ・種類・トーンなど)の定義
    • code_search*.stories.* や型定義など別ファイルの記載も確認する
  3. 報告: 欠落している状態・variants を <file>:<line> で示し、定義の追加を提案する。

制約

  • 検出は最大 5 件。実害の大きい状態欠落(disabled / error の欠落)を優先する。
  • 各指摘に「対象コンポーネント」「欠落している状態 / variants」「あるべき定義」を必ず含める。
  • 別ファイルでの定義有無を確認してから報告する(差分内に無いだけで断定しない)。

Evidence / 根拠の取り方

  • 対象コンポーネントと欠落箇所は <file>:<line> に紐づけ、推測で状態欠落を述べない。
  • 別ファイル(stories / 型定義)を code_search で確認した結果を根拠として示す。

Output / 出力フォーマット

すべて日本語。

(component-variants-states):1: [要約] 最も重大な状態設計の欠落は〈1文〉

<file>:<line>: [状態欠落1] <タイトル>
  対象: <新規コンポーネント名>(<file>:<line>)
  欠落: <disabled / loading / error / variants のどれか>
  影響: <後付け対応での破綻 / UX の不整合>
  Fix: <欠落状態 / variants の定義・文書化(stories や型での明示)>

Read the full file on GitHub · 99 lines

Files

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.

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 · 99 lines · 75 tokens per session scan A d26a062866c6

Subscribe to this mod's changes

Component Variants / States Documentation コンポーネント状態の文書化 is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 1,565 once invoked, about $0.0004 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

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 · 85 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

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.

Aboudjem/ui-ux-suite · 55 tokens

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.

Aboudjem/ui-ux-suite · 46 tokens