agentleFS
andrew-yangyandrew-yangy/gru-ai/.claude/skills/smoke-test/SKILL.md

smoke-test

Skill155 starsChanged 9 months agoMITView on GitHub

Pipeline end-to-end smoke test -- creates a trivial directive, runs it through /directive, validates every pipeline step, and reports pass/fail with evidence. Use after pipeline doc changes to verify nothing is broken. Completes in ~10 minutes.

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

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a real directive through the full pipeline and verify every step produces correct output.

    line 8
  2. Distinctive:

    After the script finishes, present the results to the CEO in this format:

    line 36
  3. Distinctive:

    NEVER run this during active directive work -- it creates a test branch that could conflict

    line 81
  4. Distinctive:

    If the smoke test itself fails due to infrastructure (API limits, disk space), that is not a pipeline failure -- note it separately

    line 84

“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 -- Pipeline E2E Verification

Run a real directive through the full pipeline and verify every step produces correct output.

Arguments: $ARGUMENTS (passed as $1 to the script)

  • Empty or medium -- run a medium-weight smoke test (brainstorm skipped, clarification/approve auto-approved)
  • lightweight -- run a lightweight smoke test (brainstorm skipped, clarification/approve auto-approved)

What This Does

  1. Creates a disposable test directive (smoke-test-{timestamp}) with a trivial task
  2. Spawns a real /directive session that executes the full pipeline
  3. Polls directive.json every 10 seconds to track step progression
  4. Validates each completed step via validate-gate.sh
  5. Enforces a 10-minute overall timeout
  6. Prints a pass/fail table per pipeline step with evidence
  7. Cleans up the test branch and directive artifacts on exit

Step 1: Run the Smoke Test

Execute the bash runner script. It handles everything -- directive creation, agent spawning, polling, validation, reporting, and cleanup.

bash .claude/skills/smoke-test/run-smoke-test.sh $ARGUMENTS

The script will output real-time progress as each step completes and a final summary table.

Step 2: Present Results

After the script finishes, present the results to the CEO in this format:

# Smoke Test Results

## Summary
- Weight: {lightweight | medium}
- Duration: {X}m {Y}s
- Result: {PASS | FAIL}

## Step Results

| # | Step              | Status    | Gate     | Evidence                         |
|---|-------------------|-----------|----------|----------------------------------|
| 1 | triage            | completed | PASS     | weight=medium, directive.json ok |
| 2 | checkpoint        | completed | PASS     | No prior checkpoint              |
| ...                                                                            |
|15 | completion        | completed | PASS     | test_mode auto-approved          |

## Failures (if any)
- Step {name}: {what went wrong, gate violations, missing artifacts}

## Cleanup
- Test branch: deleted
- Test directive: deleted

Step 3: Interpret Results

  • All PASS: Pipeline is healthy. Safe to ship pipeline doc changes.
  • Step failed: The step that failed and its gate violations tell you exactly what broke. Check the pipeline doc for that step.
  • Timeout: The pipeline stalled. Check which step was active when time ran out -- that step's doc likely has a bug or missing instruction.

Failure Handling

SituationAction
Script exits non-zeroReport the failure table and which steps passed before the failure
Timeout (10 min)Report which steps completed, which was active, which were still pending
validate-gate.sh reports violationsInclude the violations array in the evidence column
Directive session crashesReport the last completed step and suggest checking that step's doc
Cleanup failsNote it -- manual cleanup may be needed for the test branch/directory

Rules

  • NEVER run this during active directive work -- it creates a test branch that could conflict
  • The test directive uses test_mode: true in directive.json -- this auto-approves at the completion gate
  • The test task is trivial by design (add a comment to a file) -- it should not break anything
  • If the smoke test itself fails due to infrastructure (API limits, disk space), that is not a pipeline failure -- note it separately

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.