agentleFS
CommsConnectgmbhCommsConnectgmbh/claude-starter-kit/skills/canary/SKILL.md

canary

Skill0 starsChanged 35 days agoMITView on GitHub

Post-deploy canary monitoring for a web app — capture a baseline before deploy, then watch the live URL for a window after deploy and alert on regressions (page load failures, NEW console errors, performance regressions, new 404s) relative to the baseline, not absolutes. Use right after pushing to production, especially for setups that ship straight to production without a staging environment. Trigger phrases: 'canary', 'überwach den deploy', 'check production nach dem deploy', 'monitor the live site', 'post-deploy check', 'ist der deploy gesund', 'smoke-test prod'. NOT for pre-merge code review (use /code-review) or functional QA (use /verify).

  • Installs packages

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use landing-report, pair-agent and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 6 projects that use this

  • seek888Skill

    pair-agent

    Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".

    Also in 8 projects that use this

  • ayudaySkill

    land-and-deploy

    Land and deploy workflow. Merges the PR, waits for CI and deploy, verifies production health via canary checks. Takes over after /ship creates the PR. Use when: "merge", "land", "deploy", "merge and verify", "land it", "ship it to production".

    Also in 13 projects that use this

  • ayudaySkill

    autoplan

    Auto-review pipeline — reads the full CEO, design, and eng review skills from disk and runs them sequentially with auto-decisions using 6 decision principles. Surfaces taste decisions (close approaches, borderline scope, codex disagreements) at a final approval gate. One command, fully reviewed plan out. Use when asked to "auto review", "autoplan", "run all reviews", "review this plan automatically", or "make the decisions for me". Proactively suggest when the user has a plan file and wants to run the full review gauntlet without answering 15-30 intermediate questions.

    Also in 14 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 6 projects that use this

  • no-sessionSkill

    design-shotgun

    Design shotgun: generate multiple AI design variants, open a comparison board, collect structured feedback, and iterate. Standalone design exploration you can run anytime. Use when: "explore designs", "show me options", "design variants", "visual brainstorm", or "I don't like how this looks". Proactively suggest when the user describes a UI feature but hasn't seen what it could look like.

    Also in 11 projects that use this

  • +2 more from ayuday

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All page checks use one throwaway script.

    line 22
  2. Very specific:

    If no --pages, navigate the homepage, extract the top ~5 internal nav links via the probe (add a[href] extraction), always include /, and …

    line 73
  3. Distinctive:

    Don't cry wolf: Only alert on patterns persisting across 2+ consecutive checks.

    line 90
  4. Very specific:

    Use a sleep 60 between checks.

    line 93
  5. Very specific:

    If healthy, offer (AskUserQuestion) to copy the latest screenshots over the baseline and refresh baseline.json.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/canary — Post-deploy monitoring

Watch a freshly deployed URL and alert on what changed vs a baseline. Start fast: begin monitoring within ~30s of invocation; don't over-analyze first.

Arguments

  • /canary <url> — monitor for 10 minutes after deploy.
  • --baseline — capture baseline BEFORE deploying (run this first, ideally).
  • --duration 5m — custom window (1m–30m).
  • --pages /,/dashboard,/settings — explicit page list (else auto-discover).
  • --quick — single-pass health check, no continuous loop.

Engine — self-contained Playwright probe (no repo changes)

All page checks use one throwaway script. Set it up once at the start of a canary run, then call it per page. It captures screenshot + console errors + load time as JSON.

The probe is CommonJS (.cjs + require) on purpose: it's run with NODE_PATH pointing at a throwaway Playwright install, and only CommonJS resolution honors NODE_PATH (npx playwright <script> and ESM import do not resolve a transient install).

# One-time per run: install Playwright into a throwaway dir, remember NODE_PATH.
mkdir -p .canary-reports/baselines .canary-reports/screenshots
npm install --prefix .canary-reports/runner playwright >/dev/null 2>&1
"$PWD/.canary-reports/runner/node_modules/.bin/playwright" install chromium >/dev/null 2>&1
export NODE_PATH="$PWD/.canary-reports/runner/node_modules"

cat > .canary-reports/_probe.cjs <<'EOF'
const { chromium } = require('playwright');
const [url, shot] = [process.argv[2], process.argv[3]];
(async () => {
  const errors = [];
  const b = await chromium.launch();
  const p = await b.newPage();
  p.on('console', m => { if (m.type() === 'error') errors.push(m.text()); });
  p.on('pageerror', e => errors.push(String(e)));
  const t0 = Date.now();
  let status = 0, ok = true;
  try { const r = await p.goto(url, { waitUntil: 'load', timeout: 30000 }); status = r ? r.status() : 0; }
  catch (e) { ok = false; errors.push('GOTO_FAILED: ' + e.message); }
  const load_ms = Date.now() - t0;
  if (shot) await p.screenshot({ path: shot, fullPage: true }).catch(() => {});
  await b.close();
  process.stdout.write(JSON.stringify({ url, ok, status, load_ms, console_errors: errors.length, errors }));
})();
EOF
# Run a probe (NODE_PATH must be exported as above):
#   node .canary-reports/_probe.cjs "<url>" ".canary-reports/screenshots/home-1.png"

.canary-reports/ is throwaway — add it to .gitignore.

Phase 1 — Setup

Parse args. Default duration 10m. Default pages: auto-discover from nav.

Phase 2 — Baseline (--baseline mode, run BEFORE deploy)

For each page (or homepage), run the probe and record screenshot path, console-error count, load time. Write .canary-reports/baseline.json:

{ "url": "<url>", "timestamp": "<ISO>", "branch": "<branch>",
  "pages": { "/": { "screenshot": "baselines/home.png", "console_errors": 0, "load_time_ms": 450 } } }

Then STOP: "Baseline captured. Deploy, then run /canary <url> to monitor."

Phase 3 — Page discovery

If no --pages, navigate the homepage, extract the top ~5 internal nav links via the probe (add a[href] extraction), always include /, and confirm the list with the user via AskUserQuestion (A: these pages / B: add more / C: homepage only).

Phase 4 — Pre-deploy snapshot (if no baseline exists)

No baseline.json? Probe each monitored page once now as the reference point. Record console-error count + load time per page.

Phase 5 — Continuous monitoring loop

Monitor for the window. Every 60s, probe each page and compare against baseline/reference:

  1. Page load failure (ok:false / timeout) → CRITICAL
  2. New console errors (count above baseline) → HIGH
  3. Perf regression (load_ms > 2× baseline) → MEDIUM
  4. New 404s (status 404 not in baseline) → LOW

Rules:

  • Alert on changes, not absolutes. 3 baseline errors staying at 3 is fine; one NEW error alerts.
  • Don't cry wolf. Only alert on patterns persisting across 2+ consecutive checks; a single blip is not an alert.
  • On CRITICAL/HIGH, notify immediately via AskUserQuestion with an alert block (time, page, type, finding, screenshot path, baseline vs current) and options: A) investigate now / B) keep watching (transient) / C) rollback the deploy / D) dismiss as false positive.

Use a sleep 60 between checks; keep looping for the full window — do not stop early or hand off to a notification.

Phase 6 — Health report

On completion (or early stop) write .canary-reports/<date>-canary.md (+ .json):

CANARY REPORT — <url>
Duration: X min | Pages: N | Checks: N | Status: HEALTHY / DEGRADED / BROKEN
Per-page: page | status | new errors | avg load (vs baseline)
Alerts fired: N (x critical, y high, z medium)
VERDICT: DEPLOY IS HEALTHY / HAS ISSUES — details above

Phase 7 — Baseline update

If healthy, offer (AskUserQuestion) to copy the latest screenshots over the baseline and refresh baseline.json. Otherwise keep the old baseline.

Honest limits

  • Without a baseline, canary degrades to a plain health check — encourage --baseline before deploying.
  • Perf thresholds are relative (2× = regression); 1.5× may be normal variance.
  • Screenshots are evidence — every alert cites a screenshot path.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.