coding-standards

coding-standards is a skill for Claude Code from znlnzi/claude-config-studio. It costs 13 tokens per session (315 once invoked), scanned A, original, MIT.

A general guide to programming best practices and coding standards.

In plain words
What is it for?
Reviewing code structure, naming, immutability, function and file size, input validation, configuration, nesting, and error handling.
Why use it?
It provides rules for organizing files and functions, validating input, handling errors, and keeping code readable and maintainable.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/coding-standards.svg)](https://agentmods.dev/skills/znlnzi/claude-config-studio/coding-standards)
Your own site
<a href="https://agentmods.dev/skills/znlnzi/claude-config-studio/coding-standards"><img src="https://agentmods.dev/badge/skills/znlnzi/claude-config-studio/coding-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 315 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.1 $0.00013 $0.00315
Opus 5 $0.00006 $0.00158
Sonnet 5 $0.00003 $0.00063
Haiku 4.5 $0.00001 $0.00032

Measured 5d ago against content hash e9d86b2aa1ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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.

.claude/skills/coding-standards/SKILL.md · 46 lines

What it actually says

编码标准技能

通用原则

不可变性

  • 始终创建新对象,不改变现有对象
  • 使用 const/final/val 声明不变量
  • 防止隐藏的副作用

文件组织

  • 每个文件 200-400 行,最大 800 行
  • 按功能分组,不按文件类型
  • 一个文件一个主要职责

函数设计

  • 每个函数 < 50 行
  • 单一职责
  • 有意义的命名(动词+名词)
  • 参数不超过 4 个

错误处理

  • 每个层级实施错误管理
  • UI 层提供用户友好消息
  • 服务端记录详细上下文
  • 绝不默默吞掉错误

输入验证

  • 在系统入口点验证所有外部数据
  • 使用基于模式的验证(Zod、Pydantic)
  • 快速失败并提供描述性反馈

完成前检查清单

  • 代码可读性和命名质量
  • 函数 < 50 行
  • 文件 < 800 行
  • 嵌套 ≤ 4 层
  • 健壮的错误处理
  • 无硬编码配置值
  • 不可变模式一致应用
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. 5d ago First seen · 46 lines · 13 tokens per session scan A e9d86b2aa1ac

Subscribe to this mod's changes

coding-standards is a skill published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 315 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

specification-writing

Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

golden-rss

Use when testing the rss golden build.

yusufkaraaslan/Skill_Seekers · 12 tokens

overleaf-sync

Two-way sync between a local paper directory and an Overleaf project, so ARIS audit/edit workflows stay on the local copy while collaborators edit in the Overleaf web UI. Use when user says "同步 overleaf", "overleaf sync", "推送到 overleaf", "connect overleaf", "Overleaf 桥接", "pull overleaf", "push overleaf", or wants to…

wanshuiyin/Auto-claude-code-research-in-sleep · 97 tokens

omh-code-review

This is a Hermes-native code-review workflow skill.

rlaope/oh-my-hermes · 46 tokens