guardrails

guardrails is a skill for Claude Code, Codex from googlicius/obsidian-steward. It costs 44 tokens per session (850 once invoked), scanned A, original, MIT.

A set of safety rules that controls which files and folders an AI may read, list, create, edit, or delete. Each rule is stored as a Markdown file under Steward/Rules/.

In plain words
What is it for?
Use it to define file-access restrictions, document why each restriction exists, and run a verification request that should be blocked.
Why use it?
It prevents the AI from accessing or changing protected parts of a project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define file-access restrictions, document why each restriction exists, and run a verification request that should be blocked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlicius/obsidian-steward/guardrails
Install

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.

Any agent
npx skills add googlicius/obsidian-steward --skill guardrails
Clone the repo
git clone --depth 1 https://github.com/googlicius/obsidian-steward

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlicius/obsidian-steward/guardrails/github.svg)](https://agentmods.dev/skills/googlicius/obsidian-steward/guardrails)
Your own site
<a href="https://agentmods.dev/skills/googlicius/obsidian-steward/guardrails"><img src="https://agentmods.dev/badge/skills/googlicius/obsidian-steward/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.

agentmods 80×15 button for guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlicius/obsidian-steward/guardrails"><img src="https://agentmods.dev/badge/skills/googlicius/obsidian-steward/guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 34
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 36
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 40
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00850
Opus 5 $0.00022 $0.00425
Sonnet 5 $0.00009 $0.00170
Haiku 4.5 $0.00004 $0.00085

Measured 11d ago against content hash 078b2b9ef27b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

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 11d 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.

skills/guardrails/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Guardrails Skill

This skill enables you to define safety rules that restrict which folders and files the AI can access. Rules are stored as separate markdown files in Steward/Rules/ — one file per rule.

Rule File Structure

Each rule lives in its own .md file under Steward/Rules/ (flat structure). Each file has:

  1. YAML frontmatter — the rule definition (name, targets, actions, optional instruction, optional enabled)
  2. Documentation — markdown body explaining the rule
  3. Verification query — a ready-to-run command that triggers the rule so users can confirm it works (see below)

Create new rule files (Use create tool) when adding rules. Edit existing rule files (Use edit tool) when updating.

Documentation

Keep the rule body brief plus the verification query.

Verification Query

Include a verification query in each rule's documentation. This is a Steward command that would trigger the rule (and get blocked), so users can quickly confirm the rule works. Format:

  • Format: Commands start with / (slash + space); put the command on its own line
  • Content: A natural-language request that would perform one of the restricted actions on a target (e.g., list, read, create, edit) Add it in the rule body, e.g. under a Verify or Test section.

Frontmatter Format

Field Required Description
name Yes A short identifier for the rule (e.g., "No secrets access")
targets Yes Array of path patterns (folders or files). Use folder/ for folders, *.ext for file types
actions Yes Array of actions to restrict: read, list, create, edit, delete, move, rename, copy
instruction No Optional override only when the user explicitly requires strict guidance. Default is no instruction; violations are serialized for the AI to adapt
enabled No Set to false to disable a rule. Default is true

Read the full file on GitHub · 88 lines

Changes

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.

  1. 11d ago First seen · 88 lines · 44 tokens per session scan A 078b2b9ef27b

Subscribe to this mod's changes

guardrails is a skill published in the GitHub repository googlicius/obsidian-steward (85 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 850 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

ai-seo

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for…

freekmurze/dotfiles · 147 tokens

churn-prevention

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause…

freekmurze/dotfiles · 140 tokens

marketing-psychology

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental…

freekmurze/dotfiles · 79 tokens

ad-creative

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative…

freekmurze/dotfiles · 120 tokens

copy-editing

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused…

freekmurze/dotfiles · 73 tokens

typefully

Create, schedule, and manage social media posts via Typefully. ALWAYS use this skill when asked to draft, schedule, post, or check tweets, posts, threads, or social media content for Twitter/X, LinkedIn, Threads, Bluesky, or Mastodon.

freekmurze/dotfiles · 57 tokens