React Best Practices
Helps with React, best practices as part of building frontend UIs and user experiences workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add onekeyhq-react-best-practices npx -- -y @trustedskills/onekeyhq-react-best-practices
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"onekeyhq-react-best-practices": {
"command": "npx",
"args": [
"-y",
"@trustedskills/onekeyhq-react-best-practices"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The onekeyhq-react-best-practices skill provides a curated set of guidelines and patterns for building robust React applications within the OneKeyHQ ecosystem. It ensures code consistency, performance optimization, and maintainability by enforcing specific architectural standards across your frontend projects.
When to use it
- Establishing a standardized coding style for new team members joining an existing OneKeyHQ project.
- Refactoring legacy React components to align with current best practices and reduce technical debt.
- Ensuring consistent behavior and UI rendering across multiple microservices in a monorepo setup.
- Preparing codebases for production deployment by addressing common performance bottlenecks early.
Key capabilities
- Enforces strict linting rules tailored to OneKeyHQ's specific React implementation requirements.
- Provides reusable component patterns that prevent common state management anti-patterns.
- Guides the integration of hooks and context APIs to ensure predictable data flow.
- Offers configuration presets for bundlers like Webpack or Vite optimized for this stack.
Example prompts
- "Refactor this legacy class component into a functional component using modern React hooks."
- "Generate a reusable
DataTablecomponent following OneKeyHQ's design system and performance guidelines." - "Audit my current project structure against the recommended monorepo best practices for React apps."
Tips & gotchas
This skill is specifically designed for the OneKeyHQ stack; applying these patterns to unrelated React frameworks may introduce unnecessary complexity. Ensure your development environment matches the required Node.js version specified in the OneKeyHQ documentation before installing to avoid compatibility issues with build tools.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.