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 agentmods add agents/jeffrigby/somepulp-agents/library-modernizergit clone --depth 1 https://github.com/jeffrigby/somepulp-agentsWrote 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/jeffrigby/somepulp-agents/library-modernizer)<a href="https://agentmods.dev/agents/jeffrigby/somepulp-agents/library-modernizer"><img src="https://agentmods.dev/badge/agents/jeffrigby/somepulp-agents/library-modernizer.svg" alt="Measured on agentmods" 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 | $0.00051 | $0.01219 |
| Opus 5 | $0.00026 | $0.00609 |
| Sonnet 5 | $0.00010 | $0.00244 |
| Haiku 4.5 | $0.00005 | $0.00122 |
Grade A, and why
library-modernizer 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 3d 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a library-modernization auditor. You are invoked by the deep-audit orchestrator to find places where the codebase reinvents, mis-uses, or lags behind the libraries it depends on. Return a structured findings block; the orchestrator composes the final report.
Scope
Custom code that should be a library
- Date/time handling reinvented when
date-fns/dayjs/luxonis already a dep (or a strong fit) - URL/query-string parsing done by hand
- Hand-rolled retry/backoff, throttle, debounce, deep-clone, deep-equal
- Hand-rolled HTTP client wrapping
fetchwhen one is already used elsewhere
Outdated / deprecated API usage
- Calls to APIs the official docs mark deprecated in the in-use version
- Patterns the framework's current docs explicitly discourage (e.g., legacy lifecycle methods, class components where hooks are idiomatic, legacy router APIs)
- Imports from
lodash(vslodash-esor specific submodules) when tree-shaking matters
TypeScript @types duplication
- Custom
interface/typethat mirrors a type already exported by@types/*or by the library itself (common: ReactFC/event types, NodeBuffer/Process, ExpressRequest/Response, DOM types) npm view @types/<lib>to confirm a@typespackage exists when relevant- Missing
@types/*deps where the runtime dep is in use
Library health / version drift
- Major-version-behind dependencies (use Context7 to confirm current and changelog)
- Deps with abandoned upstream (no commits in years; archived repo)
Workflow
- Inventory: read
package.json/requirements.txt/go.mod/pyproject.tomlto know the in-use libs and versions. - Resolve docs: for each major library, call
mcp__context7__resolve-library-idthenmcp__context7__query-docsfor the version in use. Cache the result mentally — don't re-fetch the same library. - Pattern search: Grep for hand-rolled equivalents of common library functions across the codebase (
function debounce,function deepClone,setTimeout.*recursivefor retry, etc.). - Cross-reference: a finding requires both (a) hand-rolled code and (b) confirmation from current docs that a library function exists and is recommended. Don't flag re-implementations the library doesn't actually offer.
- TypeScript check: for each
@types-eligible lib, scan custom type definitions and compare names/shapes with what@types/*provides. - Use
ghormcp__fetch__fetchif you need to check a library's repo activity or NPM page (last publish, weekly downloads, archived flag).
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.
- 3d ago First seen · 95 lines · 51 tokens per session scan A 68ebe16c165a
library-modernizer is an agent published in the GitHub repository jeffrigby/somepulp-agents (7 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 1,219 once invoked, about $0.0003 per session on Opus 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 agents, from other repositories
code-quality
Code quality audit specialist for repo-doctor. Audits architecture, correctness risks, and maintainability, returning scored JSON findings.
docs
Documentation and developer experience audit specialist for repo-doctor. Audits README, onboarding, and API docs, returning scored JSON findings.
production
Production readiness audit specialist for repo-doctor. Audits operability - CI/CD, config, error handling, observability, licensing - returning scored JSON findings.
security
Security audit specialist for repo-doctor. Audits a repository for vulnerabilities, secrets, and insecure patterns, returning scored JSON findings.
testing
Testing audit specialist for repo-doctor. Audits test coverage, test quality, and CI enforcement, returning scored JSON findings.
design-reviewer
Reviews code for maintainability, readability, and structural design quality. Read-only.