Claude Cursor Skill

check-live-deploy

Use when asked if a merge is live, if the deploy worked, or to check production after shipping and merging. Verifies that the canonical public URL serves the merged commit past any cache and that the change itself works live, reporting live, not live or unknown with evidence. Not

LLM Mart · 0 points · 1 views 0 listing impressions 0 install-command copies
Download heyvhuang-copybook-skills-plugins_skills_skills_check-live-deploy-c2e4cc2.zip · 8 KB

Install

skills CLI npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/check-live-deploy
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
Git git clone https://github.com/Heyvhuang/copybook-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Prove the deploy is live

A green deploy log proves a job finished, not that users see the new code. Check the deploy status, the served revision on the public URL, and the change itself before saying it is live.

1. Record the target commit and change

Write down four facts before checking anything:

  • The merged commit SHA (for example git rev-parse --short origin/main)
  • The canonical public URL that users hit
  • One visible revision marker on the site (a version endpoint, a build ID in the HTML, or a changed asset hash)
  • One concrete behavior this change must produce on the live URL (exact text, route, status code, or response field)

2. Wait for the deploy status

Poll the deploy's own status through the platform CLI or API for the target commit SHA until it finishes, instead of waiting a fixed number of seconds. Match the exact commit SHA on the deploy record so an earlier green run does not count.

  • Finished for this commit: record the deploy ID and status, then continue.
  • Failed or cancelled: record the failure, then still check what production currently serves so your report states the live state.
  • Still running, missing, or no platform access: record that status as pending or unknown and continue checking the live URL.

3. Record the served revision on the live URL

Fetch the canonical public URL twice: first as a normal visitor, then with cache busting so you can tell a live update from a stale cache.

curl -sS -D - "https://example.com/path" -o /tmp/live-plain.out
curl -sS -D - -H "Cache-Control: no-cache" "https://example.com/path?_cb=$(date +%s)" -o /tmp/live-fresh.out

From both responses, record the status code, cache headers (Age, X-Cache, CF-Cache-Status, ETag), and the revision marker (version endpoint, HTML build ID, or asset hash). Compare both served markers to the target commit.

  • Plain and cache-busted match the target: origin and cache both serve the new build.
  • Cache-busted matches the target, but plain still serves the old marker: origin updated, yet real visitors still get a stale cached response.
  • Neither matches the target: the new build is not being served.
  • No marker identifies the revision: mark the served revision as unknown.

4. Verify the change itself on the live URL

Test the exact behavior from step 1 on the canonical public URL: the updated text, route, status code, or API response. Check it on a plain request as a real user sees it, and note if it only appears when cache-busted. A generic /health endpoint or an HTTP 200 on the home page does not prove the change shipped.

5. Report live, not live or unknown

Choose one verdict from the evidence, never from the deploy log alone:

Verdict When to use it
Live Deploy finished for this commit, the plain canonical URL serves the new revision, and the live change check passes.
Not live Deploy failed, the plain canonical URL serves an older commit or hash (even if a cache-busted sample shows the new one), or the live change check fails.
Unknown Deploy is still running or uncheckable without a failure, no revision marker confirms which build is served, or the live URL is unreachable.

List every piece of evidence under the verdict: target commit SHA, deploy status, plain vs cache-busted served revision with cache headers, and the live change result. If the cache is stale, state clearly that the new build is only visible past the cache and name both the expected and served commit or hash.

Based on ideas from garrytan/gstack (MIT), written by Copybook.

Files (copybook-skills)
  • CHANGES.md 385 B
    Loading…
  • example.md 1.2 KB
    Loading…
  • LICENSE 1 KB · in bundle
  • NOTICE.md 11.2 KB
    Loading…
  • SKILL.md 3.9 KB
    ---
    name: check-live-deploy
    description: "Use when asked if a merge is live, if the deploy worked, or to check production after shipping and merging. Verifies that the canonical public URL serves the merged commit past any cache and that the change itself works live, reporting live, not live or unknown with evidence. Not for checking code before a merge (verify-work-done)."
    license: MIT (see LICENSE)
    ---
    
    # Prove the deploy is live
    
    A green deploy log proves a job finished, not that users see the new code. Check the deploy status, the served revision on the public URL, and the change itself before saying it is live.
    
    ## 1. Record the target commit and change
    
    Write down four facts before checking anything:
    
    - The merged commit SHA (for example `git rev-parse --short origin/main`)
    - The canonical public URL that users hit
    - One visible revision marker on the site (a version endpoint, a build ID in the HTML, or a changed asset hash)
    - One concrete behavior this change must produce on the live URL (exact text, route, status code, or response field)
    
    ## 2. Wait for the deploy status
    
    Poll the deploy's own status through the platform CLI or API for the target commit SHA until it finishes, instead of waiting a fixed number of seconds. Match the exact commit SHA on the deploy record so an earlier green run does not count.
    
    - Finished for this commit: record the deploy ID and status, then continue.
    - Failed or cancelled: record the failure, then still check what production currently serves so your report states the live state.
    - Still running, missing, or no platform access: record that status as pending or unknown and continue checking the live URL.
    
    ## 3. Record the served revision on the live URL
    
    Fetch the canonical public URL twice: first as a normal visitor, then with cache busting so you can tell a live update from a stale cache.
    
    ```bash
    curl -sS -D - "https://example.com/path" -o /tmp/live-plain.out
    curl -sS -D - -H "Cache-Control: no-cache" "https://example.com/path?_cb=$(date +%s)" -o /tmp/live-fresh.out
    ```
    
    From both responses, record the status code, cache headers (`Age`, `X-Cache`, `CF-Cache-Status`, `ETag`), and the revision marker (version endpoint, HTML build ID, or asset hash). Compare both served markers to the target commit.
    
    - Plain and cache-busted match the target: origin and cache both serve the new build.
    - Cache-busted matches the target, but plain still serves the old marker: origin updated, yet real visitors still get a stale cached response.
    - Neither matches the target: the new build is not being served.
    - No marker identifies the revision: mark the served revision as unknown.
    
    ## 4. Verify the change itself on the live URL
    
    Test the exact behavior from step 1 on the canonical public URL: the updated text, route, status code, or API response. Check it on a plain request as a real user sees it, and note if it only appears when cache-busted. A generic `/health` endpoint or an HTTP 200 on the home page does not prove the change shipped.
    
    ## 5. Report live, not live or unknown
    
    Choose one verdict from the evidence, never from the deploy log alone:
    
    | Verdict | When to use it |
    |---|---|
    | Live | Deploy finished for this commit, the plain canonical URL serves the new revision, and the live change check passes. |
    | Not live | Deploy failed, the plain canonical URL serves an older commit or hash (even if a cache-busted sample shows the new one), or the live change check fails. |
    | Unknown | Deploy is still running or uncheckable without a failure, no revision marker confirms which build is served, or the live URL is unreachable. |
    
    List every piece of evidence under the verdict: target commit SHA, deploy status, plain vs cache-busted served revision with cache headers, and the live change result. If the cache is stale, state clearly that the new build is only visible past the cache and name both the expected and served commit or hash.
    
    Based on ideas from garrytan/gstack (MIT), written by Copybook.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.