coding-standards

Enforce coding standards for TypeScript, JavaScript, React, and Node.js.

1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/aleonsa/claude-config --skill coding-standards-aleonsa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/aleonsa/claude-config/tree/main/claude/skills/coding-standards
Command: npx skills add https://github.com/aleonsa/claude-config --skill coding-standards-aleonsa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for React component structure and custom hooks?

Best practices for React components include structuring them clearly, using custom hooks for reusable logic, managing state effectively, and applying conditional rendering patterns to ensure maintainability and readability across your project.

How do I enforce TypeScript type safety and immutability in my codebase?

To enforce TypeScript type safety and immutability, apply universal coding standards covering strict variable and function naming, error handling, async/await patterns, and robust type safety principles to improve overall code consistency.

How do I design REST APIs with consistent response formats and input validation?

Design REST APIs by following established API design guidelines, enforcing REST conventions, maintaining consistent response formats, and implementing input validation using Zod to ensure reliable data handling.

What is the best way to detect code smells like long functions and deep nesting?

The best way to detect code smells like long functions, deep nesting, and magic numbers is to apply code quality principles such as KISS, DRY, and YAGNI, which help identify and provide solutions to maintain simplicity.

How do I optimize Node.js performance with lazy loading and efficient database queries?

Optimize Node.js performance by applying specific performance guidelines, utilizing memoization, implementing lazy loading techniques, and writing efficient database queries to reduce bottlenecks and improve application speed.

Does this coding standards skill cover testing methodologies and file naming conventions?

Yes, the coding standards skill covers testing methodologies using the AAA pattern and effective test naming, alongside providing recommendations for project file organization and file naming conventions to ensure structural consistency.