Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wan-huiyan/agent-traffic-control --skill deploy-from-stale-worktree-silent-rollbackgit clone --depth 1 https://github.com/wan-huiyan/agent-traffic-controlWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/deploy-from-stale-worktree-silent-rollback)<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/deploy-from-stale-worktree-silent-rollback"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/deploy-from-stale-worktree-silent-rollback/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/deploy-from-stale-worktree-silent-rollback"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/deploy-from-stale-worktree-silent-rollback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00405 | $0.05588 |
| Opus 5 | $0.00202 | $0.02794 |
| Sonnet 5 | $0.00081 | $0.01118 |
| Haiku 4.5 | $0.00040 | $0.00559 |
Grade A, and why
deploy-from-stale-worktree-silent-rollback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 460 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deploy from a stale worktree silently rolls back merged fixes
Problem
The user merged a PR (or many PRs), redeployed the serving service, and reports the fix isn't live — sometimes "a lot of fixes regressed". The deployed image is brand new (recent timestamp, latest revision) and the deploy succeeded green. The diff between code and what's deployed is not a baking issue, not a browser cache issue — the image itself contains old code.
This happens when the deploy script's build context is the local
filesystem (gcloud builds submit ... "${LOCAL_DIR}",
docker build <dir>, gcloud run deploy --source <dir>, kaniko --context dir://...) and the user runs it from a stale checkout. With
many git worktrees, it is easy to be sitting in worktrees/foo/ 21
commits behind main and not notice — the deploy ships whatever is on
disk.
Trigger conditions
All of these are typical:
- The repo has a deploy script that uses one of:
gcloud builds submit --tag=... "${SCRIPT_DIR}"(no commit SHA tag)docker build -t ... <local-dir>then pushgcloud run deploy --source <local-dir>
- The user has multiple checkouts of the same repo (worktrees,
sibling clones, IDE-managed copies).
git worktree listshows ≥3 worktrees. - The user reports a regression after a self-initiated deploy
(
serving.knative.dev/creatoron the new revision is the user's email, not a CI service account). - The "regressed" PRs were all merged BEFORE the deploy timestamp —
they exist on
origin/mainbut not necessarily in the local cwd. - There is no commit SHA visible on the deployed image (only
:latestor no tag at all). This is a strong tell that the build context was local FS, not a git ref.
Pre-deploy preflight (catch the trap BEFORE it fires)
Run this preflight from the deploy script's directory before you invoke the build. It costs ~1s and catches every variant of this trap without needing to inspect Cloud Build tarballs after the fact.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 460 lines · 405 tokens per session scan A f987839313f9
deploy-from-stale-worktree-silent-rollback is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 405 tokens to every session and 5,588 once invoked, about $0.0020 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
deploy-mcp
Deploy the FutureSearch MCP server to staging or production on GKE. Use when the user wants to deploy, redeploy, roll back, scale replicas, or check deployment status. Triggers on deploy, redeploy, staging, production, rollout, scale, replicas.
kubernetes-architect
Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration.
cloudflare-cron-triggers
Cloudflare Cron Triggers for scheduled Workers execution. Use for periodic tasks, scheduled jobs, or encountering handler not found, invalid cron expression, timezone errors.
cloudflare-nextjs
Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare). Use for SSR/ISR/SSG/App or Pages Router, getCloudflareContext, bindings (D1/R2/KV/AI/Hyperdrive), caching tiers, skew protection, multi-worker, custom worker, env vars, or worker…
cloudflare-browser-rendering
Cloudflare Browser Rendering with Puppeteer/Playwright. Use for screenshots, PDFs, web scraping, or encountering rendering errors, timeout issues, memory exceeded.
cloudflare-queues
This skill should be used when the user asks to "set up Cloudflare Queues", "create a message queue", "implement queue consumer", "process background jobs", "configure queue retry logic", "publish messages to queue", "implement dead letter queue", or encountering "queue timeout", "message retry", "throughput…