coding-standards

Provide coding standards and best practices for TypeScript, JavaScript, React, and Node.js.

Updated Dec 16, 2025
One-click install
npx skills add https://github.com/EanLee/article-write --skill coding-standards-eanlee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/EanLee/article-write/tree/main/.github/skills/coding-standards
Command: npx skills add https://github.com/EanLee/article-write --skill coding-standards-eanlee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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, KISS, DRY, and YAGNI principles.
  • Language-Specific Standards: Detailed guidelines for TypeScript/JavaScript (naming, immutability, error handling, async/await, type safety), React (component structure, hooks, state management, conditional rendering), and API design (REST conventions, response formats, validation).
  • File Organization & Documentation: Best practices for project structure, file naming, commenting, and JSDoc.
  • Performance & Testing: Recommendations for memoization, lazy loading, efficient database queries, and testing methodologies.
  • Code Smell Detection: Identifies and advises on avoiding 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 refer to this Skill to quickly align with the team's standards for writing new code or refactoring existing code.

Quick Start

Review the coding standards for TypeScript and React development.

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 TypeScript and React coding standards?

TypeScript and React coding standards enforce readability, KISS, DRY, and YAGNI principles. They cover naming conventions, immutability, error handling, type safety, component structure, custom hooks, and state management to ensure maintainable codebases.

How do I structure REST API responses in Node.js?

To structure REST API responses in Node.js, follow API design standards that define REST conventions, response formats, and validation. These standards ensure consistent API interfaces, reliable data exchange, and proper error handling across your backend services.

How can I detect code smells in JavaScript and TypeScript projects?

Detect code smells in JavaScript and TypeScript projects by checking for long functions, deep nesting, and magic numbers. Enforcing coding standards helps identify these structural issues and promotes refactoring toward readable, maintainable code.

Does this coding standard guide cover async/await and error handling?

Yes, this coding standard guide covers async/await and error handling. It provides detailed guidelines for TypeScript and JavaScript to ensure proper asynchronous operations and robust error management across your applications.

What testing strategies and performance optimizations are recommended for React?

Recommended React testing strategies and performance optimizations include memoization, lazy loading, and efficient database queries. These practices improve application rendering speed, reduce unnecessary computations, and ensure reliable component behavior.

How do I organize files and write JSDoc documentation for Node.js projects?

Organize Node.js files and write JSDoc documentation by following best practices for project structure, file naming, and commenting. These standards ensure your codebase remains navigable, well-documented, and easy for new developers to understand.