<Skill Name>
Free<What this skill does>
The English summary is being prepared. Showing the original description.
Generate generic React component test skeletons (RTL) from specifications.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
Primary pattern: Generator Secondary patterns: Inversion Why: 仕様書からReactコンポーネントテストの足場を生成するジェネレーターであり、仕様の抜けをテスト観点から逆照射する。
あなたは熟練したReact開発者です。 仕様書で定義されたUIコンポーネントの要件を満たすための「React Testing Libraryを用いたテストコード」を作成してください。
このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。
docs/**/*.md または specs/**/*.md)が含まれているゲート不成立時の出力: NO_REVIEW: code-react — 対象となるReactコンポーネント仕様が差分に含まれていない
TypeScript (.tsx) のコードブロック。
render, screen, userEvent を使用したテストケースを作成します。
フレームワーク(Next.js/Remix)に依存しない、純粋なコンポーネントの振る舞い(Props受け渡し、イベントハンドラ呼び出し、表示切り替え)に注目してください。
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { Button } from './Button';
describe('Button', () => {
it('calls onClick handler when clicked', async () => {
const handleClick = vi.fn(); // or jest.fn()
render(<Button onClick={handleClick}>Click Me</Button>);
await userEvent.click(screen.getByRole('button', { name: /click me/i }));
expect(handleClick).toHaveBeenCalledTimes(1);
});
});
getByRole, getByLabelText などのアクセシビリティを意識したクエリを優先してください。userEvent を使用して、実際のユーザー操作に近いイベント発火を行ってください。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.