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 pekral/cursor-rules --skill codebase-simplification-auditgit clone --depth 1 https://github.com/pekral/cursor-rulesWrote 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/pekral/cursor-rules/codebase-simplification-audit)<a href="https://agentmods.dev/skills/pekral/cursor-rules/codebase-simplification-audit"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/codebase-simplification-audit/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/pekral/cursor-rules/codebase-simplification-audit"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/codebase-simplification-audit.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.00100 | $0.02605 |
| Opus 5.5 | $0.00040 | $0.01042 |
| Sonnet 5.5 | $0.00020 | $0.00521 |
| Haiku 4.5 | $0.00010 | $0.00261 |
Grade A, and why
codebase-simplification-audit 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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Constraints
- Audit-only, read-only, no exceptions. Do not edit files, write or run tests, implement a recommendation, commit, or push. Read-only inspection commands (
git log,git grep,rg,find,cat,sed -n) are the whole toolset. The deliverable is a report; the repository is unchanged when the audit ends. - Apply
@rules/refactoring/general.mdc— the shared definition of refactoring and the ban on big-bang rewrites. Every recommendation must be reachable by incremental steps that keep the codebase green between them. - Apply
@rules/compound-engineering/general.mdcProject-local agent instructions are part of the rule set — load the project's ownCLAUDE.mdand the sibling instruction files that section lists before the first subsystem review. They frequently declare the intentional semantics that turn a "simplification" into a misreading. - Apply
@rules/compound-engineering/general.mdcTemporary-file hygiene — the working scratchpad is scratch, not an artifact. Write it under the session scratchpad directory and delete it when the audit ends; the report returned to the caller is the deliverable. - Apply
@rules/php/core-standards.mdconly when the audited project is a PHP project (a PHP stack incomposer.json) — its Design Principles own the YAGNI and speculative-interface bars this audit leans on. Skip it for a non-PHP codebase. - If the audited project uses Laravel, also apply
@rules/laravel/architecture.mdc— its layer boundaries are the project's declared ownership model, so an ownership finding must be expressed in its vocabulary rather than a freshly invented one. - Output in English, Markdown only.
Boundary against neighbouring skills
Raise a concern once, in the skill that owns it — never file the same item twice:
@skills/class-refactoring/SKILL.md— one class, and inMODE=applyit changes code. This skill is repo-wide and never changes anything. When an accepted recommendation is ready to implement, hand the target class to that skill.@skills/automation-audit-ops/SKILL.md— audits the repo's automation (workflows, hooks, scripts), not its data model.@skills/production-audit/SKILL.md— answers ship / block for a release; this skill answers what the code should look like.@skills/blueprint/SKILL.md— turns one objective into a sequenced multi-PR plan. This audit's ranked output is a natural input to it; do not duplicate its planning format here.@skills/analyze-problem/SKILL.md— starts from a reported problem and finds its root cause. This audit starts from no complaint at all and looks for representations that invite future problems.
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 First seen · 185 lines · 100 tokens per session scan A 0a9acd9cd566
codebase-simplification-audit is a skill published in the GitHub repository pekral/cursor-rules (11 stars, last pushed 13d ago), licensed MIT. It adds 100 tokens to every session and 2,605 once invoked, about $0.0004 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.
Other skills, from other repositories
knossos
Use when you need to know what depends on something, what a change would break, where a new file belongs, how a request reaches a given component, or who calls a function, in a repository that Knossos has scanned. Answers come from a static graph with file and line evidence instead of from reading the source tree.…
code-review
Review code for quality, bugs, and best practices. Use when asked to review or audit code.
Test Scaffold (Laravel/PHPUnit)
Generate PHP/Laravel (PHPUnit) test skeletons from specifications.
Laravel Eloquent N+1 and Query Efficiency Review
Detects N+1 query patterns (relation access inside loops without eager loading), full-table get()/all() loads, and unsafe chunk()/cursor() usage in Laravel Eloquent code.
Laravel Mass Assignment and Authorization Review
Detects mass assignment via create/update($request->all()), unguarded models, and missing authorization on mutating controller actions in Laravel.
Laravel Migration Safety Review
Reviews Laravel migrations for destructive operations, change() dropping modifiers, locking index creation on large tables (PostgreSQL), and asymmetric down().