mcpField

Staging Smoke Test

FeaturedOn demand

About Staging Smoke Test

This manually triggered loop runs for up to 6 rounds. Each round runs npm run smoke:staging, fixes whatever failed, then runs the same command again to confirm the result is green.

Key features

  1. 01Same smoke command for checking and confirming
  2. 02Exit code gives a clear pass or fail
  3. 03Capped at 6 rounds to avoid endless retries
  4. 04Supports Cursor

Use cases

  1. 01Quick verification after a deploy to staging
  2. 02Rechecking after fixing a staging issue
  3. 03A final check before releasing to production
Goal
The staging smoke checklist passes in full.
Exit when
Stop when the smoke command exits 0, or after 6 rounds if it still fails.
Between iterations run
npm run smoke:staging

Launch prompt

Paste into Cursor. The agent repeats the steps below until the exit condition is met.

prompt.md
Start the "Staging Smoke Test" loop.
Goal: The staging smoke checklist passes in full.
Max iterations: 6.
Step 1: Run the smoke checklist — Execute npm run smoke:staging and note the failing checks and error output. If the exit code is 0, move straight to confirmation. `npm run smoke:staging`
Step 2: Locate and fix failures — Use the output to find the cause of each failure and change the relevant code or configuration. Address only what relates to the failing checks.
Step 3: Confirm green — Run npm run smoke:staging again and verify the exit code is 0. If it still fails, start the next round. `npm run smoke:staging`
Between iterations run: `npm run smoke:staging`
Exit when: Stop when the smoke command exits 0, or after 6 rounds if it still fails.

Steps

Each round runs in order; if the exit condition isn’t met, another round starts, up to 6.

01
Run the smoke checklist

Execute npm run smoke:staging and note the failing checks and error output. If the exit code is 0, move straight to confirmation.

$npm run smoke:staging
02
Locate and fix failures

Use the output to find the cause of each failure and change the relevant code or configuration. Address only what relates to the failing checks.

03
Confirm green

Run npm run smoke:staging again and verify the exit code is 0. If it still fails, start the next round.

$npm run smoke:staging
Not met → next roundExits when met

Supported agents

Coding agents that can run this loop directly.

Cursor
Claude Code

Comments

Markdown supported