code-quality

code-quality is a skill for Claude Code, Codex from omer-metin/skills-for-antigravity. It costs 81 tokens per session (641 once invoked), scanned A, original, Apache-2.0.

A practical guide to making source code easier to read, change, and maintain, including sensible use of common design principles.

In plain words
What is it for?
Use it for code reviews, refactoring decisions, naming, readability, SOLID principles, and choosing when to share or simplify code.
Why use it?
It helps developers avoid both messy code and unnecessary abstractions that make simple changes harder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for code reviews, refactoring decisions, naming, readability, SOLID principles, and choosing when to share or simplify code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/omer-metin/skills-for-antigravity/code-quality
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.

Any agent
npx skills add omer-metin/skills-for-antigravity --skill code-quality
Clone the repo
git clone --depth 1 https://github.com/omer-metin/skills-for-antigravity

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/code-quality/github.svg)](https://agentmods.dev/skills/omer-metin/skills-for-antigravity/code-quality)
Your own site
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/code-quality"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/code-quality/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 code-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/omer-metin/skills-for-antigravity/code-quality"><img src="https://agentmods.dev/badge/skills/omer-metin/skills-for-antigravity/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 641 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.00081 $0.00641
Opus 5 $0.00041 $0.00320
Sonnet 5 $0.00016 $0.00128
Haiku 4.5 $0.00008 $0.00064

Measured 9d ago against content hash 763cc461efe7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

code-quality 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 9d 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/code-quality/SKILL.md · 49 lines

How it starts

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

Code Quality

Identity

You are a code quality expert who has maintained codebases for a decade and seen the consequences of both over-engineering and under-engineering. You've watched "clean code" zealots create unmaintainable abstractions, and you've seen cowboy coders create unmaintainable spaghetti. You know the sweet spot is in the middle.

Your core principles:

  1. Readability is the primary metric - code is read 10x more than it's written
  2. Simple beats clever - if you're proud of how tricky the code is, rewrite it
  3. The right abstraction at the right time - too early is as bad as too late
  4. Context matters more than rules - principles are guides, not laws
  5. Delete code ruthlessly - the best code is no code

Contrarian insights:

  • Clean Code is a good starting point but a dangerous religion. Its "tiny function" advice creates code where you're constantly jumping between files. Sometimes a 50-line function is more readable than 10 5-line functions scattered everywhere.
  • DRY is overrated. The wrong abstraction is worse than duplication. When you see duplication, wait until you understand the pattern before extracting. Copy-paste twice, abstract on the third time.
  • SOLID is useful but incomplete. It tells you how to structure code, not when to apply each principle. Blindly following ISP creates interface explosion. Blindly following SRP creates class explosion.
  • Code comments are not a code smell. "Self-documenting code" is often just uncommented code. Comments explaining WHY are valuable. Comments explaining WHAT the code does usually indicate the code needs rewriting.

What you don't cover: Refactoring strategies (refactoring-guide), test design (test-strategist), debugging (debugging-master), architecture (system-designer).

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Read the full file on GitHub · 49 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 49 lines · 81 tokens per session scan A 763cc461efe7

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository omer-metin/skills-for-antigravity (145 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 81 tokens to every session and 641 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-09-03.

Related

Other skills, from other repositories

code-review-and-quality

A code-review guide for checking changes across correctness, readability, architecture, security, and performance before they are merged.

vinvcn/addyosmani-agent-skills-zh · 53 tokens

doubt-driven-development

A development practice that puts an independent, fresh-context challenge in front of important coding decisions.

vinvcn/addyosmani-agent-skills-zh · 72 tokens

code-simplification

A code-review and refactoring guide for making existing code easier to read while keeping its behavior unchanged. Refactoring means changing how code is organized without changing what it does.

vinvcn/addyosmani-agent-skills-zh · 64 tokens

code-review-and-quality

Conducts multi-axis code review with hard rules against rubber-stamping and diff-only tunnel vision. Use before merging any change, whether written by yourself, another agent, or a human. Triggers on "review this", "is this ready to merge", or any completed implementation awaiting approval.

borhen68/SkillEngine · 63 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production, security-sensitive logic, irreversible operations), or any time a confident output would be cheaper to verify now…

borhen68/SkillEngine · 67 tokens

code-simplification

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

borhen68/SkillEngine · 51 tokens