clean-code-standards

clean-code-standards is a skill for Claude Code from btachinardi/church. It costs 34 tokens per session (1,095 once invoked), scanned A, original, MIT.

A set of code-quality rules covering type safety, Git practices, architecture boundaries, testing, dead-code removal, and naming. It is used by agents when reviewing or refactoring code.

In plain words
What is it for?
Use it during code reviews, quality checks, and refactoring work where these clean-code rules should guide decisions.
Why use it?
It provides concrete standards for judging code and planning changes, such as dependency direction, test expectations, and clearer names.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the church plugin — 1 skill, 14 commands, 14 agents shipped together

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

Made for: Claude Code.

Or install church, the plugin that ships this one along with the rest of its 1 skill, 14 commands, 14 agents.

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 clean-code-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/btachinardi/church/clean-code-standards.svg)](https://agentmods.dev/skills/btachinardi/church/clean-code-standards)
Your own site
<a href="https://agentmods.dev/skills/btachinardi/church/clean-code-standards"><img src="https://agentmods.dev/badge/skills/btachinardi/church/clean-code-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 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.00034 $0.01095
Opus 5 $0.00017 $0.00548
Sonnet 5 $0.00007 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 6d ago against content hash 3d30466e0871, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clean-code-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 6d 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/clean-code-standards/SKILL.md · 120 lines

How it starts

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

Clean Code Standards

This skill provides the foundational principles enforced by the Church of Clean Code purist agents.

The Ten Pillars of Clean Code

1. Type Safety

  • No any types - use unknown with guards
  • No type assertions (as) - use runtime validation
  • Exhaustive switch statements with never checks
  • Branded types for domain safety

2. Git Hygiene

  • Conventional Commits format required
  • Atomic commits (one logical change per commit)
  • No WIP commits on main branches
  • Clean worktree at session end

3. Architecture Boundaries

  • Domain layer depends on NOTHING
  • Dependencies flow downward only
  • No circular dependencies
  • Repository interfaces in domain, implementations in infrastructure

4. Test Coverage

  • Domain: 90% coverage minimum
  • Application: 80% coverage minimum
  • All entities require property tests (fast-check)
  • No weak assertions (toBeTruthy without context)

5. Dead Code Elimination

  • Zero unused exports
  • Zero orphaned files
  • No commented-out code (git remembers)
  • TODOs older than 3 months must be actioned or deleted

6. Naming Clarity

  • File format: [name].[component-type].ts
  • Booleans: is/has/should/can/will/did prefixes
  • No generic names: data, result, temp, info
  • Collections plural, items singular

7. Size Limits

  • Components: max 350 lines (critical at 500)
  • Functions: max 40 lines (suspicious), 80 lines (condemned)
  • Nesting: max 4 levels
  • No god classes

8. Secret Security

  • Zero secrets in code or git history
  • Environment variables for all credentials
  • .gitignore must cover all secret patterns
  • Rotation required if ever committed

9. Dependency Health

  • Zero known vulnerabilities
  • No packages >2 major versions behind
  • No unused dependencies
  • devDependencies vs dependencies properly separated

10. Observability

  • No empty catch blocks
  • Structured logging with correlation IDs
  • All endpoints traced
  • Health checks for all dependencies

11. Accessibility (Universal Readability)

  • All images have alt text (descriptive or null)
  • Text contrast: 4.5:1 minimum (3:1 for large text)
  • No information conveyed by color alone
  • All interactive elements keyboard accessible
  • Focus indicators visible (3:1 contrast)
  • ARIA used correctly (or native HTML preferred)
  • No keyboard traps

Read the full file on GitHub · 120 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. 6d ago First seen · 120 lines · 34 tokens per session scan A 3d30466e0871

Subscribe to this mod's changes

clean-code-standards is a skill published in the GitHub repository btachinardi/church (58 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 1,095 once invoked, about $0.0002 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens