linktogo/maggie/app-router

Claude Code and agent skill by linktogo/maggie

Trust tier 3
  • community
Source check pending

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-router

SKILL.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.tsx for shared shells, loading.tsx for

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/linktogo/maggie/app-router/badge)](https://verified-skill.com/skills/linktogo/maggie/app-router)

Something wrong with this skill or its page? Tell us.