.cursor/skills/frontend-component/SKILL.md
新規 React コンポーネントの追加手順。コンポーネント追加時や「Button を追加して」と依頼されたときに使用する。
npx skillsauth add hakushun/ai-dev-starter frontend-componentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
src/components/<Name>.tsx にファイルを作成。関数コンポーネントで、props は型付きで定義する。src/components/<Name>.stories.tsx を作成。Jotai を使う場合は Provider と createStore() でデコレータをかける。src/components/<Name>.test.tsx を作成。within(render(...).container) でクエリをスコープする。Jotai 利用時は Provider でラップする。src/components/index.ts などから re-export する。Meta<typeof Component>, StoryObj, Default ストーリーを 1 つ。describe, it, render + within(container) で 1 件以上。development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
tools
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.