Skip to content
Skill

Clean vercel deployment storage

Bulk-delete old Vercel deployments and set retention to free up deployment storage

Clean vercel deployment storage is an open-source agent skill for cloud and infrastructure. It is available on Claude Code.

Scripts
TypeScript
Platforms
Claude Code
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Clean vercel deployment storage

This skill walks an agent through clearing out a Vercel team's deployment storage when the quota is full or close to it. It favors the Vercel REST API with a bearer token over the MCP server, which cannot delete, and over the CLI, which is noted as fragile when run in parallel. The workflow is strictly ordered: a scan that runs a permission preflight and writes a dry-run report, a summary the user must approve before anything is removed, a small trial deletion followed by the full run, and finally retention settings and a verification pass.

The bundled TypeScript scripts, run with pnpm and tsx, handle scanning, executing deletions with limited concurrency, configuring retention and verifying state. The default plan keeps the newest production deployment per project and marks the rest for deletion. Projects themselves are never removed, only deployments, and the platform's own retention exceptions for recent Ready and aliased deployments are respected.

Reference notes cover the tool channel boundaries, endpoint details, valid retention values, token setup, the 30-day recovery window and a worked incident with credential failures. The skill expects a Vercel team ID and an API token with owner or developer rights, and its instructions are written in Chinese.

When your agent uses it

使用时机:当 Vercel Deployment Storage 部署存储额度将满或已满、需要批量删除历史部署、需要为 Vercel 项目配置 Deployment Retention 自动清理、或删除部署时遇到 vercel api 要求确认、CLI 凭据失效等问题时使用。

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 7 files (25 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the low-frequency-skill plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ruan-cat/monorepo
/plugin install low-frequency-skill@ruan-cat-tools

Or copy only this skill to ~/.claude/skills/clean-vercel-deployment-storage:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.claude/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/clean-vercel-deployment-storage inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/clean-vercel-deployment-storage to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.agents/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/clean-vercel-deployment-storage inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/clean-vercel-deployment-storage to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.cursor/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/clean-vercel-deployment-storage inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage

Or copy the folder to ~/.gemini/skills/clean-vercel-deployment-storage yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/clean-vercel-deployment-storage:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.copilot/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/clean-vercel-deployment-storage inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ruan-cat/monorepo.git

Then copy monorepo/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage into your agent's skills folder as clean-vercel-deployment-storage. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Permission preflight check
Verifies token identity, team membership and owner or developer role before any scan result is produced.
Dry-run deletion report
Builds a per-project list of deployments to delete, keeping the newest production deployment, for review first.
Gated bulk deletion
Runs a small trial batch, then the full deletion with limited concurrency, treating already-missing deployments as removed.
Automatic deployment retention
Configures Vercel Deployment Retention across all projects so storage does not fill up again.
Post-cleanup verification
Re-checks deployment state after deletion to confirm the final result.

Good for

  • Free up Vercel deployment storage when the team quota is almost full
  • Delete old preview and production deployments across many projects in bulk
  • Set automatic expiration of deployments on all Vercel projects
  • Fix a failed Vercel CLI deletion caused by expired credentials

Clean vercel deployment storage FAQ

What does the skill need to run?

A Vercel team ID and an API token whose identity has owner or developer role on that team. The scripts are TypeScript run via pnpm dlx tsx.

Does Clean vercel deployment storage delete projects?

No. The skill states that projects are never deleted, only deployments.

Will Clean vercel deployment storage delete without asking?

No. The workflow requires a dry-run list and user confirmation before the full execute step, and execute only accepts a report with a passing preflight.

Which deployments are kept?

The default dry-run keeps the newest production deployment per project. The platform also keeps recent Ready deployments and those with aliases.

How do I install Clean vercel deployment storage in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/clean-vercel-deployment-storage to use it in all your projects, or to .claude/skills/clean-vercel-deployment-storage in one project. Or install the low-frequency-skill plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install low-frequency-skill@ruan-cat-tools.

Does Clean vercel deployment storage run scripts?

Yes. It runs TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Clean vercel deployment storage?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Clean vercel deployment storage?

The closest alternatives to Clean vercel deployment storage are Vercel CLI with tokens, Deploy to vercel, Vercel optimize, Deploy and Vercel deploy.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools