Skills DirectoryCurated open-source Skills from GitHub

coding-standardscommit d29cf65SKILL.md · Code Standards

Coding Standards

Gives baseline cross-project coding conventions for naming, readability, immutability, error handling and code-smell review.

npx skills add affaan-m/ECC --skill coding-standards
Permissions
  • read-repo
  • write-files
  • shell
  • network
Compatible with
Claude Code, Codex, Cursor, Copilot, OpenCode
GitHub
294.3k
Source
Community · Affaan Mustafa
Status
Scan passed
License
MIT

Core rule

Always create new objects and arrays with the spread operator; never mutate directly.

Execution Phases

  1. Phase 01Check scope

    This skill is the shared floor; for React, backend architecture or API design, prefer the narrower dedicated skill.

  2. Phase 02Core principles

    Put readability first and follow KISS, DRY and YAGNI, avoiding over-engineering and premature optimisation.

  3. Phase 03TS/JS standards

    Use descriptive variable names and verb-noun function names, stay immutable, handle errors, parallelise with Promise.all, and avoid any.

  4. Phase 04Structure and tests

    Follow REST and a consistent response shape, validate input with zod, name files by convention, comment the why, and write AAA tests with descriptive names.

  5. Phase 05Detect code smells

    Look for functions over 50 lines, nesting 5+ levels deep and magic numbers; fix with smaller functions, early returns and named constants.

Permissions (summarised from SKILL.md)

CapabilityNeededDetails
File writesRequiredWrites or refactors project code to follow these conventions.
Command executionNot requiredA conventions reference; it does not call for running commands.
Network outboundNot requiredNo network access needed.

SKILL.md frontmatter (YAML)

SKILL.md frontmatter (YAML)commit d29cf65
---
name: coding-standards
description: Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns. Use when reviewing code quality or naming with no framework-specific skill that applies.
metadata:
  origin: ECC
---

Related skills

A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.