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), avoiding repetition (DRY), and avoiding premature implementation (YAGNI).
- Language-Specific Standards: Detailed guidelines for variable/function naming, immutability, error handling, async/await, and type safety in TypeScript/JavaScript.
- React Best Practices: Covers component structure, custom hooks, state management, and conditional rendering.
- API Design: Standards for REST conventions, consistent response formats, and input validation using Zod.
- File Organization & Naming: Recommendations for project structure and file naming conventions.
- Comments & Documentation: Guidance on when to comment and how to use JSDoc.
- Performance: Best practices for memoization, lazy loading, and efficient database queries.
- Testing: Adherence to the AAA pattern and descriptive test naming.
- Code Smell Detection: Identifies and provides solutions for long functions, deep nesting, and magic numbers.
Quick Start
Apply the coding standards outlined in this skill to refactor the provided JavaScript code snippet.