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.
npx skills add Firstp1ck/pi-coding-agent-forge --skill code-qualitygit clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forgeWrote 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/firstp1ck/pi-coding-agent-forge/code-quality)<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.
<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>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.00035 | $0.01480 |
| Opus 5.5 | $0.00014 | $0.00592 |
| Sonnet 5.5 | $0.00007 | $0.00296 |
| Haiku 4.5 | $0.00003 | $0.00148 |
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.
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.
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.
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.
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/language-checks.md 4.8 KB
- references/measurement-guide.md 2.6 KB
- references/testing.md 4.3 KB
- rules/ast-grep/javascript/no-console-log.yml 137 B
- rules/ast-grep/python/inspect-print.yml 119 B
- rules/ast-grep/typescript/no-console-log.yml 140 B
- scripts/adapters/ast-grep.mjs 8.9 KB runs code
- scripts/adapters/jscpd.mjs 9.7 KB runs code
- scripts/lib/capture.mjs 46 KB runs code
- scripts/lib/classification.mjs 7.8 KB runs code
- scripts/lib/git.mjs 26 KB runs code
- scripts/lib/metrics.mjs 12 KB runs code
- scripts/lib/report.mjs 33 KB runs code
- scripts/lib/runner.mjs 14 KB runs code
- scripts/scan.mjs 19 KB runs code
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.
- yesterday Changed · -10 lines · -47 tokens per session 89780d6376b5
- 10d ago Changed · +2 lines acd4b197a4c1
- 2mo ago Changed · -145 lines · +33 tokens per session e4aa9929e9af
- 3mo ago First seen · 245 lines · 49 tokens per session scan A acc38c1adc9c
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.
code-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-qualityFirstp1ck/pi-coding-agent-forge | Skill | 96 | today | MIT | A | 35 | Claude Code, Codex |
| hypothesessynthetic-sciences/openscience | Skill | 4.5k | today | Apache-2.0 | A | 99 | Claude Code |
| convex-component-authoringwaynesutton/convexskills | Skill | 405 | 18d ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| implement-reviewyzhao062/anywhere-agents | Skill | 264 | 2d ago | Apache-2.0 | B | 64 | Claude Code, Codex |
| ce:reviewmarcusrbrown/systematic | Skill | 33 | today | MIT | A | 36 | Claude Code |
| code-reviewkdcokenny/ocx | Skill | 982 | 2mo ago | MIT | A | 14 | Claude Code, Codex |
| pr-reviewdannote/dot-pi | Skill | 58 | 16d ago | MIT | A | 79 | Claude Code, Codex |