validate-staging

A command that checks a staging deployment, a pre-release copy of an application, before it goes to production, the live version users access.

In plain words
What is it for?
Use it to review automated test results, check Lighthouse performance results, test rollback, create a manual checklist, and produce a staging-validation report.
Why use it?
It helps catch failed end-to-end tests, performance problems, rollback failures, and issues that require a person to test the site in a browser.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/marcusgoll/spec-flow/validate-staging
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.03958
Opus 5 $0.00013 $0.01979
Sonnet 5 $0.00005 $0.00792
Haiku 4.5 $0.00003 $0.00396

Measured 2d ago against content hash 59a943d882bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate-staging scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Test marketing health: `curl https://staging.{domain}.com/health`
.claude/commands/deployment/validate-staging.md · 479 lines

How it starts

The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/validate-staging — Staging Validation (Thin Wrapper)

v11.0 Architecture: This command spawns the isolated validate-phase-agent via Task(). Validation checks run in isolated context with question batching for manual verification.

Active Feature: !ls -td specs/[0-9]*-* 2>/dev/null | head -1 || echo "none"

Interaction State: !cat specs/*/interaction-state.yaml 2>/dev/null | head -10 || echo "none"

Architecture (v11.0 - Phase Isolation):

/validate-staging → Task(validate-phase-agent) → Q&A for manual checks → validation-report.md

Agent responsibilities:

  • Review E2E test results from GitHub Actions
  • Review Lighthouse CI performance results
  • Test rollback capability
  • Generate manual testing checklist from spec.md
  • Return questions for user to manually verify in browser
  • Create staging-validation-report.md

Operating constraints:

  • Manual Gate — Agent returns questions for human validation
  • Staging Environment — Validates staging URLs
  • Blocking Conditions — E2E failures or manual failures block production

Workflow position: implement → optimize → validate → ship → finalize

Legacy Context (for agent reference)

<legacy_context> Latest staging deployment: !gh run list --workflow=deploy-staging.yml --branch=main --limit=1 --json databaseId,headSha,conclusion,status,createdAt,displayTitle 2>/dev/null || echo "[]"

Vercel CLI installed: !command -v vercel >/dev/null 2>&1 && echo "✅ Yes" || echo "❌ No"

GitHub CLI authenticated: !gh auth status >/dev/null 2>&1 && echo "✅ Yes" || echo "❌ No" </legacy_context>

Read the full file on GitHub · 479 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 479 lines · 0 tokens per session scan A 59a943d882bc

Subscribe to this mod's changes

validate-staging is a command published in the GitHub repository marcusgoll/Spec-Flow (91 stars, last pushed 4mo ago), licensed MIT. It adds 25 tokens to every session and 3,958 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.