/forgewright:reaudit-decisionfrom forgewright
Decide whether to re-audit a workflow after end-of-pipeline diff stats. Used by forgewright workflow-lifecycle when reaudit.decisionMode = "leader".
Ships in forgewright. 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.
You are the leader agent's judgment surface for end-of-workflow re-audit decisions. The forgewright coordinator hands you snapshot-vs-current diff stats from the last pipeline phase. You decide whether the change pattern warrants another audit cycle, a partial replay, or escalation to the user.
The coordinator passes these stats (already in your prompt via the descriptor):
totalAdded / totalDeleted / totalDiffLines — line-level numstattotalLoc — total LOC across changed filesratio — totalDiffLines / totalLoc (0..1)changedFiles — list of file pathsloopableStages — stages allowed to replay (correctness, behavior, security, etc.)reauditCycles / maxCycles — current cycle count + capYou also have the workflow's plan artifact at artifacts/plan.md. The most recent run's findings live under .claude/audit-runs/<runId>/stages/<name>/ — use the runId you captured in step 1 of the most recent pipeline phase (forgewright does not record it on the workflow). Read whatever you need.
Output JSON only, no prose, with one of these shapes:
{ "decision": "clean" }
— No replay needed. Workflow ends.
{ "decision": "replay", "stages": ["correctness", "behavior"], "reason": "..." }
— Re-audit only the named stages (must be in loopableStages) with --diff scope.
{ "decision": "replay-full", "reason": "..." }
— Re-run the full default pipeline. Use when the diff is broad or crosses domains.
{ "decision": "escalate", "reason": "..." }
— Surface to the user, halt the workflow. Use when:
| Diff pattern | Likely decision |
|---|---|
| Few lines (<5%), trivial cosmetic edits, no behavior shift | clean |
| Small diff in one domain (e.g. only correctness-relevant) | replay one stage |
| Medium diff touching multiple files in different domains | replay-full |
| Large diff, suggests scope creep beyond plan | escalate |
| Same files churning across cycles, findings not landing | escalate |
reauditCycles >= maxCycles - 1 should bias toward escalate or clean — don't kick a cycle that won't run.
You hand the JSON to workflow-advance --result completed --mcp-result '<json>'. The coordinator's handleReauditDecision (in coordinator/workflow-lifecycle.js) reads decision.decision and routes:
clean → workflow marked completed.replay (with optional stages) / replay-full → coordinator appends a fresh pipeline phase scoped to those stages with --diff, returns the new descriptor for you to drive.escalate → workflow paused with escalationReason; you surface the reason to the user.Prose around the JSON breaks JSON.parse; the workflow surfaces an error descriptor.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joys-dawn/toolwright --plugin forgewright6 skills in this plugin
/config-initWrite the default forgewright.json into the current repo so workflows, retention, reaudit thresholds, and the agentwright path are visible and editable locally. Also performs a one-time discovery pass for the agentwright CLI. Use when the user wants to customize forgewright settings or before their first workflow run./workflow-resumeResume a paused forgewright workflow. Use after a checkpoint, after the user resolves a non-idempotent re-run prompt, or after walking away from a workflow mid-run. The leader Claude session re-enters at the last unfinished phase and continues the descriptor loop./workflow-runStart a forgewright workflow (plan → peer-handoff → verify → audit → tests). Use when the user wants the leader Claude session to orchestrate a multi-phase workflow, dispatching plan-driven implementation to peer Claude sessions over wrightward and applying audit-finding fixes itself./workflow-statusShow forgewright workflow status — list all workflows, or dump the full state of one. Use when the user wants to see what's running, what's paused, or inspect a workflow's history./workflow-stopCancel a running forgewright workflow and signal in-flight peers to abort. Use when the user wants to abandon an in-progress workflow.