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 sofiahernandes/margaret --skill margaret-scangit clone --depth 1 https://github.com/sofiahernandes/margaretWrote 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/sofiahernandes/margaret/margaret-scan)<a href="https://agentmods.dev/skills/sofiahernandes/margaret/margaret-scan"><img src="https://agentmods.dev/badge/skills/sofiahernandes/margaret/margaret-scan/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/sofiahernandes/margaret/margaret-scan"><img src="https://agentmods.dev/badge/skills/sofiahernandes/margaret/margaret-scan.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.00136 | $0.00910 |
| Opus 5.5 | $0.00054 | $0.00364 |
| Sonnet 5.5 | $0.00027 | $0.00182 |
| Haiku 4.5 | $0.00014 | $0.00091 |
Grade A, and why
margaret-scan 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 22d 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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hunt exclusively for complexity that doesn't earn its keep. One finding per line: where it lives, what to remove, what stands in its place. Success looks like a smaller tree, not a longer report.
Two scopes:
- diff (default): only the current change is in play.
- repo (pass
repo, or the user asks for an "audit"/"whole codebase"): walk the full tree instead, biggest win listed first. Look for: packages duplicating stdlib or platform behavior, interfaces with exactly one implementer, factories manufacturing a single product, pass-through wrappers that add no behavior, single-export files, unused flags/config, and homegrown reimplementations of stdlib functions.
Diff scope is the branch against its upstream default — the same three commands /margaret-guard uses, so both skills always see the same change set:
git diff --name-only origin/HEAD... # files
git log --no-decorate origin/HEAD... # commits
git diff --merge-base origin/HEAD # content
No upstream (detached HEAD, or no origin)? Fall back to git diff HEAD and say which scope you used.
Reporting shape
L<line>: <tag> <finding>. <fix>. — prefix with <file>: for anything spanning multiple files (diffs with several files, or a repo scan).
Tags:
cut:unreachable code, unused flexibility, a feature nobody asked for. Fix: remove it, nothing replaces it.builtin:custom code duplicating what the standard library already ships. Name the stdlib call.platform:a dependency or handwritten code standing in for a platform capability. Name the capability.overbuilt:one-implementation interface, a config knob nobody flips, a layer with a single caller.condense:identical behavior expressible in fewer lines. Show the shorter version.
Examples
❌ "This SlugGenerator class seems like it might be handling more cases than strictly necessary — worth double-checking whether every branch is needed?"
✅ L18-45: builtin: 30-line slug class reimplementing string normalization. str.lower().replace(' ', '-') plus a regex strip, 2 lines.
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.
- 22d ago Changed · +10 lines d0eec69499c2
- 3mo ago First seen · 58 lines · 136 tokens per session scan A 399aed50c75b
margaret-scan is a skill published in the GitHub repository sofiahernandes/margaret (2 stars, last pushed 20d ago), licensed MIT. It adds 136 tokens to every session and 910 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-08-31.
margaret-scan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| margaret-scansofiahernandes/margaret | Skill | 2 | 20d ago | MIT | A | 136 | Claude Code |
| deep-reviewulises-jeremias/agent-toolkit | Skill | 28 | today | MIT | A | 57 | Claude Code |
| gh-address-commentsulises-jeremias/agent-toolkit | Skill | 28 | today | MIT | A | 51 | Claude Code |
| review-allpaultyng/skill-issue | Skill | 8 | yesterday | MIT | A | 102 | Claude Code, Codex |
| active-reviewpaultyng/skill-issue | Skill | 8 | yesterday | MIT | A | 0 | Claude Code, Codex |
| review-api-compatpaultyng/skill-issue | Skill | 8 | yesterday | MIT | A | 69 | Claude Code, Codex |
| review-documentationpaultyng/skill-issue | Skill | 8 | yesterday | MIT | A | 83 | Claude Code, Codex |