navigation-patterns

navigation-patterns is a skill for Claude Code from MadAppGang/magus. It costs 33 tokens per session (2,293 once invoked), scanned A, original, MIT.

A collection of patterns for controlling browser sessions and page navigation. It covers opening pages, working with multiple tabs, preserving browser profiles, and reusing saved authentication.

In plain words
What is it for?
Use it for URL navigation, multi-tab tasks, browser automation sessions, persistent profiles, and exporting or importing login state.
Why use it?
It provides a consistent way to inspect dynamic pages, manage session lifecycles, and avoid leaving browser sessions open.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Part of the browser-use plugin — 6 skills shipped together

Good fit Use it for URL navigation, multi-tab tasks, browser automation sessions, persistent profiles, and exporting or importing login state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madappgang/magus/navigation-patterns
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.

Any agent
npx skills add MadAppGang/magus --skill navigation-patterns
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code.

Or install browser-use, the plugin that ships this one along with the rest of its 6 skills.

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 navigation-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/navigation-patterns/github.svg)](https://agentmods.dev/skills/madappgang/magus/navigation-patterns)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/navigation-patterns"><img src="https://agentmods.dev/badge/skills/madappgang/magus/navigation-patterns/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.

agentmods 80×15 button for navigation-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/magus/navigation-patterns"><img src="https://agentmods.dev/badge/skills/madappgang/magus/navigation-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,293 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00033 $0.02293
Opus 5 $0.00016 $0.01146
Sonnet 5 $0.00007 $0.00459
Haiku 4.5 $0.00003 $0.00229

Measured 10d ago against content hash 9e69cbd73b46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

navigation-patterns 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 10d 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.

plugins/browser-use/skills/navigation-patterns/SKILL.md · 277 lines

How it starts

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

Patterns for URL navigation, multi-tab workflows, session lifecycle management, and browser profile persistence.


1. Basic Navigation

The fundamental browser pattern: navigate, inspect, interact, close.

Step 1: Navigate to URL (session created automatically)
  mcp__browser-use__browser_navigate(url="https://example.com")
  → Save session_id from response

Step 2: Inspect the page
  mcp__browser-use__browser_get_state(session_id="abc123")
  → Returns selector_map with numbered elements

Step 3: Interact (optional)
  mcp__browser-use__browser_click(index=3, session_id="abc123")

Step 4: Always close
  mcp__browser-use__browser_close_session(session_id="abc123")

Verify page loaded: After browser_navigate, check the response title and url. If title is blank or URL redirected unexpectedly, call browser_get_state to inspect the actual page content before proceeding.

Wait for dynamic content: For SPAs (React, Vue, Angular), the DOM may not be ready immediately after navigate. If selector_map in browser_get_state is sparse or empty, call browser_get_state again after a short delay:

1. browser_navigate(url="https://spa-app.example.com")
2. browser_get_state(session_id) → sparse selector_map?
3. browser_get_state(session_id) → call again; SPA renders after first paint

2. Back Navigation

Use browser_go_back to return to the previous page without creating a new navigation entry.

Pattern: Visit detail page, then return to list

1. browser_navigate(url="https://shop.example.com/products")    → session_id
2. browser_get_state(session_id) → find product links in selector_map
3. browser_click(index=5, session_id)                          → navigate to product detail
4. browser_extract_content(query="price and specs", session_id)
5. browser_go_back(session_id)                                  → back to product list
6. browser_get_state(session_id)                               → DOM refreshed
7. browser_click(index=6, session_id)                          → next product
... repeat ...
N. browser_close_session(session_id)

Read the full file on GitHub · 277 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. 10d ago First seen · 277 lines · 33 tokens per session scan A 9e69cbd73b46

Subscribe to this mod's changes

navigation-patterns is a skill published in the GitHub repository MadAppGang/magus (9 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 2,293 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

google-safe-browsing

Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…

davidondrej/skills · 105 tokens