next-best-practices
Next.js のベストプラクティスを適用する
Next.js プロジェクトは、境界の不明確さ、遅いデータ取得、デプロイのミスによって失敗することがよくあります。このスキルは、Claude、Codex、Claude Code に、最新の App Router 作業に集中したルールを提供します。
このスキルはパックに含まれています
タスクに必要なすべてのスキルを、パックごと 1 コマンドでインストールできます。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "next-best-practices" from https://skillstore.io/skills/vercel-labs-next-best-practices.md and its manifest at https://skillstore.io/api/skills/vercel-labs-next-best-practices/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「next-best-practices」を使用しています。 ユーザーデータ、投稿、コメントを順番に取得する route をレビューする。
期待される結果:
- data waterfall を特定し、parallel fetching または Suspense boundaries を推奨します。
- どの処理が Server Components に属し、どの処理が Server Actions に属するかを説明します。
- 不要なブラウザ側 data fetching を強制する client component boundary を指摘します。
「next-best-practices」を使用しています。 Docker セルフホスティング向けに Next.js app を準備する。
期待される結果:
- standalone output、static asset copying、non-root runtime users、health checks を推奨します。
- 複数インスタンスのデプロイで shared storage が必要になる ISR cache behavior を指摘します。
- サーバー側に留める必要があり、NEXT_PUBLIC prefixes を使うべきではない environment variables を列挙します。
「next-best-practices」を使用しています。 browser-only package を追加した後の hydration errors を調査する。
期待される結果:
- browser-only code を Server Components から分離します。
- server rendering が安全でない場合に client wrapper または dynamic loading を提案します。
- 関連する script、CSS、package bundling の選択を確認します。
セキュリティ監査
安全The static findings are false positives caused by Markdown examples, inline code names, placeholder URLs, and standard Next.js documentation snippets. No prompt injection, credential exfiltration, automatic command execution, or malicious intent was found in the reviewed files.
リスク要因
⚡ スクリプトを含む (7)
🌐 ネットワークアクセス (26)
⚙️ 外部コマンド (42)
🔑 環境変数 (14)
📁 ファイルシステムへのアクセス (2)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/vercel-labs-next-best-practices/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/vercel-labs-next-best-practices?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/vercel-labs-next-best-practices?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/vercel-labs-next-best-practices/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/vercel-labs-next-best-practices.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
vercel-labs. (2026). next-best-practices security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/vercel-labs-next-best-practices/audits/4BibTeX形式の引用
@techreport{vercel-labs-vercel-labs-next-best-practices-2026,
author = {vercel-labs},
title = {next-best-practices security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/vercel-labs-next-best-practices/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "next-best-practices security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "vercel-labs"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/vercel-labs-next-best-practices/audits/4"
identifiers:
- type: other
value: "skillstore:vercel-labs-next-best-practices:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 高作成できるもの
App Router への移行をレビューする
pages、layouts、async params、metadata、route handlers を現在の Next.js 規約に照らして確認します。
本番デプロイを計画する
セルフホスティング向けに standalone output、Docker settings、cache handlers、image strategy、health checks を選定します。
パフォーマンスとレンダリングの問題をデバッグする
hydration errors、data waterfalls、bundle problems、script loading、font または image configuration を診断します。
これらのプロンプトを試す
App Router のベストプラクティスの観点から、この Next.js page をレビューしてください。file conventions、server and client boundaries、明らかな data fetching issues に注目してください。
この Next.js data flow を分析してください。Server Component、Server Action、Route Handler、Promise.all、Suspense、preload pattern のどれを使うべきか推奨してください。
本番デプロイに向けて、この Next.js app を監査してください。image and font optimization、scripts、bundling、standalone output、cache behavior、health checks を確認してください。
この Next.js app の移行計画を作成してください。async request APIs、React Server Component boundaries、metadata、route handlers、Turbopack bundling、self-hosting risks を含めてください。
ベストプラクティス
- レビューを依頼する前に、関連ファイル、framework version、router type を提供してください。
- 例が cookies、headers、tokens、environment variables に触れる場合は、セキュリティレビューを依頼してください。
- 提案された変更は、build、lint、type checks、route-specific runtime testing で検証してください。
回避
- すべての推奨事項を Pages Router projects や古い Next.js versions に盲目的に適用しないでください。
- server-only environment values を public config endpoints 経由で公開しないでください。
- 例示用の auth または token snippets を、自分の security model に適合させずにコピーしないでください。
よくある質問
このスキルは Next.js App Router をサポートしていますか?
コードを自動的に更新できますか?
公式の Next.js ドキュメントの代わりになりますか?
セルフホスト型デプロイに役立ちますか?
セキュリティレビューに対応していますか?
どのツールがこのスキルを使用できますか?
開発者情報
作成者
vercel-labsライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
参照
36e07d5e13068e5be64447e8f20b427cf2cbd21a
メンテナンスの新しさ
2026/7/24
利用状況
22 ダウンロード · 197 閲覧