coding-standards

Enforces universal coding standards and anti-pattern bans across TypeScript and other languages.

1|Updated Jul 18, 2025
One-click install
npx skills add https://github.com/AdelysAlberto/md-configs-and-agents --skill coding-standards-adelysalberto
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/AdelysAlberto/md-configs-and-agents/tree/main/agents-hermes/skills/coding-standards
Command: npx skills add https://github.com/AdelysAlberto/md-configs-and-agents --skill coding-standards-adelysalberto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Inconsistent code quality, hidden anti-patterns like memory leaks, N+1 queries, and silent error swallowing slip into codebases and cause production failures that are hard to diagnose. ## Core Features & Use Cases - Zero-Tolerance Anti-Pattern Rules: Bans ten critical anti-patterns including unbounded in-memory state, secrets in URLs, wildcard subscriptions, non-idempotent mutations, and silent error swallowing, each with bad/good code examples. - Strict Functional TypeScript Standards: Prohibits classes, any, enums, and React.FC, mandating pure functions, union literal types, and lookup dictionaries over switch statements. - Pre-Delivery Verification Gate: Requires running Biome checks, type checking, and tests before any task is marked complete. - Use Case: When writing a WebSocket handler, the skill enforces schema validation on ingress, scoped subscriptions, and sender deduplication so the implementation avoids self-echo loops and cross-tenant leaks. ## Quick Start Review my new TypeScript service code against the coding standards and flag any anti-patterns before I commit it.

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 a rule set covering anti-pattern bans, strict typing, and a pre-delivery gate running Biome checks, type checking, and tests. This skill encodes those rules with concrete bad/good examples so violations are caught during code review or generation.

What are common anti-patterns to avoid in backend services?▼

Key anti-patterns include unbounded in-memory maps without TTL, secrets in URL query parameters, non-idempotent write endpoints, silent error swallowing, N+1 query loops, and wildcard event subscriptions. Each causes memory leaks, credential leaks, duplicate writes, or message storms.

How do I prevent duplicate processing in pub/sub systems?▼

Include a sender ID in message envelopes and filter out self-emitted events, or segregate ingest channels from broadcast channels. Publishers must never process their own events without explicit loopback deduplication.

Does this standard work with languages other than TypeScript?▼

Yes, the anti-pattern invariants apply universally across languages, frameworks, and transport protocols including REST, WebSockets, Pub/Sub, and gRPC. Language-specific rules like zero `any` and union literals target TypeScript specifically.

Why should I avoid classes and use functional programming?▼

The standard bans `class`, `this`, and `constructor` in favor of pure functions, closures, and factory functions. This reduces hidden state, simplifies testing, and makes dependencies explicit through function parameters rather than implicit instance state.