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.
手順
Write the agent guide
Add an AGENTS.md (or equivalent project instructions) with commands, server/client rules and what the agent must not do.
次に進む前に確認
- The commands in the file actually run on your machine.
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.
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.
Review the server/client boundary
Run the boundary review prompt on every new or moved component.
次に進む前に確認
- No server-only import reaches a client component.
Verify in a browser
Exercise the feature in a real browser session and check the console for errors.
次に進む前に確認
- 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
このカタログについて
同梱スナップショット · 2026/11/15 6:05 に公開 · カタログのリビジョン 5bc079fe355af2214bc0
アプリに同梱されたスナップショットを表示しています(コンテンツソースが設定されていません)。ソース側にはより新しいコンテンツがある可能性があります。