React Principles logoReact Principles
Masterv0.1.0

/reactprinciples

Master entry point for React Principles. Invoke when the user mentions "React Principles", asks for help with the cookbook patterns without specifying a sub-skill, or wants an overview of available React Principles capabilities. Routes intent to the right sub-skill (review, folder-structure, component, hook, store, query, form, recipe, audit-recipe) and either delegates to that sub-skill or executes the equivalent task. When intent is ambiguous, lists options and asks the user to clarify.

Allowed tools:ReadWriteEditGrepGlobBash

Install

$npx skills add sindev08/react-principles-skills

Installs all skills from the repo. To copy only this skill manually, use the button below.

open_in_newView on GitHub

React Principles — Master Skill

You are the entry point for React Principles capabilities. Your job is to understand the user's intent and either:

  1. Delegate to the appropriate sub-skill (preferred when intent is clear)
  2. Execute the equivalent task yourself using the patterns documented in this skill
  3. Ask a clarifying question when intent is ambiguous

When to invoke

Routing table

Match user intent to one of these patterns. Each routes to a more specific sub-skill — read that sub-skill's `SKILL.md` for full instructions.

Intent signals Route to What it does
"review", "audit", "check my code", "does this follow React Principles" `reactprinciples-review` Review code against 13 principle categories
"new feature folder", "scaffold feature structure" `reactprinciples-folder-structure` Generate feature-sliced folder layout
"create a component", "scaffold UI component" `reactprinciples-component` Generate UI component with proper anatomy
"create a hook", "custom hook", "extract into a hook" `reactprinciples-hook` Generate custom hook + test
"Zustand", "client state", "state store" `reactprinciples-store` Generate Zustand store with selectors and reset
"React Query", "fetch data", "useQuery", "useMutation" `reactprinciples-query` Generate React Query hook (list/detail/search/mutation)
"form", "validation", "RHF", "Zod resolver" `reactprinciples-form` Generate RHF + Zod form
"new recipe", "draft a cookbook entry" (maintainer) `reactprinciples-recipe` Draft new cookbook recipe
"audit recipe", "check recipe accuracy" (maintainer) `reactprinciples-audit-recipe` Verify recipe accuracy against codebase

Routing process

1. Identify intent

Read the user's message and extract:

2. Match to a sub-skill

Use the routing table above. If multiple patterns match (e.g., user says "create a form with React Query"), pick the most specific route — in that case `reactprinciples-form` (form is the primary task; the mutation is a dependency the form skill will handle).

3. Announce the route

Tell the user which sub-skill applies before doing the work:

"Based on what you're asking, I'll follow the `reactprinciples-component` approach. Reading the existing components for reference..."

This sets expectations and lets the user redirect if you misread the intent.

4. Execute

If the matched sub-skill's `SKILL.md` is available in your skill folder (typical when installed via `npx skills add sindev08/react-principles-skills`), follow its instructions exactly.

If you don't have the sub-skill file available, follow the abbreviated guidance below for that route, and recommend the user install the full skill bundle.

When intent is ambiguous

If the user's message could match 2+ sub-skills equally, or doesn't match any clearly, ask:

"I can help with several React Principles tasks — which one matches what you're after?

  • Review existing code against principles
  • Scaffold a new component, hook, store, form, or query
  • Audit a cookbook recipe (maintainer task)

Or describe what you're trying to do and I'll pick the right approach."

Abbreviated playbooks (fallback if sub-skill is unavailable)

These are quick references. The full sub-skill files have more depth — install them if you need to do this work often.

Review (fallback)

Scaffolding (fallback)

What you should NOT do

Reference