本文へ移動
cccskills
無料GitHub で公開

Loading State Transition Review

Detect missing loading/error/empty state handling that could trap users in spinners or disabled states.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md2.1 KB
  • fixtures/01-missing-error-state.md1.3 KB
  • fixtures/01-should-detect.md981 B
  • fixtures/02-should-not-detect.md912 B
  • fixtures/02-suspense-boundary-false-positive.md2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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ビューは緩く扱う。

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

<What this skill does>

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

a11y Accessible Name Basics

無料日本語概要

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

s977043/river-review42026年10月12日 更新

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

adversarial-review

無料日本語概要

敵対的分析手法を統合したレビューの entry skill。認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

s977043/river-review42026年10月12日 更新

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

日本語の概要は準備中です。原文の説明を表示しています。

s977043/river-review42026年10月12日 更新

s977043 のスキルをすべて見る

このスキルの問題を報告する