agentleFS
greglas75greglas75/zuvo/skills/canary/SKILL.md

canary

Skill7 starsChanged 28 days agoMITView on GitHub

Post-deploy monitoring with browser or degraded HTTP mode. Checks console errors, performance, page load. Configurable duration (1m-30m) and interval. Reports HEALTHY/DEGRADED/BROKEN. Flags: --duration, --interval, --quick, --max-errors.

  • Commits and pushes

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

Show its rules and text

We split this skill into the rules it gives an agent

30 rules. 0 are common, 12 are distinctive, and 18 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 18

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting any phase, read these shared includes:

    line 26
  2. Distinctive:

    If no URL argument is provided, STOP immediately:

    line 41
  3. Distinctive:

    Check whether the current environment exposes browser automation tools compatible with Playwright or Chrome DevTools.

    line 49
  4. Very specific:

    If browser tooling is available: set MODE=full.

    line 51
  5. Very specific:

    If not: set MODE=degraded and print:

    line 52
  6. Distinctive:

    If running in a non-interactive environment (Codex App, Cursor):

    line 60
  7. Very specific:

    Default to --quick behavior (single check) only if no --duration was explicitly passed.

    line 62
  8. Very specific:

    If the user explicitly passed --duration: honor it — run the full monitoring loop.

    line 63
  9. Very specific:

    Read ../../shared/includes/platform-detection.md and follow the detection algorithm.

    line 87
  10. Very specific:

    If a platform is detected, note its health check command.

    line 89
  11. Very specific:

    If --quick is passed, or non-interactive environment was detected AND no --duration was explicitly provided: run exactly ONE check cycle, …

    line 97
  12. Distinctive:

    Check HTTP status by reading the main document request from network logs:

    line 109
  13. Very specific:

    If browser network data is unavailable: run a degraded-mode curl request against the same URL for status verification.

    line 112
  14. Distinctive:

    Check HTTP status: expect 200.

    line 137
  15. Distinctive:

    No console error capture. No screenshots.

    line 141
  16. Distinctive:

    After all check cycles complete, assess the cumulative results:

    line 157
  17. Very specific:

    HEALTHY: All checks returned 200, console errors at or below --max-errors threshold, no critical failures.

    line 159
  18. Very specific:

    DEGRADED: No critical failures (all 200s), but warnings present — slow response times, minor console warnings, or console error count …

    line 160
  19. Distinctive:

    If verdict is BROKEN:

    line 165
  20. Very specific:

    If a platform was detected in Phase 1 and it has a rollbackCmd, print the platform-specific rollback command:

    line 167
  21. Distinctive:

    If no platform was detected, attempt git-native rollback:

    line 171
  22. Very specific:

    Read memory/last-ship.json and extract releaseCommitSha.

    line 172
  23. Very specific:

    If memory/last-ship.json is not available or releaseCommitSha is missing:

    line 176
  24. Very specific:

    Do NOT reference zuvo:deploy rollback — that interface does not exist.

    line 180
  25. Very specific:

    After all checks complete, write zuvo/reports/canary-<ISO-timestamp>/summary.json:

    line 184
  26. Very specific:

    Check if prior canary runs exist in zuvo/reports/canary-*/summary.json.

    line 200
  27. Distinctive:

    If no prior run exists, omit the baseline comparison from the Performance line.

    line 202
  28. Very specific:

    Follow the retrospective protocol from retrospective.md.

    line 225
  29. Distinctive:

    If gate check skips: print "RETRO: skipped (trivial session)" and proceed.

    line 227
  30. Very specific:

    After printing this block, append the Run: line value (without the Run: prefix) to the log file path resolved per run-logger.md.

    line 229

“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

zuvo:canary

Monitor production after deployment. Browser-based or HTTP-only health checks with configurable duration.

Argument Parsing

ArgumentEffect
<url>Production URL to monitor (REQUIRED)
--duration <time>Monitoring duration (default: 10m, range: 1m-30m)
--interval <time>Check interval (default: 60s)
--quickSingle health check, no loop
--max-errors <n>Error threshold for FAIL verdict (default: 3)

Mandatory File Loading

Before starting any phase, read these shared includes:

INCLUDES LOADED:
  1. ../../shared/includes/env-compat.md     — READ
  2. ../../shared/includes/run-logger.md     — READ
  3. ../../shared/includes/retrospective.md     — READ

Phase 0: Setup

Step 1: Validate URL

If no URL argument is provided, STOP immediately:

URL is required. Usage: zuvo:canary https://myapp.com

Step 2: Detect Browser Capability

Check whether the current environment exposes browser automation tools compatible with Playwright or Chrome DevTools.

  • If browser tooling is available: set MODE=full.
  • If not: set MODE=degraded and print:

    [DEGRADED: no browser tools] — running HTTP-only checks. Console errors and screenshots unavailable.

Step 3: Check Environment (per env-compat.md)

If running in a non-interactive environment (Codex App, Cursor):

  • Default to --quick behavior (single check) only if no --duration was explicitly passed.
  • If the user explicitly passed --duration: honor it — run the full monitoring loop. Non-interactive environments can execute timed loops; the limitation is user interaction, not execution duration.
  • Print:

    [AUTO-DECISION]: defaulting to one-shot mode. Pass --duration to enable monitoring loop.

Step 4: Parse Arguments

Parse --duration and --interval. Validate duration range (1m–30m inclusive). If duration is outside this range, stop with:

--duration must be between 1m and 30m. Got: <value>

Defaults:

  • --duration: 10m
  • --interval: 60s
  • --max-errors: 3

Phase 1: Platform Context (optional)

Read ../../shared/includes/platform-detection.md and follow the detection algorithm.

If a platform is detected, note its health check command. This is supplementary — the primary check is always the URL-based approach in Phase 2. Platform detection may provide additional commands (e.g., fly status) that can supplement the HTTP check.


Phase 2: Monitoring Loop

One-shot mode

If --quick is passed, or non-interactive environment was detected AND no --duration was explicitly provided: run exactly ONE check cycle, then proceed to Phase 3.

Loop mode

Otherwise: run one check cycle every --interval seconds, for the total --duration. Track cumulative error count across all checks. Store all individual response times in an array for p95 computation in Phase 3.

Check Cycle — Full Mode (Playwright or Chrome DevTools available)

  1. Navigate to URL:
    • Playwright: mcp__playwright__browser_navigate(url=<url>)
    • Chrome DevTools: mcp__chrome-devtools__navigate_page(url=<url>)
  2. Check HTTP status by reading the main document request from network logs:

    • Playwright: inspect the main document request and read its status.
    • Chrome DevTools: inspect the main document request and read its status.
    • If browser network data is unavailable: run a degraded-mode curl request against the same URL for status verification.
    • Do not assume navigation success means HTTP 200.

    Expect 200. Non-200 = CRITICAL alert.

  3. Capture console errors:

    • Playwright: mcp__playwright__browser_console_messages()
    • Chrome DevTools: mcp__chrome-devtools__list_console_messages()

    Record error-level entries. Each new Error-level console message = HIGH alert. Accumulate total error count.

  4. Measure page load time. Response time >10s = MEDIUM alert.
  5. Take screenshot: save to zuvo/reports/canary-{ISO-timestamp}/check-{N}.png
    • Playwright: mcp__playwright__browser_take_screenshot(path=...)
    • Chrome DevTools: mcp__chrome-devtools__take_screenshot(path=...)
    • ISO-timestamp format: YYYY-MM-DDTHHMM (e.g., 2026-03-28T1430)

Check Cycle — Degraded Mode (HTTP only)

  1. Run:
    curl -s -o /dev/null -w "%{http_code} %{time_total}" <url>
  2. Check HTTP status: expect 200. Non-200 = CRITICAL alert.
  3. Record response time. Response time >10s = MEDIUM alert.
  4. No console error capture. No screenshots.

Alert Conditions (per check)

ConditionSeverity
Page load failure (non-200 HTTP status)CRITICAL
New console errors (Error level)HIGH
Response time >10sMEDIUM

Phase 3: Output

Step 1: Determine Verdict

After all check cycles complete, assess the cumulative results:

  • HEALTHY: All checks returned 200, console errors at or below --max-errors threshold, no critical failures.
  • DEGRADED: No critical failures (all 200s), but warnings present — slow response times, minor console warnings, or console error count approaching --max-errors threshold.
  • BROKEN: Any of the following: page load failure (non-200), critical console errors observed, or cumulative console error count exceeds --max-errors threshold.

Step 2: Rollback Suggestion (BROKEN verdict only)

If verdict is BROKEN:

  1. If a platform was detected in Phase 1 and it has a rollbackCmd, print the platform-specific rollback command:
    Rollback command (<platform>): <rollbackCmd>
  2. If no platform was detected, attempt git-native rollback:
    • Read memory/last-ship.json and extract releaseCommitSha. If available:
      Rollback (git-native): git revert <releaseCommitSha> && git push
    • If memory/last-ship.json is not available or releaseCommitSha is missing:
      Rollback: identify the release commit SHA manually and run: git revert <sha> && git push
  3. Do NOT reference zuvo:deploy rollback — that interface does not exist. Always print the concrete command with a real SHA, not a placeholder.

Step 3: Write Summary and Baseline Comparison

After all checks complete, write zuvo/reports/canary-<ISO-timestamp>/summary.json:

{
  "url": "<url>",
  "mode": "full" or "degraded",
  "checks": <N>,
  "avgResponseTime": <seconds>,
  "p95ResponseTime": <seconds>,  // computed from stored response times array: sort ascending, take value at index ceil(0.95 * N) - 1
  "consoleErrors": <N>,
  "consoleWarnings": <N>,
  "verdict": "HEALTHY" or "DEGRADED" or "BROKEN",
  "date": "<ISO-8601>"
}

Check if prior canary runs exist in zuvo/reports/canary-*/summary.json. If found, compare avgResponseTime and consoleErrors against the most recent prior run and compute percentage deltas for the Performance line.

If no prior run exists, omit the baseline comparison from the Performance line.

Step 4: Print CANARY COMPLETE Block

CANARY COMPLETE
  URL:         <url>
  Duration:    <duration> (<N> checks)
  Mode:        full (Playwright available) | degraded (HTTP-only)
  Console:     <N> errors, <N> warnings
  Performance: avg <N>s (baseline: <N>s, +<N>%) | avg <N>s (no baseline)
  Screenshots: zuvo/reports/canary-<ISO-timestamp>/  [full mode only — omit in degraded mode]
  Verdict:     HEALTHY | DEGRADED | BROKEN

Step 5: Append Run Log

Run: <ISO-8601-Z>\tcanary\t<project>\t-\t-\t<VERDICT>\t-\t<DURATION>\t<NOTES>\t<BRANCH>\t<SHA7>\t<INCLUDES>\t<TIER>

Retrospective (REQUIRED)

Follow the retrospective protocol from retrospective.md. Gate check → structured questions → TSV emit → markdown append. If gate check skips: print "RETRO: skipped (trivial session)" and proceed.

After printing this block, append the Run: line value (without the Run: prefix) to the log file path resolved per run-logger.md.

VERDICT mapping: HEALTHY → PASS, DEGRADED → WARN, BROKEN → FAIL. DURATION: resolved monitoring duration (e.g., one-shot, 10m, 30m).


Edge Cases

#ConditionHandling
E11No browser MCP tools availableDegraded mode — HTTP-only. Annotate [DEGRADED: no browser tools].
E12Non-interactive environment (Codex, Cursor)Default to one-shot mode unless --duration is explicitly passed. Annotate [AUTO-DECISION]: defaulting to one-shot mode.
—URL is missingSTOP with "URL is required" message.
—Duration outside 1m–30mSTOP with range validation error.
—First canary run (no baseline)Omit baseline comparison from Performance line.
—Screenshot directory doesn't existCreate zuvo/reports/canary-{ISO-timestamp}/ before writing.

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.