一键导入
deploy-watch
Monitor GitHub Actions deploy workflows after merging a PR to staging. Polls until all deploys complete, diagnoses failures, and reports results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Monitor GitHub Actions deploy workflows after merging a PR to staging. Polls until all deploys complete, diagnoses failures, and reports results.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply reverent, faith-inspired Christian verbiage to non-code artifacts. Invoke when generating specs, plans, task lists, READMEs, or other documentation to infuse them with blessings, gratitude, and references to divine guidance. Never applies to source code or config files.
PR review, quality audit, and security checks. Invoke when reviewing code changes before merging or pushing. Performs structured review covering correctness, security, performance, and maintainability.
Structured debugging workflow: reproduce, isolate, trace, fix, verify. Use when investigating bugs, unexpected behavior, or test failures. Guides systematic root-cause analysis instead of trial-and-error.
Document generation skill for creating DOCX, PDF, PPTX, and other formatted documents. Guides structured content creation with proper formatting, headings, tables, and professional presentation.
Route audit findings to Linear as issues. Reads the most recent audit report from docs/audits/, parses findings at warning severity or above, and creates Linear issues in the project's configured team. Requires Linear MCP server to be available.
Red-Green-Refactor test-driven development workflow. Guides the agent through writing failing tests first, then implementing code to pass them, then refactoring while keeping tests green.
| name | deploy-watch |
| description | Monitor GitHub Actions deploy workflows after merging a PR to staging. Polls until all deploys complete, diagnoses failures, and reports results. |
| disable-model-invocation | true |
| context | fork |
| agent | general-purpose |
| argument-hint | [pr-number or blank for latest staging push] |
$ARGUMENTS
$ARGUMENTS contains a PR number (e.g., 72 or #72): find the merge commit via gh pr view <number> --json mergeCommit -q .mergeCommit.oidgit log origin/staging -1 --format=%HRecord the merge SHA and merge time for filtering.
The project has 4 deploy workflows triggered on push to staging:
| Workflow | Trigger Paths | File |
|---|---|---|
| Deploy Backend | apps/backend/**, bun.lock | deploy-backend-staging.yml |
| Deploy Frontend | apps/frontend/**, packages/web/**, bun.lock | deploy-frontend-staging.yml |
| Deploy Manager | apps/manager/**, packages/web/**, bun.lock | deploy-manager-staging.yml |
| Deploy Dashboard | apps/dashboard/**, packages/web/**, bun.lock | deploy-dashboard-staging.yml |
Check which files were changed in the merge commit:
gh pr view <pr-number> --json files -q '.files[].path'
# or for latest push:
git diff --name-only HEAD~1
Determine which deploy workflows SHOULD trigger based on path filters. If bun.lock changed, all 4 deploy.
Sleep 30 seconds — deploy workflows take time to queue after a push.
Poll up to 30 iterations, 20 seconds apart (max ~10 minutes):
gh run list --branch staging --limit 10 \
--json databaseId,name,status,conclusion,createdAt,updatedAt
Filter to:
createdAt after the merge timeDeploy * workflow namesEach iteration, print a one-line status:
Deploy: Backend ✓ | Frontend ⏳ | Manager ✓ | Dashboard — (not triggered)
Break when all expected workflows have completed (success or failure).
If no deploy workflows appear after 3 iterations (90 seconds):
Deploy Status: staging (merge SHA abc1234)
┌────────────────────┬───────────┬────────────┬──────────────────────┐
│ Workflow │ Status │ Duration │ URL │
├────────────────────┼───────────┼────────────┼──────────────────────┤
│ Deploy Backend │ ✓ passed │ 3m 42s │ <run-url> │
│ Deploy Frontend │ ✓ passed │ 2m 15s │ <run-url> │
│ Deploy Manager │ — skipped │ — │ (no matching paths) │
│ Deploy Dashboard │ — skipped │ — │ (no matching paths) │
└────────────────────┴───────────┴────────────┴──────────────────────┘
All deploys succeeded.
Print the table as above, then for each failed workflow:
gh run view <run-id> --log-failed