AI Rules File
All of ReactBlueprint's conventions, patterns, and best practices — condensed into a single file you can feed to your AI coding assistant.
What's Inside
The file covers every section of ReactBlueprint in a condensed, directive format optimized for AI consumption:
- Tech Stack — approved libraries and tools
- Project Structure — folder organization and conventions
- Naming Conventions — files, code, git branches, commits
- Components — structure, patterns, composition rules
- Forms — React Hook Form + Zod patterns
- State Management — decision tree, Zustand, TanStack Query
- Data Fetching — API services, error handling
- Authentication — token storage, protected routes
- Styling — Tailwind CSS conventions
- TypeScript — strict config, patterns
- Testing — coverage targets, what and how to test
- Error Handling — boundaries, API errors
- Performance — optimization rules, targets
- Linting & Formatting — ESLint, Prettier config
- Git Workflow — branches, commits, PRs
- Environment Variables — naming, validation
- CI/CD — pipeline configuration
- Internationalization — i18n patterns
- Monitoring & Logging — Sentry, structured logging
- Security — checklist and anti-patterns
- Accessibility — WCAG 2.1 AA requirements
- SEO — meta tags, sitemaps, structured data
- Documentation — JSDoc, READMEs
Setup by Tool
Claude Code
Save as `CLAUDE.md` in your project root:curl -o CLAUDE.md https://react-blueprint.dev/react-blueprint-rules.mdCursor
Save as `.cursorrules` in your project root:curl -o .cursorrules https://react-blueprint.dev/react-blueprint-rules.mdGitHub Copilot
Save as `.github/copilot-instructions.md` in your project:mkdir -p .github && curl -o .github/copilot-instructions.md https://react-blueprint.dev/react-blueprint-rules.mdChatGPT / Other Assistants
Open your assistant's custom instructions or system prompt, then paste the contents of the file.- Open the rules file in your browser
- Select all and copy
- Paste into your assistant's custom instructions or system prompt
Windsurf
Save as `.windsurfrules` in your project root:curl -o .windsurfrules https://react-blueprint.dev/react-blueprint-rules.mdKeeping Up to Date
The rules file tracks the latest version of ReactBlueprint. Re-download it periodically to pick up new conventions:curl -o CLAUDE.md https://react-blueprint.dev/react-blueprint-rules.md