skyroc-admin-routing

Align admin routes and metadata with gen-route validation.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/xinge-ji/skyroc --skill skyroc-admin-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skyroc-admin-routing
Source: https://github.com/xinge-ji/skyroc/tree/main/.agents/skills/skyroc-admin-routing
Command: npx skills add https://github.com/xinge-ji/skyroc --skill skyroc-admin-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Admin routing and page metadata tend to drift as pages and routes evolve in Skyroc Admin; this Skill provides a structured, repeatable workflow to keep admin routes, layout integrations, and permission metadata in sync.

Core Features & Use Cases

  • Update admin/src/pages and admin/src/router to add or modify routes, layouts, and permissions.
  • Generate and validate route declarations using the gen-route command to ensure consistency with i18n keys, icons, keepAlive, and sort order.
  • Use with dynamic routes and built-in templates to ensure translations and route metadata stay aligned with project conventions.

Quick Start

Add or modify route-related files under admin/src/pages, then run pnpm -C admin gen-route to generate and validate the updated routes.

Frequently Asked Questions about skyroc-admin-routing

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

FAQPage Schema
How do I keep admin routes and page metadata in sync when adding new pages?

To keep admin routes and metadata in sync, modify files under admin/src/pages and admin/src/router, then run pnpm -C admin gen-route to generate and validate route declarations against i18n keys, icons, and sort order.

What does the gen-route command validate in frontend routing?

The gen-route command validates generated route declarations to ensure consistency with i18n keys, icons, keepAlive settings, and sort order across dynamic and static pages within the pnpm-based frontend workflow.

Can I use this workflow for both dynamic and static admin routes?

Yes, this workflow applies to both dynamic and static admin routes. It ensures translations and route metadata stay aligned with project conventions using built-in templates and layout integrations.

Why do my i18n route translations drift after modifying admin pages?

i18n route translations drift when pages evolve without structured validation. Running pnpm -C admin gen-route after modifying admin/src/pages enforces i18n-consistency requirements and regenerates route metadata to prevent drift.

Do I need specific dependencies to generate route declarations for Skyroc Admin?

You need a pnpm-based frontend environment to run the gen-route command. The workflow operates within the existing admin/src/pages and admin/src/router directories to align route generation and permissions.