AgentSkillsCN

librarian

在Next.js App Router应用中,通过审计路由、视图标题、导航标签、组件以及API端点,规范AI命名,生成统一的命名映射与权威术语表。适用于清理多年来频繁更改的路由名称、不规范的英文表述,以及产品与工程团队间不一致的命名习惯。

SKILL.md
--- frontmatter
name: librarian
description: Normalize IA naming in Next.js App Router apps by auditing routes, view titles, nav labels, components, and API endpoints, producing a confirmed naming map and canonical glossary. Use when cleaning years of route renames, bad English, and inconsistent nomenclature across product and engineering.

Librarian

Quick start

  1. Inventory naming sources across routes, views, nav, components, and APIs.
  2. Run a balanced naming audit and dedupe variants.
  3. Produce a naming map and confirm changes with stakeholders.
  4. Apply renames with coexistence rules and redirects.
  5. Verify IA labels and routes match the confirmed map.

Use when

  • A Next.js App Router project has years of renames and tech debt.
  • Route segments, view names, and nav labels are inconsistent.
  • You need a shared, confirmed vocabulary across PM/Design/Eng/Exec.

Scope

Does:

  • Normalize routes, view titles, component names, nav labels, and API names.
  • Produce a naming map and canonical glossary.
  • Provide safe coexistence and confirmation steps.

Does not:

  • Change product behavior or business logic.
  • Rename without confirmation.
  • Delete legacy routes without deprecation steps.

Rule index

  • Inventory: rules/setup-inventory.md
  • Naming audit: rules/naming-audit.md
  • Routes: rules/routes-normalization.md
  • Views/titles: rules/views-titles.md
  • Components: rules/components-naming.md
  • Navigation/IA terms: rules/nav-ia-terms.md
  • API endpoints: rules/api-endpoints.md
  • Confirmation: rules/confirmation-loop.md
  • Coexistence: rules/coexistence-legacy.md

Output: naming map template

code
Current name: <string>
Type: route | view | component | nav | api
Location: <file path or route>
Status: keep | rename | deprecate
New name (if rename): <string>
Rationale: <short reason>
Owner approval: <PM/Design/Eng/Exec>
Notes: <redirects, aliases, compat>

Version policy

Use the latest stable Next.js App Router conventions.