yamcodes/arkenv/bulletproof-react
Claude Code and agent skill by yamcodes/arkenv
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Bulletproof React architecture patterns for scalable, maintainable applications. Covers feature-based project structure, component patterns, state management boundaries, API layer design, error handling, security, and testing strategies. Use when structuring a React project, designing application architecture, organizing features, or when the user asks about React project structure or scalable patterns.
Install
npx vskill@latest install yamcodes/arkenv/bulletproof-reactSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Bulletproof React
Architecture patterns for building scalable, maintainable React applications. Based on bulletproof-react.
Core references
| Topic | Description | Reference | |
|---|---|---|---|
| Project Structure | Feature-based organization, unidirectional architecture, ESLint enforcement | project-structure | |
| Components & Styling | Component hierarchy, wrapping 3rd party libs, headless vs styled libraries | components-and-styling | |
| API Layer | API client, request declarations, query/mutation hook patterns | api-layer | |
| State Management | Component, application, server cache, form, and URL state categories | state-management | |
| Error Handling | Error boundaries, API errors, error tracking with Sentry | error-handling | |
| Testing | Unit, integration, e2e strategies with Vitest, Testing Library, Playwright, MSW | testing | |
| Project Standards | ESLint, Prettier, TypeScript, Husky, absolute imports, file naming | project-standards | |
| Security | Authentication, token storage, XSS prevention, RBAC/PBAC authorization | security | |
| Performance | Code splitting, data prefetching, state optimization, children pattern | performance |
Project structure
Organize by feature, not by file type:
Feature modules
Rules:
- Features should not import from other features. Compose at the app level.
- Code flows one direction: shared → features → app.
- Promote to shared directories only when reused by 2+ features.
- Prefer direct imports over barrel re-exports for Vite tree-shaking.
Component hierarchy
API layer pattern
State management boundaries
| State Type | Solution | Examples | |
|---|---|---|---|
| Server state | TanStack Query | User data, posts, API responses | |
| Client state (global) | Zustand / Jotai | Theme, sidebar open, user preferences | |
| Client state (local) | useState / useReducer | Form inputs, toggles, modal open | |
| URL state | URL search params / router | Filters, pagination, active tab | |
| Form state | React Hook Form | Multi-step forms, validation |
Don't mix server and client state. Never copy query data into useState.
Error hierarchy
Testing strategy
| Layer | Tool | What to Test | |
|---|---|---|---|
| Components | Testing Library | Render output, user interactions, a11y | |
| Hooks | renderHook | State changes, side effects | |
| API | MSW | Request/response handling, error states | |
| Integration | Testing Library + MSW | Full feature flows (render → interact → verify) | |
| E2E | Playwright | Critical user journeys |
Conventions
| Item | Convention | Example | |
|---|---|---|---|
| Components | PascalCase | UserCard.tsx | |
| Hooks | camelCase, use prefix | useUsers.ts | |
| Utilities | camelCase | formatDate.ts | |
| Types | PascalCase | User, CreateUserInput | |
| Constants | UPPER_SNAKE_CASE | MAX_RETRIES | |
| Directories | kebab-case | user-settings/ | |
| Files | kebab-case | user-card.tsx |
Imports
Use path aliases to avoid deep relative imports:
Configure @/ as the src/ alias in tsconfig.json.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bulletproof-react/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yamcodes/arkenv/bulletproof-react)