本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)48k · #6105

vercel-optimize

できること

このツールは、Vercelで公開しているWebサイトを分析し、料金が余計にかかっている原因や、サイトの表示が遅くなる原因を見つけます。指標・設定・コードを確認して、改善のための提案を行います。

使う場面

  • ✓Vercelのサイトの表示が遅いとき。
  • ✓Vercelの料金が想定より高くなっていると感じるとき。
  • ✓大きな更新をリリースする前に、問題がないか確認したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“VercelのサイトのコストとパフォーマンスをLこの分析してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールはまず、Vercel上にあるサイトの利用状況と表示性能のデータを確認します。次に、コードと設定を分析して、改善できる箇所を見つけます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Vercel Optimize

Run an observability-first Vercel optimization audit. Do not inspect source files until signals.json exists and a deterministic gate points to a route, file, or project setting.

Core doctrine: read references/doctrine.md if any rule is unclear.

  • Metrics first. Recommendations start from Vercel production signals, not repo-wide grep.
  • Deterministic gates. scripts/gate-investigations.mjs decides what deserves investigation.
  • Candidate-bound scope. Read only files named by a candidate or a route-local import chain.
  • Version-aware citations. Use only references/docs-library.json; invalid or version-mismatched citations are stripped.
  • Customer copy. Read references/voice.md before writing report text or chat output.

When to Use

  • Use this skill when the task matches this description: Audit deployed Vercel apps for cost and performance issues using metrics, project config, code scans, and version-aware recommendations.

Prerequisites

  • Vercel CLI v53+ with vercel metrics, vercel usage, vercel contract, and vercel api.
  • Authenticated CLI session: vercel login.
  • Linked app directory: vercel link. VERCEL_PROJECT_ID can help resolve project config, but vercel metrics still requires directory linkage. The link or environment must include the intended project org/team/user scope so the collector can resolve a CLI-safe --scope and keep vercel metrics, vercel usage, and vercel contract on the same account.
  • Node.js 20+.
  • Observability Plus for route-level metric-backed recommendations.

Never put auth tokens in shell commands. Do not type VERCEL_TOKEN=..., --token ..., or Authorization: Bearer ... into commands that may be echoed in chat.

Framework Support

The preflight reads package.json and sets expectations before metric fan-out.

Framework Status Notes
Next.js App Router supported strongest route mapping, scanners, playbooks, citations
Next.js Pages Router supported scoped to Pages Router idioms when detected
SvelteKit supported route mapping for src/routes files and SvelteKit scanner
Nuxt supported route mapping plus generic/platform checks; fewer framework-specific recs
Astro limited route mapping plus generic checks; fewer framework-specific recs
Hono / Remix / unknown blocked by default continue only if the user accepts a limited platform/code-only audit

If unsupported, stop and ask before scanning or gating:

This project uses <framework>. Vercel Optimize supports metric-backed code recommendations for Next.js, SvelteKit, and Nuxt. Astro support is limited. For <framework>, I can still run a limited platform/scanner audit, but route-level Vercel metrics may not map back to source files.

Do you want me to continue with the limited audit, or stop here?

If the user continues, rerun collection with --continue-unsupported-framework.

Run Directory

Use a fresh run directory for every audit. Do not reuse briefs, sub-agent outputs, or reports across runs.

RUN_DIR="$(mktemp -d -t vercel-optimize-XXXXXX)"

Pipeline

1. Collect, scan, and merge signals

Run from the linked app directory or pass --cwd where a script supports it. Keep stdout JSON separate from stderr logs. Do not combine streams.

node scripts/collect-signals.mjs [projectId] > "$RUN_DIR/vercel-signals.json" 2> "$RUN_DIR/collect.stderr"
node -e 'JSON.parse(require("fs").readFileSync(process.argv[1], "utf8"))' "$RUN_DIR/vercel-signals.json"

node scripts/scan-codebase.mjs <repo-root> > "$RUN_DIR/codebase.json"
node scripts/merge-signals.mjs "$RUN_DIR/vercel-signals.json" "$RUN_DIR/codebase.json" --out "$RUN_DIR/signals.json"

Collection details, schemas, metric IDs, and degradation behavior live in references/data-collection.md. The metric registry is lib/queries.mjs; keep all queries on the shared 14-day window.

…

よくある質問

何かをインストールする必要がありますか?

はい。Vercel CLIをインストールし、ログインして、プロジェクトとの連携を済ませておく必要があります。

どの種類のVercelサイトでも使えますか?

Next.js、SvelteKit、Nuxtで作られたサイトで最も効果的に動作します。Astroなどの他のフレームワークは対応が限定的です。対応していないプロジェクトでも、基本的な分析は行えます。

「メトリクス」と「シグナル」とは何ですか?

メトリクスは、速度やエラー数など、サイトの性能を示すデータのことです。シグナルは、Vercelが収集する情報のうち、これらの問題を特定するのに役立つものです。

詳細

作者による元の説明

Audit deployed Vercel apps for cost and performance issues using metrics, project config, code scans, and version-aware recommendations.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#6105
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル