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 jpicklyk/task-orchestrator --skill auditing-codebasegit clone --depth 1 https://github.com/jpicklyk/task-orchestratorWrote 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/jpicklyk/task-orchestrator/auditing-codebase)<a href="https://agentmods.dev/skills/jpicklyk/task-orchestrator/auditing-codebase"><img src="https://agentmods.dev/badge/skills/jpicklyk/task-orchestrator/auditing-codebase/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/jpicklyk/task-orchestrator/auditing-codebase"><img src="https://agentmods.dev/badge/skills/jpicklyk/task-orchestrator/auditing-codebase.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.00127 | $0.01858 |
| Opus 5.5 | $0.00051 | $0.00743 |
| Sonnet 5.5 | $0.00025 | $0.00372 |
| Haiku 4.5 | $0.00013 | $0.00186 |
Grade A, and why
auditing-codebase 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 6d 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 — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Auditing a codebase
An audit answers one question: where would effort spent on the structure of this code pay back soonest? It looks at code that exists, so it is a different job from reviewing a change or planning one. It is broad and rare; a review of one diff stays targeted and does not run this method.
The audit reports candidates. It files no work items and edits no source: each candidate is written so that someone else can turn it into one item.
Scope first
The scope is the path or area you were given, or the whole repository when none was. An auditor handed one area audits that area only, and says in the report what it did not look at. An auditor handed one entry of a candidate list judges that entry only: whether it is a cost-of-change problem, why, and the move. Document files are audited by auditing-documentation; comments inside source stay here, and so does text the project ships to drive an agent (skill files and their references, agent definitions, rules, prompt strings), because it changes behaviour as code does. A file that tells an agent about the project it works in, such as CLAUDE.md or AGENTS.md, is a document. Do not widen the scope to look thorough, and do not shrink it because the tree is large: the next step is what makes a large tree tractable.
Method
The method is language-neutral: it needs no language-specific tool. A project's own analyzer may add exact numbers, and those are used as evidence like any other.
- Read what the project says about itself. Its written conventions, its glossary and its decision records (often a
docs/decisionsoradrfolder). They set what counts as a problem here. A documented decision is a reason, not a finding. Write down the intended architecture they state (layers, allowed dependency directions, ownership of state); step 5 compares the code with it. - Measure. Fix the two windows once, collect churn, complexity, coupling and the module graph, and keep the numbers for the later steps. The numbers come from a digest or metrics file you were handed, from the metrics script, or by hand, in that order. Sources, the meaning of each number and its limits: measuring.
- Find the hot spots. A hot spot is a file high in both churn and complexity. Code that is ugly but never touched costs nothing; code that changes every week and is hard to change costs every week. Drop churn that is there by design (the list is in hotspots). When the numbers include a candidate list, take its entries as leads, in rank order, beside the hot set. A lead is a hot file, a dependency cycle, an unstable module, or two files in different modules that change together. A lead becomes a candidate of the audit only when reading ties it to a cost; say which leads were dropped. Every other file can be a hot spot, whatever its kind: a configuration table, a registry, or prompt or skill text is ranked like code when its history shows a cost of its own. A document file that is hot on its own is named in the report and left to auditing-documentation. A file that changes only because one hot file changed is that file's partner, a document included. The hot set is judged against the whole repository even when the scope is one area. Definition, commands, the partner test and the by-hand ranking: hotspots. With no history (a fresh clone with one commit, an export), say so and fall back to size and fan-in, and mark every ranking as lower confidence.
- Look closely at the hot spots only. For each, in order of score, read it and apply the design signals in design-signals and the entries of slop-catalog that apply to code that exists, except vocabulary drift, which step 6 checks. A file outside the hot set gets a look only because a hot file depends on it or changes together with it; it is named on the hot file's line as a partner, and is not ranked as a candidate of its own.
- Run the architecture pass. Compare the module graph and its cycles with the architecture step 1 recorded, and take an inventory of the patterns the code uses for the same job. Method: architecture. Its findings are ranked like any other and must be tied to a cost.
- Check vocabulary drift. See the next section.
- Weigh each candidate against the project's own record. If a decision record, a convention or a comment explains the shape, drop the candidate, or keep it only with the decision's cost shown: what that choice now makes expensive, with evidence from the history. A candidate that touches a record is flagged as such on its line, whichever way you rank it.
- Rank. Sort and rate by ranking, and write the output below.
What ships with it
6 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.
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.
- 6d ago Changed · +6 lines · +6 tokens per session c4410077d946
- 7d ago First seen · 52 lines · 121 tokens per session scan A 8ec71ffb227a
auditing-codebase is a skill published in the GitHub repository jpicklyk/task-orchestrator (215 stars, last pushed today), licensed MIT. It adds 127 tokens to every session and 1,858 once invoked, about $0.0005 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-11-23.
auditing-codebase compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| auditing-codebasejpicklyk/task-orchestrator | Skill | 215 | today | MIT | A | 127 | Claude Code |
| code-reviewiliaal/ai-skills | Skill | 46 | yesterday | MIT | A | 78 | Claude Code, Codex |
| receiving-code-reviewiliaal/ai-skills | Skill | 46 | yesterday | MIT | A | 44 | Claude Code, Codex |
| security-privacy-threat-modelingKyaniteLabs/checkyourself | Skill | 7 | 6d ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| deep-reviewzahardev/aicontext | Skill | 2 | 2mo ago | MIT | A | 39 | Claude Code |
| reviewzahardev/aicontext | Skill | 2 | 2mo ago | MIT | A | 40 | Claude Code |
| gh-review-checkzahardev/aicontext | Skill | 2 | 2mo ago | MIT | A | 12 | Claude Code |