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 quality, maintainability, and consistency across projects.
Core Features & Use Cases
- Code Quality Principles: Enforces readability, simplicity (KISS), DRY, and YAGNI.
- Language-Specific Standards: Details best practices for variable/function naming, immutability, error handling, async/await, and type safety in TS/JS.
- Framework Guidelines: Offers React component structure, custom hook usage, state management, and conditional rendering patterns.
- API Design: Outlines REST conventions, consistent response formats, and input validation using Zod.
- File Organization & Naming: Recommends project structure and file naming conventions.
- Documentation & Comments: Guides on when to comment and how to use JSDoc.
- Performance: Covers memoization, lazy loading, and efficient database queries.
- Testing: Details the AAA pattern and effective test naming.
- Code Smell Detection: Identifies and provides solutions for long functions, deep nesting, and magic numbers.
Quick Start
Apply the coding-standards skill to review the provided TypeScript code for adherence to best practices.