What problem does it solve?
This Skill provides a comprehensive set of coding standards, best practices, and patterns to ensure high-quality, maintainable, and readable code across TypeScript, JavaScript, React, and Node.js projects.
Core Features & Use Cases
- Universal Principles: Covers readability, KISS, DRY, and YAGNI.
- Language-Specific Guidelines: Detailed standards for variable/function naming, immutability, error handling, async operations, and type safety in TypeScript/JavaScript.
- Framework Best Practices: Recommendations for React component structure, custom hooks, state management, and conditional rendering.
- API Design: Standards for RESTful APIs, response formats, and input validation using Zod.
- Project Structure & File Naming: Guidance on organizing code and naming files consistently.
- Documentation & Comments: Best practices for explaining the 'why' and using JSDoc.
- Performance Optimization: Techniques like memoization and lazy loading.
- Testing Standards: Adherence to the AAA pattern and descriptive test naming.
- Code Smell Detection: Identification and avoidance of long functions, deep nesting, and magic numbers.
- Use Case: Ensure all new code contributions adhere to established best practices, reducing bugs and improving developer onboarding.
Quick Start
Review the coding standards for TypeScript and React development.