用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wojons/skills --skill react-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | react-review |
| description | Review React components for best practices and performance issues |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","category":"development"} |
Review React components for best practices, performance issues, and common patterns.
Use this skill when:
# Review a specific component file
agent: Review the component in src/components/UserProfile.tsx
# Review all components in a directory
agent: Review React components in src/components/
# Check for performance issues
agent: Find performance issues in the Button component
## React Component Review
### Component: UserProfile.tsx
**Issues Found:**
1. Performance: Missing React.memo on component that receives object props
2. Best Practice: useEffect missing dependency array
3. Type Safety: Missing TypeScript interfaces for props
**Recommendations:**
1. Wrap component with React.memo
2. Add dependency array to useEffect
3. Create interface for component props
**Code Suggestions:**
```typescript
interface UserProfileProps {
user: User;
onUpdate: (user: User) => void;
}
const UserProfile = React.memo(({ user, onUpdate }: UserProfileProps) => {
// implementation
});
## Notes
- Focuses on React 18+ patterns and best practices
- Considers both class and function components
- Includes TypeScript and JavaScript variants
- References official React documentation and community patterns