code-review-pi

code-review-pi is a skill for Claude Code, Codex from dimetron/pi-go. It costs 50 tokens per session (895 once invoked), scanned A, original, MIT.

A code-review workflow for Go projects that inspects changed files, runs checks, reviews test coverage and code quality, and records the final report in a specified project file. It looks for missing tests, error-handling problems, resource leaks, and concurrency issues.

In plain words
What is it for?
Use it before committing Go changes to review modified packages, run Go linters and tests, examine coverage, and document issues in the review report.
Why use it?
It gives review work a repeatable set of quality checks and makes the result available as a saved report. It can also identify packages and functions that need more test coverage.

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/dimetron/pi-go/code-review-pi
Any agent
npx skills add dimetron/pi-go --skill code-review-pi
Clone the repo
git clone --depth 1 https://github.com/dimetron/pi-go

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-review-pi

README.md
[![agentmods](https://agentmods.dev/badge/skills/dimetron/pi-go/code-review-pi.svg)](https://agentmods.dev/skills/dimetron/pi-go/code-review-pi)
Your own site
<a href="https://agentmods.dev/skills/dimetron/pi-go/code-review-pi"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/code-review-pi.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 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.00050 $0.00895
Opus 5 $0.00025 $0.00447
Sonnet 5 $0.00010 $0.00179
Haiku 4.5 $0.00005 $0.00089

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

Security

Grade A, and why

code-review-pi 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.

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.

.pi-go/skills/code-review-pi/SKILL.md · 78 lines

How it starts

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

Code Review

Review code for quality, test coverage, and fix problems found.

The canonical output artifact for this skill is ./specs/issues/003-code-review-pi/PROMPT.md. Only report success after writing the final review summary there.

Steps

  1. Identify scope: Run git diff --name-only to find modified files. If there are changes, review only modified packages. If no uncommitted changes, review all packages (./...).

  2. Run linters: Execute linters on target packages:

    • go vet ./...
    • golangci-lint run --new-from-rev=HEAD~1 ./... (if available)
  3. Run tests and check coverage:

    • go test -race -count=1 -coverprofile=coverage.out ./...
    • go tool cover -func=coverage.out
    • Identify failing tests, functions with 0% coverage, packages below 80%
  4. Review code quality: Read target files and check for:

    • Missing tests for new/changed functions
    • Error handling (missing checks, swallowed errors)
    • Resource leaks (unclosed files, connections)
    • Concurrency issues (race conditions, missing mutexes)
  5. Fix issues in parallel using subagents: For each package needing coverage fixes, spawn a subagent to work on it concurrently:

    • Use the agent tool to spawn one subagent per package that needs test coverage improvement
    • Each subagent prompt: "Write tests for uncovered functions in package . Read the source files, identify untested functions using the coverage data, write table-driven tests covering happy path and error cases. Run go test -race ./<pkg>/... to verify. NEVER delete existing tests."
    • While subagents write tests, fix linter warnings and code quality issues yourself
    • Wait for all subagents to complete, then verify their work compiles
  6. Verify gates: All gates must pass before reporting success:

    • GATE 1: go build ./... — zero errors
    • GATE 2: go vet ./... — zero warnings
    • GATE 3: go test -race ./... — all tests pass
    • GATE 4: go test -cover ./... — >= 80% per package
    • If any gate fails, fix and re-run until all pass

Read the full file on GitHub · 78 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 · 78 lines · 50 tokens per session scan A 2e635851a4ef

Subscribe to this mod's changes

code-review-pi is a skill published in the GitHub repository dimetron/pi-go (151 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 895 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-30.