मुख्य सामग्री पर जाएँ
kitlocal.dev

Build a Next.js feature with a coding agent

A guard-railed way to build a Next.js feature with a coding agent: set the rules, give it live framework context, check boundaries, and verify in a real browser.

यह संसाधन केवल अंग्रेज़ी में उपलब्ध है।

शुरू करने से पहले

  • A Next.js App Router project you can run locally.
  • A coding agent that can read project instruction files and use MCP servers.

चरण

  1. Write the agent guide

    Add an AGENTS.md (or equivalent project instructions) with commands, server/client rules and what the agent must not do.

    उपयोग करता है: AGENTS.md for a Next.js App Router project

    आगे बढ़ने से पहले जाँचें

    • The commands in the file actually run on your machine.
  2. Give the agent framework context

    Connect a Next.js-aware MCP server so the agent can consult current framework docs and your running app instead of relying on memory.

    उपयोग करता है: Next.js DevTools MCP

    आगे बढ़ने से पहले जाँचें

    • The agent can answer a question about your Next.js version correctly.
  3. Implement in small steps

    Ask for one component or route at a time and review each diff before the next.

    आगे बढ़ने से पहले जाँचें

    • Each diff is focused on the request.
  4. Review the server/client boundary

    Run the boundary review prompt on every new or moved component.

    उपयोग करता है: Review a Next.js component for server/client boundaries

    आगे बढ़ने से पहले जाँचें

    • No server-only import reaches a client component.
  5. Verify in a browser

    Exercise the feature in a real browser session and check the console for errors.

    उपयोग करता है: Playwright MCPWeb App Testing

    आगे बढ़ने से पहले जाँचें

    • The main flow works and the console is clean.

अपेक्षित नतीजा

A working feature with reviewed boundaries and browser-level verification.

संबंधित संसाधन

  • A starting AGENTS.md that tells coding agents how to build, test and change a Next.js App Router codebase safely: commands, boundaries and what never to do without asking.

    चुना हुआKitLocalपरसों अपडेट हुआ

    agents-mdnextjsreactinstructions
इस कैटलॉग के बारे में

साथ में शामिल स्नैपशॉट · 15 नव॰ 2026, 6:05 am पर प्रकाशित · कैटलॉग रिविज़न 5bc079fe355af2214bc0

ऐप के साथ आया स्नैपशॉट दिखाया जा रहा है (कोई कंटेंट स्रोत कॉन्फ़िगर नहीं है)। स्रोत पर नया कंटेंट हो सकता है।