coding-standards

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

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/JohnRebellion/.claude-public --skill coding-standards-johnrebellion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/JohnRebellion/.claude-public/tree/main/claude/skills/coding-standards
Command: npx skills add https://github.com/JohnRebellion/.claude-public --skill coding-standards-johnrebellion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Inconsistent code style, weak error handling, and anti-patterns slow down reviews and create maintenance debt. This Skill provides a single reference of universal coding standards so every module follows the same conventions for naming, structure, typing, and testing. ## Core Features & Use Cases - Language Standards: Concrete do/don't examples for TypeScript and JavaScript covering naming, immutability, error handling, async patterns, and type safety. - React & API Guidance: Patterns for typed components, custom hooks, state updates, REST endpoint design, response formats, and Zod-based input validation. - Quality Detection: Checklists for code smells such as long functions, deep nesting, and magic numbers, plus testing standards using the AAA pattern. - Use Case: When reviewing a pull request or scaffolding a new Next.js module, activate this Skill to verify naming conventions, immutability, validation schemas, and file organization before merging. ## Quick Start Review this TypeScript React component against the coding standards and point out any violations with corrected code.

Frequently Asked Questions about coding-standards

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

FAQPage Schema
How do I enforce coding standards in a TypeScript project?▼

Apply consistent rules for naming, immutability, error handling, and type safety across all files. Use descriptive verb-noun function names, spread operators instead of mutation, try-catch around async calls, and explicit interfaces instead of the any type.

What are React best practices for components and hooks?▼

Write functional components with typed props interfaces and default parameter values. Extract reusable logic into custom hooks like useDebounce, use functional state updates to avoid stale closures, and memoize expensive computations with useMemo and useCallback.

How should I validate API request bodies in Node.js?▼

Define a Zod schema describing the expected shape, then parse the request body inside the route handler. Return a 400 response with a consistent error structure containing success, error, and validation details when parsing fails.

Does this apply to frameworks other than Next.js and React?▼

The core principles like KISS, DRY, YAGNI, immutability, and error handling apply to any JavaScript or TypeScript project. React hooks, Next.js App Router structure, and Supabase query examples are framework-specific sections.

What code smells should I watch for during review?▼

Watch for functions longer than 50 lines, nesting deeper than a few levels, and unexplained magic numbers. Fix them by splitting logic into smaller functions, using early returns to flatten conditionals, and replacing literals with named constants.