Loading State Transition Review

Loading State Transition Review is a skill for Claude Code from s977043/river-review. It costs 24 tokens per session (569 once invoked), scanned A, original, MIT.

A review check for interfaces that fetch data asynchronously and must handle loading, success, and error states.

In plain words
What is it for?
It reviews code using tools such as fetch, axios, useQuery, or useSWR for missing loading guards, error messages, and safe rendering before data arrives.
Why use it?
It helps prevent endless spinners, stuck submit buttons, blank screens, and interfaces that fail without telling the user what happened.

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 It reviews code using tools such as fetch, axios, useQuery, or useSWR for missing loading guards, error messages, and safe rendering before data arrives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/loading-state
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 loading-state
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 Loading State Transition Review

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/loading-state/github.svg)](https://agentmods.dev/skills/s977043/river-review/loading-state)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/loading-state"><img src="https://agentmods.dev/badge/skills/s977043/river-review/loading-state/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 Loading State Transition Review

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/loading-state"><img src="https://agentmods.dev/badge/skills/s977043/river-review/loading-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 569 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.00024 $0.00569
Opus 5 $0.00012 $0.00284
Sonnet 5 $0.00005 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 8d ago against content hash 4908d7335c6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Loading State Transition Review 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 8d 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/loading-state/SKILL.md · 59 lines

What it actually says

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: ローディング状態の管理ミスはUXに直結するが、テストで気づきにくい

Guidance

  • Check if async data fetching (useQuery, useSWR, fetch, axios) handles all three states: loading, success, error.
  • Flag missing error state when loading state is handled.
  • Flag missing loading guard when mutation is triggered (e.g., submit button not disabled during pending).
  • Check for missing early returns that could render UI before data is available (if (!data) return null).
  • Flag isLoading && <Spinner /> without a corresponding isError && <ErrorMessage />.

Non-goals

  • グローバルなローディングインジケーターの存在は前提として受け入れる(実装詳細は不問)。
  • テストファイル内のモックデータや固定値は対象外。

Pre-execution Gate / 実行前ゲート

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

  • 差分にasync data fetchingまたはUIコンポーネントのレンダリングロジックが含まれている
  • loading/error/data stateを扱うコードパターンが存在する(useQuery, useSWR, useState + fetch等)

ゲート不成立時の出力: NO_REVIEW: loading-state — loading state関連のUI変更が検出されない

False-positive guards

  • ライブラリがSuspenseやError Boundaryで上位でハンドリングしている場合は黙る。
  • テスト専用のコンポーネントは対象外。
  • 意図的に簡略化されたadmin-onlyビューは緩く扱う。
Files

What ships with it

4 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. 8d ago First seen · 59 lines · 24 tokens per session scan A 4908d7335c6e

Subscribe to this mod's changes

Loading State Transition Review is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 569 once invoked, about $0.0001 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

review-all

Multi-agent code review for diffs (project-agnostic). Covers standards, bugs, security, DRY, smells, perf, tests, API contracts, a11y/i18n. Verifies each finding to eliminate false positives. Use for /review-all, pre-PR/pre-commit review, or auditing uncommitted/staged changes.

ncoevoet/claude-review-all · 74 tokens

logic-health

Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…

hyhmrright/logic-lens · 180 tokens

mobile-flows-maestro

This skill should be used when Maestro is explicitly requested or already present and the task is to author, run, or debug iOS/Android Maestro flows; use Maestro MCP; or handle Maestro selectors, system UI, permissions, Keychain, JavaScript, waits, device state, flakiness, or CI. Evidence includes a .maestro directory…

johnkozaris/jko-claude-plugins · 102 tokens

fec-debug-framework

A step-by-step method for finding the cause of front-end build failures, browser errors, broken screens, failed requests, or incorrect data. It separates build, runtime, visual, and API problems and uses evidence to test possible causes.

bovinphang/frontend-craft · 66 tokens

fec-legacy-to-modern-migration

A guide for moving older front-end code—such as JavaScript, jQuery, HTML/CSS, server-rendered pages, or old frameworks—to newer tools while keeping the same behavior. It covers gradual migrations as well as modernising parts of a multi-page site.

bovinphang/frontend-craft · 97 tokens

fe-spec

Converts requirements for a new frontend feature into a structured spec. Use when: before starting a new feature, when feature.md needs to be written, or when converting a planning doc into a dev spec. Do NOT load for: bug fixes, refactoring, simple style changes.

sh5623/fe-rail · 59 tokens