Skip to content
cccskills
FreePublished on GitHub

Loading State Transition Review

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (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 (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<What this skill does>

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

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

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

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

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

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

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

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

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

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

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 23, 2026

See all skills by s977043

Report a problem with this skill