coding-standards

Enforces baseline naming, immutability, and readability conventions across TypeScript and JavaScript projects.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/pjherron/hypoc --skill coding-standards-pjherron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/pjherron/hypoc/tree/main/hypoc/skills/coding-standards
Command: npx skills add https://github.com/pjherron/hypoc --skill coding-standards-pjherron

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Inconsistent naming, mutation bugs, and unreadable code slow down reviews and onboarding. This Skill provides a shared baseline of coding conventions so every project starts from the same quality floor without re-deciding style rules. ## Core Features & Use Cases - Naming and readability rules: Enforces descriptive variable names, verb-noun function naming, and self-documenting code over comments. - Immutability and error handling: Mandates spread-based updates, typed interfaces instead of any, and comprehensive try/catch patterns. - Code smell detection: Flags long functions, deep nesting, and magic numbers with concrete before/after examples. - Use Case: When reviewing a pull request or scaffolding a new module, activate this Skill to check the code against KISS, DRY, and YAGNI principles and standard TypeScript/React conventions. ## Quick Start Review this TypeScript module against the baseline coding standards and flag any naming, immutability, or error-handling violations.

Frequently Asked Questions about coding-standards

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

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

Apply a shared baseline of conventions covering descriptive naming, immutability via spread operators, typed interfaces instead of any, and structured error handling. Pair the conventions with linting and type-checking rules so violations surface during review.

What are the best practices for naming functions and variables in JavaScript?▼

Use descriptive names that reveal intent, such as marketSearchQuery instead of q. Functions should follow a verb-noun pattern like fetchMarketData or calculateSimilarity, and booleans should read as predicates like isUserAuthenticated.

When should I use this skill instead of framework-specific pattern guides?▼

Use it for cross-cutting concerns like naming, immutability, KISS, DRY, and code smell review. For React composition, hooks architecture, or backend API layering, defer to the narrower frontend-patterns or backend-patterns skills instead.

Why is direct state mutation considered bad in React?▼

Direct mutation like items.push or user.name = value breaks React's change detection and can cause stale renders. Always create new objects or arrays with the spread operator so state updates trigger reliable re-renders.

How do I avoid deep nesting and long functions in my code?▼

Replace nested conditionals with early returns that guard each precondition, and split functions over roughly 50 lines into smaller single-purpose helpers. Replace magic numbers with named constants like MAX_RETRIES to clarify intent.