awesome-code-standards

Solid

Universal coding standards: naming, structure, immutability, error handling, and type-safety patterns for consistent code. Use when starting a project or module, refactoring to team conventions, setting up lint/format rules, onboarding, or when the user says 'coding standards', 'naming conventions', 'code style'. Discovers and follows the project's own conventions first; these rules fill the gaps.

Code & Development 2 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Coding Standards Apply consistent naming, structure, and patterns so code is readable and maintainable across the team. ## When to Activate - Starting a new project or module - Refactoring to match team conventions - Setting up or updating lint/format/type-check rules - Reviewing code for consistency - Onboarding: documenting or applying coding conventions - Enforcing naming, formatting, or structural consistency ## Core Principles 1. **Readability first** — Code is read more than written; clear names and structure beat clever tricks. 2. **KISS** — Simplest solution that works; avoid over-engineering and premature optimization. 3. **DRY** — Extract common logic into functions/modules; avoid copy-paste. 4. **YAGNI** — Don't build for speculative future needs; add complexity when required. 5. **Immutability** — Prefer const; avoid mutating arguments or shared state; use spread/copy where needed. ## Work Process (when applying standards) 1. **Discover project conventions** — Scan existing code: naming (camelCase vs snake_case), file layout, import style, test patterns. Check for CONTRIBUTING, .eslintrc, .prettierrc, or editorconfig. 2. **Identify violations** — Compare changed or new code against those conventions and the rules below. 3. **Suggest concrete fixes** — Rename symbols, extract functions, add types, fix formatting. Prefer one logical edit per suggestion. 4. **Document exceptions** — If the project has an exception (e.g. "use any here for legacy"), note it ra...

Details

Author
khasky
Repository
khasky/awesome-agent-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category