gac: Skill for Claude Code

.skills/code-quality/SKILL.md

code-quality is a skill for Claude Code, Codex from thomwebb/gac. It costs 38 tokens per session (635 once invoked), scanned A, original, MIT.

A project-specific guide for checking and maintaining code quality. It covers automatic code formatting, linting for likely mistakes, type checking with mypy, and the project's naming and documentation rules.

In plain words
What is it for?
Use it to format code, run the full linting checks, check Python types, review code style, or follow the project's Makefile quality commands.
Why use it?
It prevents relying on a single checker when the project's standard uses several tools. It also gives consistent commands for preparing code and checking it before changes are committed.

Skill for Claude CodeCodex

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

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

View source ↗ thomwebb/gac
Reuse

Borrowing it

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

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/thomwebb/gac/code-quality/github.svg)](https://agentmods.dev/skills/thomwebb/gac/code-quality)
Your own site
<a href="https://agentmods.dev/skills/thomwebb/gac/code-quality"><img src="https://agentmods.dev/badge/skills/thomwebb/gac/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/thomwebb/gac/code-quality"><img src="https://agentmods.dev/badge/skills/thomwebb/gac/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00038 $0.00635
Opus 5.5 $0.00015 $0.00254
Sonnet 5.5 $0.00008 $0.00127
Haiku 4.5 $0.00004 $0.00064

Measured 2mo ago against content hash 27533c5362c3, 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 2mo 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 · 103 lines

How it starts

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

Code Quality Tools and Standards

When to Use

  • Formatting code before committing
  • Linting code for errors and style issues
  • Type checking for correctness
  • Reviewing or refactoring code

Makefile Targets (canonical)

make lint and make format run four tools, not just ruff:

make format     # ruff check --fix + ruff format + prettier --write + markdownlint --fix
make lint       # ruff check + ruff format --check + prettier --check + markdownlint --check
make type-check # mypy
make test       # uv run -- pytest

Running uv run ruff check . alone does NOT equal make lint. CI runs all four.

Individual Tools

uv run ruff check src/           # Lint
uv run ruff format src/          # Format
uv run mypy src/                 # Type check

Coding Standards

Type Annotations (required)

def parse_response(response: dict[str, Any]) -> str | None:
    """Parse API response and extract content."""
    message = response.get("message", {})
    return message.get("content")

Naming

  • Modules/functions: snake_case
  • Classes: CapWords
  • Constants: UPPER_SNAKE_CASE

Line Length: 120 characters max

Docstrings: Google-style

def generate(model: str, messages: list[dict]) -> tuple[str, int, int, int, int]:
    """Generate text using the AI provider.

    Args:
        model: Model name to use.
        messages: List of message dictionaries.

    Returns:
        Tuple of (content, input_tokens, output_tokens, input_cost, output_cost).
    """

File Size: 600 lines max

Split when exceeded — but don't split purely for line count if it hurts cohesion.

Pre-commit Workflow

# 1. Make changes
# 2. Format + lint
make format
make lint
# 3. Type check
make type-check
# 4. Test
make test
# 5. Commit with gac (scope + yes)
gac -sy

Note: -s is --scope (infers commit scope), -y is --yes (skips confirmation). Not "short mode".

Checklist

[ ] make format run?
[ ] make lint passes? (all 4 tools)
[ ] make type-check passes?
[ ] make test passes?
[ ] File length under 600 lines?
[ ] Type annotations on all functions?
[ ] Docstrings on public functions?

Read the full file on GitHub · 103 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. 2mo ago First seen · 103 lines · 38 tokens per session scan A 27533c5362c3

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository thomwebb/gac (318 stars, last pushed 18d ago), licensed MIT. It adds 38 tokens to every session and 635 once invoked, about $0.0002 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-30.

Related

code-quality compared with skills from other repositories

code-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-qualitythomwebb/gacSkill31818d agoMITA38Claude Code, Codex
agent-merge-conflict-arbiterNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
githubNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
resolve-handoffomnigent-ai/omnigentSkill11kyesterdayApache-2.0A23Claude Code, Codex
resolve-publishomnigent-ai/omnigentSkill11kyesterdayApache-2.0A21Claude Code, Codex
otto-pr-review-loopomnigent-ai/omnigentSkill11kyesterdayApache-2.0A17Claude Code, Codex
resolve-drive-promnigent-ai/omnigentSkill11kyesterdayApache-2.0A21Claude Code, Codex