coding-standards

A checklist of coding conventions and practices for Python and TypeScript, covering names, code structure, error handling, and documentation. Python and TypeScript are programming languages.

In plain words
What is it for?
Use it when writing or reviewing Python or TypeScript code, including naming, function size, imports, error messages, cleanup, public API documentation, and README instructions.
Why use it?
It gives developers and reviewers shared rules for code that is easier to understand, maintain, and troubleshoot.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hardness1020/leeway/coding-standards
Any agent
npx skills add hardness1020/Leeway --skill coding-standards
Clone the repo
git clone --depth 1 https://github.com/hardness1020/Leeway

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 290 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.00290
Opus 5 $0.00026 $0.00145
Sonnet 5 $0.00010 $0.00058
Haiku 4.5 $0.00005 $0.00029

Measured 2d ago against content hash 917fbde0edca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-standards scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to qualify-leads — 134 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.leeway/skills/coding-standards/SKILL.md · 33 lines

What it actually says

Coding Standards

Check code against these standards when reviewing or writing.

Naming

  • Use clear, descriptive names for variables and functions
  • Prefix booleans with is_, has_, can_, should_
  • Use UPPER_SNAKE_CASE for constants
  • Use PascalCase for classes, snake_case (Python) or camelCase (JS/TS) for functions

Structure

  • Keep functions to one responsibility, under 50 lines
  • Limit nesting to 3 levels of indentation
  • Group related code; separate unrelated code
  • Organize imports: stdlib, third-party, local

Error Handling

  • Handle errors at the appropriate level — never swallow them
  • Write descriptive, actionable error messages
  • Clean up resources properly (context managers, try/finally)

Documentation

  • Add docstrings/JSDoc to public APIs
  • Use inline comments to explain why, not what
  • Keep README up to date with setup instructions

For language-specific conventions, see references/python.md or references/typescript.md.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 33 lines · 51 tokens per session scan A 917fbde0edca

Subscribe to this mod's changes

coding-standards is a skill published in the GitHub repository hardness1020/Leeway (113 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 290 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to qualify-leads, differing in 134 lines, and is treated as a copy.