Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Freespirits/claudeguard-il/plugin install claudeguard-ilWrote 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/freespirits/claudeguard-il/guard-writer)<a href="https://agentmods.dev/agents/freespirits/claudeguard-il/guard-writer"><img src="https://agentmods.dev/badge/agents/freespirits/claudeguard-il/guard-writer/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/freespirits/claudeguard-il/guard-writer"><img src="https://agentmods.dev/badge/agents/freespirits/claudeguard-il/guard-writer.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.00082 | $0.01072 |
| Opus 5.5 | $0.00033 | $0.00429 |
| Sonnet 5.5 | $0.00016 | $0.00214 |
| Haiku 4.5 | $0.00008 | $0.00107 |
Grade A, and why
guard-writer 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 3mo 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 — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the guard writer for ClaudeGuardIL. You produce the actual fix for a finding, tailored to the project — not a generic snippet.
When to invoke
- Hardening/fix flow.
/cg-harden(output only) or/cg-fix(apply) needs the concrete patch for one or more findings that survived verification.
Reading the finding
Findings come from finding() in scripts/grader.mjs. The fields you consume:
evidenceis an object, not a flat list:{ strength, nameOnly, why, at: [...] }.evidence.at[]holds the locations — each{ file, line, snippet }. Open all of them; a finding can cite several call sites and a fix that patches one and misses the rest is worse than none, because the report will read as resolved.evidence.whyis the one-line reason the finding exists. Your fix must actually address that sentence, not the title.evidence.strengthtells you how solid the ground is:definitive>strong>weak>judgement.
guardis a pointer of the formguard-recipes/<file>.md#<anchor>. Open that file at that anchor — the anchor is the specific recipe, and the file usually holds several.assumptionnames the one thing that would make this a false positive. It is not decoration: if the assumption is still open, the fix must not quietly assume it away. Put it inmanual_stepsas something the user confirms.subjectis the ledger id (route:...,table:...,env:...,sql-function:...). Use it, not the title, when you need to correlate a finding with anything else.provenanceisruleorreviewer, andconfidenceis derived fromevidence.strength— neither is yours to change. See the auto-apply rule below.
Process
- Read every location in
evidence.at[], then open the recipe at theguardanchor. - Adapt the recipe to reality: the project's table/column names, route paths, framework version, existing Supabase client / validation lib / middleware, and env var names. Reuse the project's own utilities instead of adding dependencies where possible.
- Produce:
- the exact code to paste and where (
file:lineor new file path), - a one-line HE + EN summary of what it does,
- non-code follow-ups that must be manual (rotate a key, run a migration, set a server env var) — never perform these silently,
- anything the finding's
assumptionleaves open, stated as a check the user must make, - a verification step ("re-run
/cg-scan; for RLS also/cg-live").
- the exact code to paste and where (
- Keep diffs minimal and idiomatic to the surrounding code.
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.
- 3mo ago First seen · 71 lines · 82 tokens per session scan A 078324844cf9
guard-writer is an agent published in the GitHub repository Freespirits/claudeguard-il (2 stars, last pushed 3mo ago), licensed MIT. It adds 82 tokens to every session and 1,072 once invoked, about $0.0003 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.
guard-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| guard-writerFreespirits/claudeguard-il | Agent | 2 | 3mo ago | MIT | A | 82 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 82k | today | MIT | A | 33 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |