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 agentmods add rules/gurbaaz27/cursorrules/auto-update-llms-robots-txtgit clone --depth 1 https://github.com/gurbaaz27/cursorrulesWrote 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/gurbaaz27/cursorrules/auto-update-llms-robots-txt)<a href="https://agentmods.dev/rules/gurbaaz27/cursorrules/auto-update-llms-robots-txt"><img src="https://agentmods.dev/badge/rules/gurbaaz27/cursorrules/auto-update-llms-robots-txt.svg" alt="Measured on agentmods" 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.01923 |
| Opus 5 | $0.00000 | $0.00962 |
| Sonnet 5 | $0.00000 | $0.00385 |
| Haiku 4.5 | $0.00000 | $0.00192 |
Grade A, and why
auto-update-llms-robots-txt 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 6d 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 — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Auto-Update llms.txt and robots.txt
When a page file is created, edited, or deleted, you MUST update both llms.txt and robots.txt to reflect the current state of all crawlable pages.
Detection Rules
1. Identify Protected/Authenticated Routes
A page is considered protected (should be disallowed) if ANY of the following conditions are met:
By Path Pattern:
- Located under
/auth/,/admin/,/dashboard/,/account/,/settings/,/profile/,/private/,/internal/,/api/ - Path contains
[...auth],(auth),(protected),(private),(admin) - Located under route groups like
(dashboard),(admin),(authenticated)
By Code Analysis:
- Uses authentication HOCs:
withAuth,withSession,requireAuth,ProtectedRoute,AuthGuard - Uses auth hooks:
useAuth,useSession,useUser,useProtectedRoute - Has middleware protection (check for
middleware.ts/jsin parent directories) - Contains auth checks:
getServerSession,getSession,auth(),requireAuthentication - Uses route guards or navigation guards (Vue Router, Angular)
- Has
export const config = { auth: true }or similar metadata - Contains redirects to login pages for unauthenticated users
By File/Folder Naming:
- Files prefixed with
_(often private in some frameworks) - Located in folders named
protected/,private/,secure/
2. Identify Public Routes
A page is considered public (should be allowed) if:
- No authentication logic detected
- Explicitly marked as public:
export const config = { auth: false } - Common public pages:
/,/about,/contact,/pricing,/blog/*,/docs/*,/faq,/terms,/privacy,/help
File Locations
Look for existing files in these locations (in order of priority):
llms.txt:
/public/llms.txt/static/llms.txt/llms.txt(root)
robots.txt:
/public/robots.txt/static/robots.txt/robots.txt(root)
If files don't exist, create them in /public/ (or /static/ for frameworks that use it).
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.
- 6d ago First seen · 270 lines · 0 tokens per session scan A b7ff5f119228
auto-update-llms-robots-txt is a cursor rule published in the GitHub repository gurbaaz27/cursorrules (1 stars, last pushed 8mo ago), licensed CC0-1.0. It costs nothing until one of its globs matches a file; then it loads 1,923 tokens. 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-31.
Other cursor rules, from other repositories
refactoring
Refactoring: systematic approach, extract/inline, guard clauses, early returns.
angular
Angular: signals, standalone components, RxJS patterns.
django
Django: models, views, ORM best practices.
go
Go patterns: error wrapping, goroutines, interfaces.
java
Modern Java: records, sealed classes, streams, virtual threads.
javascript
Modern JavaScript: ES2023+, async patterns, common traps.