Agent skill

bulletproof-react-auditor

Use PROACTIVELY when users ask about React project structure, Bulletproof React patterns, or need architecture guidance. Covers structure setup, codebase auditing, anti-pattern detection, and feature-based migration planning. Triggers on "bulletproof react", "React structure help", "organize React app", or "audit my architecture".

Stars 4
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/cskiro/claudex/tree/main/plugins/bulletproof-react-auditor/skills/bulletproof-react-auditor

SKILL.md

Bulletproof React Auditor

Audits React/TypeScript codebases against Bulletproof React architecture with migration planning.

When to Use

Natural Language Triggers (semantic matching, not keywords):

  • Questions about React project structure or organization
  • Mentions of "bulletproof react" or feature-based architecture
  • Requests to audit, review, or improve React codebase
  • Planning migrations or refactoring React applications
  • Seeking guidance on component patterns or folder structure

Use Cases:

  • Setting up new React project structure
  • Reorganizing existing flat codebase
  • Auditing architecture against Bulletproof standards
  • Planning migration to feature-based patterns
  • Code review for structural anti-patterns
  • Generating refactoring guidance and ADRs

Bulletproof Structure Target

src/
├── app/           # Routes, providers
├── components/    # Shared components ONLY
├── config/        # Global config
├── features/      # Feature modules (most code)
│   └── feature/
│       ├── api/
│       ├── components/
│       ├── hooks/
│       ├── stores/
│       └── types/
├── hooks/         # Shared hooks
├── lib/           # Third-party configs
├── stores/        # Global state
├── testing/       # Test utilities
├── types/         # Shared types
└── utils/         # Shared utilities

Audit Categories

Category Key Checks
Structure Feature folders, cross-feature imports, boundaries
Components Size (<300 LOC), props (<10), composition
State Appropriate categories, localization, server cache
API Layer Centralized client, types, React Query/SWR
Testing Trophy (70/20/10), semantic queries, behavior
Styling Consistent approach, component library
Errors Boundaries, interceptors, tracking
Performance Code splitting, memoization, bundle size
Security JWT cookies, RBAC, XSS prevention
Standards ESLint, Prettier, TS strict, Husky

Usage Examples

# Basic audit
Audit this React codebase using bulletproof-react-auditor.

# Structure focus
Run structure audit against Bulletproof React patterns.

# Migration plan
Generate migration plan to Bulletproof architecture.

# Custom scope
Audit focusing on structure, components, and state management.

Output Formats

  1. Markdown Report - ASCII diagrams, code examples
  2. JSON Report - Machine-readable for CI/CD
  3. Migration Plan - Roadmap with effort estimates

Priority Levels

Priority Examples Timeline
P0 Critical Security vulns, breaking issues Immediate
P1 High Feature folder creation, reorg This sprint
P2 Medium State refactor, API layer Next quarter
P3 Low Styling, docs, polish Backlog

Connor's Standards Enforced

  • TypeScript strict mode (no any)
  • 80%+ test coverage
  • Testing trophy: 70% integration, 20% unit, 10% E2E
  • No console.log in production
  • Semantic queries (getByRole preferred)

Best Practices

  1. Fix folder organization before component refactoring
  2. Extract features before other changes
  3. Maintain test coverage during migration
  4. Incremental migration, not all at once
  5. Document decisions with ADRs

Limitations

  • Static analysis only
  • Requires React 16.8+ (hooks)
  • Best for SPA/SSG (Next.js differs)
  • Large codebases need scoped analysis

Resources

References

See reference/ for:

  • Complete Bulletproof principles guide
  • Detailed audit criteria checklist
  • Migration patterns and examples
  • ADR templates

Expand your agent's capabilities with these related and highly-rated skills.

cskiro/claudex

e2e-testing

Use PROACTIVELY when setting up end-to-end testing, debugging UI issues, creating visual regression suites, or automating browser testing. Uses Playwright with LLM-powered visual analysis, screenshot capture, and fix recommendations. Zero-setup for React, Next.js, Vue, Node.js, and static sites. Not for unit testing, API-only testing, or mobile native apps.

4 2
Explore
cskiro/claudex

github-repo-setup

Use PROACTIVELY when user needs to create a new GitHub repository or set up a project with best practices. Automates repository creation with four modes - quick public repos (~30s), enterprise-grade with security and CI/CD (~120s), open-source community standards (~90s), and private team collaboration with governance (~90s). Not for existing repo configuration or GitHub Actions workflow debugging.

4 2
Explore
cskiro/claudex

sub-agent-creator

Use PROACTIVELY when creating specialized Claude Code sub-agents for task delegation. Automates agent creation following Anthropic's official patterns with proper frontmatter, tool configuration, and system prompts. Generates domain-specific agents, proactive auto-triggering agents, and security-sensitive agents with limited tools. Not for modifying existing agents or general prompt engineering.

4 2
Explore
cskiro/claudex

accessibility-audit

Use PROACTIVELY when user asks for accessibility review, a11y audit, WCAG compliance check, screen reader testing, keyboard navigation validation, or color contrast analysis. Audits React/TypeScript applications for WCAG 2.2 Level AA compliance with risk-based severity scoring. Includes MUI framework awareness to avoid false positives. Not for runtime accessibility testing in production, automated remediation, or non-React frameworks.

4 2
Explore
cskiro/claudex

otel-monitoring-setup

Use PROACTIVELY when setting up OpenTelemetry monitoring for Claude Code usage tracking, cost analysis, or productivity metrics. Provides local PoC mode (full Docker stack with Grafana) and enterprise mode (centralized infrastructure). Configures telemetry collection, imports dashboards, and verifies data flow. Not for non-Claude telemetry or custom metric definitions.

4 2
Explore
cskiro/claudex

json-outputs-implementer

Use PROACTIVELY when extracting structured data from text/images, classifying content, or formatting API responses with guaranteed schema compliance. Implements Anthropic's JSON outputs mode with Pydantic/Zod SDK integration. Covers schema design, validation, testing, and production optimization. Not for tool parameter validation or agentic workflows (use strict-tool-implementer instead).

4 2
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results