canary-execution

canary-execution is a skill for Claude Code from app-vitals/shipwright. It costs 125 tokens per session (1,896 once invoked), scanned A, original, MIT.

A testing contract for running selected smoke and end-to-end tests in either local mode or canary mode. Smoke tests check key functions quickly; end-to-end tests check complete workflows, and canary mode checks a deployed test environment.

In plain words
What is it for?
Use it to define local and post-deployment test commands, switch the target with an environment variable, and keep smoke and canary runs distinct.
Why use it?
Local tests need to start their own dependencies, while deployed checks must use the existing environment. Separate entry points and CI jobs prevent those setups from interfering.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shipwright plugin — 27 skills, 32 commands, 5 agents shipped together

Good fit Use it to define local and post-deployment test commands, switch the target with an environment variable, and keep smoke and canary runs distinct.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/app-vitals/shipwright/canary-execution
Install

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.

Any agent
npx skills add app-vitals/shipwright --skill canary-execution
Clone the repo
git clone --depth 1 https://github.com/app-vitals/shipwright

Made for: Claude Code.

Or install shipwright, the plugin that ships this one along with the rest of its 27 skills, 32 commands, 5 agents.

Wrote 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.

agentmods badge for canary-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/app-vitals/shipwright/canary-execution/github.svg)](https://agentmods.dev/skills/app-vitals/shipwright/canary-execution)
Your own site
<a href="https://agentmods.dev/skills/app-vitals/shipwright/canary-execution"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/canary-execution/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.

agentmods 80×15 button for canary-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/app-vitals/shipwright/canary-execution"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/canary-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00125 $0.01896
Opus 5.5 $0.00050 $0.00758
Sonnet 5.5 $0.00025 $0.00379
Haiku 4.5 $0.00013 $0.00190

Measured 13d ago against content hash 9c00005dca77, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

canary-execution 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 13d 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.

plugins/shipwright/skills/canary-execution/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

canary-execution skill

Purpose

Make "tests run locally" and "tests validate canary deploys" compatible — same code, separate entry point.

The contract

Entry point

The canary suite runs from a dedicated entry point — a separate npm script (test:canary) or a dedicated Playwright project (e.g., playwright.canary.config.ts). It must never reuse test:smoke or the local smoke runner.

The separation is mechanical: CI wires two distinct jobs — smoke (pre-merge, boots local deps, runs test:smoke) and canary (post-deploy, sets TEST_TARGET_URL, runs test:canary). These jobs must not share a script.

Mode selection

Every canary-eligible smoke/E2E test reads TEST_TARGET_URL at process start:

  • Unset → local mode. Test boots its dependencies inline (docker-compose / testcontainers / in-memory) and makes HTTP calls to http://localhost:<port>.
  • Set to a URL → canary mode. Test skips local boot. Makes HTTP calls directly to $TEST_TARGET_URL. Uses canary-only auth credentials supplied via separate env vars (e.g., TEST_AUTH_TOKEN).

The test code is identical. Only the setup-fixture layer branches.

Eligibility rules

A test is canary-eligible iff all of the following hold:

  1. Layer ∈ {smoke, E2E}. Never canary unit or integration tests — they require boundaries that don't exist in a deployed environment.
  2. Criticality ∈ {critical, high}. Don't waste canary budget on medium-tier flows.
  3. Read-only OR self-cleaning. Either:
    • The test makes no writes to persistent state, OR
    • The test creates state in setup AND deletes it in teardown — and the teardown runs even if the assertion fails (try/finally semantics).
  4. No destructive side effects. No deleting other users' data. No sending real emails. No charging real cards. Canary auth must be scoped so even an attempt to do these things is rejected by the deployed service.
  5. Tolerates eventual consistency. Deployed envs may have queues, CDN caches, etc. that local-mode does not. Use retry-with-backoff in the assertion if applicable, with a hard time cap.
  6. Zero DB-dependent local tests. A test that boots a local database in local mode is not canary-eligible. In canary mode there is no local database to boot — the test will fail at the setup step, not at the assertion. If a test currently boots a DB, it must be refactored to use the deployed service's API for any state setup before it can be promoted to the canary suite.

Read the full file on GitHub · 111 lines

Changes

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.

  1. 13d ago First seen · 111 lines · 125 tokens per session scan A 9c00005dca77

Subscribe to this mod's changes

canary-execution is a skill published in the GitHub repository app-vitals/shipwright (16 stars, last pushed today), licensed MIT. It adds 125 tokens to every session and 1,896 once invoked, about $0.0005 per session on Opus 5.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-11-17.

Related

canary-execution compared with skills from other repositories

canary-execution next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
canary-executionapp-vitals/shipwrightSkill16todayMITA125Claude Code
pstack-create-verification-skilldmae97/omkSkill154todayMITA69Claude Code
e2e-testingQwenLM/qwen-codeSkill31ktodayApache-2.0A94Claude Code, Codex
terminal-captureQwenLM/qwen-codeSkill31ktodayApache-2.0A66Claude Code, Codex
tmux-real-user-testingQwenLM/qwen-codeSkill31ktodayApache-2.0A98Claude Code, Codex
agent-reproduce-alignQwenLM/qwen-codeSkill31ktodayApache-2.0A62Claude Code, Codex
ci-flaky-patrolQwenLM/qwen-codeSkill31ktodayApache-2.0A22Claude Code, Codex