agentleFS
joet203joet203/claude-code-toolkit/skills/claude/deploy/SKILL.md

deploy

Skill0 starsChanged 2 months agoMITView on GitHub

Use when deploying a site to Vercel. Runs the deploy, verifies the live URL actually serves new content (not cached), checks/disables SSO protection for public sites, and scans for duplicate HTML files that may need the same edits. Prevents the recurring friction of trusting "Deployment succeeded" messages that hide cache, auth-protection, or duplicate-file issues.

  • Sends data out

155 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pm-discovery, qa-phase and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    pm-discovery

    PM Agent Team - Automated product discovery, strategy, and PRD generation. Runs PM analysis workflow to produce comprehensive PRD before PDCA Plan phase.

    Also in 3 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • +10 more from ww-w-ai

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 139 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before deploying, scan the repo for HTML files that might need the same edit:

    line 18
  2. Very specific:

    If multiple HTML files exist (e.g.

    line 25
  3. Distinctive:

    Wait ~5 seconds for propagation, then curl the URL and verify the NEW content is actually served.

    line 37
  4. Distinctive:

    If the count is 0, the deploy is serving stale content.

    line 43
  5. Very specific:

    If you see 401 or x-vercel-protection headers, disable protection via API:

    line 54
  6. Very specific:

    Duplicate HTML files: If user edited index.html but recipe.html has the same content, both need updating.

    line 77
  7. Very specific:

    Run vercel --prod → got https://bos2aus.vercel.app.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 139 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploy Skill

Pre-deploy checklist and post-deploy verification for Vercel sites. Built because "Deployment succeeded" messages repeatedly hide real problems (stale cache, SSO enabled by default, duplicate HTML files out of sync).

When to Use

Invoke this skill whenever the user says "deploy", "ship it", "push to prod", or runs vercel --prod manually. Also use it after any significant edit to a deployed site.

Steps

1. Pre-deploy scan — duplicate file check

Before deploying, scan the repo for HTML files that might need the same edit:

# Find HTML files in the project
find . -maxdepth 3 -name "*.html" -not -path "*/node_modules/*" -not -path "*/.vercel/*"

If multiple HTML files exist (e.g. index.html, recipe.html, about.html), ask the user whether the edit should apply to all of them. Common trap: recipe pages duplicated across files.

2. Run the deploy

vercel --prod

Capture the deployment URL from the output.

3. Post-deploy verification — content check

Wait ~5 seconds for propagation, then curl the URL and verify the NEW content is actually served. Do NOT just check HTTP 200 — grep for a string that you know was just added/changed:

sleep 5 && curl -sL "<DEPLOYED_URL>" | grep -c "<NEW_CONTENT_STRING>"

If the count is 0, the deploy is serving stale content. Common causes: Vercel cache, wrong project, edge caching. Bust it with a force redeploy or check the project config.

4. Check SSO / Deployment Protection

For public sites, SSO/password protection must be OFF. Check with:

# HEAD request should return 200, not 401
curl -sI "<DEPLOYED_URL>" | head -5

If you see 401 or x-vercel-protection headers, disable protection via API:

TOKEN=$(cat ~/Library/Application\ Support/com.vercel.cli/auth.json | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])")
PROJECT_ID="<project-id-from-vercel-dashboard>"
curl -X PATCH "https://api.vercel.com/v9/projects/$PROJECT_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"passwordProtection":null,"ssoProtection":null}'

5. Report

Report back to the user with:

  • Deployed URL
  • Whether new content was verified on the live site (pass/fail + the grep result)
  • Whether SSO/protection is disabled (pass/fail)
  • Any duplicate HTML files that were found (so the user can confirm they were all updated)

Failure modes to watch for

  • Stale cache: URL returns 200 but content is old. Fix: redeploy with --force or investigate caching headers.
  • SSO enabled on new projects: Vercel enables protection by default for new projects on some plans. Always check on first deploy.
  • Duplicate HTML files: If user edited index.html but recipe.html has the same content, both need updating.
  • Wrong project: vercel --prod deploys from current dir — confirm you're in the right repo.

Example

User: "deploy the travel site"

  1. Scan: found index.html and arrival.html — ask user if edits apply to both.
  2. Run vercel --prod → got https://bos2aus.vercel.app.
  3. Curl and grep for the new "Customs tips" section → found 1 match. Pass.
  4. HEAD request returns 200, no protection headers. Pass.
  5. Report: "Deployed to https://bos2aus.vercel.app. New content verified live. SSO disabled. Note: arrival.html has similar content — confirm it was updated too."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.