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 tallclub/matimo --skill policy-validationgit clone --depth 1 https://github.com/tallclub/matimoWrote 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/tallclub/matimo/policy-validation)<a href="https://agentmods.dev/skills/tallclub/matimo/policy-validation"><img src="https://agentmods.dev/badge/skills/tallclub/matimo/policy-validation/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/tallclub/matimo/policy-validation"><img src="https://agentmods.dev/badge/skills/tallclub/matimo/policy-validation.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.00049 | $0.02207 |
| Opus 5.5 | $0.00020 | $0.00883 |
| Sonnet 5.5 | $0.00010 | $0.00441 |
| Haiku 4.5 | $0.00005 | $0.00221 |
Grade B, and why
policy-validation scanned grade B with 1 finding 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 1mo 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.
Cloud metadata endpointmediumServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
{ "rule": "no-ssrf", "severity": "critical", "message": "URL targets internal/metadata network: http://169.254.169.254/..." } Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Policy Validation: Security Rules and Enforcement
This skill teaches you Matimo's policy engine — the deterministic rules that decide which tools you may create and what happens each time a tool runs.
Core Principle: The Developer Sets Policy, You Work Within It
The developer configures the policy when they start Matimo (in code or a policy.yaml). No tool lets an agent change it. When a rule blocks you, redesign the tool; do not look for a way around the rule.
// Set by the developer at start-up:
const matimo = await MatimoInstance.init({
untrustedPaths: ['./agent-tools'],
policyConfig: {
allowedDomains: ['api.github.com', 'api.weatherapi.com'],
allowedHttpMethods: ['GET', 'POST'],
protectedNamespaces: ['matimo_'],
allowedCredentials: ['GITHUB_TOKEN', 'WEATHER_API_KEY'],
},
});
Two Layers
- When a tool loads — every tool you create is untrusted and must pass 9 content rules. A tool that breaks a critical or high rule never reaches the registry.
- Every time a tool runs — the call is risk-classified, checked against execution gates, and may need a human's approval.
Layer 1: The 9 Content Rules
| # | Rule id | Severity | Rejects |
|---|---|---|---|
| 1 | no-function-execution |
critical | execution.type: function |
| 2 | no-command-execution |
critical | execution.type: command |
| 3 | no-ssrf |
critical | URLs aimed at localhost or loopback, 0.0.0.0, private ranges (10.*, 172.16-31.*, 192.168.*), link-local 169.254.* (cloud metadata), or *.internal / *.local / *.localhost hosts |
| 4 | unauthorized-credential |
high | A placeholder that names a credential (such as {GITHUB_TOKEN} or {API_KEY}) not in allowedCredentials, when the developer set one |
| 5 | reserved-namespace |
critical | Names starting with a protected prefix (default matimo_) |
| 6 | forced-approval |
high | requires_approval other than true |
| 7 | blocked-http-method |
high | Methods outside allowedHttpMethods (default GET and POST) |
| 8 | blocked-domain |
high | Hosts outside allowedDomains, when the developer set one (subdomains of a listed domain are allowed) |
| 9 | forced-draft-status |
medium | A status other than draft |
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.
- 1mo ago Changed · -307 lines · +5 tokens per session scan C → B 7eda0ee5fdc7
- 2mo ago First seen · 541 lines · 44 tokens per session scan C 8bc2a3aa9568
policy-validation is a skill published in the GitHub repository tallclub/matimo (18 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 2,207 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
policy-validation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| policy-validationtallclub/matimo | Skill | 18 | yesterday | MIT | B | 49 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 103 | Claude Code |