nextjs-app-router
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/kentoshimizu/sw-agent-skills --skill nextjs-app-router
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
Nextjs App Router
Overview
Use this skill to design App Router implementations that are predictable in rendering, caching, and navigation behavior.
Scope Boundaries
- Use this skill when the task matches the trigger condition described in
description. - Do not use this skill when the primary task falls outside this skill’s domain.
Shared References
- Server/client and cache rules:
references/server-client-and-cache-rules.md
Templates And Assets
- App Router architecture template:
assets/app-router-architecture-template.md
- App Router verification checklist:
assets/app-router-checklist.md
Inputs To Gather
- Route hierarchy, layout composition, and navigation requirements.
- Server/client interaction boundaries.
- Freshness, SEO, and caching constraints.
- Error/loading behavior requirements.
- Route param/search param/request payload contracts and ownership boundaries.
Deliverables
- Route/layout map with rendering strategy.
- Data-fetch and cache/revalidation policy.
- Error/loading/not-found boundary plan.
- Verification evidence for transition and consistency behavior.
Workflow
- Define route/layout architecture in
assets/app-router-architecture-template.md. - Apply server/client boundary rules from
references/server-client-and-cache-rules.md. - Parse and normalize route/search/action inputs at boundaries into explicit typed shapes.
- Configure fetch/cache/revalidation policy per route criticality.
- Implement explicit loading/error/not-found boundaries.
- Validate with
assets/app-router-checklist.md.
Quality Standard
- Route tree and ownership are explicit.
- Server/client boundaries are minimal and intentional.
- Cache policy matches data freshness requirements.
- Navigation preserves data consistency across transitions.
- Server actions and route handlers avoid repeated cast-heavy shape fixes by using boundary-normalized contracts.
Failure Conditions
- Stop when boundaries between server and client are ambiguous.
- Stop when caching strategy risks stale or inconsistent user state.
- Escalate when critical route behavior cannot be made deterministic.