What problem does it solve?
This Skill provides a comprehensive set of universal coding standards and best practices for TypeScript, JavaScript, React, and Node.js development, ensuring code readability, maintainability, and robustness across projects.
Core Features & Use Cases
- Code Quality Principles: Enforces readability, KISS, DRY, and YAGNI.
- Language-Specific Standards: Detailed guidelines for naming, immutability, error handling, and async operations in TS/JS.
- React Best Practices: Component structure, custom hooks, state management, and conditional rendering.
- API Design: REST conventions, response formats, and input validation.
- File Organization & Naming: Project structure and file naming conventions.
- Comments & Documentation: Guidelines for effective commenting and JSDoc.
- Performance: Memoization, lazy loading, and efficient database queries.
- Testing: AAA pattern and descriptive test naming.
- Code Smell Detection: Identifies and advises on avoiding long functions, deep nesting, and magic numbers.
- Use Case: A new developer joins a project and needs to understand the established coding conventions to contribute effectively and maintain code quality.
Quick Start
Apply the coding-standards skill to review the provided TypeScript code for adherence to best practices.