taste-react

Soft-warns on React anti-patterns in TSX and JSX edits via PreToolUse hook checks.

1|1|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/Navdeepgambhir9023/nav --skill taste-react-navdeepgambhir9023
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: taste-react
Source: https://github.com/Navdeepgambhir9023/nav/tree/main/skills/taste/react
Command: npx skills add https://github.com/Navdeepgambhir9023/nav --skill taste-react-navdeepgambhir9023

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? React codebases drift toward god-components, useEffect data-fetching, prop-drilling, and render-phase side effects when no automated guardrail reviews each edit. This Skill mirrors the planning-time React architecture pack at runtime so the same boundaries are enforced while code is being written. ## Core Features & Use Cases - Runtime boundary checks: Soft-warns on useEffect fetch chains, god-components over 200 LOC with more than 3 useState calls, repeated inline style objects, prop-drilling beyond 2 levels, localStorage access in render, and unnecessary dynamic imports. - Scoped activation: Loads only when edits touch *.tsx, *.jsx, components/, app/, or pages/ paths, staying silent for Vue, Svelte, build config, and non-React files. - Pack parity: Mirrors kb/architecture-packs/react.md so the PreToolUse hook and the plan phase enforce identical rules, with the pack winning on any disagreement. - Use Case: While an agent edits a Next.js App Router page that fetches data inside useEffect, the hook emits a soft-warn recommending a server component or SWR before the pattern spreads. ## Quick Start Ask the agent to review edits to your React components and warn whenever a change introduces useEffect data-fetching, god-components, or prop-drilling.

Frequently Asked Questions about taste-react

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I catch React anti-patterns automatically during code edits?

Load this skill through a PreToolUse hook so every edit to TSX or JSX files is matched against regex rules for useEffect fetching, god-components, prop-drilling, and render-phase side effects. Matches produce soft-warns surfaced to the agent without blocking the edit.

What React anti-patterns does this guardrail detect?

It flags useEffect data-fetching with then-chains, function components over 200 LOC with more than 3 useState calls, more than 3 inline style objects per component, props threaded through more than 2 signatures without context, localStorage access in render, and dynamic imports of static dependencies.

Does this work with Next.js App Router and Remix projects?

Yes, it targets Next.js App Router, Remix, and Vite-React codebases. It activates on *.tsx, *.jsx, and files under components/, app/, or pages/ directories, and defers to other skills for non-React code.

Can I use this for Vue, Svelte, or plain TypeScript files?

No, the skill explicitly stays silent for Vue, Svelte, Solid, Angular, vanilla Node, and build config files like vite.config.ts. Those frameworks require their own separate packs and rules.

Does the hook block edits that violate React rules?

No, it only soft-warns by surfacing the rule to the agent while allowing the edit. Hard-stops are reserved for contract-declared exception paths defined in the architecture pack's FAIL rubric.