React Principles logoReact Principles
auto_awesomeAI Corpus

One command. Your AI already knows the rules.

Run npx react-principles init and your project is wired into React Principles: your AI follows the patterns, looks up recipes, and pulls components on its own. No copy-paste, no keeping docs in sync.

NewOne-command setup

Existing project

Make it React Principles–aware in one step.

npx react-principles init

New project

Scaffold a starter that ships wired-in from the first commit.

npx react-principles create my-app

Both wire up everything below — automatically:

description

AGENTS.md

The principles, so any AI assistant follows them.

hub

.mcp.json

The MCP server — live recipe and component lookup.

terminal

Skills

Invocable review and scaffolding commands.

autorenewAlways current — recipe updates reach your tools automatically, no re-sync.

Under the hood

Prefer to wire it up yourself?

init and create configure all of this for you. Here's each piece — connect them manually, or go deeper on how they work.

hub

MCP Server

Live connection

Add the remote MCP server once — your AI looks up recipes by itself in any conversation. Always current, token-efficient.

Connect belowarrow_forward
terminal

Skills

Invocable commands

10 Agent Skills following the open standard. Works with Claude Code, Cursor, and any AI tool that supports skills.sh.

View skills belowarrow_forward
description

llms.txt

Drop-in AI context

The cookbook as AI-readable markdown. Two versions: compact for quick reference, full for deep RAG context.

See files belowarrow_forward

MCP Server

Live connection to the cookbook and UI Kit

A remote Model Context Protocol server serving both the cookbook and the UI Kit. Connect once and your AI can look up recipes and pull component source on demand — no copy-paste, always in sync with the published site.

MCP is an open protocol — this server works with any MCP client. Pick yours:

Run in your terminal:

claude mcp add --transport http reactprinciples https://www.reactprinciples.dev/api/mcp
list_recipes

All published recipes with slugs, categories, and descriptions.

search_recipes

Ranked keyword search across titles, rules, and principles.

get_recipe

Full recipe as markdown — principle, rules, pattern, implementations.

list_componentsNew

All UI Kit components with target dir, description, and dependencies.

search_componentsNew

Ranked keyword search across component names and descriptions.

get_componentNew

Full component source (matches the CLI), install command, and deps.

Skills

Invocable commands

Install once, invoke when needed. Each skill encodes a workflow — from reviewing code to scaffolding components — following React Principles patterns exactly.

Install all skills with one command:

npx skills add sindev08/react-principles-skills

Or manually copy any SKILL.md from the react-principles-skills repo into ~/.claude/skills/.

llms.txt

Drop-in AI context

The cookbook compiled into AI-readable markdown. Auto-rebuilds on every publish. No setup — just point your AI at the URL.

Compact

~5K tokens

Principles + rules only, no code. Drop into any AI context window for quick principle-aware help.

Best for: quick chat sessions, lightweight rules in Cursor.

Full

~17K tokens

Every recipe with pattern code and Next.js + Vite implementations. Suitable for RAG, fine-tuning, or long-form briefing.

Best for: custom AI assistants, retrieval pipelines, deep context.

Use cases

How developers use this

Practical patterns for getting AI tools aligned with React Principles.

rule

Code review in editor

Invoke "/reactprinciples-review" in Claude Code or Cursor to audit your changes against documented patterns before opening a PR.

construction

Scaffold features faster

Use "/reactprinciples-component", "/reactprinciples-query", or "/reactprinciples-form" to generate code that already follows the conventions — no boilerplate copy-paste.

psychology

Project-aware chat context

Paste llms.txt into Claude Projects, ChatGPT custom GPTs, or Cursor rules so every conversation stays principle-aligned.

all_inclusive

Custom AI assistants

Use llms-full.txt as RAG corpus or fine-tuning data to build a React Principles assistant for your team.

Ready to install?

One command. Works across Claude Code, Cursor, and any tool supporting Agent Skills.

npx skills add sindev08/react-principles-skills