[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2YH9BN0E6YBXKE3QWBZ3G":3,"skill-same:01M7F2YH9BN0E6YBXKE3QWBZ3G":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":12,"updatedAt":34,"install":35,"resources":47},"01M7F2YH9BN0E6YBXKE3QWBZ3G","land-and-deploy",null,"Merge PR, wait for CI, verify deploy, run canary. The complete landing pipeline.","313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","313DEVGRP","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34762848?v=4","01M7F2M535Z5X8XGHYD8TDVAB3","A-RMS by 313DEVGRP","01M7F2M54CR0P3631F4YM0D014",0,"MIT","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fland-and-deploy\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: land-and-deploy\ndescription: Merge PR, wait for CI, verify deploy, run canary. The complete landing pipeline.\nargument-hint: \"[--skip-checks] [--env staging|production]\"\neffort: high\ndisable-model-invocation: true\n---\n\n# Land and deploy\n\nComplete landing pipeline: merge the PR, wait for CI, verify the deployment, run a health check.\n\nPicks up where `\u002Fship` left off. `\u002Fship` creates the PR. This command merges it and verifies production.\n\n**Non-interactive by default.** The user said \"land it\", so land it. Stop only for the critical readiness gate and hard blockers.\n\n## Instructions\n\n### Step 1: Pre-flight\n\n```bash\n# Verify GitHub CLI is authenticated\ngh auth status\n\n# Detect PR from current branch (or use argument if provided)\ngh pr view --json number,state,title,url,mergeStateStatus,mergeable,baseRefName,headRefName\n```\n\n**Stop conditions:**\n- GitHub CLI not authenticated → \"Run `gh auth login` first\"\n- No PR exists → \"No PR found for this branch. Run `\u002Fship` first.\"\n- PR already merged → \"PR is already merged.\"\n- PR is closed → \"PR is closed. Reopen it first.\"\n\n---\n\n### Step 2: CI status check\n\n```bash\n# Check current CI status\ngh pr checks --json name,state,status,conclusion\n\n# Check for merge conflicts\ngh pr view --json mergeable -q .mergeable\n```\n\n**Stop conditions:**\n- Required checks FAILING → show failing checks, stop\n- `mergeable` is `CONFLICTING` → \"PR has merge conflicts. Resolve them and push before landing.\"\n- Required checks PENDING → proceed to Step 3 (wait for CI)\n- All checks passing → skip to Step 3.5 (readiness gate)\n\n---\n\n### Step 3: Wait for CI (if pending)\n\n```bash\n# Watch CI checks with 15-minute timeout\ngh pr checks --watch --fail-fast\n```\n\n- CI passes → continue to Step 3.5\n- CI fails → stop, show failures\n- Timeout (15 min) → \"CI has been running for 15 minutes. Investigate manually.\"\n\nRecord CI wait duration for the deploy report.\n\n---\n\n### Step 3.5: Pre-Merge readiness gate\n\n**This is the one critical confirmation before an irreversible merge.** Collect all evidence, then get explicit approval.\n\n#### Review staleness check\n\n```bash\n# How many commits since the last review in this branch?\ngit log --oneline $(git merge-base HEAD origin\u002Fmain)..HEAD | wc -l\n\n# What changed after any review was done?\ngit log --oneline -10\n```\n\nStaleness thresholds:\n- 0–3 commits since review → CURRENT (green)\n- 4+ commits, touching code → STALE (yellow, review may not reflect current code)\n- No review found → NOT RUN (yellow)\n\n#### Test results\n\n```bash\n# Run tests now (fast tests only)\nnpm test 2>\u002Fdev\u002Fnull || pnpm test 2>\u002Fdev\u002Fnull || \\\n  pytest --tb=short -q 2>\u002Fdev\u002Fnull || \\\n  go test .\u002F... 2>\u002Fdev\u002Fnull\n\n# Check exit code\necho \"Tests exit code: $?\"\n```\n\nFailing tests = BLOCKER. Cannot merge with failing tests.\n\n#### Documentation check\n\n```bash\n# Were CHANGELOG and docs updated on this branch?\ngit diff --name-only $(git merge-base HEAD origin\u002Fmain)...HEAD -- \\\n  README.md CHANGELOG.md ARCHITECTURE.md CONTRIBUTING.md CLAUDE.md VERSION\n```\n\nIf CHANGELOG.md and VERSION were NOT modified and the diff includes new features → WARNING.\n\n#### Readiness report\n\nPresent a summary and ask for explicit confirmation:\n\n```\n╔══════════════════════════════════════════════════════════╗\n║              PRE-MERGE READINESS REPORT                  ║\n╠══════════════════════════════════════════════════════════╣\n║  PR: #NNN: [title]                                       ║\n║  Branch: feature-branch → main                           ║\n║                                                          ║\n║  REVIEWS                                                 ║\n║    Review:     CURRENT \u002F STALE (N commits) \u002F NOT RUN     ║\n║                                                          ║\n║  TESTS                                                   ║\n║    Fast tests: PASS \u002F FAIL (blocker)                     ║\n║                                                          ║\n║  DOCUMENTATION                                           ║\n║    CHANGELOG:  Updated \u002F NOT UPDATED (warning)           ║\n║    VERSION:    Bumped \u002F NOT BUMPED (warning)             ║\n║                                                          ║\n║  WARNINGS: N  |  BLOCKERS: N                             ║\n╚══════════════════════════════════════════════════════════╝\n\nOptions:\n  A) Merge (all checks green)\n  B) Don't merge yet, address warnings first\n  C) Merge anyway (I understand the risks)\n```\n\nIf the user chooses B, list exactly what needs to be done and stop.\n\n---\n\n### Step 4: Merge the PR\n\n```bash\n# Merge (auto-detect method from repo settings, delete branch after)\ngh pr merge --auto --delete-branch\n\n# Fallback if auto-merge is not enabled\n# gh pr merge --squash --delete-branch\n```\n\nRecord the merge commit SHA and timestamp.\n\nIf merge fails with permission error → \"You don't have merge permissions. Ask a maintainer to merge.\"\n\nIf merge queue is active, poll until merged:\n\n```bash\n# Poll every 30 seconds, timeout after 30 minutes\ngh pr view --json state -q .state\n```\n\n---\n\n### Step 5: Platform detection\n\nDetect how this project deploys so we know what to verify.\n\n```bash\n# Detect platform from config files\n[ -f fly.toml ]         && echo \"PLATFORM: fly\"\n[ -f render.yaml ]      && echo \"PLATFORM: render\"\n[ -f vercel.json ] || [ -d .vercel ] && echo \"PLATFORM: vercel\"\n[ -f netlify.toml ]     && echo \"PLATFORM: netlify\"\n[ -f Procfile ]         && echo \"PLATFORM: heroku\"\n[ -f railway.toml ]     && echo \"PLATFORM: railway\"\n\n# Detect GitHub Actions deploy workflows\nfor f in .github\u002Fworkflows\u002F*.yml .github\u002Fworkflows\u002F*.yaml; do\n  [ -f \"$f\" ] && grep -qiE \"deploy|release|production|cd\" \"$f\" 2>\u002Fdev\u002Fnull && echo \"DEPLOY_WORKFLOW: $f\"\ndone\n\n# Classify diff scope (frontend \u002F backend \u002F docs \u002F config)\ngit diff --name-only $(git merge-base HEAD~1 origin\u002Fmain)...HEAD | \\\n  awk '{\n    if (\u002F\\.(css|scss|tsx|jsx|html|svg)$\u002F || \u002Fcomponents|pages|public\\\u002F\u002F) f=1;\n    if (\u002Fapi\\\u002F|server\\\u002F|backend\\\u002F|\\.(go|py|rb|java)$\u002F) b=1;\n    if (\u002FREADME|CHANGELOG|docs\\\u002F|\\.(md)$\u002F) d=1;\n    if (\u002F\\.env|config\\\u002F|\\.toml$|\\.yaml$\u002F) c=1;\n  } END {\n    if (f) print \"SCOPE_FRONTEND=true\";\n    if (b) print \"SCOPE_BACKEND=true\";\n    if (d) print \"SCOPE_DOCS=true\";\n    if (c) print \"SCOPE_CONFIG=true\";\n  }'\n```\n\n**Decision tree:**\n- Docs-only diff → skip deploy verification, go to Step 8\n- No deploy workflow + no URL provided → ask user if this project has a web deploy\n- Otherwise → proceed to Step 6\n\n---\n\n### Step 6: Wait for deploy\n\n**GitHub Actions deploy workflow:**\n\n```bash\n# Find the run triggered by the merge commit\ngh run list --branch main --limit 10 --json databaseId,headSha,status,conclusion,workflowName\n\n# Poll until complete (30s interval, 20 min timeout)\ngh run view \u003Crun-id> --json status,conclusion\n```\n\n**Platform-specific strategies:**\n\n| Platform | Detection | Wait strategy |\n|----------|-----------|---------------|\n| Vercel \u002F Netlify | Auto-deploy on push | Wait 60s for propagation, then check |\n| Fly.io | `fly.toml` present | `fly status --app \u003Capp>`, check `started` status |\n| Render | `render.yaml` present | Poll production URL until it responds with 200 |\n| Heroku | `Procfile` present | `heroku releases --app \u003Capp> -n 1` |\n| Railway | `railway.toml` present | Poll production URL |\n| GitHub Actions only | `.github\u002Fworkflows\u002F` with deploy step | Poll `gh run view` |\n\nIf deploy fails → offer to investigate logs or create a revert commit.\n\nRecord deploy duration for the report.\n\n---\n\n### Step 7: Production health check\n\nUse diff scope (from Step 5) to determine check depth:\n\n| Diff Scope | Canary Depth |\n|------------|--------------|\n| Docs only | Already skipped in Step 5 |\n| Config only | HTTP 200 smoke check only |\n| Backend only | Status + response time check |\n| Frontend (any) | Full: status + response time + content check |\n| Mixed | Full check |\n\n**Full health check sequence:**\n\n```bash\n# 1. Page loads (200 status)\ncurl -sf -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"${PROD_URL}\" 2>\u002Fdev\u002Fnull\n\n# 2. Response time check\ncurl -sf -o \u002Fdev\u002Fnull -w \"%{time_total}\" \"${PROD_URL}\" 2>\u002Fdev\u002Fnull\n\n# 3. Health endpoint (if exists)\ncurl -sf \"${PROD_URL}\u002Fhealth\" 2>\u002Fdev\u002Fnull || \\\ncurl -sf \"${PROD_URL}\u002Fapi\u002Fhealth\" 2>\u002Fdev\u002Fnull\n\n# 4. Content check: page is not blank\ncurl -sf \"${PROD_URL}\" 2>\u002Fdev\u002Fnull | wc -c\n```\n\nPass criteria:\n- HTTP 200 status\n- Response time under 10 seconds\n- Page has content (>500 bytes)\n- Health endpoint returns 200 (if configured)\n\nIf any check fails → offer to revert:\n\n```\nPost-deploy health check detected issues:\n  [finding, specific]\n\nOptions:\n  A) Investigate (this may be normal: cache warming, eventual consistency)\n  B) Rollback (revert the merge commit)\n  C) Continue (I'll monitor manually)\n```\n\n---\n\n### Step 8: Revert (if needed)\n\n```bash\n# Fetch the latest base branch\ngit fetch origin main\n\n# Create a revert commit\ngit checkout main\ngit revert \u003Cmerge-commit-sha> --no-edit\ngit push origin main\n```\n\nIf conflicts → \"Revert has conflicts. Run `git revert \u003Csha>` manually to resolve.\"\nIf branch protections → \"Create a revert PR: `gh pr create --title 'revert: \u003Ctitle>'`\"\n\n---\n\n### Step 9: Deploy report\n\n```\nLAND & DEPLOY REPORT\n═════════════════════════════════════════\nPR:           #NNN: [title]\nBranch:       feature-branch → main\nMerged:       [timestamp] (squash \u002F merge)\nMerge SHA:    [short SHA]\n\nTiming:\n  CI wait:    [Xm Ys \u002F skipped]\n  Deploy:     [Xm Ys \u002F no workflow detected]\n  Health:     [Xs \u002F skipped]\n  Total:      [end-to-end duration]\n\nCI:           PASSED \u002F FAILED \u002F SKIPPED\nDeploy:       PASSED \u002F FAILED \u002F NO WORKFLOW\nProduction:   HEALTHY \u002F DEGRADED \u002F SKIPPED \u002F REVERTED\n  Status:     [HTTP status code]\n  Response:   [Xms]\n\nVERDICT: DEPLOYED AND VERIFIED \u002F DEPLOYED (UNVERIFIED) \u002F REVERTED\n═════════════════════════════════════════\n```\n\n---\n\n### Step 10: Follow-up suggestions\n\nAfter the deploy report, suggest relevant next steps:\n\n- If production URL was verified: \"Run `\u002Fcanary \u003Curl>` for extended 10-minute monitoring.\"\n- If new features were shipped: \"Run `\u002Fdocument-release` to update project docs.\"\n\n---\n\n## Important rules\n\n- **Never force push.** Use `gh pr merge` (it's safe).\n- **Never skip CI.** Failing checks = stop.\n- **Single-pass production check.** For extended monitoring, use `\u002Fcanary`.\n- **Revert is always an option.** At every failure point, offer revert as an escape hatch.\n- **Delete the feature branch** after merge (via `--delete-branch`).\n- **The goal**: user types `\u002Fland-and-deploy`, next thing they see is the deploy report.\n\n## Usage\n\n```\n\u002Fland-and-deploy                                    # Auto-detect PR, no canary URL\n\u002Fland-and-deploy https:\u002F\u002Fapp.example.com            # Auto-detect PR + verify this URL\n\u002Fland-and-deploy 123                                # Specific PR number\n\u002Fland-and-deploy 123 https:\u002F\u002Fapp.example.com        # PR number + verification URL\n```\n\n## Related commands\n\n- `\u002Fship`: run this first to create the PR\n- `\u002Fcanary`: extended post-deploy monitoring loop\n- `\u002Freview-pr`: review the PR before landing\n\n$ARGUMENTS\n","# Land and deploy\n\nComplete landing pipeline: merge the PR, wait for CI, verify the deployment, run a health check.\n\nPicks up where `\u002Fship` left off. `\u002Fship` creates the PR. This command merges it and verifies production.\n\n**Non-interactive by default.** The user said \"land it\", so land it. Stop only for the critical readiness gate and hard blockers.\n\n## Instructions\n\n### Step 1: Pre-flight\n\n```bash\n# Verify GitHub CLI is authenticated\ngh auth status\n\n# Detect PR from current branch (or use argument if provided)\ngh pr view --json number,state,title,url,mergeStateStatus,mergeable,baseRefName,headRefName\n```\n\n**Stop conditions:**\n- GitHub CLI not authenticated → \"Run `gh auth login` first\"\n- No PR exists → \"No PR found for this branch. Run `\u002Fship` first.\"\n- PR already merged → \"PR is already merged.\"\n- PR is closed → \"PR is closed. Reopen it first.\"\n\n---\n\n### Step 2: CI status check\n\n```bash\n# Check current CI status\ngh pr checks --json name,state,status,conclusion\n\n# Check for merge conflicts\ngh pr view --json mergeable -q .mergeable\n```\n\n**Stop conditions:**\n- Required checks FAILING → show failing checks, stop\n- `mergeable` is `CONFLICTING` → \"PR has merge conflicts. Resolve them and push before landing.\"\n- Required checks PENDING → proceed to Step 3 (wait for CI)\n- All checks passing → skip to Step 3.5 (readiness gate)\n\n---\n\n### Step 3: Wait for CI (if pending)\n\n```bash\n# Watch CI checks with 15-minute timeout\ngh pr checks --watch --fail-fast\n```\n\n- CI passes → continue to Step 3.5\n- CI fails → stop, show failures\n- Timeout (15 min) → \"CI has been running for 15 minutes. Investigate manually.\"\n\nRecord CI wait duration for the deploy report.\n\n---\n\n### Step 3.5: Pre-Merge readiness gate\n\n**This is the one critical confirmation before an irreversible merge.** Collect all evidence, then get explicit approval.\n\n#### Review staleness check\n\n```bash\n# How many commits since the last review in this branch?\ngit log --oneline $(git merge-base HEAD origin\u002Fmain)..HEAD | wc -l\n\n# What changed after any review was done?\ngit log --oneline -10\n```\n\nStaleness thresholds:\n- 0–3 commits since review → CURRENT (green)\n- 4+ commits, touching code → STALE (yellow, review may not reflect current code)\n- No review found → NOT RUN (yellow)\n\n#### Test results\n\n```bash\n# Run tests now (fast tests only)\nnpm test 2>\u002Fdev\u002Fnull || pnpm test 2>\u002Fdev\u002Fnull || \\\n  pytest --tb=short -q 2>\u002Fdev\u002Fnull || \\\n  go test .\u002F... 2>\u002Fdev\u002Fnull\n\n# Check exit code\necho \"Tests exit code: $?\"\n```\n\nFailing tests = BLOCKER. Cannot merge with failing tests.\n\n#### Documentation check\n\n```bash\n# Were CHANGELOG and docs updated on this branch?\ngit diff --name-only $(git merge-base HEAD origin\u002Fmain)...HEAD -- \\\n  README.md CHANGELOG.md ARCHITECTURE.md CONTRIBUTING.md CLAUDE.md VERSION\n```\n\nIf CHANGELOG.md and VERSION were NOT modified and the diff includes new features → WARNING.\n\n#### Readiness report\n\nPresent a summary and ask for explicit confirmation:\n\n```\n╔══════════════════════════════════════════════════════════╗\n║              PRE-MERGE READINESS REPORT                  ║\n╠══════════════════════════════════════════════════════════╣\n║  PR: #NNN: [title]                                       ║\n║  Branch: feature-branch → main                           ║\n║                                                          ║\n║  REVIEWS                                                 ║\n║    Review:     CURRENT \u002F STALE (N commits) \u002F NOT RUN     ║\n║                                                          ║\n║  TESTS                                                   ║\n║    Fast tests: PASS \u002F FAIL (blocker)                     ║\n║                                                          ║\n║  DOCUMENTATION                                           ║\n║    CHANGELOG:  Updated \u002F NOT UPDATED (warning)           ║\n║    VERSION:    Bumped \u002F NOT BUMPED (warning)             ║\n║                                                          ║\n║  WARNINGS: N  |  BLOCKERS: N                             ║\n╚══════════════════════════════════════════════════════════╝\n\nOptions:\n  A) Merge (all checks green)\n  B) Don't merge yet, address warnings first\n  C) Merge anyway (I understand the risks)\n```\n\nIf the user chooses B, list exactly what needs to be done and stop.\n\n---\n\n### Step 4: Merge the PR\n\n```bash\n# Merge (auto-detect method from repo settings, delete branch after)\ngh pr merge --auto --delete-branch\n\n# Fallback if auto-merge is not enabled\n# gh pr merge --squash --delete-branch\n```\n\nRecord the merge commit SHA and timestamp.\n\nIf merge fails with permission error → \"You don't have merge permissions. Ask a maintainer to merge.\"\n\nIf merge queue is active, poll until merged:\n\n```bash\n# Poll every 30 seconds, timeout after 30 minutes\ngh pr view --json state -q .state\n```\n\n---\n\n### Step 5: Platform detection\n\nDetect how this project deploys so we know what to verify.\n\n```bash\n# Detect platform from config files\n[ -f fly.toml ]         && echo \"PLATFORM: fly\"\n[ -f render.yaml ]      && echo \"PLATFORM: render\"\n[ -f vercel.json ] || [ -d .vercel ] && echo \"PLATFORM: vercel\"\n[ -f netlify.toml ]     && echo \"PLATFORM: netlify\"\n[ -f Procfile ]         && echo \"PLATFORM: heroku\"\n[ -f railway.toml ]     && echo \"PLATFORM: railway\"\n\n# Detect GitHub Actions deploy workflows\nfor f in .github\u002Fworkflows\u002F*.yml .github\u002Fworkflows\u002F*.yaml; do\n  [ -f \"$f\" ] && grep -qiE \"deploy|release|production|cd\" \"$f\" 2>\u002Fdev\u002Fnull && echo \"DEPLOY_WORKFLOW: $f\"\ndone\n\n# Classify diff scope (frontend \u002F backend \u002F docs \u002F config)\ngit diff --name-only $(git merge-base HEAD~1 origin\u002Fmain)...HEAD | \\\n  awk '{\n    if (\u002F\\.(css|scss|tsx|jsx|html|svg)$\u002F || \u002Fcomponents|pages|public\\\u002F\u002F) f=1;\n    if (\u002Fapi\\\u002F|server\\\u002F|backend\\\u002F|\\.(go|py|rb|java)$\u002F) b=1;\n    if (\u002FREADME|CHANGELOG|docs\\\u002F|\\.(md)$\u002F) d=1;\n    if (\u002F\\.env|config\\\u002F|\\.toml$|\\.yaml$\u002F) c=1;\n  } END {\n    if (f) print \"SCOPE_FRONTEND=true\";\n    if (b) print \"SCOPE_BACKEND=true\";\n    if (d) print \"SCOPE_DOCS=true\";\n    if (c) print \"SCOPE_CONFIG=true\";\n  }'\n```\n\n**Decision tree:**\n- Docs-only diff → skip deploy verification, go to Step 8\n- No deploy workflow + no URL provided → ask user if this project has a web deploy\n- Otherwise → proceed to Step 6\n\n---\n\n### Step 6: Wait for deploy\n\n**GitHub Actions deploy workflow:**\n\n```bash\n# Find the run triggered by the merge commit\ngh run list --branch main --limit 10 --json databaseId,headSha,status,conclusion,workflowName\n\n# Poll until complete (30s interval, 20 min timeout)\ngh run view \u003Crun-id> --json status,conclusion\n```\n\n**Platform-specific strategies:**\n\n| Platform | Detection | Wait strategy |\n|----------|-----------|---------------|\n| Vercel \u002F Netlify | Auto-deploy on push | Wait 60s for propagation, then check |\n| Fly.io | `fly.toml` present | `fly status --app \u003Capp>`, check `started` status |\n| Render | `render.yaml` present | Poll production URL until it responds with 200 |\n| Heroku | `Procfile` present | `heroku releases --app \u003Capp> -n 1` |\n| Railway | `railway.toml` present | Poll production URL |\n| GitHub Actions only | `.github\u002Fworkflows\u002F` with deploy step | Poll `gh run view` |\n\nIf deploy fails → offer to investigate logs or create a revert commit.\n\nRecord deploy duration for the report.\n\n---\n\n### Step 7: Production health check\n\nUse diff scope (from Step 5) to determine check depth:\n\n| Diff Scope | Canary Depth |\n|------------|--------------|\n| Docs only | Already skipped in Step 5 |\n| Config only | HTTP 200 smoke check only |\n| Backend only | Status + response time check |\n| Frontend (any) | Full: status + response time + content check |\n| Mixed | Full check |\n\n**Full health check sequence:**\n\n```bash\n# 1. Page loads (200 status)\ncurl -sf -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"${PROD_URL}\" 2>\u002Fdev\u002Fnull\n\n# 2. Response time check\ncurl -sf -o \u002Fdev\u002Fnull -w \"%{time_total}\" \"${PROD_URL}\" 2>\u002Fdev\u002Fnull\n\n# 3. Health endpoint (if exists)\ncurl -sf \"${PROD_URL}\u002Fhealth\" 2>\u002Fdev\u002Fnull || \\\ncurl -sf \"${PROD_URL}\u002Fapi\u002Fhealth\" 2>\u002Fdev\u002Fnull\n\n# 4. Content check: page is not blank\ncurl -sf \"${PROD_URL}\" 2>\u002Fdev\u002Fnull | wc -c\n```\n\nPass criteria:\n- HTTP 200 status\n- Response time under 10 seconds\n- Page has content (>500 bytes)\n- Health endpoint returns 200 (if configured)\n\nIf any check fails → offer to revert:\n\n```\nPost-deploy health check detected issues:\n  [finding, specific]\n\nOptions:\n  A) Investigate (this may be normal: cache warming, eventual consistency)\n  B) Rollback (revert the merge commit)\n  C) Continue (I'll monitor manually)\n```\n\n---\n\n### Step 8: Revert (if needed)\n\n```bash\n# Fetch the latest base branch\ngit fetch origin main\n\n# Create a revert commit\ngit checkout main\ngit revert \u003Cmerge-commit-sha> --no-edit\ngit push origin main\n```\n\nIf conflicts → \"Revert has conflicts. Run `git revert \u003Csha>` manually to resolve.\"\nIf branch protections → \"Create a revert PR: `gh pr create --title 'revert: \u003Ctitle>'`\"\n\n---\n\n### Step 9: Deploy report\n\n```\nLAND & DEPLOY REPORT\n═════════════════════════════════════════\nPR:           #NNN: [title]\nBranch:       feature-branch → main\nMerged:       [timestamp] (squash \u002F merge)\nMerge SHA:    [short SHA]\n\nTiming:\n  CI wait:    [Xm Ys \u002F skipped]\n  Deploy:     [Xm Ys \u002F no workflow detected]\n  Health:     [Xs \u002F skipped]\n  Total:      [end-to-end duration]\n\nCI:           PASSED \u002F FAILED \u002F SKIPPED\nDeploy:       PASSED \u002F FAILED \u002F NO WORKFLOW\nProduction:   HEALTHY \u002F DEGRADED \u002F SKIPPED \u002F REVERTED\n  Status:     [HTTP status code]\n  Response:   [Xms]\n\nVERDICT: DEPLOYED AND VERIFIED \u002F DEPLOYED (UNVERIFIED) \u002F REVERTED\n═════════════════════════════════════════\n```\n\n---\n\n### Step 10: Follow-up suggestions\n\nAfter the deploy report, suggest relevant next steps:\n\n- If production URL was verified: \"Run `\u002Fcanary \u003Curl>` for extended 10-minute monitoring.\"\n- If new features were shipped: \"Run `\u002Fdocument-release` to update project docs.\"\n\n---\n\n## Important rules\n\n- **Never force push.** Use `gh pr merge` (it's safe).\n- **Never skip CI.** Failing checks = stop.\n- **Single-pass production check.** For extended monitoring, use `\u002Fcanary`.\n- **Revert is always an option.** At every failure point, offer revert as an escape hatch.\n- **Delete the feature branch** after merge (via `--delete-branch`).\n- **The goal**: user types `\u002Fland-and-deploy`, next thing they see is the deploy report.\n\n## Usage\n\n```\n\u002Fland-and-deploy                                    # Auto-detect PR, no canary URL\n\u002Fland-and-deploy https:\u002F\u002Fapp.example.com            # Auto-detect PR + verify this URL\n\u002Fland-and-deploy 123                                # Specific PR number\n\u002Fland-and-deploy 123 https:\u002F\u002Fapp.example.com        # PR number + verification URL\n```\n\n## Related commands\n\n- `\u002Fship`: run this first to create the PR\n- `\u002Fcanary`: extended post-deploy monitoring loop\n- `\u002Freview-pr`: review the PR before landing\n\n$ARGUMENTS\n",{"name":5,"effort":24,"description":7,"argument-hint":25,"disable-model-invocation":26},"high","[--skip-checks] [--env staging|production]",true,"main","f2cc95bc769ca4c3a398965b767dfb41cdf8d698","reference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fland-and-deploy",2,"https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","https:\u002F\u002Fgithub.com\u002F313DEVGRP","https:\u002F\u002Fwww.a-rms.net","2026-10-18 12:48:10",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill land-and-deploy",{"tool":41,"command":42},"bunx","bunx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill land-and-deploy",{"tool":44,"command":45},"pnpm","pnpm dlx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill land-and-deploy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fland-and-deploy\u002FSKILL.md",[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7F343WNVHZWWYJDD77QEJ7J","voice-refine","Transform verbose voice input into structured, token-efficient Claude prompts. Use when cleaning up voice memos, dictation output, or speech-to-text transcriptions that contain filler words, repetitions, and unstructured thoughts.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvoice-refine\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7F3417SNXASFTDA1B2X4XYZ","validate-changes","Evaluate staged changes using LLM-as-a-Judge before committing","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvalidate-changes\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7F33YN9QK88H2B81PVHMNG1","update-threat-db","Delegate threat-intelligence research and updates to AgentSec, then validate the guide and landing mirrors.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fupdate-threat-db\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7F33SXQ57G2FVFK094T4584","token-audit","Audit Claude Code configuration to measure fixed-context token overhead and produce a prioritized action plan. Use when hitting rate limits, experiencing early context compression, or after adding significant config files.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftoken-audit\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7F33NAWXFPHW59CF52EAGGK","talk-stage6-revision","Produces revision sheets with quick navigation by act, a master concept-to-URL table, Q&A cheat-sheet with 6-10 anticipated questions, glossary, and external resources list. Use when preparing for a talk with Q&A, creating shareable reference material for attendees, or building a safety-net glossary for live delivery.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-6-revision\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7F33G9V96HVZKAGZ84J4EBR","talk-stage5-script","Produces a complete 5-act pitch with speaker notes, a slide-by-slide specification, and a ready-to-paste Kimi prompt for AI slide generation. Requires validated angle and title from Stage 4. Use when you have a confirmed talk angle and need the full script, slide spec, and AI-generated presentation prompt.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-5-script\u002FSKILL.md",[],[]]