Agent skill
react
React coding style and best practices.
Install this agent skill to your Project
npx add-skill https://github.com/rakibdev/dotfiles/tree/main/home/.config/ai/skills/react
SKILL.md
- Use
toast.error(error.message)in catch blocks. Noconsole.errorallowed! - Minimal DOM nesting. Use
<Fragment>or<>instead of useless<div>wrappers - Modern React 19+ patterns only (e.g.
usefor promises/context, Server Actions,useFormStatus) - Boolean props shorthand:
<Component prop />not<Component prop={true} /> - Component names in PascalCase, props in camelCase
- Logic first: Define hooks/state at the top, then return JSX. Keep components lean
- Prefer
onChangeoveruseEffectfor syncing state whenever possible - Map directly on components/fragments, don't wrap
items.mapin a stray<div> - Avoid
useCallback/useMemounless it's actually heavy. React is fast enough, don't be extra
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
valibot
Valibot schema validation for backend and frontend forms.
vue
Vue coding style and best practices.
tailwind
Tailwind CSS styling conventions.
websearch
Search Google
github
Fetch GitHub URLs, repos, issues, pull requests, code search
figma
Tool for fetching Figma design data and downloading images.
Didn't find tool you were looking for?