<Skill Name>
Free<What this skill does>
The English summary is being prepared. Showing the original description.
Detects Vitest test-isolation hazards: unrestored vi.spyOn/vi.mock without afterEach cleanup or restoreMocks config, un-awaited resolves/rejects assertions, and shared mutable module state across tests.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
Primary pattern: Reviewer Secondary patterns: Inversion Why: Vitest 固有の mock lifecycle と async expect 契約をチェックリスト型で検査し、設定不明時はゲートで止める。
vi.spyOn / vi.mock の未復元によりテスト間でモック状態が漏れ、実行順序依存の flaky を生むのを防ぐ。expect(...).resolves / .rejects の await/return 漏れによる「常に pass する空 assertion」を検出する。このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。
vi.mock / vi.spyOn / expect(...) の追加・変更が含まれているゲート不成立時の出力: NO_REVIEW: vitest-mock-isolation — mock / spy / expect の変更なし
vitest.config.ts / vite.config.ts)で test.restoreMocks: true / clearMocks: true / mockReset: true が設定されている場合、afterEach の明示呼び出しが無くても指摘しない。diff だけで設定が見えない場合は断定せず質問に留める。vi.fn() をローカル変数で都度生成し再利用していないケースはリーク源でないため指摘しない。setupFiles で指定された setup ファイルが意図的にグローバルモックを共有する場合は、別スコープとして扱い指摘しない。抑制時の出力: 該当する指摘を出力しない(黙る)。
vi.spyOn / vi.mock を使う場合、afterEach(() => vi.restoreAllMocks())(spy 復元)または vi.clearAllMocks() の呼び出し、もしくは config の restoreMocks: true 等のいずれかを満たすことを確認する。いずれも無ければモック状態がテスト間で漏れる。expect(promise).resolves / .rejects は await または return する。async テスト内で await されない expect は検出する。beforeEach 等でのリセットを確認する。<file>:<line> で差分に紐づけ、Vitest 公式の該当規約(mock restore / async assertion)を 1 行で添える。コメントは日本語で返す。
afterEach(vi.restoreAllMocks) / restoreMocks: true / await expect(...).rejects の最小修正案No reviews yet. Tell others what you thought.
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.
<What this skill does>
The English summary is being prepared. Showing the original description.
画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。
The English summary is being prepared. Showing the original description.
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.
敵対的分析手法を統合したレビューの 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.
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.
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.