guardrails

guardrails is a cursor rule for Cursor from louisbrulenaudet/monorepo-template. It costs 846 tokens per session, scanned A, original, Apache-2.0.

A set of rules that tells a coding agent which actions are never allowed, such as committing secrets or deleting files without permission.

In plain words
What is it for?
It helps review code changes, protect keys and private files, and require approval before risky Git or file operations.
Why use it?
It prevents unsafe changes and pauses the work when an action could destroy data or expose credentials.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

Good fit It helps review code changes, protect keys and private files, and require approval before risky Git or file operations.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/louisbrulenaudet/monorepo-template/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.

Clone the repo
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-template

Made for: Cursor.

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/rules/louisbrulenaudet/monorepo-template/guardrails/github.svg)](https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/guardrails)
Your own site
<a href="https://agentmods.dev/rules/louisbrulenaudet/monorepo-template/guardrails"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/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/rules/louisbrulenaudet/monorepo-template/guardrails"><img src="https://agentmods.dev/badge/rules/louisbrulenaudet/monorepo-template/guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 846 This file is loaded in full into every session.
When invoked 846 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00846 $0.00846
Opus 5.5 $0.00338 $0.00338
Sonnet 5.5 $0.00169 $0.00169
Haiku 4.5 $0.00085 $0.00085

Measured 1mo ago against content hash 7c7c270c7604, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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.

.cursor/rules/core/guardrails.mdc · 61 lines

How it starts

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

Guardrails

Hard "don'ts" for every change. When one would be violated, stop and ask.

The first three sections are enforced by .claude/settings.json and hooks/ (hooks/AGENTS.md); change the mechanism there, not only this wording. Claude Code runs every guard; Cursor and Codex run only the git guards, so there the secret-content and generated-file checks are advisory.

Never commit secrets

No credentials, API keys, tokens, private keys, .dev.vars / .env* files, database dumps, or logs containing any of those. A secret generated for local use stays out of version control. Enforced.

Destructive or irreversible actions - ask first

  • No history-rewriting or working-tree-destroying command (git reset --hard, git checkout -- <path>, git clean -f, git push --force, branch/tag deletion) unless the user asked for that exact operation. Prefer additive, reversible steps.
  • Commit or push only when asked, never directly to the default branch.
  • Before deleting or overwriting a file you did not create, read it; if it contradicts how it was described, surface that instead of proceeding.

Partly enforced; "never to the default branch" and "read before overwriting" are advisory.

Generated files are outputs, not sources

Never hand-edit a generated artifact: anything under apps/*/.cloudflare/** (cf Build Output, generated Env types, local dev state), a CHANGELOG.md (written by changeset version in the Release workflow), or any other build output. Change the source and regenerate with the documented command (pnpm types, the app's build); a changelog entry changes through its pending .changeset/*.md. Enforced.


Everything below is advisory. pnpm boundaries backs "Respect the boundaries" at package level only.

Stay within the task's scope

A task scoped to configuration, rules, docs, or agent setup does not drift into application source, cloudflare.config.ts, workflows, migrations, or infrastructure unless the user asks.

Read the full file on GitHub · 61 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. 1mo ago Changed · +28 tokens per session 7c7c270c7604
  2. 2mo ago Changed · +33 tokens per session f0ed603b7a9b
  3. 2mo ago Changed · -4 lines · -124 tokens per session 29ad517b6860
  4. 2mo ago Changed · -2 lines · -17 tokens per session b35e6fbcd3e1
  5. 2mo ago Changed · +1 lines · +61 tokens per session efbafd5f98cf
  6. 3mo ago First seen · 66 lines · 865 tokens per session scan A 3fb7cc4f4102

Subscribe to this mod's changes

guardrails is a cursor rule published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 8d ago), licensed Apache-2.0. It adds 846 tokens to every session, about $0.0034 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.

Related

guardrails compared with cursor rules from other repositories

guardrails next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
guardrailslouisbrulenaudet/monorepo-templateCursor rule198d agoApache-2.0A846Cursor
paperfitOpenRaiser/PaperFitCursor rule33726d agoMITA0Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
chaosJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
resumeJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor