कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

next-best-practices

tuanvidev द्वारा

Web & Frontend Development
1.1kclawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling.

विवरण

यह स्किल क्या करती है

A coding assistant skill that enforces Next.js conventions during code writing and review. Covers RSC boundaries, async API migration for Next.js 15+, metadata, image and font optimization, error handling, and bundling.

Consolidates Next.js-specific rules that are otherwise spread across multiple official docs pages, covering patterns that generic linters miss.

इसे कब इस्तेमाल करें

  • Catching async client component errors before they reach production
  • Migrating to Next.js 15 async params, cookies, and headers APIs
  • Generating OG images with next/og for social sharing
  • Debugging hydration errors caused by browser API misuse
  • Configuring next/image for remote sources and LCP priority loading

उदाहरण वर्कफ़्लो

इनपुट

User asks: review my Next.js page component that uses params and cookies

एजेंट
  1. 1

    Check if params and cookies are awaited per Next.js 15 async API rules

  2. 2

    Detect any async client components, which are invalid in RSC boundaries

  3. 3

    Verify error boundaries (error.tsx, not-found.tsx) exist for the route

  4. 4

    Check that images use next/image instead of bare img tags

  5. 5

    Flag any non-serializable props passed across RSC boundaries

आउटपुट

A list of violations with specific fixes referencing Next.js 15 patterns

इंस्टॉलेशन

clawhub install tuanvidev/next-best-practices

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक