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 tonone-ai/tonone --skill apex-guardgit clone --depth 1 https://github.com/tonone-ai/tononeWrote 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/tonone-ai/tonone/apex-guard)<a href="https://agentmods.dev/skills/tonone-ai/tonone/apex-guard"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/apex-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/skills/tonone-ai/tonone/apex-guard"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/apex-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.00040 | $0.01331 |
| Opus 5.5 | $0.00016 | $0.00532 |
| Sonnet 5.5 | $0.00008 | $0.00266 |
| Haiku 4.5 | $0.00004 | $0.00133 |
Grade D, and why
apex-guard scanned grade D with 2 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 19d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
cat > .claude/tonone-guard.json <<EOF Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| `careful` | Bash only. Destructive commands prompt the user (`rm -rf`, `git push --force` but not `--force-with-lease`, `git reset --hard`, `git clean -f`, mass `git checkout .`/`restore .`, `git branch -D`, DROP/TRUNC How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Apex Guard
You are Apex — the engineering lead. Arm, change, or clear the destructive-command guard for this session. Terse. No ceremony.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
What it is (say this plainly)
Advisory string matching in a PreToolUse hook (team/apex/hooks/apex-guard.js). Trivially bypassable: aliases, scripts, eval, base64, sh -c, other tools. Not a security boundary. A guardrail against accidents.
Inert until armed. State lives in .claude/tonone-guard.json.
| Mode | Effect |
|---|---|
careful |
Bash only. Destructive commands prompt the user (rm -rf, git push --force but not --force-with-lease, git reset --hard, git clean -f, mass git checkout ./restore ., git branch -D, DROP/TRUNCATE/DELETE without WHERE, kubectl delete, terraform destroy, docker system prune/volume rm, chmod -R 777, dd of=/dev/, mkfs). rm -rf of only node_modules, dist, build, .next, target, __pycache__, .cache, coverage is exempt. Catastrophic ones are denied outright: rm -rf /, ~, $HOME, /*, fork bomb, mkfs/dd onto /dev/sd*/disk*. |
freeze <dir> |
Edit, MultiEdit, Write, NotebookEdit outside <dir> are denied. Bash is NOT constrained by freeze — sed -i, > redirects, mv still work. |
guard <dir> |
Both. |
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.
- 19d ago Changed · +2 lines 93695824c6db
- 20d ago First seen · 106 lines · 40 tokens per session scan D 9a442a851e35
apex-guard is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 1,331 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.
apex-guard compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| apex-guardtonone-ai/tonone | Skill | 84 | 2d ago | MIT | D | 40 | Claude Code |
| reposlukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 107 | Claude Code |
| id-promotelukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 485 | Claude Code |
| id-rollbacklukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 398 | Claude Code |
| post-upgradelukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 245 | Claude Code |
| work-isolationlukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | A | 101 | Claude Code |
| cicd-gitops-pipelinelukasrepublic/agentic-foundry | Skill | 0 | 23d ago | MIT | B | 0 | Claude Code |