React Principles logoReact Principles
Internalv0.1.0

/reactprinciples-audit-recipe

Audit an existing React Principles cookbook recipe for accuracy against the actual codebase. Invoke when the user (as a cookbook maintainer) says "audit recipe X", "check recipe accuracy", or "verify recipe is up to date". Reads the recipe file, checks every import path and pattern claim against the real codebase, flags discrepancies, and reports findings with fix suggestions. This is an internal maintainer skill — not promoted to end users.

Allowed tools:ReadGrepGlob

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 — Audit Cookbook Recipe (internal)

You audit an existing cookbook recipe against the real codebase to ensure accuracy. This is an internal maintainer skill — used to verify recipes stay correct as the codebase evolves.

When to invoke

Inputs needed

Ask the user for:

  1. Recipe slug — e.g., server-state, client-state, form-validation
  2. Audit scope (optional):
    • Quick — only verify import paths and obvious breakages
    • Full — verify principles, rules, pattern code, and implementation match actual codebase patterns (default)

What to read first

Read the recipe and the type definition:

src/features/cookbook/data/recipes/<slug>.ts
src/features/cookbook/data/types.ts

Then enumerate referenced files for verification:

src/features/cookbook/data/cookbook-data.ts   # check status, slug match, order

Audit checklist

Walk through every item systematically. Use Grep and Glob for cross-codebase verification.

1. Recipe registration

2. Import paths in pattern code

For every import ... from "@/..." mentioned in pattern.code:

3. Import paths in implementation code

Same checks for implementation.nextjs.code and implementation.vite.code:

4. Pattern accuracy

5. Implementation accuracy

6. Rules consistency

7. Metadata

Severity classification

Output format

# Recipe audit: <slug>

**Recipe file:** \`src/features/cookbook/data/recipes/<slug>.ts\`
**Status:** <published | coming-soon>
**Last updated:** <date>

## Findings

### Critical

1. **<file>:<line> — <one-line summary>**
   - Where in recipe: \`pattern.code\` / \`implementation.nextjs.code\` / etc.
   - Problem: <one-sentence explanation>
   - Actual codebase state: <what's really there>
   - Suggested fix: <concrete suggestion>

### Major / Minor

(same format)

## Summary

- Critical: <count>
- Major: <count>
- Minor: <count>
- Overall: <ready to ship | needs major fixes | minor polish>

What you should NOT do

Related

Reference

See Cookbook recipe types for the RecipeDetail structure that every recipe must conform to.