Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #6105

vercel-optimize

Skill này làm gì

Công cụ này phân tích website Vercel của bạn để tìm các vấn đề có thể khiến bạn tốn thêm tiền hoặc làm website chậm hơn. Nó kiểm tra số liệu, cấu hình và mã để đưa ra gợi ý cải thiện.

Khi nào nên dùng

  • ✓Khi website Vercel của bạn chạy chậm.
  • ✓Khi bạn nghi ngờ mình đang chi tiêu quá mức trên Vercel.
  • ✓Trước khi ra mắt một bản cập nhật lớn để kiểm tra các vấn đề tiềm ẩn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích website Vercel của tôi để tối ưu chi phí và hiệu năng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ trước tiên kiểm tra dữ liệu sử dụng và hiệu năng của website trên Vercel. Sau đó, nó phân tích mã và cấu hình để tìm các chỗ cần cải thiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

…

Câu hỏi thường gặp

Tôi có cần cài đặt gì không?

Có, bạn cần cài Vercel CLI, đăng nhập và liên kết với dự án của mình.

Công cụ có hoạt động với mọi loại website Vercel không?

Công cụ hoạt động tốt nhất với Next.js, SvelteKit và Nuxt. Với các framework khác như Astro, hỗ trợ còn hạn chế. Với các dự án không được hỗ trợ, nó có thể thực hiện phân tích cơ bản.

‘Metrics’ và ‘signals’ là gì?

Metrics là dữ liệu về hiệu năng của website (tốc độ, lỗi, v.v.). Signals là thông tin do Vercel thu thập giúp xác định các vấn đề này.

Chi tiết

Mô tả gốc của tác giả

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

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6105
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự