App Router
This App Router skill simplifies React Native app navigation by providing a streamlined, declarative approach for building complex routes.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add davepoon-app-router npx -- -y @trustedskills/davepoon-app-router
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"davepoon-app-router": {
"command": "npx",
"args": [
"-y",
"@trustedskills/davepoon-app-router"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This App Router skill provides guidance and examples for using Next.js's App Router, a file-system based router built on React Server Components. It explains core file conventions (like page.tsx, layout.tsx, loading.tsx) and folder structures used to define routes and control UI behavior within the app/ directory of a Next.js project. The skill helps developers understand how to create basic routes, dynamic routes with parameters, and utilize specialized folders for different purposes (e.g., private components).
When to use it
- You're starting a new Next.js project using the App Router.
- You need help understanding the purpose of specific files like
page.tsx,layout.tsx, orerror.tsx. - You want to learn how to create dynamic routes with parameters in your Next.js application.
- You're unsure about the meaning and usage of folder conventions such as
[slug]/or(marketing)/.
Key capabilities
- Explains core file conventions for route definition (
page.tsx,layout.tsx, etc.). - Describes folder conventions for creating routes, dynamic segments, catch-all segments, and route groups.
- Provides examples of basic route structures and how to access route parameters.
- Details the purpose of special folders like
@folder/(named slots) and_folder/(private folders).
Example prompts
- "Explain what a 'layout.tsx' file does in Next.js App Router."
- "How do I create a dynamic route with a parameter called 'slug'?"
- "What is the purpose of the
@modalfolder convention?"
Tips & gotchas
- This skill focuses on understanding the structure and conventions of the Next.js App Router, not implementing complex application logic within those files.
- The
paramsprop in dynamic route components returns a Promise; be mindful of asynchronous handling when accessing parameters. - Familiarity with React Server Components is helpful for fully utilizing the App Router's capabilities.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.