Agent skill
research-nextjs
Research Next.js 15 patterns, examples, and documentation using Exa code search and Ref documentation
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/research-nextjs
SKILL.md
Research Next.js Patterns
Use this skill when you need to:
- Learn about Next.js 15 App Router patterns
- Find real-world implementation examples
- Research Server Components vs Client Components
- Understand caching and revalidation strategies
- Learn about metadata, routing, or middleware patterns
Process
-
Identify Research Need
- What specific Next.js pattern or feature do you need?
- Is it about routing, data fetching, performance, or configuration?
-
Search Documentation (Ref)
Use ref_search_documentation with query focused on: - "Next.js 15 app router [specific topic]" - "Next.js server components" - "Next.js [feature name]" -
Find Code Examples (Exa)
Use get_code_context_exa with query: - "Next.js 15 app router [pattern] implementation example" - "Next.js server component with [feature]" - "Next.js API route [specific use case]" -
Read Full Documentation
Use ref_read_url to get complete docs from search results -
Synthesize Learning
- Compare documentation with real code examples
- Identify best practices
- Note any version-specific considerations
- Document patterns in .claude/memory/org/patterns.json
Example Queries
Server Components
// Documentation search
Query: "Next.js 15 server components data fetching patterns"
// Code context search
Query: "Next.js 15 server component async data fetch database example"
API Routes
// Documentation search
Query: "Next.js 15 route handlers API routes"
// Code context search
Query: "Next.js 15 route handler POST validation authentication example"
Caching
// Documentation search
Query: "Next.js 15 caching revalidation strategies"
// Code context search
Query: "Next.js 15 revalidatePath revalidateTag implementation example"
Output
After research, provide:
- Summary of findings - Key concepts and patterns
- Code examples - Real implementations from Exa
- Best practices - From documentation and examples
- Implementation guide - How to apply in this project
- Common pitfalls - What to avoid based on examples
When to Use
- Starting a new feature with unfamiliar Next.js patterns
- Debugging Next.js-specific issues
- Optimizing performance (caching, streaming, etc.)
- Learning about new Next.js 15 features
- Before making architectural decisions
Related Skills
- research-react (for React patterns)
- research-typescript (for type patterns)
- research-performance (for optimization)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?