/shipwright:environments-fix runs instead · from shipwright
Routes environment readiness scan findings into task-store tasks (auto/review/plan), one per check, and records the patrol run. Requires --repo and prior /environments-scan.
This skill never runs in Claude Code
It ships in shipwright at skills/, but /shipwright:environments-fix (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Read the handoff /environments-scan left for one repo and queue one task per open check,
routed auto / review / plan per the finding-routing contract in
docs/task-store.md ("Finding routing" and "System-cron
contract"). Records exactly one environments run for the task. Findings never become direct PRs.
If
SHIPWRIGHT_TASK_STORE_URLorSHIPWRIGHT_TASK_STORE_TOKENis missing, invoke/shipwright:task-storefor setup.
--repo org/repo is required. If missing, print this and stop without touching the task store:
Usage: /shipwright:environments-fix --repo org/repo [--dry-run]
--dry-run prints what would be queued; it neither queries nor writes the task store and records no run.
Use the most recently modified {dirname}-docs-environments-patrol-{YYYYMMDD} worktree under
$SHIPWRIGHT_WORKTREE_DIR and read .environments-patrol/findings.json. If it is missing,
print No environments scan handoff found for {org/repo}. Run /environments-scan --repo {org/repo} first.
and stop. If the handoff's repo differs from --repo, stop with an error.
| Route | Checks | Task shape |
|---|---|---|
| auto | lockfile, tool-versions | kind: dev, pending, hitl: false |
| review | structured-logging, error-tracking | kind: dev, created blocked, blockedReason starting needs-review: with the choice (for error tracking, which provider) |
| plan | preview-environment, tracing-metrics, staged-canary | kind: prd, hitl: true, draft problem statement plus the finding |
hitl: true is used only on plan-route kind: prd tasks. Every task carries
originKind: "cron", originRef: "environments" and repo. The scan already planned the
tasks (tasks in the handoff) with ids environments-{check}-{repo-slug}-{YYYY-Www}.
The preview-environment plan task's description cites Shipwright's own pattern: one bring-up
script used locally and by a CI composite action, bringing the whole stack up from the PR's source
in a throwaway cluster with no real credentials, then running smoke/canary and e2e suites
(docs/preview-environment.md, scripts/preview-env.ts, .github/actions/preview-env,
preview/canary/).
The scan's planned tasks already exclude checks with an active task. Re-check right before
writing: query pending, in_progress, pr_open and blocked tasks for the repo (limit=1000, follow
nextCursor until it is null) and drop any planned task whose check already has an id starting
environments-{check}-{repo-slug}-. Then POST /tasks/bulk the rest. A re-run on an unchanged
repo therefore queues nothing. Count the accepted tasks per route.
Skip under --dry-run. outcome is ok when anything was queued or the docs changed, no_op
otherwise, failed on error ("error": 1).
echo '{"outcome":"ok","metrics":{"findings":7,"auto":2,"review":2,"plan":3}}' > /tmp/environments-result.json
bun run "${CLAUDE_PLUGIN_ROOT}/scripts/cron-run-recorder.ts" record --cron environments \
--repo {org}/{repo} --commit {handoff.commitSha} --result /tmp/environments-result.json
Add --task {SC-... id} when dispatched from a system-cron task. Print a 3-5 line summary.
Task-store query or bulk-append failure: record a failed run and stop. Re-running is safe
because dedup skips checks that already have an active task.
--repo is required.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub app-vitals/shipwright --plugin shipwright27 skills in this plugin
/agent-readinessScore one repo against the agent-readiness catalogue (docs/readiness.md) with the deterministic scorer, post one ReadinessSnapshot and record one run. Requires --repo org/repo. No model judgment, no task creation, no repo files./canary-executionCross-cutting contract for the test-readiness pipeline. Defines how canary-eligible test code runs in two modes — `local` (boot dependencies inline, hit localhost) and `canary` (skip the boot, hit a deployed `TEST_TARGET_URL`) — via a dedicated entry point separate from the local smoke runner. Specifies eligibility rules (read-only or self-cleaning, smoke/E2E only, critical/high tier only, zero DB-dependent tests) and the deploy-gate budget (<60s wall time). Referenced by the inventory, system-design, migration, and roadmap skills.
/Other plugins' skills for the same job