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.
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starterWrote 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/rules/yudefine/nuxt-supabase-starter/nuxt-security)<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/nuxt-security"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/nuxt-security/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/rules/yudefine/nuxt-supabase-starter/nuxt-security"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/nuxt-security.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.00000 | $0.03982 |
| Opus 5 | $0.00000 | $0.01991 |
| Sonnet 5 | $0.00000 | $0.00796 |
| Haiku 4.5 | $0.00000 | $0.00398 |
Grade A, and why
nuxt-security scanned grade A 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
對應不上 = 該 endpoint 對外 POST **必定** HTTP 403。建議部署後立刻 `curl -X POST` 一次驗收。 How it starts
The opening of the file, as written. The whole thing — 330 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Nuxt Security Baseline
本 rule 適用於有裝 nuxt-security 模組的 Nuxt consumer。目的:把 4+ 個 consumer 重複出現的 CSP / headers / CSRF baseline 統一規範化,避免各 consumer 漂移;保留 per-consumer 必然差異(connect-src / script-src / csurf 例外)讓專案各自宣告。
Baseline(必對齊欄位)
security 區塊MUST 包含以下 baseline。禁止修改值(除非有書面 ADR 記錄理由):
security: {
rateLimiter: false, // CF Workers 相容;自架 Nitro 也建議走 reverse proxy 做 rate limit
headers: {
crossOriginEmbedderPolicy: false, // 避免擋 SSR images
contentSecurityPolicy: {
'base-uri': ["'none'"],
'font-src': ["'self'", 'https:', 'data:'],
'form-action': ["'self'"],
'frame-ancestors': ["'none'"],
'img-src': ["'self'", 'data:', 'https:'],
'object-src': ["'none'"],
'script-src-attr': ["'none'"],
'style-src': ["'self'", "'unsafe-inline'"],
'upgrade-insecure-requests': true,
// ⬇ 以下四條 per-consumer 必填或選填,見下節
// baseline 預設含 'self' + 'https://cloudflareinsights.com'(CF Web Analytics beacon report endpoint)
'connect-src': ["'self'", 'https://cloudflareinsights.com', /* per-consumer extend */],
// 'script-src': [...], // 選填;若啟用 MUST 同時含 'https://static.cloudflareinsights.com'(CF beacon CDN)
// 'frame-src': [...], // 選填
// 'worker-src': [...], // 選填(用到 Web Worker / blob worker 時)
},
xFrameOptions: 'DENY',
},
csrf: true,
}
Per-consumer 必填欄位
connect-src
每個 consumer MUST 明列 connect-src,至少包含:
'connect-src': [
"'self'",
'https://cloudflareinsights.com', // baseline — CF Web Analytics beacon report endpoint(見 § Cloudflare Web Analytics beacon)
// 視 consumer 額外加:
// 'https://api.iconify.design', // 用 @nuxt/icon 且未切 server-bundle 時 dev mode 會打 iconify CDN
// 'https://accounts.google.com', // Google OAuth / Google Identity Services
// 'https://*.supabase.co', // Supabase managed
// 'https://<your-self-hosted-supabase>',// Supabase self-hosted(明列 host,不要 wildcards)
// 'https://*.ingest.sentry.io', // Sentry SaaS
// 'https://*.ingest.us.sentry.io', // Sentry SaaS(US region)
// 'https://*.line.me', // LINE LIFF / Login
],
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.
- yesterday Changed · -5 lines 117e3b2aa124
- 4d ago Changed · +1 lines ef6283d9ad56
- 8d ago First seen · 334 lines · 0 tokens per session scan A 9558c774f886
nuxt-security is a cursor rule published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,982 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other cursor rules, from other repositories
astro-strapi-blocks
Astro + Strapi Blocks — StrapiBlocks, data, theme (extend/overwrite), custom blocks.
endpoint-routing
Endpoint routing patterns and request handling conventions.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.