agentleFS
tamdogoodtamdogood/builder-essential-skills/skills/run-smoke-tests/SKILL.md

run-smoke-tests

Skill214 starsChanged 5 months agoMITView on GitHub

Inspect an unfamiliar repository, interpret a broad Markdown user journey at runtime, operate the real product through its supported web, API, CLI, desktop, or mobile surface, and produce an auditable pass, fail, or blocked judgment with screenshots, logs, recordings, and a step timeline when available. Use when asked to run smoke tests, validate an end-to-end user journey, dogfood a product, test a release candidate, or execute a non-deterministic workflow that may include authentication or human checkpoints. Do not use as a substitute for deterministic unit, integration, or scenario tests.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use loop-on-ci.

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.
  • cogine-aiSkill

    loop-on-ci

    Monitor PR checks and fix failures until green. Uses gh pr checks as the source of truth for PR-attached checks.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 16 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 16

    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. Distinctive:

    Treat the Markdown as runtime instructions, not source to compile into code.

    line 14
  2. Distinctive:

    Test through a supported user-facing surface: web UI, API, CLI, desktop, mobile, or a documented combination.

    line 15
  3. Distinctive:

    Default to local, test, preview, or staging environments.

    line 19
  4. Distinctive:

    Keep the first failed run.

    line 23
  5. Distinctive:

    Read the nearest repository instructions, product README, runbook, contribution guide, manifests, launch scripts, existing smoke or …

    line 29
  6. Distinctive:

    Before launching anything, be able to state:

    line 37
  7. Distinctive:

    Do not guess missing commands, URLs, credentials, or permissions.

    line 52
  8. Distinctive:

    Read references/smoke-format.md.

    line 57
  9. Very specific:

    Prefer the repository's existing artifact directory.

    line 78
  10. Distinctive:

    Create a run manifest containing:

    line 83
  11. Distinctive:

    Follow the journey in order through the real product surface.

    line 100
  12. Distinctive:

    Use normal user affordances.

    line 113
  13. Distinctive:

    If the driver supports video, record the complete run and generate subtitles or a timestamped transcript from the step timeline.

    line 121
  14. Very specific:

    Add FLAKY as a flag when the same build and inputs produce inconsistent results.

    line 136
  15. Distinctive:

    Do not convert missing evidence into a pass.

    line 139
  16. Distinctive:

    Run only the cleanup authorized by the journey.

    line 148
  17. Distinctive:

    Write a report with:

    line 152
  18. Distinctive:

    Use the examples to demonstrate runtime interpretation.

    line 174

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

Run Smoke Tests

Execute a broad user journey against a real build and leave enough evidence for a person to audit the judgment. Understand the host project before starting the product or touching its state.

Operating contract

  • Treat the Markdown as runtime instructions, not source to compile into code.
  • Test through a supported user-facing surface: web UI, API, CLI, desktop, mobile, or a documented combination.
  • Separate execution from repair. Do not edit the product, tests, or journey during a run. Finish the report before starting any requested fix.
  • Default to local, test, preview, or staging environments. Never mutate production, spend money, send real invitations, or change real user data without explicit authorization.
  • Make every pass or fail claim traceable to captured evidence.
  • Keep the first failed run. Do not erase evidence by retrying until green.

Workflow

1. Pass the repository-understanding gate

Read the nearest repository instructions, product README, runbook, contribution guide, manifests, launch scripts, existing smoke or end-to-end tests, and the smallest relevant product documentation. Search for auth setup, seed data, test accounts, feature flags, observability, artifact conventions, and cleanup commands. Trace the journey across the relevant UI, service, state, and external-system boundaries so failures can be attributed to the right part of the product.

Before launching anything, be able to state:

product and user surface:
authoritative journey source:
relevant architecture and system boundaries:
build and start commands:
target environment and data boundary:
interaction driver or available tools:
authentication and human checkpoints:
evidence capture capabilities:
safe cleanup path:
known abort conditions:

Do not guess missing commands, URLs, credentials, or permissions. If a missing item blocks safe execution, report it as a preflight blocker.

2. Validate the journey contract

Read references/smoke-format.md. Normalize supplied prose without silently adding product behavior.

Confirm that the journey:

  • represents one coherent user goal;
  • names its environment and allowed mutations;
  • defines critical and noncritical oracles;
  • identifies authentication, payment, security, or destructive checkpoints;
  • has a cleanup or quarantine plan;
  • names conditions that require an immediate abort.

Move small deterministic behaviors into scenario tests. Keep smoke coverage for the larger path and the seams between systems.

3. Preflight without changing product behavior

Build or launch the product with documented commands. Confirm health, test-data availability, driver connectivity, recording support, and enough storage for artifacts.

Prefer the repository's existing artifact directory. Otherwise use .context/smoke-runs/ when .context already exists; if it does not, create a temporary directory and report its absolute path. Do not add generated evidence to version control unless the user asks.

Create a run manifest containing:

journey ID and source path
commit or build identifier
environment and base URL or executable
start time and executor
human checkpoints
recording and log sources

Abort before step one when the build is unhealthy, the environment is wrong, the account or data boundary is unsafe, or required evidence capture is unavailable for a critical oracle.

4. Interpret and execute the Markdown

Follow the journey in order through the real product surface. For each step, record:

timestamp
instruction
action taken
observable result
evidence path or log reference
provisional judgment
deviation, latency, or uncertainty

Use normal user affordances. Do not call internal APIs to bypass UI steps unless the journey explicitly tests an API or uses setup APIs only for isolated fixtures.

Pause at a declared human checkpoint. State the exact action needed and resume from the same state after the human completes it. Never request that a user paste secrets into chat.

If the driver supports video, record the complete run and generate subtitles or a timestamped transcript from the step timeline. Otherwise capture screenshots, terminal output, structured logs, and state snapshots. Do not claim to have a video when the environment cannot produce one.

5. Judge once, retry carefully

Assign one primary result:

  • PASS: every critical oracle was observed and no abort condition occurred;
  • FAIL: a critical oracle was violated or an unexpected product error prevented the goal;
  • BLOCKED: an external prerequisite, permission, environment, or human checkpoint prevented a valid judgment.

Add FLAKY as a flag when the same build and inputs produce inconsistent results.

Do not convert missing evidence into a pass. A noncritical issue may preserve a pass only when the report calls it out separately.

Retry at most once, and only when evidence points to an environmental or driver failure rather than a product failure. Preserve both runs and explain why the retry was allowed.

6. Clean up and hand off

Run only the cleanup authorized by the journey. If cleanup fails, quarantine the test data, record identifiers, and report the residue. Do not hide a cleanup failure behind a passing product judgment.

Write a report with:

  1. result, confidence, build, environment, and duration;
  2. a timestamped step table;
  3. critical oracle results with evidence links;
  4. human checkpoints and deviations;
  5. console, network, log, screenshot, and recording locations;
  6. cleanup result and residual data;
  7. candidate deterministic tests exposed by the run.

The final user message must distinguish product failures, test-environment failures, and uncertain judgments.

Demonstration examples

  • SaaS team onboarding, including an authentication checkpoint and a sample audited report.
  • Developer CLI first run, covering installation, authentication, recovery from invalid configuration, and cleanup in an isolated project.

Use the examples to demonstrate runtime interpretation. Replace every command, URL, account, and expected result with evidence from the host repository.

Failure handling

  • Product cannot start: capture build and launch output, mark BLOCKED, and do not improvise a different environment.
  • Authentication unavailable: pause at the checkpoint or mark BLOCKED; never bypass it with unapproved credentials.
  • Product behavior diverges from the Markdown: preserve evidence and mark FAIL unless the behavior source is genuinely contradictory.
  • Evidence capture fails mid-run: abort when it affects a critical oracle; otherwise continue with the limitation visible.
  • A defect is found: finish the report first. Diagnose or fix only under a separate user request.

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.