/agents-skills:deploy-watchingfrom agents-skills
Interval-based watcher that monitors integration environment deploys, classifies failures as transient or real, re-runs transient failures, and creates forward-fix PRs for real failures without reverting or skipping tests.
Ships in agents-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One job: keep the integration environment's deploys healthy by fixing forward. A failing deploy is diagnosed and repaired, not rolled back. The fix keeps whatever the offending commit shipped and makes the deploy healthy again. Nothing else.
This skill builds on driving-prs-to-merge (PR mechanics, the transient-vs-real ladder, force-push discipline) and pairs with ci-flake-hunting (the instability lane). Where a "make it green" instinct conflicts with the fix-forward rule, this skill wins.
Project-agnostic; the adopting project defines these in its own CLAUDE.md.
| Placeholder | Meaning |
|---|---|
<owner>/<repo> | GitHub repository slug |
<integration-branch> | Branch merges land on, and the branch the deploy follows |
<deploy-workflow> | The workflow that deploys <integration-branch> to the shared environment |
<deploy-step> | The job/step that actually applies infrastructure and code (IaC apply, release, migrate) |
<smoke-jobs> | Post-deploy verification jobs that run against the live environment |
<local-gate> | The full local verification command CI mirrors (lint + typecheck + tests) |
<transient-ledger> | Where known transient deploy/smoke signatures are recorded; absent → degrade to "re-run once on the same SHA" |
A single-lane, interval-driven loop (/loop <interval> start), like the pr-checks lane but over deploy runs rather than PRs. Singleton: two deploy watchers re-run and fix the same red twice.
Slots = max concurrent fix sub-agents in flight — NOT a cap on runs watched. Look at every relevant deploy run each tick; queue extra fixes if more break at once than you have slots. Default 1 for this lane. A slots=N token in the start prompt overrides.
You orchestrate; you do not diagnose-by-editing. Delegate per MODEL-DEFAULTS.md:
caveman:cavecrew-investigator or a cheap-tier sub-agent). Deploy and smoke logs are huge; keep them out of your context.caveman:cavecrew-builder. It has no Bash, so it cannot run tests or open a PR: investigator locates → builder edits → a Bash-capable step (you, or a workhorse sub-agent) verifies and opens the PR.agent-model: label — never self-escalated.Sub-agent refusal fallback. A sub-agent can die on a false-positive safety classification when the fix touches security-adjacent code (malware scanning, upload/presign paths, auth). Narrow the brief so it names less of that surface, split the security-adjacent part into its own small dispatch, or do the fix yourself in a worktree — you are the Bash-capable verify-and-PR step anyway.
You OWN: health of <deploy-workflow> on <integration-branch> — the deploy step, migrations/bootstrap, <smoke-jobs> — plus post-merge regressions on <integration-branch>. pr-checks hands you any PR failure rooted in a broken base rather than that PR's own diff.
You do NOT touch: dispatching feature issues (the pr-dispatcher lane), a given open PR's checks and conflicts (pr-checks), review threads (pr-comments), merged-PR cleanup (pr-cleanup), slow-but-green jobs (ci-speed-hunter). Per-PR preview environments are not this lane unless the project says otherwise — driving-prs-to-merge covers them. Notice one → ignore it.
Flake vs deploy contention. A test that is flaky in isolation belongs to ci-flake-hunter. Contention inside the shared deployed environment — parallel smoke shards colliding on one shared identity, queue, or channel under a merge burst — is a real defect of the deploy pipeline and stays here.
git revert, no rollback of a merged change.--no-verify, no --admin, no skip-labels, no stubbed-out behaviour, no timeout bump without evidence a longer wait catches something that was actually coming.origin/<integration-branch>, hooks intact, <local-gate> green, the project's do-not-rebase convention honoured. You may edit CI/workflow config when that is the genuine fix.pr-comments arms after review; arming early races the review bot.gh run list --repo <owner>/<repo> --workflow <deploy-workflow> --branch <integration-branch> --limit 5 --json databaseId,headSha,status,conclusion,createdAt. Act on the newest run (head SHA closest to the origin/<integration-branch> tip). An older run's result stops mattering once a newer commit's run exists. If a newer superset run is still in progress, let it adjudicate and end the tick.gh run view <id> --json jobs then gh run view <id> --log-failed. Which job failed decides urgency:
gh run rerun <id> --failed, open no PR, note it.pr-checks drives CI, pr-comments handles threads and arms. Do not drive it to green yourself.Re-run first when the signature is environmental. The tie-breaker: the same signature repeating on a re-run of the same SHA is real.
| Signature | Bucket | Action |
|---|---|---|
| Two deploy runs started within about a minute, the later one fails acquiring the shared IaC state lock, and its apply log is near-empty | Transient — concurrent-deploy lock race | Re-run once the sibling run has finished |
| Cancelled run, CI-provider or artifact-service 4xx/5xx, package-mirror fetch failure, secret-store read 5xx | Transient — CI infra | Re-run |
A smoke signature recorded in <transient-ledger>, on a commit that cannot touch that surface | Transient — known smoke transient | Re-run. If it needs 2+ re-runs, or its cadence climbs, it is no longer transient: hand the test-in-isolation case to ci-flake-hunter, keep the contention case here |
| Deterministic IaC error: resource already exists, immutable field changed, a create-only flag rejecting an update | Real | Fix the IaC. A re-run cannot clear a deterministic diff |
| Components that must deploy in order (schema before resolvers, migration before code, producer before consumer) went out together and the dependent half failed | Real — ordered co-deploy race | Two-phase land: ship the prerequisite first, the dependent change in a follow-up. A re-run does not fix it |
| Smoke fails on behaviour the merged commit changed | Real — regression, or a stale test the commit should have updated | Fix forward. Decide which side is wrong before editing |
| Smoke fails under a merge burst, then a later run self-recovers with no code change | Real — shared-environment contention | Self-recovery is evidence of contention, not of a fix. Root-cause it |
Diagnosing contention. Correlate the failing request's service logs with the platform's own metrics for the exact failure minute. Logs show whether the handler ran clean; metrics show whether the platform delivered, dropped, or errored. Logs alone cannot tell "our bug" from "the platform dropped it under concurrent load", because platforms rarely log their own fan-out or delivery step. The usual fix is isolation (temporal: run the sensitive check after the producing shards finish; or by identity), not a longer timeout.
A fix PR that has entered a merge queue can show no auto-merge request with mergeStateStatus CLEAN, then UNKNOWN while the queue builds the merge group. That is the queue working, not a disarm. Re-arming returns "already queued". Confirm with the mergeQueueEntry GraphQL query in pr-checks before calling anything stalled. Only BLOCKED, DIRTY, or a PR provably absent from the queue is a stall, and even then arming belongs to the PR lanes, not you.
Operate in caveman mode (load the caveman skill) for all working output; delegate log trawls so deploy logs stay out of your context. Report per tick:
deploy <sha> <status>; <job> red → transient, re-ran / real → fix PR #x; recovered? y/n
Caveman compresses prose only. gh commands, error signatures, run ids, and file:line refs stay byte-exact. Commit messages and PR bodies are normal prose, written through humanizer.
Newest deploy run green, or every red either re-run (transient) or carrying an open fix PR handed to the PR lanes → deploys green / deploy fix in flight #x, end the tick. The loop re-fires on its interval.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub skyfox675/agents-skills --plugin agents-skills32 skills in this plugin
/browser-diagnosisReproduce and root-cause a front-end bug in a real browser using whichever browser MCP is connected — Chrome (claude-in-chrome), Playwright, Cypress, or Chrome DevTools — not just one. Drive the page as the signed-in user, watch the network and console, capture the failing request/response, shim/mock to isolate the fault, and record a repro, then hand the evidence to the issue being filed. Use whenever a symptom needs live-browser evidence (the toast says failed but it saved, a column shows zero, a click 404s) and from the /…-use-browser command family (and the engine-pinned /…-use-chrome, /…-use-playwright, /…-use-cypress variants), the /…-use-aws-browser commands, and the diagnostician agent. Picks the available MCP automatically and degrades gracefully when none is connected./cavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested./ci-flake-huntingThe authoritative method for hunting, root-causing, and fixing CI flakes so the merge queue stops ejecting correct PRs and churn drops. A flake is a test that fails then passes on retry with NO code change explaining it — every red speculative merge-queue build ejects a correct PR and disarms its auto-merge, so a live flake taxes every PR behind it. Encodes the loop — MINE CI history for real flakes → REPRODUCE harsher-than-CI → ROOT-CAUSE the real mechanism (hydration/render race, settle race, mock-order, loading-state race, click-through fragility) → FIX FORWARD (test or component, never mask) → VERIFY by re-running many times → UNSTICK the PRs the flake stranded → REPEAT. And how to tell a true code flake from transient INFRA (CDN/mirror outage, expired token mid-suite, rate-limit/WAF, external-service cap, cloud state-lock, CI-provider billing/outage, upstream bump) which must NOT be code-fixed. Use whenever chasing CI instability, "deflake this spec", "CI keeps ejecting my PR", "is this a flake or real", a shard that intermittently reds the queue, or running the ci-flake-hunter lane. Distinct from ci-speed-hunting (which owns slow-but-green jobs — flake never touches timing/sharding)./ci-speed-huntingThe authoritative method for hunting, diagnosing, and fixing CI SLOWNESS so the merge queue drains faster and throughput rises — the target is wall-clock latency, NOT correctness (a job that is GREEN but slow). Encodes the loop — MINE CI timing for the real long poles → DIAGNOSE the bottleneck class (under-sharded matrix, cold cache, missing/too-broad path-filter tier, serial needs-chain, redundant rebuild) → PROVE the fix keeps identical coverage → FIX FORWARD → VERIFY the before/after delta at unchanged coverage → REPEAT. And the hard line — speed comes from doing the same work faster or skipping PROVABLY irrelevant work, NEVER from deleting tests, narrowing greps, dropping shards, or removing a gate. Use whenever chasing CI latency, "CI is too slow", "speed up the checks", "why does the merge queue take so long", re-sharding an E2E matrix, adding or fixing a cache, tuning changed-paths tiering, or running the ci-speed-hunter lane. Distinct from ci-flake-hunting (which owns failures and flakes — speed never touches a red job)./dispatching-subagentsTurn a groomed tracker issue into a running implementation sub-agent and a merged PR — issue selection (priority, file-disjointness, bundling), model/effort resolution from chat > labels > defaults, the eight-section dispatch brief (worktree, toolchain prefix, pre-push hygiene, scope, git discipline, PR procedure, return contract), parallel dispatch under a concurrency cap, stalled-agent worktree salvage, and verify-then-trust completion checks. Use whenever you are about to spawn a sub-agent (Agent/Task tool call) to implement, fix, refactor, test, or otherwise write code from a tracker issue — even if the user only says "work the next issues", "fix these bugs", "run the loop", or "send an agent at #N" without saying "dispatch"; also use when a dispatched agent stalls, is watchdog-killed, returns status:failed, or reports completion and you must decide whether to salvage its worktree, re-dispatch, or verify its PR./doc-coauthoringGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Other plugins' skills for the same job