react-project-standard
React + TypeScript 项目的完整工程规范,涵盖项目结构、组件设计、Hooks、路由、状态管理、API 层、错误处理、测试和性能优化。当用户在 React 项目中创建、修改组件或模块,涉及架构设计、代码编写时自动激活。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bovinphang/react-project-standardWhat This Skill Does
The react-project-standard skill provides a comprehensive architectural blueprint and development framework for React + TypeScript projects. It enforces industry-standard directory structures, module-based component design, and scalable state management strategies. By utilizing this skill, developers ensure that their codebases remain maintainable, modular, and consistent across team collaborations. It acts as an architectural consultant that guides the creation of features, hooks, services, and styling, ensuring that every new addition adheres to the established project hierarchy.
Installation
Run the following command in your terminal to integrate the skill into your OpenClaw environment:
clawhub install openclaw/skills/skills/bovinphang/react-project-standard
Use Cases
- Project Initialization: Establishing a robust foundation for a new React application.
- Feature Refactoring: Migrating loose files into a structured
features/directory to improve cohesion. - Code Review & Consistency: Auditing existing components against the defined best practices for performance and directory placement.
- Team Onboarding: Providing developers with a clear roadmap of where specific logic (API, hooks, styles) should reside, reducing cognitive load for new members.
Example Prompts
- "I need to add a new User Management feature. Can you suggest a directory structure inside
src/features/and generate the initialindex.tsexport?" - "How should I organize my API service layer using the
services/structure defined in the standards? Please provide a code template." - "Review this component file. It feels bloated—can you help me split it into the recommended
components/,hooks/, andapi.tsstructure?"
Tips & Limitations
- Adaptability: The structure is designed to be pruned for smaller projects. Do not feel compelled to use every folder if your project is simple.
- TypeScript Strictness: This skill assumes strict TypeScript configuration. Ensure your
tsconfig.jsonis updated to support path aliases (e.g.,@/components/*) to match the structural imports. - Scope: While this provides architectural guidance, it does not replace specific library-level implementations (like Redux or TanStack Query) but rather provides the container for them. Always tailor the logic to the specific needs of your business domain.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bovinphang-react-project-standard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
frontend-code-review
从架构、可维护性、类型安全、可访问性、样式一致性、性能和可测试性等角度审查前端代码,并将报告保存为 Markdown 文件。当用户要求代码审查、Review、评审代码质量时自动激活。
legacy-web-standard
针对 JavaScript + jQuery + HTML/CSS 传统前端项目的开发与维护规范。当用户在非框架项目中工作,涉及 jQuery、原生 JS、传统多页面应用(MPA)、模板引擎渲染页面、或维护遗留代码时自动激活。
accessibility-check
审查或改进前端 UI 的语义结构、键盘支持、焦点管理、标签以及常见的 WCAG 相关问题,并将报告保存为 Markdown 文件。当用户提到无障碍、accessibility、a11y、WCAG,或在实现交互组件时自动激活。
security-review
前端代码安全审查,检测 XSS、CSRF、敏感数据泄露、不安全的用户输入处理和依赖风险,并将报告保存为 Markdown 文件。当用户要求安全检查、安全审查,或代码涉及用户输入、认证、支付、文件上传等敏感操作时自动激活。
nextjs-project-standard
Next.js 14+ 项目规范,涵盖 App Router、SSR/SSG、流式渲染、路由与布局、数据获取、中间件、元数据与 SEO。当用户在 Next.js 项目中创建、修改页面或模块时自动激活。