antigravity-agents: Skill for Claude Code

.agents/skills/code-quality/SKILL.md

code-quality is a skill for Claude Code, Codex from rafaelghif/antigravity-agents. It costs 37 tokens per session (1,133 once invoked), scanned A, original, MIT.

A set of rules for writing, refactoring, and reviewing application code with an emphasis on small, reusable, maintainable solutions. Refactoring means improving code structure without changing what it does.

In plain words
What is it for?
Use it before adding code, when reusing existing helpers or components, during refactoring, and when reviewing application changes for maintainability.
Why use it?
It helps prevent duplicate logic, unnecessary dependencies, inconsistent project patterns, and fixes that only hide symptoms instead of addressing the shared cause.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is rafaelghif/antigravity-agents's own configuration. It tells Claude Code and Codex how to work on antigravity-agents 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 antigravity-agents configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rafaelghif/antigravity-agents. 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/rafaelghif/antigravity-agents/main/.agents/skills/code-quality/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rafaelghif/antigravity-agents

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/rafaelghif/antigravity-agents/code-quality/github.svg)](https://agentmods.dev/skills/rafaelghif/antigravity-agents/code-quality)
Your own site
<a href="https://agentmods.dev/skills/rafaelghif/antigravity-agents/code-quality"><img src="https://agentmods.dev/badge/skills/rafaelghif/antigravity-agents/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/rafaelghif/antigravity-agents/code-quality"><img src="https://agentmods.dev/badge/skills/rafaelghif/antigravity-agents/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,133 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.00037 $0.01133
Opus 5.5 $0.00015 $0.00453
Sonnet 5.5 $0.00007 $0.00227
Haiku 4.5 $0.00004 $0.00113

Measured 1mo ago against content hash 1916236bbdc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

.agents/skills/code-quality/SKILL.md · 95 lines

How it starts

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

Code Quality & Simplification Protocol

Role: Staff Software Engineer & Code Quality Auditor.

Overview & Trigger Conditions

Activate this skill when creating new modules, refactoring existing code, eliminating duplicates, fixing complex bugs, or reviewing pull requests for maintainability and architectural purity.

Trigger Scenarios & Keywords:

  • Code refactoring, code simplification, DRY deduplication, SOLID compliance, complexity reduction.
  • Keywords: code, refactor, clean, dry, solid, simplify, complexity, duplicate, duplication, flatten.

The Senior Engineering Ladder

Before writing or modifying code, stop at the first rung that holds:

  1. Does this need to exist? -> Skip it (YAGNI).
  2. Already in codebase? -> Reuse existing helper, hook, type, or component.
  3. Stdlib does it? -> Use standard library functions.
  4. Native platform feature? -> Prefer native HTML5/CSS/DB constraints over heavy external libraries.
  5. Existing dependency? -> Use installed libraries; never add dependencies for trivial tasks.
  6. Can it be one line? -> Keep it to one readable line.
  7. Only then: write the minimum readable code that works. Root-cause fix only: grep all callers and resolve issues at the shared root, never patch leaf symptoms.

Core Standards & Invariants

  1. DRY & Single Source of Truth (SSOT):

    • Absolutely NO duplicate logic. Re-use existing project utilities and abstractions.
    • Rule of Three: If logic repeats $\ge 3$ times, extract it to a shared helper or hook immediately.
    • Eliminate duplicated code blocks $\ge 6$ lines across the repository (python3 scripts/dry_guard.py --check).
  2. Code Simplification & Flattened Hierarchy:

    • Eliminate nested conditional pyramids (if { if { if ... } }).
    • Use early returns and guard clauses at the top of functions for immediate exit on error or boundary cases.
    • Banish premature abstraction: inline single-use factories, wrappers, and dead variables.
    • Behavioral invariance: simplification must never alter runtime return types or error contracts.

Read the full file on GitHub · 95 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. 1mo ago Changed 1916236bbdc2
  2. 2mo ago Changed dee2bd2e8f63
  3. 2mo ago Changed · +38 lines a3c6c4b314d6
  4. 2mo ago Changed · +11 lines · +10 tokens per session c1ecc0789c93
  5. 2mo ago First seen · 46 lines · 27 tokens per session scan A 3e784d451cfa

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository rafaelghif/antigravity-agents (5 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,133 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.

Related

code-quality compared with skills from other repositories

code-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-qualityrafaelghif/antigravity-agentsSkill51mo agoMITA37Claude Code, Codex
doubt-driven-developmentaddyosmani/agent-skillsSkill114k5d agoMITA96Claude Code
graph-it-livemagic5644/Graph-It-LiveSkill63yesterdayMITA160Claude Code
coordinate-recoverhogancv/coordinate-agentsSkill1067d agoMITA43Claude Code, Codex
coordinate-reviewhogancv/coordinate-agentsSkill1067d agoMITA36Claude Code, Codex
graph-it-refactormagic5644/Graph-It-LiveSkill63yesterdayMITA52Claude Code
pipeline-validatorrjmurillo/ai-agentsSkill49yesterdayMITA82Claude Code