code-quality

code-quality is a skill for Claude Code, Codex from Firstp1ck/pi-coding-agent-forge. It costs 35 tokens per session (1,480 once invoked), scanned A, a copy of code-quality, MIT.

A code-review and quality-checking guide for Rust, TypeScript, Python, shell, and mixed codebases. It covers linting, formatting, maintainability, complexity, warnings, and coding rules.

In plain words
What is it for?
Use it to review changes, configure linters and formatters, check complexity, clean up warnings, and apply quality gates in a project.
Why use it?
It gives agents a consistent way to find code problems and report their severity before they become harder to fix.

Skill for Claude CodeCodex

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

Good fit Use it to review changes, configure linters and formatters, check complexity, clean up warnings, and apply quality gates in a project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/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 Firstp1ck/pi-coding-agent-forge --skill code-quality
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

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/firstp1ck/pi-coding-agent-forge/code-quality/github.svg)](https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/code-quality)
Your own site
<a href="https://agentmods.dev/skills/firstp1ck/pi-coding-agent-forge/code-quality"><img src="https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/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/firstp1ck/pi-coding-agent-forge/code-quality"><img src="https://agentmods.dev/badge/skills/firstp1ck/pi-coding-agent-forge/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,480 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 89% copy Near-identical to another mod 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.00035 $0.01480
Opus 5.5 $0.00014 $0.00592
Sonnet 5.5 $0.00007 $0.00296
Haiku 4.5 $0.00003 $0.00148

Measured yesterday against content hash 89780d6376b5, 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 yesterday.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/adapters/ast-grep.mjs, scripts/adapters/jscpd.mjs, scripts/lib/capture.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

89% identical to code-quality — 252 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

pi-skill-code-quality/skills/code-quality/SKILL.md · 92 lines

How it starts

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

Code Quality

Write code that is correct, clear, and easy to change. Improve it as you write it, rather than leaving avoidable problems for a later review.

Use for a requested quality review, a substantial cleanup, or optional scanner measurements. Routine code edits follow the project's normal coding and verification rules without loading this skill.

Work inside the requested task

A request to write or change code authorizes applying these quality practices to that code. Make justified local improvements directly; do not ask for a separate cleanup approval merely to write the requested code well.

An explicit review-only or do not edit request stays read-only. Inspect and explain findings without applying them. Loading the skill never grants permission to write code when the user only asked a question or requested a review.

Preserve the user's existing changes and the requested behavior. Ask before unrelated cleanup, public-interface changes beyond the request, broad architectural work, new dependencies or edits outside the authorized scope. Existing project policy takes precedence over language examples and measurements.

Writing process

1. Understand the code before changing it

Read the applicable instructions, nearby implementation, callers and relevant tests. Identify the intended behavior, trust boundaries, failure modes and compatibility constraints.

Inspect staged, unstaged and relevant untracked changes. Distinguish your edits from existing work. HEAD is not the task's starting state in a dirty workspace. Find an existing implementation before adding a helper, wrapper or dependency.

Choose the smallest coherent change and the checks that can verify it. For a small edit, a focused inspection is enough; do not turn it into a repository-wide audit.

2. Write and improve together

Use these criteria within the requested review or cleanup:

  • Keep correctness first. Implement the requested behavior, including failure cases. Do not remove validation, security checks, error handling or compatibility guards to shorten the code.
  • Make control flow explicit. Prefer straightforward branches, clear names and cohesive functions over clever expressions or layers of forwarding wrappers.
  • Keep responsibilities together. Split a function when it owns distinct responsibilities, not to satisfy an invented line or complexity limit. Avoid a maze of tiny helpers.
  • Reuse actual shared behavior. Remove accidental duplication when the behavior and ownership really match. Similar-looking code with different contracts need not share an abstraction.
  • Validate at real boundaries. Check external or untrusted inputs where they enter. Avoid repeated defensive checks for invariants already established inside the same trusted boundary.
  • Make failures and lifetimes visible. Handle errors deliberately, release resources and account for cancellation, timeouts and partial work where relevant. Do not swallow a failure or retry without a bound.
  • Avoid speculative machinery. Do not add generic frameworks, fallback paths, configuration, dependencies or extension points without a present requirement.
  • Use comments for reasons. Explain non-obvious constraints and trade-offs, not what each line does. Remove stale comments and debugging residue from task-owned code.
  • Write meaningful tests. Verify behavior and important edge cases. Keep characterization tests when behavior must be preserved; do not weaken tests to make a cleanup pass.

Read the full file on GitHub · 92 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. yesterday Changed · -10 lines · -47 tokens per session 89780d6376b5
  2. 10d ago Changed · +2 lines acd4b197a4c1
  3. 2mo ago Changed · -145 lines · +33 tokens per session e4aa9929e9af
  4. 3mo ago First seen · 245 lines · 49 tokens per session scan A acc38c1adc9c

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (96 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 1,480 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to code-quality, differing in 252 lines, and is treated as a copy.

Related

code-quality compared with skills from other repositories

code-quality next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-qualityFirstp1ck/pi-coding-agent-forgeSkill96todayMITA35Claude Code, Codex
hypothesessynthetic-sciences/openscienceSkill4.5ktodayApache-2.0A99Claude Code
convex-component-authoringwaynesutton/convexskillsSkill40518d agoApache-2.0A28Claude Code, Codex
implement-reviewyzhao062/anywhere-agentsSkill2642d agoApache-2.0B64Claude Code, Codex
ce:reviewmarcusrbrown/systematicSkill33todayMITA36Claude Code
code-reviewkdcokenny/ocxSkill9822mo agoMITA14Claude Code, Codex
pr-reviewdannote/dot-piSkill5816d agoMITA79Claude Code, Codex