Mandu fs routes

From konamgil/mandu · View interactive version

Mandu fs routes is an AI agent skill from the GitHub repository konamgil/mandu. 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.

How to use this skill

Skill file

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:

Verification command:

mandu agent verify --changed --json --write

Common failures:

Repair path:

mandu agent repair --from .mandu/agent-verify.json --json

When to Apply

Reference these guidelines when:

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)

2. Page Routes (HIGH)

3. API Routes (HIGH)

4. Dynamic Routes (MEDIUM)

5. Layouts (MEDIUM)

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.