darknecrocities/skillbuilder/routing
Claude Code and agent skill by darknecrocities/skillbuilder
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Modern file-based routing architecture, Next.js App Router, layout hierarchies, parallel/intercepting routes, and Flutter declarative navigation.
Install
npx vskill@latest install darknecrocities/skillbuilder/routingSKILL.md
The same SKILL.md was published earlier as darknecrocities/skillbuilder/routing.
File-Based Routing & Deep URL Layout Architecture (/routing)
Philosophy: URLs are the primary contract of the web. Route entrypoints (page.tsx) must remain pure orchestrators. Co-locate feature components in domain slices, never in route roots. Dynamic segments require loading and error boundaries. Layout nesting must not exceed 4 levels.
This skill establishes defensive engineering standards for file-based and declarative routing across Next.js App Router, React Router v7 / Remix, TanStack Router, and Flutter GoRouter.
1. Quick Navigation & Progressive Disclosure
| Resource Type | Document | Description | |
|---|---|---|---|
| Reference | references/nextjs-app-router-patterns.md | File conventions (page, layout, loading, error), parallel and intercepting routes. | |
| Reference | references/flutter-declarative-routing.md | GoRouter declarative setups, redirect guards, deep linking on mobile/web. | |
| Utility | scripts/verify_routing_architecture.py | Scans route directories for bloated page.tsx files, missing error/loading boundaries, and deep layout nesting. |
2. The Core Routing Architecture Gates
- Gate 1: Edge Path Sanitization: Validate route params and authorization headers in middleware before executing server components.
- Gate 2: Mandatory Fallback Boundaries: Every dynamic route segment (
[id],[slug]) must provide co-locatedloading.tsx(or skeleton) anderror.tsx(with reset boundary). - Gate 3: Pure Route Entrypoints:
page.tsxmust only extract params, trigger domain data fetching, and render domain container components. Zero inline business logic or heavy sub-components. - Gate 4: Type-Safe Param & Query Validation: Parse and validate dynamic route parameters and query strings using Zod or strict type guards.
- Gate 5: Layout Nesting Ceiling: Limit layout nesting to a maximum depth of 4 levels (
/,/(dashboard),/projects,/[id]) to prevent layout thrashing and context bloating.
2. Next.js App Router Layout Hierarchy
3. Pure Route Orchestrator & Type-Safe Params (TypeScript)
4. Routing Architecture Verification CLI
Audit your routing tree for missing error/loading boundaries and deep layout nesting:
Audited Rules:
ROUTING-MISSING-LOADING-BOUNDARY: Flags dynamic segments ([id]) missing a siblingloading.tsxor skeleton.ROUTING-MISSING-ERROR-BOUNDARY: Flags dynamic segments missing a siblingerror.tsxboundary.ROUTING-EXCESSIVE-LAYOUT-DEPTH: Flags route trees exceeding 4 nested layout levels.ROUTING-POLLUTED-PAGE-ENTRYPOINT: Flagspage.tsxfiles exceeding 100 lines with co-located business components.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/routing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/darknecrocities/skillbuilder/routing)