Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/rianvdm/product-ai-publicnpx agentmods add skills/rianvdm/product-ai-public/system-file-guardrailsWrote 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/rianvdm/product-ai-public/system-file-guardrails)<a href="https://agentmods.dev/skills/rianvdm/product-ai-public/system-file-guardrails"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/system-file-guardrails/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/rianvdm/product-ai-public/system-file-guardrails"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/system-file-guardrails.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.00053 | $0.02371 |
| Opus 5.5 | $0.00021 | $0.00948 |
| Sonnet 5.5 | $0.00011 | $0.00474 |
| Haiku 4.5 | $0.00005 | $0.00237 |
Grade A, and why
system-file-guardrails 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 25d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
System File Edit Guardrails
Follow these checks when editing system files: commands (.opencode/command/), skills (.opencode/skills/), agents (.opencode/agent/), or AGENTS.md itself.
Where the Real File Lives
There is exactly one copy of each skill on disk. Several paths resolve to it through two layers of symlinks, so a path that looks like a separate file usually isn't.
- Layer 1 — Claude Code → OpenCode:
.claude/skillsand.claude/commandsare folder symlinks into.opencode/. So.claude/skills/<name>/SKILL.mdalways resolves to.opencode/skills/<name>/SKILL.md. For skills and commands there is never a separate Claude Code copy..claude/agentsand.codex/agentsare the exceptions — real directories generated bysync-opencode-agents.py(see below). - Two different
.agents/skills/directories exist. Repo-relative.agents/skills/is this repo's generated Codex view (below). Home-relative~/.agents/skills/is the user-level install of the Cloudflare platform skills, which symlinks on into~/git/cf-skills/skills/. Always check the leading~/. - Layer 1 — Codex → OpenCode:
.agents/skills/is a generated Codex-only view. Its canonical skill entries are folder symlinks to.opencode/skills/<name>. Command adapters use generated regularSKILL.mdpointer files that direct Codex to the canonical.opencode/command/<name>.md; Codex discovers symlinked skill folders but not a symlink used as theSKILL.mdfile itself. The command and skill files remain the only workflow sources; Claude Code and OpenCode never consume the Codex adapters. Run./scripts/sync-codex-resources.shafter adding, renaming, or deleting a command or skill. The nativecodexskill is the only command without an adapter. - Layer 2 — OpenCode → source-of-truth repo: most entries inside
.opencode/skills/are themselves folder symlinks into a source-of-truth clone — typically~/Documents/gitlab/data-skills/.opencode/skills/<name>(data team). Those repos are regular git clones, not symlinks — they are the targets, not the consumers. Edit there, then commit and push from that repo. - Synced copies (not symlinks):
scripts/sync-data-skills.shtracks a few data-skills commands and agents as real local files, listed in itsCOPY_FILES(for exampleask-data-team.md,custesc.md, and theresearchand custesc agents). A copy listed inSKIP_COPY_FILESkeeps its local settings and is never overwritten; any other copy is overwritten on the next sync. When you edit one, either push the change upstream or add it toSKIP_COPY_FILESwith a reason. Each copy has a row inscripts/data-skills-baseline.tsvrecording the upstream commit it was last reviewed against;/merge-data-skillsreviews later upstream changes and moves that row. A new copy needs both aCOPY_FILESentry and a baseline row (validate-agents.shchecks this). - Worked example —
data-clickhouse-queries:~/git/product-ai/.claude/skills/data-clickhouse-queries/SKILL.md(Claude Code path)- → resolves through the
.claude/skillssymlink to.opencode/skills/data-clickhouse-queries/SKILL.md - → resolves through the
.opencode/skills/data-clickhouse-queriessymlink to~/Documents/gitlab/data-skills/.opencode/skills/data-clickhouse-queries/SKILL.md← real file, only place to edit
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.
- 25d ago Changed 334538635e4e
- 2mo ago Changed · +1 lines 049089858639
- 2mo ago Changed · +40 lines b0dd89d8895f
- 3mo ago First seen · 58 lines · 53 tokens per session scan A fa3e09d88693
system-file-guardrails is a skill published in the GitHub repository rianvdm/product-ai-public (21 stars, last pushed 16d ago), licensed MIT. It adds 53 tokens to every session and 2,371 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-08-30.
system-file-guardrails compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| system-file-guardrailsrianvdm/product-ai-public | Skill | 21 | 16d ago | MIT | A | 53 | Claude Code, OpenCode |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | yesterday | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |