What problem does it solve?
This Skill provides a comprehensive set of universal coding standards, best practices, and patterns to ensure high-quality, readable, and maintainable code across TypeScript, JavaScript, React, and Node.js projects.
Core Features & Use Cases
- Code Quality Principles: Enforces readability, simplicity, DRY, and YAGNI.
- Language-Specific Standards: Detailed guidelines for TypeScript/JavaScript (naming, immutability, error handling, async/await, type safety), React (component structure, custom hooks, state management, conditional rendering), and API design (REST conventions, response formats, input validation).
- Organizational Best Practices: Recommendations for file organization, naming conventions, and commenting.
- Performance & Testing: Guidelines on memoization, lazy loading, database query optimization, and testing strategies.
- Use Case: A new developer joins a project and needs to understand the established coding conventions. They can refer to this Skill to quickly grasp and apply the team's standards for writing clean, efficient, and consistent code.
Quick Start
Apply the coding standards outlined in this skill to refactor the provided JavaScript code snippet.