skill-code-standards

Applies reusable code-quality standards for types, naming, error handling, and dependencies across languages.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/longdang193/project-OS-starter --skill skill-code-standards-longdang193
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: skill-code-standards
Source: https://github.com/longdang193/project-OS-starter/tree/main/generated_agents/claude/skills/skill-code-standards
Command: npx skills add https://github.com/longdang193/project-OS-starter --skill skill-code-standards-longdang193

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing or modifying source code without explicit standards leads to inconsistent naming, weak typing, swallowed errors, and unnecessary dependencies. This Skill provides language-agnostic implementation judgment that complements formatters, linters, compilers, and tests rather than replacing them. ## Core Features & Use Cases - Standards Method: A nine-step method covering existing contract inspection, type and data safety, naming, function boundaries, constants, error handling, comments, dependency selection, and verification. - Ownership Boundaries: Clear separation of responsibility between rules, formatters, compilers, schemas, tests, and this Skill's judgment layer, with repository conventions taking precedence. - Review Checklist & Guardrails: A concrete checklist plus guardrails that route frontend, backend, performance, and integration work to the appropriate companion rules and skills. - Use Case: When refactoring a shared module, use this Skill to trace callers, preserve repository conventions, model data shapes precisely, handle errors with preserved causes, and run the configured formatter, linter, and targeted tests before completion. ## Quick Start Review the attached code changes against the code standards skill and fix any violations in naming, error handling, or type safety.

Frequently Asked Questions about skill-code-standards

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

FAQPage Schema
How do I enforce consistent code standards across multiple programming languages?▼

Apply a language-agnostic standards method covering types, naming, error handling, and dependencies while letting each language's formatter, linter, and compiler own hard invariants. Inspect existing repository conventions first and never invent a new standard when one already exists.

What is the best way to handle errors and resource cleanup in code?▼

Never swallow errors; catch specific failures only to add context, translate at boundaries, retry safely, or clean up. Preserve the original cause when wrapping, use native cleanup constructs for files, locks, and connections, and choose one ownership boundary for logging rather than logging at every layer.

When should I add a new dependency to a project?▼

Add a dependency only after exhausting simpler options: no new mechanism, existing repository helpers, standard library, native platform features, then already-installed dependencies. A new dependency is justified only when a maintained capability materially beats a small local implementation.

Does this replace linters, formatters, and type checkers?▼

No. Formatters and linters own mechanical style, compilers and type checkers own executable type constraints, and tests own behavioral proof. This Skill owns only the implementation judgment between those controls and uses the project's configured tooling.

When should I skip applying general code standards?▼

Skip when a formatter, generated-code owner, or narrow mechanical edit fully determines the result. Also avoid applying one language's naming convention everywhere or enforcing fixed function-length limits without evidence.