Typescript Rules
shinpr/claude-code-workflows
React/TypeScript frontend development rules including type safety, component design, state management, and error handling.
Bulletproof React architecture patterns for scalable, maintainable applications.
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yamcodes/arkenv bulletproof-react --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bulletproof-react .claude/skills/bulletproof-react && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .claude/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-reactType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yamcodes/arkenv bulletproof-react --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/bulletproof-react .agents/skills/bulletproof-react && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .agents/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yamcodes/arkenv bulletproof-react --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/bulletproof-react .cursor/skills/bulletproof-react && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .cursor/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yamcodes/arkenv.git --path skills/bulletproof-react--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yamcodes/arkenv bulletproof-react --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/bulletproof-react .gemini/skills/bulletproof-react && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .gemini/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yamcodes/arkenv bulletproof-reactInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/bulletproof-react .github/skills/bulletproof-react && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .github/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yamcodes/arkenv --skill bulletproof-react -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yamcodes/arkenv bulletproof-react --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yamcodes/arkenv.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/bulletproof-react .opencode/skills/bulletproof-react && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bulletproof-react" agent skill from https://github.com/yamcodes/arkenv/tree/v1/skills/bulletproof-react into .opencode/skills/bulletproof-react/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bulletproof-react", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bulletproof-reactBulletproof React architecture patterns for scalable, maintainable applications.
Bulletproof React is an agent skill from yamcodes/arkenv. 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.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `references/README.md`, `references/api-layer.md` and `references/components-and-styling.md`).
It sits in Frontend & Design, covering State management, Test strategy and Software architecture. It works with React. The repository describes itself as: ⛯ Typesafe environment variables with ArkType, Zod, or Valibot. The licence is MIT.
Read from SKILL.md and the folder at commit 7340aa2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bulletproof React loads about 1.8k tokens when it runs, and up to ~9.8k if it reads all its reference files. Until then it costs about 106 tokens; SKILL.md has 324 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from yamcodes/arkenv at commit 7340aa2, republished under its MIT licence (© yamcodes). 324 words, ~1,772 tokens.
.claude/skills/bulletproof-react/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.Architecture patterns for building scalable, maintainable React applications. Based on bulletproof-react.
| 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 |
Organize by feature, not by file type:
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 functionsfeatures/users/
├── api/ # API functions and query hooks
├── components/ # Feature-specific components
├── hooks/ # Feature-specific hooks
├── types/ # Feature-specific types
└── utils/ # Feature-specific utilitiesRules:
Page Components → route-level, compose features, handle layout
└── Feature Components → feature-specific, business logic
└── UI Components → shared primitives, no business logic// 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 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.
App Error Boundary → catches unrecoverable crashes
└── Route Error Boundary → catches route-level failures, shows retry
└── Feature Error Boundary → catches feature-specific errors| 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 |
| 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 |
Use path aliases to avoid deep relative imports:
import { Button } from "@/components/ui/button";
import { useUsers } from "@/features/users/api";Configure @/ as the src/ alias in tsconfig.json.
© yamcodes, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (references) in skills/bulletproof-react of yamcodes/arkenv.
Open the folder on GitHubat commit 7340aa2
Bulletproof React next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bulletproof React this skillyamcodes/arkenv | 145 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Typescript Rulesshinpr/claude-code-workflows | 690 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Compose Atomslobehub/lobehub | 83k | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Aidd Stackparalleldrive/aidd | 384 | — | ~411 | Automated safety check: Pass | MIT | |
| React TypescriptMadAppGang/claude-code | 283 | — | ~4.1k | Automated safety check: Pass | MIT | |
| React UI State PatternsChrisWiles/claude-code-showcase | 6.1k | 7 repos | ~1.6k | Automated safety check: Pass | None |
shinpr/claude-code-workflows
React/TypeScript frontend development rules including type safety, component design, state management, and error handling.
lobehub/lobehub
Splits a heavy front-end domain into capability atoms that each host imports separately, sinking state into each atom instead of adding mode or readOnly flags.
paralleldrive/aidd
Tech stack guidance for NextJS + React/Redux + Shadcn UI features.
MadAppGang/claude-code
Modern React 19+ patterns with TypeScript including function components, hooks, state management, TanStack Query integration, form handling with Zod, error boundaries, and performance optimization.
ChrisWiles/claude-code-showcase
Sets patterns for React interfaces: when to show loading spinners or skeletons, how to surface errors, how to disable buttons during async work and how to handle empty lists.
siteboon/claudecodeui
Enforces one repository's React and TypeScript module layout for code under src/: source-root imports, feature barrels, deliberate exports and no deep imports.
yamcodes/arkenv
Anti-AI-slop design skill for greenfield pages, audits, redesigns, and design extraction from URLs or screenshots.
yamcodes/arkenv
Answer questions about ArkEnv and help implement environment variable validation.
yamcodes/arkenv
Fetch, analyze, and address code reviews and comments on GitHub, or perform a code review on changes in the workspace.
yamcodes/arkenv
Manually forward-ports merged dev (v0) changes to the v1 branch, adapting code to v1's package layout and changeset names.
yamcodes/arkenv
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 apply the correct label and add an agent…
yamcodes/arkenv
Move newly installed skills from '.agents/skills/' to the project's root 'skills/' directory, with options to rename and attribute them, and mark them as internal.
Works with
Categories
Bulletproof React architecture patterns for scalable, maintainable applications. Bulletproof React is an agent skill from yamcodes/arkenv. Bulletproof React architecture patterns for scalable, maintainable applications.
Bulletproof React fits situations like: structuring a React project; designing application architecture; organizing features; the user asks about React project structure.
Run `npx skills add yamcodes/arkenv --skill bulletproof-react -a claude-code`. Or copy the skill folder (skills/bulletproof-react in yamcodes/arkenv) into .claude/skills/bulletproof-react in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yamcodes/arkenv --skill bulletproof-react -a codex`. Or copy the skill folder (skills/bulletproof-react in yamcodes/arkenv) into .agents/skills/bulletproof-react in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yamcodes/arkenv --skill bulletproof-react -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bulletproof-react, .gemini/skills/bulletproof-react, .github/skills/bulletproof-react and .opencode/skills/bulletproof-react in your project.
SKILL.md names no scripts, command-line tools or credentials: Bulletproof React is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Bulletproof React is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Bulletproof React: Typescript Rules (shinpr/claude-code-workflows, 690 stars), Compose Atoms (lobehub/lobehub, 83k stars), Aidd Stack (paralleldrive/aidd, 384 stars) and React Typescript (MadAppGang/claude-code, 283 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yamcodes (a GitHub user) maintains it in yamcodes/arkenv, which has 145 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 5, 2026.
Source: yamcodes/arkenv on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.