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 component-variants-statesgit 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/component-variants-states)<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.
<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>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.00075 | $0.01565 |
| Opus 5 | $0.00037 | $0.00783 |
| Sonnet 5 | $0.00015 | $0.00313 |
| Haiku 4.5 | $0.00007 | $0.00156 |
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.
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 / ルール
検出ロジック
- 新規コンポーネントの特定: 差分から、新規に追加された再利用可能な UI コンポーネント(export される表示要素)を特定する。
- 状態・variants の確認: そのコンポーネントが受け付けるべき状態を判定し、定義・文書化を確認する。
- インタラクティブ要素での disabled / loading / error 状態の扱い
- variants(サイズ・種類・トーンなど)の定義
code_searchで*.stories.*や型定義など別ファイルの記載も確認する
- 報告: 欠落している状態・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 や型での明示)>
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.
- 7d ago First seen · 99 lines · 75 tokens per session scan A d26a062866c6
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.
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…
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.
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.
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.