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 (KISS), don't repeat yourself (DRY), and you ain't gonna need it (YAGNI).
- Language-Specific Standards: Detailed guidelines for TypeScript/JavaScript (naming, immutability, error handling, async/await, type safety), React (component structure, hooks, state management, conditional rendering), and API design (REST conventions, response formats, input validation).
- Organizational Best Practices: Recommendations for file organization, naming conventions, commenting, and documentation (JSDoc).
- Performance & Testing: Includes strategies for memoization, lazy loading, efficient database queries, and effective testing (AAA pattern, descriptive naming).
- Code Smell Detection: Identifies and advises on avoiding common anti-patterns like long functions, deep nesting, and magic numbers.
- Use Case: A new developer joins a project and needs to understand the established coding conventions. They can consult this Skill to quickly get up to speed on best practices for naming, error handling, component structure, and more, ensuring their contributions align with the team's standards.
Quick Start
Review the universal coding standards and best practices for TypeScript, JavaScript, React, and Node.js development.