원클릭으로
react
Code guidelines for TSX files. Use when editing or reviewing `.tsx` files, i.e. TypeScript React components.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Code guidelines for TSX files. Use when editing or reviewing `.tsx` files, i.e. TypeScript React components.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Code guidelines for Cloudflare Worker implementations. Use when editing, reviewing, or executing a Cloudflare Worker; e.g. D1 queries, handlers, Wrangler commands, and Wrangler configurations.
Code guidelines for JavaScript/TypeScript end-to-end, integration, and unit tests. Use when authoring or reviewing `**/*.test.ts` and `**/*.test.tsx` files, e.g. Playwright, Vitest.
TypeScript guidelines. Use when editing or reviewing `**/*.ts` and `**/*.tsx` files.
Use this skill to create a new design system.
| name | react |
| description | Code guidelines for TSX files. Use when editing or reviewing `.tsx` files, i.e. TypeScript React components. |
| license | MIT |
| user-invocable | false |
| metadata | {"author":"quisi.do"} |
Provide stable keys in lists. Avoid using array indices as keys.
Co-locate styles with the component. Prefer CSS modules with the file name
convention component-name.module.scss.
Destructure props in the function signature.
Extract reusable UI into src/components and custom hooks into src/hooks.
Follow the React hooks rules (no conditional hooks).
Keep components small and focused. Prefer <200 lines of code per file and <4 responsibilities.
Prefer className composition over inline styles; only use inline styles for dynamic, computed values.
Prefer default exports for components (with explicit function names).
Type props explicitly; avoid React.FC. Prefer:
import { type ReactElement, type ReactNode } from 'react';
interface Props {
readonly children: ReactNode;
}
export default function Component({ children }: Props): ReactElement {
// ...
}
Use function components with hooks.
Use ReactElement as the return type for components that return JSX.
Never use vi.mock. Instead, write testable code and/or use dependency
injection (e.g. React context).
Avoid setState/useState updates based on stale closures. Prefer functional
updates when derived from previous state.
// Prefer:
setCount((oldCount: number): number => oldCount + 1)
// Over:
setCount(oldCount + 1)