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/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/commands/sofiahernandes/margaret/margaret-guard)<a href="https://agentmods.dev/commands/sofiahernandes/margaret/margaret-guard"><img src="https://agentmods.dev/badge/commands/sofiahernandes/margaret/margaret-guard/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/commands/sofiahernandes/margaret/margaret-guard"><img src="https://agentmods.dev/badge/commands/sofiahernandes/margaret/margaret-guard.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.00010 | $0.00546 |
| Opus 5.5 | $0.00004 | $0.00218 |
| Sonnet 5.5 | $0.00002 | $0.00109 |
| Haiku 4.5 | $0.00001 | $0.00055 |
Grade A, and why
margaret-guard 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 26d 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.
What it actually says
You are a senior security engineer reviewing the changes on this branch.
GIT STATUS:
!`git status`
CUSTOM SCAN INSTRUCTIONS (optional, from .margaret/security-instructions.md — additional
categories or repo-specific context, added to the skill's; empty if the file doesn't exist):
!`cat .margaret/security-instructions.md 2>/dev/null`
EXCLUDED PATHS (optional, from .margaret/security-exclude — one glob per line, e.g.
vendor/** or **/*_generated.go; empty if the file doesn't exist):
!`cat .margaret/security-exclude 2>/dev/null`
FILES MODIFIED:
!`git diff --name-only origin/HEAD...`
COMMITS:
!`git log --no-decorate origin/HEAD...`
DIFF CONTENT:
!`git diff --merge-base origin/HEAD`
OBJECTIVE: Find HIGH-CONFIDENCE security vulnerabilities newly introduced by this diff, with real exploitation potential. Not a general code review — security implications of what changed, only. Do not comment on pre-existing issues outside the diff.
THE STANDARD:
Load the margaret-guard skill and apply it as written. It is the single source for what counts as a finding — categories, the >80% confidence bar and its scale, the never-report list, the precedents, the method, and the report format. Don't restate it here and don't substitute your own judgment for it.
Fold in the two optional sections gathered above when they are non-empty: CUSTOM SCAN INSTRUCTIONS adds categories and context (never replaces the skill's), and EXCLUDED PATHS drops any finding whose file matches.
PROCESS: What this command adds on top of the skill is the fan-out — the skill alone is a single read-through.
- Sub-task: identify candidate vulnerabilities using the skill's three-step method.
- For each candidate, a parallel sub-task filters false positives against the skill's never-report list, precedents, and confidence scale, returning a 1-10 score.
- Keep only findings scored 8 or above.
Final reply: the markdown report in the skill's format, nothing else.
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.
- 26d ago Changed · -42 lines 438e4bc4dc60
- 3mo ago First seen · 104 lines · 10 tokens per session scan A ba6ab3af640e
margaret-guard is a command published in the GitHub repository sofiahernandes/margaret (2 stars, last pushed 25d ago), licensed MIT. It adds 10 tokens to every session and 546 once invoked, about $0.0000 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-guard compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| margaret-guardsofiahernandes/margaret | Command | 2 | 25d ago | MIT | A | 10 | Claude Code |
| open-prcarloshpdoc/ios-workflow-claude | Command | 7 | 5mo ago | Apache-2.0 | A | 0 | Claude Code |
| apollo-reviewcarloshpdoc/ios-workflow-claude | Command | 7 | 5mo ago | Apache-2.0 | A | 0 | Claude Code |
| code-reviewcarloshpdoc/ios-workflow-claude | Command | 7 | 5mo ago | Apache-2.0 | A | 18 | Claude Code |
| review-prcarloshpdoc/ios-workflow-claude | Command | 7 | 5mo ago | Apache-2.0 | A | 0 | Claude Code |
| request-reviewcarloshpdoc/ios-workflow-claude | Command | 7 | 5mo ago | Apache-2.0 | A | 0 | Claude Code |
| reviewerpwnk77/agentic-workflows | Command | 59 | 6mo ago | none | A | 15 | Claude Code |