agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/smoke-test/SKILL.md

smoke-test

Skill0 starsChanged 2 months agoMITView on GitHub

Run the smoke checks a repository declares for its deploy targets and report whether production actually answers after a release. Use after a deploy, during release verification, and when confirming a rollback landed. Triggers on: "smoke test", "run smoke checks", "is production healthy", "did the deploy work", "verify the release is live".

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the smoke checks declared per target in .claude/deploy-targets.json and report whether the deployed thing actually answers.

    line 30
  2. Distinctive:

    Run the smoke command from the consuming project root, forwarding only the flags this skill documents:

    line 54
  3. Very specific:

    Never invent a smoke check: If a target declares none, report not_configured rather than guessing at a health endpoint.

    line 116

“Common” is measured: kept by at least 6 in 10 of the 6 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

Smoke Test

Run the smoke checks declared per target in .claude/deploy-targets.json and report whether the deployed thing actually answers.

disable-model-invocation: true is deliberate. These checks execute commands the repository declares and send requests to production, so this skill runs when a person asks for it, not when a model infers it might be useful.

Workflow

  1. Resolve the helper script — the same two-step resolution deploy-status uses, because it is the same helper and a skill that found only one of the two locations would work for exactly one install shape:

    if [ -f "$HOME/.claude/skills/deploy-status/scripts/deploy-ops.mjs" ]; then
      DEPLOY_OPS="$HOME/.claude/skills/deploy-status/scripts/deploy-ops.mjs"
    elif [ -f "skills/deploy-status/scripts/deploy-ops.mjs" ]; then
      DEPLOY_OPS="skills/deploy-status/scripts/deploy-ops.mjs"
    else
      echo "deploy-status helper not found; re-run dotbabel bootstrap or dotbabel init" >&2
      exit 2
    fi
  2. Run the smoke command from the consuming project root, forwarding only the flags this skill documents:

    node "$DEPLOY_OPS" smoke $ARGUMENTS

    $ARGUMENTS is raw caller text spliced into a command that reaches production, so pass only --dry-run and --json — drop anything else rather than forwarding it. A value carrying ;, |, &, a backtick, $(, or a newline is shell syntax, not a flag: refuse it and say so.

  3. Preserve the helper's exit code:
    • 0 — every declared check passed, or none is declared, or it was a dry run. None of those is a failure.
    • 1 — at least one check failed, or the run hit its 300-second budget.
    • 2 — target discovery failed.
  4. Read verdict, not just the exit code. The payload distinguishes four states, and two of them exit 0 without having verified anything:

    verdictMeaning
    passEvery declared check ran and passed
    failAt least one check failed, or the budget was hit
    not_configuredNo target declares smoke — nothing was checked
    not_run--dry-run; checks were listed, none executed

    Report not_configured and not_run as exactly that. Reporting either as a pass claims a verification that did not happen.

On failure

Report the failing checks and recommend /rollback-prod. Then stop.

Never invoke /rollback-prod, and never run the rollback helper directly. Rolling back is a production change, and both the rule floor and KD-13 require an explicit human instruction for one. /rollback-prod additionally demands a typed confirmation of its own, which exists precisely so that a chain of automated judgments cannot end in an unattended production change.

Recommend it, name the failing checks, and let the person decide.

What the checks are

Declared per target in .claude/deploy-targets.json; see skills/deploy-status/SKILL.md for the full schema and the security guards. In short: http checks are GET only, retry 3 times with 2s/4s/8s backoff, and abort after 10 seconds; command checks run their argv exactly once, because a command may not be idempotent.

Secrets are read only from named environment variables, and header values never appear in the output. If a check needs a token, export it before invoking:

SMOKE_BEARER=… /smoke-test

Rules

  • Never roll back. Recommend /rollback-prod and stop.
  • Never deploy or promote. This skill only observes.
  • Never invent a smoke check. If a target declares none, report not_configured rather than guessing at a health endpoint.
  • Never report a dry run as a pass. --dry-run lists what would run and verifies nothing; its verdict is not_run.
  • Never print a header value. The helper redacts them; do not echo the environment variable it read them from either.

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.