/discipline:sweep-allfrom discipline
Batches all discipline correctors into a single re-anchor pass. Supports session-start digest (cheap posture setup) and full batch pass (audit subagents per corrector). Resolves core, situational, and never-batched members from corrector metadata.
Ships in discipline. 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.
A declared second species in this plugin: not a corrector. It carries no
discipline of its own; it is a pure router that composes the correctors into a
single batched re-anchor pass. The disciplines live in the correctors, the
shared method lives in
${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md,
and membership + order live in each corrector's own tier metadata. This skill
names no members: it globs and reads them.
Glob the sibling corrector directories and read each one's
metadata.discipline-batch (core / situational / never) and
metadata.discipline-batch-rank.
discipline-batch: never. Report that they exist (from the glob) and are
invoked directly, not batched.A batched member never runs its fan-out tier. A corrector that carries a
subagent fan-out tier behind an argument or trigger (do-your-research,
recheck-against-upstream) runs only its inline audit inside an audit fork,
and its ledger recommends a direct fan-out run where one would fit. The fork
brief says so (step 1 of the batched pass), and each such corrector states the
same rule in its own body.
The userConfig override (see Configuration below) applies after tier resolution and can change the resolved set; report the net effect when it does.
The batched pass is only meaningful if its subagents actually inherit this conversation, and its step 4 writes their remedies to the working tree. Establish inheritance before dispatching, never by assuming it. Read reference/inheritance-preflight.md now, before the first dispatch of a full-batch pass: it owns the three stages, the canary, the fail-closed verify, the degrade path when inheritance cannot be proved, and what is gated on the result. Session-start digest mode never runs the preflight and never reads that file.
Read reference/batched-pass.md once the preflight has proved inheritance, and before beginning step 1: it owns the five steps, the declared delta from the shared loop's correct-forward-now step, the per-member ledger contract, the root-cause dedup, the rank-ordered single correction pass, and the consolidated report. Do not begin step 1 from the preflight's output alone. Session-start digest mode never reaches it.
Before step 2, resolve the verification level once with
bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin discipline --skill sweep-all --file docs/conventions/discipline.yaml and
report its line (levels).
It governs step 2's fresh-context confirmations of clean ledgers and step 4's fresh-context
escalation: light and off skip both subagents as the shared method doc says, and the fork audit
is unaffected.
The batch never converts a member's human gate into an autonomous action.
The shared method's outward-artifact carve-out (no PR, issue, or published
comment without explicit opt-in) holds, as do follow-our-standards'
upstream-divergence routing (draft and route, do not file),
pick-for-the-problem's incumbent-replacement decisions, and
recheck-against-upstream's undocumented-divergence calls. The batch
surfaces these for the user; it does not resolve them unasked.
The override reads three personal-scalar userConfig options (configured
through Claude Code's native plugin-config flow, see the plugin README, never a hand-edited member), substituted here at load:
${user_config.batch_exclude}${user_config.batch_promote}${user_config.batch_demote}Each is a comma-separated list of corrector names. Treat both an empty value
and a surviving literal ${user_config.…} placeholder as unset, no override
from that key, and never read the literal token as a corrector name. Substitution is documented at
plugin manifest reference: reference a saved value,
which does not say what an unset option renders. Apply
after tier resolution: batch_exclude drops a member, batch_promote lifts a
situational corrector to always-run, batch_demote drops a core corrector to
relevance-gated. batch_promote accepts situational names only. For each
promote entry, resolve the name against the globbed correctors' tier metadata:
Report the net effect whenever the override changes the set, and surface every never/core/unknown promote warning in that report, never silently drop them.
use-your-skills. That corrector routes to the one skill fitting a
task; this composes the whole posture bundle.session-flow plugin; this only sequences the
re-anchor correctors.Fork, not fresh/typed, and not skill-level context: fork. The audit
needs this conversation, so it dispatches the Agent tool's
subagent_type: "fork" and never a fresh or typed subagent or a skill run
with context: fork.
context: fork, the Note under
https://code.claude.com/docs/en/sub-agents#preload-skills-into-subagents.Audit in the forks, correct on the main thread. Parallel forks that wrote would race and re-dilute salience; the value is one ordered correction pass.
The forks' no-writes rule is trusted, not enforced. Say so. This skill does not narrow a fork's tools; it treats every audit fork as holding every write-capable tool the main session holds, and only asked not to use them.
Never present the audit fan-out's read-only posture as harness-enforced. If you
want assurance that the fan-out honored it, capture the working tree's state
before the first dispatch (the canary included) and compare afterwards, and
treat any difference as a fork that wrote. Untrusted output, stop rather
than correct on top of it. That is detection after the fact, not prevention,
and a robust comparison is more than a git status diff; this skill does not
specify one.
Do not pass isolation: "worktree" on the audit forks. The audit must
read the working tree as it is now, uncommitted work included, so the forks
run in this checkout. Inherited history is full of absolute paths into this
checkout; how much of that a worktree would contain is the second pointer's to
say, while the loss of audit fidelity is certain, so the forks stay here.
The preflight is the guard, not an optimization. Skipping it does not make the sweep cheaper. It makes every ledger unfalsifiable, and the batched pass's step 4 writes those ledgers' remedies to the working tree.
Budget each fork as a main-session run over the whole transcript. Plan each in-scope corrector's audit that way; the wave cap bounds burst, not per-fork cost. For how usage is measured, see https://code.claude.com/docs/en/costs#track-your-costs.
Keeping the never tier and every member's fan-out tier out, and
relevance-gating the situational tier, are what hold the fan-out small.
Each fork's cost scales with the transcript it starts from, so the audit
phase grows with every in-scope corrector, plus one more fork for the
proof-only canary. Budget the sweep as a deliberate spend, not a reflex.
tighten-your-output stays last. Tightening before the other
corrections would tighten text they then rewrite.
A situational skip is reported, not silent, the user sees what was left out and why.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/be-ambitiousBe ambitiousRaise a request before work (altitude, depth, range, outside check) and wait, or deepen finished work and redo it with an outside check./do-your-researchDo your researchRe-anchor research discipline: audit/correct work and pending recommendation (research properly, grounded, cite, verify, evidence not vibes, stop assuming, guessing, training-data recall, re-check what you recommended), or deep research pass to audit all claims. Use when 'do your research', 'fact-check that', 'verify every claim', or at start./npx claudepluginhub melodic-software/claude-code-plugins --plugin disciplineOther plugins' skills for the same job