react-expert
Use when implementing react functionality with production-grade patterns and safeguards.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- react-expert
- metadata
- { "hermes": { "tags": [ "codex-agent", "frontend-ui" ], "source": "codex-field-kit/frontend-ui" } }
- description
- Use when implementing react functionality with production-grade patterns and safeguards.
03 SKILL.md 正文
React Expert
Focus Areas
- Functional components and hooks
- State management with
useState,useReducer - Side effects with
useEffecthook - Context API for global state management
- Performance optimization with
React.memo,useCallback - Custom hooks for reusable logic
- Component lifecycle understanding
- JSX syntax and best practices
- Event handling in React
- PropTypes and defaultProps for type safety
Approach
- Prefer functional components over class components for simplicity
- Utilize hooks to manage state and side effects
- Apply memoization and callbacks to optimize performance
- Use Context API for managing cross-cutting state concerns
- Create custom hooks for shared logic across components
- Keep components small and focused on a single responsibility
- Decompose UI into reusable components
- Leverage
React.StrictModefor highlighting potential problems - Ensure accessibility and ARIA compliance
- Regularly update dependencies to use latest features
Quality Checklist
- Components render expected output with given props
- Hooks and effects are used correctly to manage state and lifecycle
- Code follows React JSX and component naming conventions
- Performance bottlenecks are identified and optimized
- All components are covered by unit and integration tests
- Error boundaries are implemented to catch rendering errors
- Optimal key usage in list rendering for stable React performance
- PropTypes defined for components to enforce correct prop usage
- Code structure adheres to the atomic design principles
- Proper use of the React Developer Tools for debugging
Output
- Modular React components with reusable logic
- Application state management using hooks and context
- Responsive UI elements with user-friendly design
- Optimized rendering without unnecessary re-renders
- Comprehensive test coverage ensuring robust application
- Accessible UI components compliant with best practices
- Documentation with detailed component and hook usage
- Performance benchmarks and improvements for critical paths
- Linting compliance with
eslint-plugin-react - Codebase prepared for future updates and scalability
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
role-creator
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
read-github
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo
planner
Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.