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 Rune-kit/rune --skill safeguardgit clone --depth 1 https://github.com/Rune-kit/runeWrote 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/rune-kit/rune/safeguard)<a href="https://agentmods.dev/skills/rune-kit/rune/safeguard"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/safeguard/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/rune-kit/rune/safeguard"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/safeguard.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.00041 | $0.01951 |
| Opus 5.5 | $0.00016 | $0.00780 |
| Sonnet 5.5 | $0.00008 | $0.00390 |
| Haiku 4.5 | $0.00004 | $0.00195 |
Grade A, and why
safeguard 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 — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
safeguard
Purpose
Build safety nets before any refactoring begins. Safeguard creates characterization tests that capture current behavior, adds boundary markers to distinguish legacy from new code, freezes config files, and creates git rollback points. Nothing gets refactored without safeguard running first.
Called By (inbound)
rescue(L1): Phase 1 SAFETY NET — build protection before surgerysurgeon(L2): untested module found during surgery
Calls (outbound)
scout(L2): find all entry points and public interfaces of the target moduletest(L2): write and run characterization tests for the target moduleverification(L3): verify characterization tests pass on current code
Cross-Hub Connections
surgeon→safeguard— untested module found during surgery
Execution Steps
Step 1 — Identify module boundaries
Call rune:scout targeting the specific module. Ask scout to return:
- All public functions, classes, and exported symbols
- All files that import from this module (consumers)
- All files this module imports from (dependencies)
- Existing test files for this module (if any)
Use Read to open the module entry file and confirm the public interface.
Step 2 — Write characterization tests
Create a test file at tests/char/<module-name>.test.ts (or .js, .py matching project convention).
Use Write to create the characterization test file. Rules for characterization tests:
- Tests MUST capture what the code CURRENTLY does, not what it should do
- Include edge cases that currently produce surprising output — test for that actual output
- Do NOT fix bugs in characterization tests — if the current code returns wrong data, test for that wrong data
- Cover every public function in the module
- Include at least one integration test calling the module as an external consumer would
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 0d4a43219228
- 3d ago Changed · +1 lines 0f8943e878da
- 8d ago First seen · 201 lines · 41 tokens per session scan A a8a572d882f7
safeguard is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,951 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-11-22.
safeguard compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| safeguardRune-kit/rune | Skill | 96 | yesterday | MIT | A | 41 | Claude Code |
| precommitsd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 15 | Claude Code |
| precommit-fastsd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 15 | Claude Code |
| ship-itsmallnest/goal-workflow | Skill | 303 | 2mo ago | MIT | A | 96 | Claude Code |
| commit-allsentimony/skills | Skill | 8 | today | MIT | A | 30 | Claude Code, Codex |
| Git Workflow Disciplineniels-emmer/myace | Skill | 1 | yesterday | MIT | A | 25 | Claude Code, Codex |
| dx-tdddikamilo/dx-workflow | Skill | 8 | 1mo ago | MIT | A | 27 | Claude Code |