route-discovery-system

Scan Next.js App Router filesystems to generate navigable route indices.

2|1|Updated Aug 24, 2024
One-click install
npx skills add https://github.com/armanisadeghi/ai-matrx --skill route-discovery-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: route-discovery-system
Source: https://github.com/armanisadeghi/ai-matrx/tree/main/.cursor/skills/route-discovery-system
Command: npx skills add https://github.com/armanisadeghi/ai-matrx --skill route-discovery-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates discovery of Next.js App Router pages by scanning the project filesystem and generating navigable route indices to replace hard-coded listings.

Core Features & Use Cases

  • Auto-discovers pages from app/ directories and groups them into intuitive indices.
  • Supports multiple display variants (grouped cards, data tables, expandable sections) for diverse UI needs.
  • Facilitates migrating from static config files to dynamic auto-discovery with minimal changes.

Quick Start

Point the skill at a Next.js project and generate a navigable index of App Router routes from the filesystem.

Frequently Asked Questions about route-discovery-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-discover Next.js App Router routes from the filesystem?

To auto-discover Next.js App Router routes, you scan the project filesystem to automatically generate navigable route indices, replacing hard-coded route configurations with dynamic server-side data structures.

What is the best way to migrate static Next.js route configs to dynamic auto-discovery?

Migrating static Next.js route configs to dynamic auto-discovery involves replacing hard-coded route listings with a filesystem scan that automatically groups app/ directory pages into intuitive indices with minimal setup changes.

Can I use different display variants for dynamically discovered Next.js routes?

Yes, dynamically discovered Next.js routes support switchable display variants, allowing you to render the generated route indices as grouped cards, data tables, or expandable sections to fit diverse UI needs.

Does route-discovery-system work with Next.js projects using the App Router?

Yes, route-discovery-system works specifically with Next.js projects using the App Router, scanning the app/ directory structure to produce client-ready displays and server-side data structures without extra dependencies.

Do I need external dependencies to scan the filesystem and generate route indices in Next.js?

No, you do not need external dependencies to scan the filesystem and generate route indices in Next.js, as the skill operates with an empty dependency list to produce navigable route structures directly.