navigo

A set of coding rules for Navigo, a JavaScript library that connects web addresses to page behavior. Routing means deciding what a web application shows for each URL.

In plain words
What is it for?
Use it while registering routes, navigating between pages, handling 404 pages, running route hooks, or removing routes.
Why use it?
It gives an agent reference material when changing navigation, URL handling, route hooks, or not-found pages.

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/benallfree/vibescale/navigo
Clone the repo
git clone --depth 1 https://github.com/benallfree/vibescale

Made for: Cursor.

Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,129 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.00008 $0.01129
Opus 5 $0.00004 $0.00564
Sonnet 5 $0.00002 $0.00226
Haiku 4.5 $0.00001 $0.00113

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

Security

Grade A, and why

navigo 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 2d 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/navigo.mdc · 257 lines

How it starts

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

Quick Reference

Installation and Initialization

const router = new Navigo('/root/path', {
  strategy: 'ONE' | 'ALL', // Default: 'ONE'
  noMatchWarning: boolean, // Default: false
})

Core Methods

Method Description Example
on() Register routes router.on('/path', handler)
navigate() Navigate with URL change router.navigate('/path')
resolve() Navigate without URL change router.resolve()
notFound() Handle 404 routes router.notFound(handler)
destroy() Remove all routes router.destroy()

Detailed Guide

Route Registration Methods

  1. Single Route
router.on('/foo/bar', () => {
  // Handler for '/foo/bar'
})
  1. Root Route
router.on(() => {
  // Handler for root path
})
  1. Multiple Routes Map
router.on({
  '/foo/bar': () => {
    /* handler */
  },
  '/foo/baz': () => {
    /* handler */
  },
})
  1. Named Routes
router.on({
  '/foo/bar': {
    as: 'routeName',
    uses: () => {
      /* handler */
    },
  },
})

Route Hooks

Hook Types
type RouteHooks = {
  before?: (done: Function, match: Match) => void
  after?: (match: Match) => void
  leave?: (done: Function, match: Match) => void
  already?: (match: Match) => void
}
Adding Hooks
  1. Route-Specific Hooks
router.on('/path', handler, {
  before: (done, match) => {
    // Pre-route logic
    done() // Continue
    // done(false); // Cancel navigation
  },
  after: (match) => {
    // Post-route logic
  },
})
  1. Global Hooks
router.hooks({
  before: (done, match) => {
    // Global pre-route logic
    done()
  },
})

Navigation Options

Read the full file on GitHub · 257 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. 2d ago First seen · 257 lines · 8 tokens per session scan A 5c17d8d89f96

Subscribe to this mod's changes

navigo is a cursor rule published in the GitHub repository benallfree/vibescale (4 stars, last pushed 1y ago), licensed MIT. It adds 8 tokens to every session and 1,129 once invoked, about $0.0000 per session on Opus 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-31.