mandu-fs-routes
File-system based routing for Mandu. Use when creating pages, API routes, layouts, or dynamic routes. Triggers on tasks involving app/ folder, page.tsx…
от konamgil★ 46 звёзд на GitHub
Установить mandu-fs-routes в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mandu FS Routes
FS Routes는 파일 시스템 기반 라우팅입니다. app/ 폴더의 파일 구조가 URL이 됩니다.
Agent Workflow Contract
This skill is a Domain addendum. It must not replace mandu-agent-workflow.
Use it only after mandu.agent.plan selects the route or API domain.
Canonical workflow step: plan -> apply -> verify.
Preferred MCP tools:
| Step | Tools |
|---|---|
| plan | mandu.agent.plan, mandu.route.list |
| apply | mandu.agent.apply, mandu.generate, mandu.route.add |
| verify | mandu.agent.verify, mandu.manifest.validate |
| repair | mandu.agent.repair |
Allowed file edits:
app/**/page.tsx,app/**/layout.tsx,app/**/route.ts- Route-local metadata files and co-located helpers
- Related contract/slot files only when the plan includes those domains
Verification command:
mandu agent verify --changed --json --write
Common failures:
- Creating a page or API route before reading the local
app/pattern - Editing generated route manifests by hand
- Adding API files without contract verification when the plan includes API work
Repair path:
mandu agent repair --from .mandu/agent-verify.json --json
When to Apply
Reference these guidelines when:
- Creating new pages or API endpoints
- Setting up dynamic routes with parameters
- Implementing shared layouts
- Organizing route groups
- Working with catch-all routes
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | File Naming | CRITICAL | routes-naming- |
| 2 | Page Routes | HIGH | routes-page- |
| 3 | API Routes | HIGH | routes-api- |
| 4 | Dynamic Routes | MEDIUM | routes-dynamic- |
| 5 | Layouts | MEDIUM | routes-layout- |
Quick Reference
1. File Naming (CRITICAL)
routes-naming-page- Use page.tsx for page componentsroutes-naming-route- Use route.ts for API handlersroutes-naming-layout- Use layout.tsx for shared layouts
2. Page Routes (HIGH)
routes-page-component- Export default function componentroutes-page-metadata- Export metadata object for SEO
3. API Routes (HIGH)
routes-api-methods- Export GET, POST, PUT, DELETE functionsroutes-api-request- Access Request object as first parameter
4. Dynamic Routes (MEDIUM)
routes-dynamic-param- Use [id] for single parameterroutes-dynamic-catchall- Use [...slug] for catch-allroutes-dynamic-optional- Use ...slug for optional catch-all
5. Layouts (MEDIUM)
routes-layout-wrapper- Layouts wrap all child pagesroutes-layout-nesting- Layouts can be nested
URL Mapping
| File Path | URL |
|---|---|
app/page.tsx |
/ |
app/about/page.tsx |
/about |
app/users/[id]/page.tsx |
/users/:id |
app/api/users/route.ts |
/api/users |
app/(auth)/login/page.tsx |
/login |
How to Use
Read individual rule files for detailed explanations:
rules/routes-naming-page.md
rules/routes-dynamic-param.md
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- metadata.json
- rules/_sections.md
- rules/_template.md
- rules/routes-api-methods.md
- rules/routes-dynamic-param.md
- rules/routes-naming-page.md
FAQ
Что делает скилл mandu-fs-routes?
File-system based routing for Mandu. Use when creating pages, API routes, layouts, or dynamic routes. Triggers on tasks involving app/ folder, page.tsx, route.ts, layout.tsx, [id], [...slug], or URL patterns.
Как установить скилл mandu-fs-routes?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mandu-fs-routes запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…