linktogo/maggie/app-router
Claude Code and agent skill by linktogo/maggie
- community
Checking that the SKILL.md file is still in the repository.
Structure a Next.js App Router project with correct server/client boundaries
Install
npx vskill@latest install linktogo/maggie/app-routerSKILL.md
The same SKILL.md was published earlier as linktogo/maggie/app-router.
Next.js App Router
Components are Server Components by default. Only opt into the client when you need interactivity — it ships JavaScript to the browser.
Rules
- Add
'use client'only to leaf components that use state, effects, event
handlers, or browser APIs. Keep it as low in the tree as possible.
- Do data fetching in Server Components (async components,
fetch, or a
server-side data layer). Do not fetch in a useEffect to render the first paint.
- Never import server-only code (DB clients, secrets,
fs) into a client
component. Guard server modules with import 'server-only'.
- Use the file conventions:
layout.tsxfor shared shells,loading.tsxfor
Suspense fallbacks, error.tsx for error boundaries, page.tsx for routes.
- Mutations go through Server Actions or route handlers, then
revalidatePath/revalidateTag to refresh cached data — do not manually patch client state and hope it matches the server.
Anti-patterns
- Marking a whole page
'use client'to fix one interactive widget. - Passing non-serializable values (functions, class instances) from a Server to
a Client Component as props.
- Leaking an API key into a client bundle by importing config that reads it.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nextjs/app-router/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/linktogo/maggie/app-router)