coding-standards

A repository guide for coding style, formatting, linting, command-line design, HTTP caching, and Git commit conventions. Linters check code for likely problems, while formatters apply consistent layout.

In plain words
What is it for?
Use it when writing, reviewing, formatting, or checking code, and when preparing conventional commit messages or synchronizing generated command help.
Why use it?
It keeps changes consistent with the repository and catches style or quality issues before review. The included scripts cover Python, shell, Markdown, Kotlin, JSON, and XML.

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/ithinkihaveacat/dotfiles/coding-standards
Any agent
npx skills add ithinkihaveacat/dotfiles --skill coding-standards
Clone the repo
git clone --depth 1 https://github.com/ithinkihaveacat/dotfiles

Made for: Claude Code, Codex.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00081 $0.01176
Opus 5 $0.00041 $0.00588
Sonnet 5 $0.00016 $0.00235
Haiku 4.5 $0.00008 $0.00118

Measured 2d ago against content hash f903a0024610, 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.

skills/coding-standards/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coding Standards

This skill provides coding guidelines, linters, and formatters for making changes across languages and domains in this repository.

Formatting Scripts

Helper scripts in scripts/ encapsulate repository-wide style rules and lint checks. References to scripts/... are relative to this skill directory. All scripts support formatting multiple files in place, or reading from stdin and writing to stdout when no arguments are provided.

  • scripts/python-format: Format and lint Python files using ruff (supports --check and recursive directory scanning).
  • scripts/shell-format: Format and lint shell scripts (POSIX/Bash) using shfmt and shellcheck (supports --check and recursive directory scanning; Fish scripts use fish_indent).
  • scripts/markdown-format: Format Markdown files using mdformat with GFM and frontmatter preservation (supports --check for drift detection).
  • scripts/command-index-sync: Refresh generated --help blocks in command-index.md files (marker comments; supports --check and --all).
  • scripts/kotlin-format: Format Kotlin files using ktfmt with kotlinlang style.
  • scripts/json-format: Format JSON files using jq.
  • scripts/xml-format: Format XML files using xmllint.

Always prefer the helper scripts in scripts/ over raw tool invocations to guarantee consistent repository formatting rules.

Core Standards & Guidelines

Markdown Quality

All Markdown files must be formatted and linted with scripts/markdown-format. Headings must use clean, unadorned ATX styles (## Heading) without numbers, manual bolding, or ALL CAPS. See references/markdown.md.

Python Development

All Python files must be linted and formatted with scripts/python-format. Follow type annotation conventions, structured CLI argument parsing with argparse, and error handling standards. See references/python.md.

Read the full file on GitHub · 116 lines

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 · 116 lines · 81 tokens per session scan A f903a0024610

Subscribe to this mod's changes

coding-standards is a skill published in the GitHub repository ithinkihaveacat/dotfiles (48 stars, last pushed 3d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,176 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aish-add-skills

Create new skills from documents, tutorials, or examples. Use when user wants to create a skill from learning materials or existing content.

AI-Shell-Team/aish · 32 tokens

diagnose_system_lag

Local Linux lag and performance diagnosis. Run read-only probes based on the user's symptoms to find CPU, memory, disk, or local network bottlenecks, then give safe advice. Never auto-remediate. Also matches Chinese requests such as 系统卡顿、机器好慢、内存不足、突然重启、OOM、磁盘很慢.

AI-Shell-Team/aish · 78 tokens

devops-platform-engineering

Platform engineering expert specializing in internal developer platforms, self-service infrastructure, Backstage service catalogs, GitOps with ArgoCD, and golden path templates. Use for building developer portals and platform-as-a-product.

AI-Shell-Team/aish · 47 tokens

dns-diagnose

Local DNS resolution troubleshooting with dig/resolvectl/whois. Investigate NXDOMAIN, wrong answers, records not taking effect, and resolver failures. Read-only; do not change DNS config. Also matches Chinese requests such as DNS 解析失败、域名解析不了、NXDOMAIN、解析不到.

AI-Shell-Team/aish · 66 tokens

devops-docker-patterns

Docker containerization expert specializing in multi-stage builds, image optimization, Docker Compose patterns, and production container security. Use for Dockerfile optimization, compose configurations, and container best practices.

AI-Shell-Team/aish · 43 tokens

network-path-diagnose

Diagnose network path quality from this host to a target using ping/mtr/curl. Investigate packet loss, high latency, jitter, and reachability failures; interpret hop results and suggest follow-up tests. Do not change network config. Also matches Chinese requests such as 网络丢包、延迟高、链路质量、ping 不通、网络抖动.

AI-Shell-Team/aish · 82 tokens