beautiful-code

beautiful-code is a skill for Claude Code, Codex from hackermanishackerman/claude-skills-vault. It costs 51 tokens per session (1,736 once invoked), scanned A, original, MIT.

Code-quality guidance for TypeScript, Python, Go, and Rust projects. It sets standards for typing, security, performance, complexity, and maintainability, with different levels of seriousness for findings.

In plain words
What is it for?
Use it when writing, reviewing, refactoring, or setting up checks for code in these four programming languages.
Why use it?
It gives reviews and refactoring a consistent way to catch bugs, security problems, unclear code, and excessive complexity.

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/hackermanishackerman/claude-skills-vault/beautiful-code
Any agent
npx skills add hackermanishackerman/claude-skills-vault --skill beautiful-code
Clone the repo
git clone --depth 1 https://github.com/hackermanishackerman/claude-skills-vault

Made for: Claude Code, Codex.

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 beautiful-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/beautiful-code.svg)](https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/beautiful-code)
Your own site
<a href="https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/beautiful-code"><img src="https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/beautiful-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 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.00051 $0.01736
Opus 5 $0.00026 $0.00868
Sonnet 5 $0.00010 $0.00347
Haiku 4.5 $0.00005 $0.00174

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

Security

Grade A, and why

beautiful-code 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check_all.sh, scripts/check_changed.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/beautiful-code/SKILL.md · 247 lines

How it starts

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

Beautiful Code Standards

Enforce production-grade code quality across TypeScript, Python, Go, and Rust.

When to Use

  • Writing or reviewing code in TS/Python/Go/Rust
  • Setting up linting/CI for a project
  • Code quality audit or refactoring
  • User requests code review or style check

Quick Reference

Language Type Safety Linter Complexity
TypeScript strict, no any ESLint + tsx-eslint max 10
Python mypy strict, PEP 484 Ruff + mypy max 10
Go staticcheck golangci-lint max 10
Rust clippy pedantic clippy + cargo-audit -

Severity Levels

Level Description Action
Critical Security vulnerabilities Block merge
Error Bugs, type violations, any Block merge
Warning Code smells, complexity Must address
Style Formatting, naming Auto-fix

Core Rules (All Languages)

Type Safety

  • No implicit any / untyped functions
  • No type assertions without guards
  • Explicit return types on public APIs

Security

  • No hardcoded secrets (use gitleaks)
  • No eval/pickle/unsafe deserialization
  • Parameterized queries only
  • SCA scanning (npm audit/pip-audit/govulncheck/cargo-audit)

Complexity

  • Max cyclomatic complexity: 10
  • Max function lines: 50
  • Max nesting depth: 3
  • Max parameters: 5

Error Handling

  • No ignored errors (Go: no _ for err)
  • No bare except (Python)
  • No unwrap in prod (Rust)
  • Wrap errors with context

Language-Specific Standards

TypeScript

See: references/typescript.md

// CRITICAL: Never use any
const bad: any = data;           // Error
const good: unknown = data;      // OK

// ERROR: No type assertions
const bad = data as User;        // Error
const good = isUser(data) ? data : null;  // OK

// ERROR: Non-null assertions
const bad = user!.name;          // Error
const good = user?.name ?? '';   // OK

Read the full file on GitHub · 247 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. 4d ago First seen · 247 lines · 51 tokens per session scan A fed9397bf7c3

Subscribe to this mod's changes

beautiful-code is a skill published in the GitHub repository hackermanishackerman/claude-skills-vault (2 stars, last pushed 6d ago), licensed MIT. It adds 51 tokens to every session and 1,736 once invoked, about $0.0003 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.