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/craftled/bordful/app-router-structuregit clone --depth 1 https://github.com/craftled/bordfulWrote 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/craftled/bordful/app-router-structure)<a href="https://agentmods.dev/rules/craftled/bordful/app-router-structure"><img src="https://agentmods.dev/badge/rules/craftled/bordful/app-router-structure.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 | $0.00000 | $0.00825 |
| Opus 5 | $0.00000 | $0.00413 |
| Sonnet 5 | $0.00000 | $0.00165 |
| Haiku 4.5 | $0.00000 | $0.00082 |
Grade A, and why
app-router-structure 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 3d 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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js App Router Structure
Bordful uses Next.js 15 with the App Router for file-based routing. Understanding this structure is crucial for navigation and adding new features.
Core Layout
- app/layout.tsx - Root layout with navigation, footer, and global providers
- app/globals.css - Global styles and Tailwind CSS imports
- app/page.tsx - Homepage with job listings
Page Routes
Static Pages
app/about/- About pageapp/contact/- Contact form pageapp/faq/- Frequently asked questionsapp/pricing/- Pricing plans pageapp/terms/- Terms of serviceapp/privacy/- Privacy policyapp/changelog/- Product changelog
Job-Related Routes
app/jobs/- Main jobs listing pageapp/jobs/[category]/- Generic category-based job filtering (currently unused)app/jobs/[slug]/- Individual job detail pagesapp/jobs/language/[language]/- Jobs filtered by programming languageapp/jobs/languages/- All programming languages listingapp/jobs/level/[level]/- Jobs filtered by experience levelapp/jobs/levels/- All experience levels listingapp/jobs/location/[location]/- Jobs filtered by locationapp/jobs/locations/- All locations listingapp/jobs/type/[type]/- Jobs filtered by job typeapp/jobs/types/- All job types listing
Special Features
app/job-alerts/- Job alerts subscription page
API Routes
Core APIs
app/api/subscribe/- Email subscription endpoint for job alertsapp/api/og/- General Open Graph image generationapp/api/og/jobs/[slug]/- Open Graph image generation for job posts
Feed Generation
RSS/Atom/JSON Feeds
app/feed.xml/- RSS feed for job listingsapp/atom.xml/- Atom feed for job listingsapp/feed.json/- JSON feed for job listings
SEO & Meta Files
- app/robots.ts - Robots.txt generation
- app/sitemap.ts - Dynamic sitemap generation
- app/not-found.tsx - Custom 404 page
app/favicon.ico- Site favicon
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.
- 3d ago First seen · 91 lines · 0 tokens per session scan A a8ad46b71d2a
app-router-structure is a cursor rule published in the GitHub repository craftled/bordful (68 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 825 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-30.
Other cursor rules, from other repositories
core-rules
Open Source version of Indie Kit Pro to launch your SaaS in minutes.
commit-checks
Run gofmt, go vet, and unit tests before committing Go files.
i18n
// ✅ Use import { Link, useRouter, usePathname, getPathname } from "@/i18n/navigation".
seo
SEO — metadata, hreflang, sitemap, robots, and site config.
components
React components — shadcn/ui, RTL, theme, and client/server boundaries.
nextjs-pages
App Router pages, layouts, and route handlers under [locale].