/universal:hardening-changesfrom Universal
Scoped review and hardening of owned changes before submitting a PR. Freezes audit surface, delegates state tracking, and routes between wording-only and substantive fix paths.
Ships in Universal. 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.
Read when SKILL.md points to them; scripts run unread.
Prepare owned changes through the wording-only or substantive path below. The orchestrator owns fixes and dispositions; installed reviewers supply completed audits. Do not replace available reviewers with self-review because a patch is small. When delegation is unavailable, record that limit and perform the same scoped review directly.
Preserve any owned surface, exclusions, decisions, and evidence supplied by an enclosing workflow, and return the completed handoff so later delivery checks can continue.
Inspect git status --short first and freeze the audit surface:
HEAD, plus owned staged, unstaged, and untracked changes. Confirm the base from repository context.git status --short, git diff HEAD --find-renames=20%, and owned untracked files. An empty committed diff with a dirty tree requires working-tree mode; never report a clean branch while uncommitted work exists.Fixes extend as far as the owned thread requires (including updating sibling call sites or generated registrations), but the audit surface is frozen at initial inspection and does not ratchet. Audit completion edits outside the surface only for correctness of those edits, never to mine neighboring files for unrelated drift.
Delegate state allocation, snapshots, verbatim reviewer packets, whitespace checks, and wording non-no-op checks to workflow_state.py. Resolve <workflow_state> against this skill's directory, run commands from <project-root>, and pass --repo <project-root> when initializing a fresh STATE_DIR:
STATE_DIR=$(python3 <workflow_state> init --repo <project-root>)
python3 <workflow_state> snapshot --state-dir "$STATE_DIR" --stage task-entry --files <owned-paths...>
Run owned-only whitespace validation with python3 <workflow_state> check-whitespace --state-dir "$STATE_DIR" --files <owned-paths...>. It checks only owned files (including untracked text), compares against task-entry so pre-existing unrelated warnings in shared files are reported separately without failing, and exits non-zero only on whitespace errors or conflict markers introduced or worsened by owned changes. Explicit project-required checks retain their own scope and failure policy.
Route from the request and changed hunks before selecting reviewers or reading implementation:
A reviewer's interpretation of wording alone does not convert meaning-preservation work into a truth audit.
Scale substantive hardening effort to risk. Re-tier upward immediately if later edits cross into a boundary-sensitive surface:
verifying-invariants unless a boundary or invariant claim surfaces.verifying-invariants, and complete the final claim review.Use only these Status values: Hardening complete (scoped stage converged, required reviews and hardening-stage checks passed), Needs decision (unresolved disposition), or Blocked (obstacle preventing completion). Checks assigned to a later ship gate belong in Next.
Check available skill descriptions and project instructions for project-specific hardening companions by purpose (do not search undisclosed folders). Load or reuse each applicable companion and name it briefly; an unloadable applicable companion is a Blocked condition. Compose companion requirements into this single pass without starting another loop.
Explicit project requirements override default command timing, compile limits, and deferral. Run required hardening-stage commands (orchestrator runs commands; reviewers remain read-only), capturing pre-command snapshots first when commands can modify files and auditing owned outputs without expanding ownership to unrelated drift. Failed or unavailable required hardening steps block completion; later ship-gate checks remain pending under Hardening complete.
Freeze the auditor set to concerns actually implicated by the surface; skip irrelevant language-specific auditors and record why.
python3 <workflow_state> packet --state-dir "$STATE_DIR" --mode wording-only --files <owned-paths...> --editing-intent "<requested improvement>"
python3 <workflow_state> check-wording --state-dir "$STATE_DIR" --file <owned-file>
If the check fails (byte-identical to baseline) or the editing intent was lost, draft at most one fresh meaning-preserving formulation from the old meaning, send it via workflow_state.py packet --mode wording-only (including the prior finding as context), and apply justified corrections. If no accepted improvement survives, keep the meaning-preserving text and report the undelivered cleanup without inventing churn.python3 <workflow_state> check-whitespace --state-dir "$STATE_DIR" --files <owned-paths...> and any project-required doc/config validation. Skip compilation unless project rules explicitly require it during hardening (even for comment edits in source files). Review generated prose under the same contract; unexpected behavioral changes from a command require Needs decision.Status, Next, Changed, and Proof, plus one sentence on the scoped prose-review result. Report Needs decision if the requested improvement remained undelivered, naming the objective and stated difference in Next. Do not speculate about code outside changed text, and do not load the substantive workflow or manager handoff.Read Substantive workflow and Manager handoff after selecting this path. Continue with the frozen surface, fast-path tier, STATE_DIR, and auditor set through audit, decide, fix, compile checkpoint, and re-audit, then emit the handoff.
Read the references only for the substantive path; run the helper across all paths:
init), exact snapshots (snapshot), verbatim reviewer packets (packet), owned-only whitespace checks (check-whitespace), and wording non-no-op checks (check-wording).Before finishing the wording-only path, check its five steps above. Before finishing the substantive path, apply the Manager handoff completion checklist.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/brainstorming-design-specsDevelop an implementation-ready design through research and dialogue. Use proactively when product scope, requirements, or engineering tradeoffs remain unresolved; skip specified changes ready to implement./compiling-agent-goalsCompile specs, plans, or issues into bounded agent goal contracts with acceptance evidence and stopping conditions. Use proactively when preparing a persistent-agent handoff; this authors the contract, not the implementation./debugging-root-causesInvestigate bugs, crashes, regressions, and failures via minimal reproduction, competing hypotheses, and discriminating probes. Use proactively for first-pass root-cause diagnosis; skip read-only reviews and stalled escalation briefs./delivering-changesCarry a requested change through implementation, simplification, hardening, and required checks to a PR-ready handoff. Use proactively when the user delegates end-to-end delivery; preserve narrower requests and project checkpoints./designing-documentsOrganize substantive documents for understanding, decisions, action, and lookup. Use when creating, revising, or reviewing document structure, explanations, onboarding, or findability; preserve constrained edits and useful existing structures./designing-verification-strategiesDesign platform-agnostic test and verification strategies: pick test boundaries, write non-vacuous assertions, and control time, I/O, and nondeterminism. Use proactively for test planning and testability; skip formal invariant proofs.npx claudepluginhub kylehughes/agent-plugins-for-making-good-software --plugin universalOther plugins' skills for the same job