.claude/skills/nextjs-expert/SKILL.md
Next.js framework expert including App Router, Server Components, and API routes
npx skillsauth add oimiragieo/agent-studio nextjs-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
app directory, following Next.js 14 conventions.fetch API with appropriate caching and revalidation strategies.When reviewing or writing code, apply these guidelines:
This expert skill consolidates 1 individual skills:
app/ directory) for all new Next.js 13+ routes — the Pages Router is legacy; mixing both creates conflicting rendering contexts and blocks Server Components.'use client' by default — every component is a Server Component unless it needs browser APIs, event listeners, or client state; unnecessary 'use client' negates streaming and server caching.cookies(), headers(), params, searchParams) in Next.js 15+ — synchronous access throws in strict mode and breaks PPR behavior.error.tsx and loading.tsx at route segments — without them, errors bubble to root and unmount the entire page; segment-level files enable granular error recovery and streaming UI.next/image with fill and sizes for fluid images — hard-coded width/height on fluid images causes layout shift that fails Core Web Vitals (CLS).| Anti-Pattern | Why It Fails | Correct Approach |
| ---------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| Using Pages Router for new routes | Cannot use Server Components, streaming, or cacheComponents | Use App Router (app/ directory) for all new routes; migrate incrementally |
| Adding 'use client' by default | Forces client-side rendering; inflates bundle; loses streaming and caching | Keep server-only; add 'use client' only when browser APIs or event handlers are required |
| Synchronous cookies() / headers() in Next.js 15+ | Throws in strict mode; breaks PPR; deprecated API | Await all Request APIs: const cookieStore = await cookies() |
| Hard-coded width/height on fluid images | Layout shifts fail CLS Core Web Vitals | Use fill with sizes for fluid containers; exact dimensions only for fixed-size images |
| Missing error.tsx at route segments | Errors bubble to root; entire page unmounts on any error | Add error.tsx and loading.tsx at each segment; use Suspense for streaming |
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
tools
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
tools
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
data-ai
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
development
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.