smoke-test
Post-deploy health-check against a live URL. Validates HTTP status, response content, and critical endpoints. Runnable standalone OR as the final step of the deploy skill.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 292
- Forks
- 23
01 前言 Front Matter
- name
- smoke-test
- model
- sonnet
- phase
- verify
- effort
- standard
- description
- Post-deploy health-check against a live URL. Validates HTTP status, response content, and critical endpoints. Runnable standalone OR as the final step of the deploy skill.
02 资源文件 1
- 参考文档REFERENCE.md4.3 KB
03 SKILL.md 正文
Smoke Test
HARD GATE — Do NOT run smoke-test against a URL that hasn't been deployed yet. Always run
deployfirst, thensmoke-test.HARD GATE — A failed smoke test means the deployment is broken. Do NOT mark a deploy as successful until all smoke checks pass.
Validate a deployed application is healthy by running HTTP checks against live URLs. Each check asserts HTTP status, optional body signal (regex), and optional response-time threshold.
Configuration
Smoke checks live in smoke-checks.yaml at the project root:
base_url: "https://example.com"
checks:
- name: "Homepage"
path: "/"
expected_status: 200
content_signal: "welcome|ok"
max_response_time_ms: 3000
| Field | Required | Default | Description |
|---|---|---|---|
name |
Yes | — | Human-readable check name |
path |
Yes | / |
URL path relative to base_url |
method |
No | GET |
HTTP method |
expected_status |
No | 200 |
Expected HTTP status code |
content_signal |
No | — | Regex or string in response body |
max_response_time_ms |
No | — | Fail if slower than threshold (ms) |
Ad-hoc single-URL mode: DEPLOY_URL=https://host bash scripts/run-smoke.sh
Process
1. Load checks
SMOKE_CHECKS_FILE="${SMOKE_CHECKS_FILE:-smoke-checks.yaml}"
BASE_URL="${DEPLOY_URL:-$BASE_URL}"
test -f "$SMOKE_CHECKS_FILE" || test -n "$BASE_URL" || { echo "ERROR: no checks file or URL"; exit 1; }
2. Run each check
bash scripts/run-smoke.sh "${DEPLOY_URL:-}" "${SMOKE_CHECKS_FILE:-smoke-checks.yaml}"
The runner performs curl requests per check, records pass/fail per assertion, and prints a summary.
3. Assert results
- Any HTTP status mismatch → FAIL
- Missing
content_signalwhen configured → FAIL - Response time over
max_response_time_ms→ FAIL - Exit code non-zero → deployment not healthy
4. Generate report
Capture stdout from run-smoke.sh as evidence. Persist to specs/verifications/smoke-<date>.log for release-branch.
Integration with deploy skill
DEPLOY_URL="$DEPLOY_URL" bash scripts/run-smoke.sh
Verify arc
Part of ★ VERIFY ★: verify-work → validate-contracts → smoke-test → run-evals → audit-code
Verify
→ verify: test -x scripts/run-smoke.sh && grep -q 'run-smoke.sh' skills/smoke-test/SKILL.md && ! grep -q 'See \[REFERENCE.md\](REFERENCE.md)$' skills/smoke-test/SKILL.md && echo OK
04 同仓库更多 Skills
skill-verify-fail-open-fixture
Negative-path fixture for run-skill-verify.sh — must never PASS.
negative-path
暂无简介
write-document
Write, organize, and sync high-integrity technical documents using the BMAD methodology. Ensures every document is Bold, Minimal, Actionable, and Durable. Use when creating architectural docs, technical guides, or organizing the specs/ directory.
wire-observability
Add structured JSON logging, observability commands, and idempotent setup scripts to a project. Use when a project needs production-readiness instrumentation, when user wants structured logging, or as a production-readiness gate at any phase of development.
wire-ci
CI pipeline setup with bundled, forge-neutral templates and local validation. Detects the forge from the git remote, generates workflows for supported forges, and skips honestly for the rest. The CI equivalent of wire-observability.
visual-dashboard
Start a browser-based dashboard that visualizes architecture, implementation plans, and project status. Persists artifacts in .bigpowers/dashboard/. Reads specs/state.yaml, release-plan.yaml, epics, and planning-status via HTTP API or opencode panel.