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: Offers detailed guidelines for variable/function naming, immutability, error handling, async operations, and type safety in TypeScript/JavaScript.
- Framework Best Practices: Includes recommendations for React component structure, custom hooks, state management, and conditional rendering.
- API Design: Outlines conventions for REST APIs, response formats, and input validation using Zod.
- File Organization & Documentation: Guides project structure, file naming, commenting strategies, and JSDoc usage.
- Performance & Testing: Covers memoization, lazy loading, database query optimization, and testing methodologies.
- Code Smell Detection: Identifies and provides solutions for 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 naming conventions, error handling, and component structure.
Quick Start
Review the universal coding standards and best practices for TypeScript, JavaScript, React, and Node.js development.