app-router-structure

app-router-structure is a cursor rule for Cursor from craftled/bordful. It costs 0 tokens per session (825 once invoked), scanned A, original, MIT.

A guide to the folder and file layout used by Next.js 15's App Router, where folders define website routes. It covers shared layouts, styles, static pages, and job listing pages.

In plain words
What is it for?
Use it when adding or editing pages for jobs, locations, programming languages, experience levels, or other listed sections.
Why use it?
It helps you find the right file when changing navigation or adding features, without guessing how the site is organized.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/craftled/bordful/app-router-structure
Clone the repo
git clone --depth 1 https://github.com/craftled/bordful

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 app-router-structure

README.md
[![agentmods](https://agentmods.dev/badge/rules/craftled/bordful/app-router-structure.svg)](https://agentmods.dev/rules/craftled/bordful/app-router-structure)
Your own site
<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>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00825
Opus 5 $0.00000 $0.00413
Sonnet 5 $0.00000 $0.00165
Haiku 4.5 $0.00000 $0.00082

Measured 3d ago against content hash a8ad46b71d2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursor/rules/app-router-structure.mdc · 91 lines

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

Page Routes

Static Pages

  • app/about/ - About page
  • app/contact/ - Contact form page
  • app/faq/ - Frequently asked questions
  • app/pricing/ - Pricing plans page
  • app/terms/ - Terms of service
  • app/privacy/ - Privacy policy
  • app/changelog/ - Product changelog

Job-Related Routes

  • app/jobs/ - Main jobs listing page
  • app/jobs/[category]/ - Generic category-based job filtering (currently unused)
  • app/jobs/[slug]/ - Individual job detail pages
  • app/jobs/language/[language]/ - Jobs filtered by programming language
  • app/jobs/languages/ - All programming languages listing
  • app/jobs/level/[level]/ - Jobs filtered by experience level
  • app/jobs/levels/ - All experience levels listing
  • app/jobs/location/[location]/ - Jobs filtered by location
  • app/jobs/locations/ - All locations listing
  • app/jobs/type/[type]/ - Jobs filtered by job type
  • app/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 alerts
  • app/api/og/ - General Open Graph image generation
  • app/api/og/jobs/[slug]/ - Open Graph image generation for job posts

Feed Generation

RSS/Atom/JSON Feeds

  • app/feed.xml/ - RSS feed for job listings
  • app/atom.xml/ - Atom feed for job listings
  • app/feed.json/ - JSON feed for job listings

SEO & Meta Files

Read the full file on GitHub · 91 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. 3d ago First seen · 91 lines · 0 tokens per session scan A a8ad46b71d2a

Subscribe to this mod's changes

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.