Skip to content
Back to skills

Verify Router Boundaries

ASecurity

Verify changed files in a mixed Next.js repository against the correct App Router or Pages Router conventions, rendering model, metadata API, data ownership, and test paths. Use during route changes, shared-module refactors, or staged Pages-to-App migrations when one global router assumption would be unsafe.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
developmentreactnextjsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add h4ckney/frontend-agent-playbook --skill verify-router-boundaries --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verify Router Boundaries?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verify Router Boundaries
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/h4ckney-verify-router-boundaries/badge)](https://www.skillsdirectory.com/skills/h4ckney-verify-router-boundaries)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verify-router-boundaries
description: Verify changed files in a mixed Next.js repository against the correct App Router or Pages Router conventions, rendering model, metadata API, data ownership, and test paths. Use during route changes, shared-module refactors, or staged Pages-to-App migrations when one global router assumption would be unsafe.
---

# Verify Router Boundaries

## Required Input

- Changed files or proposed migration scope
- Installed Next.js and React versions
- Current `app/` and `pages/` route inventory
- Existing migration decisions and test commands

## Workflow

1. Classify every changed route file as App Router, Pages Router, shared, or outside routing.
2. Confirm RSC, SSR, and client-rendering behavior from the affected tree rather than package major versions.
3. Check imports from shared modules for server-only, browser-only, and serialization constraints.
4. Apply App Router metadata, cache, and boundary APIs only to the App Router tree.
5. Apply Pages Router data methods and `next/head` conventions only to the Pages Router tree.
6. Identify redirects, rewrites, links, tests, and observability paths that cross the boundary.
7. Report conflicts and required verification without migrating additional routes.

## Stop Conditions

- Stop when the changed route cannot be assigned to one tree.
- Stop when a shared module mixes server-only and browser-only dependencies without an owner decision.
- Do not move routes, add `use client`, or replace data APIs without separate approval.

## Verification

- Run existing route, type, lint, test, and build checks relevant to the changed tree.
- Exercise representative URLs from both trees when shared routing or middleware changed.
- Record checks not run and environment-dependent behavior.

## Output

```markdown
## Route Classification
## Rendering Boundaries
## Cross-Tree Risks
## Required Changes
## Verification
## Unverified Assumptions
```

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml295 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.