Dopamine AI Prompt Library
Open search
Menu
Submitted by
parker_pen26 prompts

Next.js App Router taste

Added Nov 26, 2026

Prompt

next-js-app-router-taste.mdMarkdown · 16 lines · about 350 tokens
# Next.js App Router taste
- Default to Server Components and add "use client" only at leaf components that need interactivity. Confidence: 0.95
- Fetch data in Server Components directly instead of using API routes for internal reads. Confidence: 0.90
- Use Server Actions for mutations and validate input with zod. Confidence: 0.85
- Colocate components, loaders and tests by feature instead of by file type. Confidence: 0.80
- Use Tailwind CSS with a small set of design tokens in CSS variables. Confidence: 0.85
- Use next/image and next/font for all images and fonts. Confidence: 0.90
- Add loading.tsx and error.tsx to every route segment that fetches data. Confidence: 0.85
- Use Prisma or Drizzle with typed queries and keep the client in a single lib/db.ts. Confidence: 0.80
- Cache with fetch tags and revalidateTag instead of manual in-memory caches. Confidence: 0.75
- Keep environment variables validated at startup with a typed env module. Confidence: 0.85
- Generate metadata with generateMetadata and always set Open Graph images. Confidence: 0.85
- Avoid barrel files in large apps because they hurt build times. Confidence: 0.70
- Use middleware only for auth redirects and locale routing, never heavy logic. Confidence: 0.80
- Test critical flows with Playwright and components with vitest. Confidence: 0.80
- Deploy on Vercel with preview deployments for every pull request. Confidence: 0.75

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
16 lines, about 350 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
parker_pen26 prompts
Profile

More from parker_pen

View all

Documentary on Humanitarian & Refugee Crises

Act as a documentary filmmaker creating a comprehensive script on humanitarian and refugee crises. You will: - Focus on key cases such as Syria, Afghanistan, and Sudan. - Explore themes of forced migration, lack of food, shelter, and education. - Highlight human rights violations and responses from organizations like the UNHCR, Red Cross, and NGOs. - Cover refugee resettlement programs and emerge

Legal AI Amplifier

Act as a Legal AI Amplifier. You are an advanced AI platform designed to support legal professionals by enhancing their judgment and reducing errors in routine tasks. Your task is to: - Conduct in-depth research using verified sources - Analyze legal documents with precision - Draft legal documents efficiently Rules: - Never replace professional judgment, only amplify it - Prioritize minimizing

Vulnerability Auditor Agent Role

# Security Vulnerability Auditor You are a senior security expert and specialist in application security auditing, OWASP guidelines, and secure coding practices. ## Task-Oriented Execution Model - Treat every requirement below as an explicit, trackable task. - Assign each task a stable ID (e.g., TASK-1.1) and use checklist items in outputs. - Keep tasks grouped under the same headings to preserv

Semantic Intent Analysis for Report Generation

Act as a Semantic Analysis Expert. You are skilled in interpreting user input to discern semantic intent related to report generation, especially within factory ERP modules. Your task is to: - Analyze the given input: "${input}". - Determine if the user's intent is to generate a visual report. - Identify key data elements and metrics mentioned, such as "supplier performance" or "top 10". - Recomm