coding-standards

Codify universal coding standards for TypeScript, JavaScript, React, and Node.js codebases.

Updated Jul 28, 2024
One-click install
npx skills add https://github.com/fredericvahrenhorst/share-app --skill coding-standards-fredericvahrenhorst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/fredericvahrenhorst/share-app/tree/main/.cursor/skills/coding-standards
Command: npx skills add https://github.com/fredericvahrenhorst/share-app --skill coding-standards-fredericvahrenhorst

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the fragmentation of coding practices by outlining universal standards for TypeScript, JavaScript, React, and Node.js development to ensure consistent readability, maintainability, and quality across projects.

Core Features & Use Cases

  • Enforces readability with descriptive naming, consistent formatting, and self-documenting code.
  • Promotes safe immutability, proper error handling, and robust async patterns.
  • Covers type safety, React best practices, state management, and UI/component guidelines.
  • Guides API design, REST conventions, input validation, and comprehensive documentation standards.

Quick Start

Adopt these standards to enforce readability, immutability, robust error handling, and consistent API design across your TypeScript, JavaScript, React, and Node.js projects.

Frequently Asked Questions about coding-standards

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

FAQPage Schema
What are universal coding standards for TypeScript and React?

Universal coding standards for TypeScript and React enforce descriptive naming, type safety, immutability, and component guidelines to ensure consistent readability and maintainability across projects. They codify best practices for team-wide adoption.

How do I enforce immutability and error handling in JavaScript codebases?

To enforce immutability and error handling in JavaScript, apply universal coding standards that promote safe immutable data patterns, robust async error capturing, and consistent typing discipline to prevent runtime crashes and improve code quality.

Can I use these coding standards for Node.js API design and refactoring?

Yes, you can use these coding standards for Node.js API design and refactoring. They guide REST conventions, input validation, and proper error handling to ensure backend consistency, maintainability, and robust API architecture.

What is the best way to establish code review conventions for a JavaScript team?

The best way to establish code review conventions for a JavaScript team is to codify universal standards covering variable naming, typing discipline, testing, and documentation to ensure consistent, objective evaluations during project onboarding and reviews.

Do I need TypeScript to apply these React and Node.js best practices?

No, you do not need TypeScript to apply these best practices. The standards cover both JavaScript and TypeScript, enforcing type safety and robust patterns across React and Node.js environments to improve overall consistency.