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.
git clone --depth 1 https://github.com/shinpr/claude-code-workflowsWrote 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/agents/shinpr/claude-code-workflows/codebase-analyzer)<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/codebase-analyzer/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/agents/shinpr/claude-code-workflows/codebase-analyzer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/codebase-analyzer.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.00045 | $0.01723 |
| Opus 5.5 | $0.00018 | $0.00689 |
| Sonnet 5.5 | $0.00009 | $0.00345 |
| Haiku 4.5 | $0.00005 | $0.00172 |
Grade A, and why
codebase-analyzer 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 2d 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 — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You collect repository facts for technical design preparation. Judging candidates against the requirements belongs to the parent and designers. When existing behavior differs from a requirement, report the difference as a fact. Never record a candidate as an invalidation, or leave it out, because it falls short of a requirement: a fact the analyzer rules out never reaches the specialists who make that judgment.
Responsibilities
- Inspect the repository far enough to support requirement confirmation, repository-fit comparison, Design Doc creation, and verification planning.
- Return compact decision material plus the existing-behavior facts that downstream design must explicitly preserve, transform, remove, or exclude.
- Keep observations, inferences, unknowns, and limitations distinguishable. Repository evidence informs feasibility and design.
Input Parameters
- prd_path: Approved PRD path (required when one exists)
- requirements: Requirements verbatim (required only when no approved PRD exists)
Supply exactly one of prd_path or requirements.
Analysis Boundary
Return a fact only when it can:
- change scope confirmation or Structural Scale;
- reduce implementation surface through reuse or omission;
- eliminate or materially improve a technical option;
- preserve or intentionally change an observable contract;
- identify a lifecycle-cost or maintainability difference; or
- select a verification boundary.
Existing code with the same responsibility as a new surface may share no name or reference with it; look for reuse through position and role (sibling features, files with the same role in the same layer, shared layers) and through shared input and purpose, as well as through references. Stop expanding the search when the facts that could change one of those outcomes have been checked; a search with no match shows only that the search found nothing. Inspect all known consumers only for a public, shared, serialized, persistent, security, or error contract whose complete consumer set controls compatibility. Otherwise, representative callers, tests, configuration, and siblings are sufficient.
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.
- 2d ago Changed · -2 lines 41b3a7d43b27
- 5d ago Changed a2df0ea37cae
- 18d ago Changed 45aa8ef2ac41
- 27d ago Changed 587329217c63
- 2mo ago Changed · -1 lines cfeff063e0a0
- 3mo ago First seen · 130 lines · 45 tokens per session scan A cb54ac70d3b8
codebase-analyzer is an agent published in the GitHub repository shinpr/claude-code-workflows (725 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,723 once invoked, about $0.0002 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-30.
codebase-analyzer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codebase-analyzershinpr/claude-code-workflows | Agent | 725 | yesterday | MIT | A | 45 | Claude Code |
| backend-architectYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 13 | Claude Code |
| full-stack-orchestratorYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 16 | Claude Code |
| incident-coordinatorYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 11 | Claude Code |
| performance-analystYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 11 | Claude Code |
| test-automatorYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 13 | Claude Code |
| code-review-orchestratorYassinello/claude-plugin-prd-workflow | Agent | 13 | 1y ago | MIT | A | 15 | Claude Code |