coding-standards

Enforce engineering standards for code readability, robustness, maintainability, and type safety.

4|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/rbaumier/skills --skill coding-standards-rbaumier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/rbaumier/skills/tree/main/coding-standards
Command: npx skills add https://github.com/rbaumier/skills --skill coding-standards-rbaumier

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce a single, high-signal engineering standard across codebases so reviewers and authors produce readable, robust, maintainable, and type-safe code. The skill collapses many recurring review complaints (ambiguous names, brittle control flow, hidden side-effects, silent failures, and leaky DB/entity shapes) into concrete, automatable checks and actionable guidance.

Core Features & Use Cases

  • Comments & Why — teach reviewers to write explanatory comments that document consequences, invariants, and limits rather than paraphrase code.
  • Naming & Semantics — prefer intentful names, symmetry, explicit units, and ban vague verbs and single-letter identifiers.
  • Control Flow & Functions — guard clauses, no boolean flags, Promise.all for independent async ops, one level of abstraction per function, and factory DI.
  • Data, Types & Errors — immutable data, strict typing, bound every input at the barricade, Result/Option patterns over exceptions, and structured API errors with DTO mapping.
  • File Structure & Architecture — workflow-first files, locality of behavior, vertical feature slices, DI factories, and crosscutting via wrappers (withLogging/withTracing).
  • Project Hygiene — externalize config, enforce lint/tests/CI early, remove dead code, and make invalid states unrepresentable.
  • Use Cases: run on PR reviews, refactors, architecture proposals, and as a checklist for writing new features or onboarding codebases.

Quick Start

Ask the assistant to review a file or pull request for adherence to these coding standards and return a prioritized list of concrete fixes for naming, control flow, functions, types, error handling, comments, file structure, architecture, and hygiene.

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 for readability and maintainability during a code review?

Apply guard clauses to exit early on invalid conditions, use factory dependency injection for explicit wiring, map API responses via DTOs, and enforce strict typing with Result patterns for robust, maintainable code.

What is the best way to handle errors and type safety in TypeScript architecture?

The best way to handle errors and type safety is using Result-based error handling over exceptions, bounding every input at the barricade, mapping external data via DTOs, and enforcing strict typing to make invalid states unrepresentable.

How do I structure files and components for vertical feature slices and locality of behavior?

Structure files workflow-first, organize code into vertical feature slices, apply factory dependency injection, and handle crosscutting concerns via wrappers like withLogging to maintain strict locality of behavior and clear component boundaries.

Why should I use Result-based error handling instead of throwing exceptions?

Use Result-based error handling instead of exceptions to avoid silent failures, ensure structured API errors, and maintain explicit control flow that makes invalid states unrepresentable and code easier to review.

Can I use these coding standards for refactoring and architecture decisions?

Yes, you can apply these coding standards to refactoring and architecture decisions, enforcing explicit naming, input bounding at barricades, timeouts on I/O, parallelized independent async calls, and clear component boundaries across repositories.