claude-config-studio: Skill for Claude Code

.claude/skills/coding-standards/SKILL.md

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/.

This is znlnzi/claude-config-studio's own configuration. It tells Claude Code how to work on claude-config-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-config-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to znlnzi/claude-config-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/znlnzi/claude-config-studio/main/.claude/skills/coding-standards/SKILL.md
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coding-standards

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00005 $0.00126
Sonnet 5.5 $0.00003 $0.00063
Haiku 4.5 $0.00001 $0.00032

Measured 2mo ago against content hash e9d86b2aa1ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 8mo ago), licensed MIT. It adds 13 tokens to every session and 315 once invoked, about $0.0001 per session on Opus 5.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.