install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/react-guidelines" ~/.claude/skills/diegosouzapw-awesome-omni-skill-react-guidelines && rm -rf "$T"
manifest:
skills/development/react-guidelines/SKILL.mdsource content
IMPORTANT Frontend Guidelines
- NEVER use
oruseState
directly in React Components. ALWAYS use custom hook in separated for that (e.g.,useEffect
,useBot
).useBacktesting - NEVER combine multiple hooks or components in a single file, even if they are small. EVERY hook, component or Modal should have its OWN file, e.g.,
,useBot.ts
.BotComponent.tsx - React components should ALWAYS be functions with default export (
), not class-based or arrow functions.export default function ComponentName() {} - NEVER use
type OR anonymous types in TypeScript, ALWAYS use explicit types, if not existing - create them.any - If any frontend changes are made, run
and ensure no errors. DON'T run build for production to make sure the code is not broken.cd <path-to-project> && npx tsc --noEmit --skipLibCheck --project tsconfig.app.json && npx eslint . - If any frontend changes are made for
files, run*.{js,ts,jsx,tsx,css,json,scss}
and ensure no errors.cd <path-to-project> && npx prettier <path/to/file> --write - When creating a new React page, follow the provided instructions in
.references/instructions.md