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.
curl -O https://raw.githubusercontent.com/rafaelghif/antigravity-agents/main/.agents/skills/code-quality/SKILL.mdgit clone --depth 1 https://github.com/rafaelghif/antigravity-agentsWrote 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.
[](https://agentmods.dev/skills/rafaelghif/antigravity-agents/code-quality)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- Does this need to exist? -> Skip it (YAGNI).
- Already in codebase? -> Reuse existing helper, hook, type, or component.
- Stdlib does it? -> Use standard library functions.
- Native platform feature? -> Prefer native HTML5/CSS/DB constraints over heavy external libraries.
- Existing dependency? -> Use installed libraries; never add dependencies for trivial tasks.
- Can it be one line? -> Keep it to one readable line.
- 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
-
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).
-
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.
- Eliminate nested conditional pyramids (
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.
- 1mo ago Changed 1916236bbdc2
- 2mo ago Changed dee2bd2e8f63
- 2mo ago Changed · +38 lines a3c6c4b314d6
- 2mo ago Changed · +11 lines · +10 tokens per session c1ecc0789c93
- 2mo ago First seen · 46 lines · 27 tokens per session scan A 3e784d451cfa
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.
code-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-qualityrafaelghif/antigravity-agents | Skill | 5 | 1mo ago | MIT | A | 37 | Claude Code, Codex |
| doubt-driven-developmentaddyosmani/agent-skills | Skill | 114k | 5d ago | MIT | A | 96 | Claude Code |
| graph-it-livemagic5644/Graph-It-Live | Skill | 63 | yesterday | MIT | A | 160 | Claude Code |
| coordinate-recoverhogancv/coordinate-agents | Skill | 106 | 7d ago | MIT | A | 43 | Claude Code, Codex |
| coordinate-reviewhogancv/coordinate-agents | Skill | 106 | 7d ago | MIT | A | 36 | Claude Code, Codex |
| graph-it-refactormagic5644/Graph-It-Live | Skill | 63 | yesterday | MIT | A | 52 | Claude Code |
| pipeline-validatorrjmurillo/ai-agents | Skill | 49 | yesterday | MIT | A | 82 | Claude Code |