bulletproof-react
Bulletproof React architecture patterns for scalable, maintainable applications.
Skill by Yam Borodetsky
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/yamcodes-bulletproof-react-9a6358
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, backend, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/bulletproof-react
What's inside
- Skill name
bulletproof-react- Description
- 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.
- License
- MIT
- Metadata
- author: Yam Borodetsky · origin: github.com/grahamcrackers/skills · internal: true · original_author: grahamcrackers
- Instructions
- 134 lines in SKILL.md · view on GitHub
Files (11)
- SKILL.md
- README.md · references/
- api-layer.md · references/
- components-and-styling.md · references/
- error-handling.md · references/
- performance.md · references/
- project-standards.md · references/
- project-structure.md · references/
- security.md · references/
- state-management.md · references/
- testing.md · references/
SKILL.md (first lines)
# Bulletproof React
Architecture patterns for building scalable, maintainable React applications. Based on [bulletproof-react](https://github.com/alan2207/bulletproof-react).
## Core references
| Topic | Description | Reference |
| -------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| Project Structure | Feature-based organization, unidirectional architecture, ESLint enforcement | [project-structure](references/project-structure.md) |
| Components & Styling | Component hierarchy, wrapping 3rd party libs, headless vs styled libraries | [components-and-styling](references/components-and-styling.md) |
| API Layer | API client, request declarations, query/mutation hook patterns | [api-layer](references/api-layer.md) |
| State Management | Component, application, server cache, form, and URL state categories | [state-management](references/state-management.md) |
| Error Handling | Error boundaries, API errors, error tracking with Sentry | [error-handling](references/error-handling.md) |
| Testing | Unit, integration, e2e strategies with Vitest, Testing Library, Playwright, MSW | [testing](references/testing.md) |
| Project Standards | ESLint, Prettier, TypeScript, Husky, absolute imports, file naming | [project-standards](references/project-standards.md) |
| Security | Authentication, token storage, XSS prevention, RBAC/PBAC authorization | [security](references/security.md) |
| Performance | Code splitting, data prefetching, state optimization, children pattern | [performance](references/performance.md) |
## Project structure
Organize by feature, not by file type:
```text
src/
├── app/ # Application shell (routes, providers, router)
├── assets/ # Static files (images, fonts)
├── components/ # Shared, reusable UI components
├── config/ # Environment variables, constants
├── features/ # Feature-based modules
├── hooks/ # Shared custom hooks
├── lib/ # Pre-configured library wrappers
├── stores/ # Global client state
├── testing/ # Test utilities, MSW handlers, factories
├── types/ # Shared TypeScript types
└── utils/ # Pure utility functions
```
### Feature modules
```text
features/users/
├── api/ # API functions and query hooks
├── components/ # Feature-specific components
├── hooks/ # Feature-specific hooks
├── types/ # Feature-specific types
└── utils/ # Feature-specific utilities
```
**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
```text
Page Components → route-level, compose features, handle layout
└── Feature Components → feature-specific, business logic
└── UI Components → shared primitives, no business logic
```
## API layer pattern
```typescript
// Pure API function
function getUsers(params?: GetUsersParams): Promise<UsersResponse> {
return api.get("/users", { params });
}
// Query hook wrapping the API function
function useUsers(params?: GetUsersParams) {
return useQuery({
queryKey: ["users", params],
queryFn: () => getUsers(params),
});
}
```
## 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
```text
App Error Boundary → catches unrecoverable crashes
└── Route Error Boundary → catches route-level failures, shows retry
└── Feature Error Boundary → catches feature-specific errors
```
## 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` |From yamcodes/arkenv, MIT.
More from yamcodes/arkenv
- 0.789score
docs-writer
Yam Borodetsky
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
SkillAFreshness: A★ 147Claude Code +9 - 0.789score
pnpm
Anthony Fu
Node.js package manager with strict dependency resolution.
SkillAFreshness: A★ 147Claude Code +9 - 0.789score
create-skill
yamcodes
Create new skills, modify and improve existing skills, and measure skill performance.
SkillAFreshness: A★ 147Claude Code +9 - 0.789score
the-voice
Yam Borodetsky
Rewrite ArkEnv docs and site copy in the product voice: Turbo-shaped what/why/how, not skinny command lists and not marketing hype, then cut chatbot tells…
SkillAFreshness: A★ 147Claude Code +9 - 0.789score
nuxt
Yam C Borodetsky
Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing.
SkillAFreshness: A★ 147Claude Code +9 - 0.786score
gh-cli
yamcodes
Use for GitHub-related tasks such as managing issues, pull requests, actions runs, and repository configuration using the GitHub CLI (gh).
SkillAFreshness: A★ 147Claude Code +9 - 0.784score
changeset
Yam C Borodetsky
Creates changesets for semantic versioning.
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
jsdoc
yamcodes
Use this skill to automatically write or fix JSDoc comments for JavaScript/TypeScript code.
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
groom-issue
yamcodes
Groom a poorly written issue by grilling the user to clarify requirements, updating the issue on GitHub via the gh cli, and utilizing the triage skill to…
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
code-review
yamcodes
Fetch, analyze, and address code reviews and comments on GitHub, or perform a code review on changes in the workspace.
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
forward-port
yamcodes
Manually forward-ports merged dev (v0) changes to the v1 branch, adapting code to v1's package layout and changeset names.
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
arkenv
yamcodes
Answer questions about ArkEnv and help implement environment variable validation.
SkillAFreshness: A★ 147Claude Code +9
Signals
- Stars
- 147
- Forks
- 6
- Open issues
- 6
- Last commit (this folder)
- Aug 29, 2026 (1 month ago)
- Last release
- Sep 25, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/yamcodes/arkenv
- Website
- arkenv.js.org
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Yam Borodetsky
- 0.789score
docs-writer
Yam Borodetsky
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
SkillAFreshness: A★ 147Claude Code +9 - 0.789score
the-voice
Yam Borodetsky
Rewrite ArkEnv docs and site copy in the product voice: Turbo-shaped what/why/how, not skinny command lists and not marketing hype, then cut chatbot tells…
SkillAFreshness: A★ 147Claude Code +9 - 0.783score
point-latest-at-rc
Yam Borodetsky
Point npm `latest` at the current `@rc` versions using local interactive npm auth (no GitHub `NPM_TOKEN`).
SkillAFreshness: A★ 147Claude Code +9 - 0.774score
excalidraw
Yam Borodetsky
Generate Excalidraw diagrams from natural language descriptions.
SkillAFreshness: A★ 147Claude Code +9
Cite this page
bulletproof-react skill. Agent Mart. https://agentmart.dev/skills/yamcodes-bulletproof-react-9a6358 (last updated 2026-10-24)