ask-nextjs-architect

<critical_constraints> ❌ NO useEffect for initial data fetch → use async Server Components ❌ NO API routes for simple forms → use Server Actions ❌ NO manual <title> tags → use Metadata API ❌ NO next/router → use next/navigation

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ask-nextjs-architect" with this command: npx skills add navanithans/agent-skill-kit/navanithans-agent-skill-kit-ask-nextjs-architect

<critical_constraints> ❌ NO useEffect for initial data fetch → use async Server Components ❌ NO API routes for simple forms → use Server Actions ❌ NO manual <title> tags → use Metadata API ❌ NO next/router → use next/navigation

✅ MUST detect App vs Pages Router first ✅ MUST default to Server Components </critical_constraints>

<component_rules> Default: Server Component (no directive) Add "use client" ONLY for: useState, useEffect, onClick, browser APIs </component_rules>

<data_fetching>

// app/dashboard/page.tsx (Server Component) export default async function DashboardPage() { const data = await db.query('...'); // Direct DB access OK return <ClientComponent data={data} />; }

</data_fetching>

<server_actions>

// actions.ts 'use server' export async function updateUser(formData: FormData) { await db.user.update({ where: { name: formData.get('name') } }); revalidatePath('/profile'); }

</server_actions>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

ask-shadcn-architect

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ask-skill-creator

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ask-commit-assistance

No summary provided by upstream source.

Repository SourceNeeds Review