/pipecrew:run-regressionfrom pipecrew
Runs a workspace's durable acceptance test suite and produces a release-gate report. Supports full regression, UAT first-pass with sign-off sheet, production smoke tests, and code-grounded verification.
Ships in pipecrew. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/run-regression [--env=<name>] [--scope=all|feature:<slug>] [--only=<case-ids>] [--workspace=<slug>]
| Flag | Required | Default | Description |
|---|---|---|---|
--env | no | none → code-grounded mode | A key of config.workspace.environments (e.g. uat, staging, production). An env with "production": true restricts the run to prod_safe cases |
--scope | no | all | all = the whole suite (regression); feature:<slug> = one feature's cases (UAT first-pass — report includes the human sign-off sheet) |
--only | no | all cases in scope | Comma-separated case ids (TC-{feature}-NN). Runs ONLY these cases — for re-running just what failed. Without --scope, the case files are derived from the ids; with --scope, the ids must fall inside it |
--workspace | no | auto-detect | Workspace slug — resolved via the registry |
config.json)"workspace": {
"environments": {
"uat": { "base_url": "https://uat.example.com", "production": false },
"staging": { "base_url": "https://stg.example.com", "production": false,
"services": { "publisher-service": "https://stg-api.example.com" } },
"production": { "base_url": "https://app.example.com", "production": true }
}
}
No environments block (or no --env) is fine — the runner verifies cases against the current code instead (verdicts capped at consistent; only fail and unverifiable beyond that, plus pass where a repo's own test suite is runtime evidence).
/run-regression --env=staging # full-suite release gate
/run-regression --env=uat --scope=feature:book-upload # UAT first-pass + sign-off sheet
/run-regression --env=production # post-deploy smoke (prod_safe only)
/run-regression # code-grounded verification, whole suite
/run-regression --env=staging --only=TC-book-upload-03,TC-book-upload-05 # re-run just the failed cases
"production": true, show exactly what will run (the prod_safe case list and the target URL) and get an explicit yes before dispatching. Recommend read-only credentials. Never pass mutating cases to a production run — and the runner independently re-checks every step regardless (its Invariant 2).testcases/INDEX.md only — to select case FILES by scope. Case content loads into the runner agent, never into this session's context. Relay the runner's summary + report path, not the suite.node {plugin_dir}/scripts/workspace-registry.js --resolve --json (add --workspace=<slug> if passed) → {slug}, {workspace_root}.{workspace_root}/{slug}/testcases/INDEX.md. Missing/empty → No test suite yet — run /design-tests first. and stop.all = every testcases/*.md except INDEX.md; feature:<slug> = that one file (missing → list INDEX's features, ask). Collect absolute paths — do not open them.
--only=<ids>: each id must match TC-{feature-slug}-NN (else reject with that pattern and stop — no dispatch). No --scope → case files = the union of testcases/{feature-slug}.md for each id's feature part — the text between TC- and the final -NN (ids from several features → several files). With --scope → every id's feature must be inside it; list mismatches and ask. Pass the ids as case_ids. Ids that don't exist in their file are left for the runner, which reports them unverifiable (case id not found in scope).--env → code-grounded mode (env: none). With --env: read config.workspace.environments[{name}] from {workspace_root}/{slug}/config.json; unknown name → list the configured ones and ask (none configured → show the config block from Usage above and offer code-grounded mode instead). If production: true: filter to prod_safe: true cases via a grep over the selected files (prod_safe.*true) — zero prod-safe cases → say so and stop. With --only, an id whose case is not prod_safe is excluded here and listed in the run plan as excluded (not prod_safe) — never dispatched.purpose: smoke if production env, uat if --scope=feature:*, else regression. Create {run_dir} = {workspace_root}/{slug}/runs/run-regression/{YYYY-MM-DD-HHMMSS}/.Grep the selected case files for Surface.*: ui (orchestrator greps the field line only — not a content read). If none match, or mode is code-grounded: set browser_available: false and skip ahead.
Otherwise mirror /assess Step 4.5's MCP contract: node {plugin_dir}/scripts/ensure-mcp.js status --name=chrome-devtools.
present+connected → browser_available: true.node {plugin_dir}/scripts/ensure-mcp.js install --name=chrome-devtools --cmd="npx -y chrome-devtools-mcp@latest" --scope=local); a fresh install needs a Claude Code restart to load — let them choose: install + restart + re-run, or continue now with UI cases downgraded to code-grounded (consistent cap). Do not install silently.cli_available:false → browser_available: false with a one-line note.Always show the run plan; production additionally requires the explicit yes (CRITICAL RULE 1):
Run regression — {slug}
Env: {name + base_url | code-grounded (no live environment)}
Purpose: {regression | uat | smoke}
Scope: {N} case files ({M} cases{, K prod-safe-only} ) — {feature list or "full suite"}
{if --only: Cases: only {ids}{; excluded (not prod_safe): {ids}}}
Browser: {available | unavailable → ui cases downgraded | n/a}
{if env needs auth: Credentials: provide a token/test-account for this run, or say "unauthenticated" — auth-needing cases will come back unverifiable}
Proceed? (yes / no)
Tool: Agent · subagent_type: pipecrew:regression-runner · description: "Run {purpose} — {slug} ({env name | code-grounded})"
workspace_root: {workspace_root}
slug: {slug}
case_files: {absolute paths}
{if --only: case_ids: [{ids}]}
env: {none | {name, production, base_url, services, notes}}
browser_available: {true|false}
repo_roster: {key → {path, type, role} from config.json}
run_dir: {run_dir}
purpose: {purpose}
{credentials the user supplied for this run, if any}
Relay the runner's gate verdict verbatim (GO | NO-GO), the per-verdict counts, failures with their evidence, the report path, and any mistagged-prod_safe flags (those should go back through /design-tests to fix the tag). Failures are also machine-readable: node {plugin_dir}/scripts/extract-block.js {run_dir}/report.md REGRESSION_FAILURES (schema in templates/blocks/block-schemas.md); after a fix, re-run just those with --only={failed ids}. For purpose: uat, point at the report's human sign-off sheet — the agent verified behavior; a human accepts intent.
The run updated last_verified in the attempted case files + INDEX. If config.workspace.memory.enabled, offer (don't auto-run):
Sync the verification timestamps to the team memory repo? (yes / no)
yes → node {plugin_dir}/scripts/sync-memory.js {workspace_root}/{slug} --message "run-regression: {env|code-grounded} {GO|NO-GO}" --checkpoint=run-regression
no → they ride the next sync automatically
/design-tests authors the suite (test-designer agent); /run-regression executes it (regression-runner agent). Same author/run split as implementer/reviewer.pass needs runtime evidence from this run; code-grounded agreement is consistent, never pass. unverifiable is a to-do list for making the suite runnable, not noise — recurring ones usually mean a missing environment entry or missing credentials.--env=production = the prod_safe smoke layer. Mutating cases run in production only if a workspace builds synthetic-tenant support (future env field on cases)./deliver and /discover do not invoke this; integration is a recorded follow-up.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
acceptance-testing, regression-testing, release-gate, uat, smoke-test
23 skills in this plugin
/assessStandalone cross-repo assessment. Checks a feature branch across all repos for cross-repo integration: wire-shape agreement, requirement enforcement symmetry, event/infra wiring. Use for verifying manually-implemented features or pre-merge validation./brainstormBrainstorm what to build (or how to build it) — one skill, two perspectives. PRODUCT perspective dispatches the product-brainstormer: `greenfield` (no onboarded workspace → a PROJECT_BRIEF, same path as /discover --greenfield) or `feature` (an onboarded workspace exists → a ranked FEATURE_BRIEF for the product-owner). TECHNICAL perspective (`--technical`) dispatches the solution-architect in MODE: brainstorm to diverge into 2–3 technical approaches with pros/cons and a recommendation. Auto-detects perspective and mode from the request; asks when it's unclear which. Standalone — dispatches the agent and presents the result./npx claudepluginhub pipecrew-ai/pipecrew --plugin pipecrewOther plugins' skills for the same job