← ClaudeAtlas

coding-standardslisted

Cross-language coding conventions — naming, type safety, error handling, async, imports, SQL formatting, git commit format, complexity/size limits, security, and a pre-PR review checklist for Python, TypeScript/JavaScript, Rust, and Go. Use when writing or reviewing code, setting a project's style baseline, answering "what's the convention for X", enforcing types/docstrings, formatting a SQL query or commit message, or running the pre-PR checklist. Language deep dives and tool configs live in reference/.
nxtg-ai/forge-plugin · ★ 5 · Code & Development · score 76
Install: claude install-skill nxtg-ai/forge-plugin
# Coding Standards A language-agnostic baseline for consistent, readable, secure code. This skill ships inside a plugin you install in *your own* project — Python, TypeScript/JavaScript, Rust, Go, or anything else. Apply the principles universally; use the language section that matches the file at hand. The numeric thresholds here are **recommended defaults** — tune them to your project and enforce them with your own linter/CI, not from memory. ## Core Principles (Universal) 1. **Readability counts** — code is read far more often than written. 2. **Explicit over implicit** — clear intent beats clever tricks. 3. **Simple over complex** — favor the straightforward solution. 4. **Consistency matters** — follow the existing patterns in the codebase you're in. 5. **Single responsibility** — one module/class/function does one thing well. --- ## Naming Conventions (by language) | Element | Python | TypeScript/JS | Rust | Go | |---------|--------|---------------|------|-----| | Files/modules | `snake_case.py` | `kebab-case.ts` / `camelCase.ts` | `snake_case.rs` | `snake_case.go` | | Types/Classes | `PascalCase` | `PascalCase` | `PascalCase` | `PascalCase` | | Functions | `snake_case` | `camelCase` | `snake_case` | `camelCase` (unexported) / `PascalCase` (exported) | | Variables | `snake_case` | `camelCase` | `snake_case` | `camelCase` | | Constants | `SCREAMING_SNAKE_CASE` | `SCREAMING_SNAKE_CASE` | `SCREAMING_SNAKE_CASE` | `PascalCase` / `camelCase` | | Private/internal | `_le