vercel-doctor

vercel-doctor is a skill for Claude Code from lukedj78/dev-flow. It costs 163 tokens per session (2,740 once invoked), scanned A, original, MIT.

A pre-deployment checker for existing Next.js projects that will run on Vercel, a platform for deploying web applications. It runs the independent vercel-doctor command-line tool to identify code patterns that may increase Vercel costs or hurt performance.

In plain words
What is it for?
Use it to scan a Next.js project, create human-readable or machine-readable reports, generate suggested fixes, and review cost risks before a Vercel deployment.
Why use it?
It can reveal expensive implementation patterns before deployment increases the bill. Its findings can be routed to the development areas responsible for caching or image handling.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-flow plugin — 46 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lukedj78/dev-flow/vercel-doctor
Any agent
npx skills add lukedj78/dev-flow --skill vercel-doctor
Clone the repo
git clone --depth 1 https://github.com/lukedj78/dev-flow

Made for: Claude Code.

Or install dev-flow, the plugin that ships this one along with the rest of its 46 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukedj78/dev-flow/vercel-doctor.svg)](https://agentmods.dev/skills/lukedj78/dev-flow/vercel-doctor)
Your own site
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/vercel-doctor"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/vercel-doctor.svg" alt="Measured on agentmods" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00163 $0.02740
Opus 5 $0.00081 $0.01370
Sonnet 5 $0.00033 $0.00548
Haiku 4.5 $0.00016 $0.00274

Measured 6d ago against content hash fa28f56dc3bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

vercel-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vercel-doctor/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vercel-doctor — cost & performance pre-deploy gate for Vercel/Next.js

Runs on a project that already exists and targets Vercel. It wraps the third-party vercel-doctor CLI — which scans a Next.js codebase for patterns that cost money on Vercel — and turns its report into applied fixes, routing each finding to the skill that owns it.

Third-party tool. vercel-doctor is not an official Vercel product — it's an independent open-source project by Aniket-508, published to npm as vercel-doctor (bin vercel-doctor, MIT). Verified against the npm registry + repo README (latest at time of writing: 1.2.0 — pin or re-check, the flag set can change). It reads your codebase and phones home unless --offline; treat its AI-fix prompts as suggestions to verify, not gospel.

Verified invocation + flags

npx -y vercel-doctor@latest .                       # scan the project at <path>
npx -y vercel-doctor@latest . --output markdown --report docs/vercel/doctor-report.md
npx -y vercel-doctor@latest . --ai-prompts docs/vercel/doctor-fixes.json
Flag Effect
--output <human|json|markdown> report format (default human)
--report <file> write the report to a file
--ai-prompts <file> export fix prompts as JSON (only issues with a known fix strategy)
--score print only the health score
--verbose list the matching files per rule
--diff [base] scan only files changed vs the base branch
--project <name> / -y, --yes pick workspace project(s) / scan all without prompting
--no-lint / --no-dead-code skip the lint / dead-code analyses
--offline skip telemetry
-v, --version / -h, --help version / help

If a flag above is rejected, the CLI has moved — run npx -y vercel-doctor@latest --help and use what it reports rather than guessing.

⚠️ Two behaviours the --help does not tell you (found by running it)

Read the full file on GitHub · 137 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 137 lines · 163 tokens per session scan A fa28f56dc3bc

Subscribe to this mod's changes

vercel-doctor is a skill published in the GitHub repository lukedj78/dev-flow (6 stars, last pushed yesterday), licensed MIT. It adds 163 tokens to every session and 2,740 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.