/discipline:setup [check|apply] [<key>=<value> ...]from discipline
Validates and writes discipline configuration: reports effective settings for batch overrides, verification depth, and lever scope; writes docs/conventions/discipline.yaml on apply.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Batch exclude: ${user_config.batch_exclude}
Batch promote: ${user_config.batch_promote}
Batch demote: ${user_config.batch_demote}
Deep-research verification depth: ${user_config.research_deep_verification}
Lever scope: ${user_config.lever_scope}
Report discipline's effective configuration and write its one repository file. The
plugin's personal options are native userConfig: three sweep-all batch-override
options (batch_exclude / batch_promote / batch_demote), the verification-depth
default of do-your-research's fan-out tier (research_deep_verification) and
lever_scope. They are personal options, held in user settings, and this skill
reads only their rendered values (check step 1). How Claude Code collects and
stores them, and which settings files it reads them from, are read live
from plugin manifest reference: where values are stored.
The plugin owns one tracked consumer file, docs/conventions/discipline.yaml, the
repository layer of lever_scope (keys, values and layers:
${CLAUDE_PLUGIN_ROOT}/reference/config.md;
schema: ${CLAUDE_PLUGIN_ROOT}/schemas/discipline.schema.json). check reports it;
apply writes it and nothing else. Personal options are never written here: they
change through Claude Code's native flow (check step 8). Action routing: no argument
or check runs the check; apply runs the check, then writes. Re-running either reads
the current state again.
Official contract: https://code.claude.com/docs/en/plugins/manifest-reference#user-configuration.
check (read-only)Read the five rendered ${user_config.…} values from the Variables block
above (the three batch_* override options, research_deep_verification and
lever_scope). Do not inspect or edit settings.json, settings.local.json,
managed settings, or pluginConfigs directly.
Empty or unexpanded is unset. Treat both an empty value and a surviving
literal ${user_config.…} placeholder as unset (the key's own default applies);
never read the literal token as a value. Substitution is documented at
plugin manifest reference: reference a saved value,
which does not say what an unset option renders.
For each set batch option, split on commas and report the parsed corrector names,
and the net effect: batch_exclude drops those correctors from the batch,
batch_promote runs those situational correctors every session, batch_demote
gates those core correctors on relevance. With all three unset, report that the
batch runs the tiers exactly as the correctors declare them.
Validate the batch names against what is installed. Glob the sibling corrector
directories under this plugin's skills/ and, for each name in an override, report:
batch_exclude or batch_demote that matches no installed corrector: FAIL (typo or removed corrector); remediation: fix via the plugin configuration
prompt;batch_exclude and in batch_promote/batch_demote: contradictory; report it;batch_promote is situational-only (read metadata.discipline-batch):
promote only situational names. A promote naming a never-tier or core
corrector, or a name that matches no installed corrector, is a visible
warning and is not promoted, never stays out of the batch, core stays
core, unknown is ignored. Do not report these as successful promotes.batch_demote naming an already-situational corrector, a no-op; INFO.Report the deep-research verification depth. research_deep_verification sets
the default depth of do-your-research's fan-out tier. Report the effective value: tiered
(fan subagents out only over load-bearing items) or full (subagent-verify every
item). An unset value, a surviving literal placeholder, or any unrecognized string
(not exactly tiered or full) all resolve to the tiered default. Report an
unrecognized value as a WARN (typo; remediation: fix it via the plugin
configuration prompt) that still falls back to tiered, never a hard failure. Note
that an invocation argument to do-your-research (tiered or full) overrides this default per
invocation.
Report lever_scope. Run "${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" --check
from the project root and report each line it prints with its own INFO, PASS or
WARN prefix: INFO when docs/conventions/discipline.yaml is absent, PASS with the
value when the file validates, WARN for each problem when it does not (a value
outside the key's list, a key set twice, an empty value or empty string, a map or
list where one value belongs, a key outside the schema), quoting the file, key and
value. A one-line refusal (an unsafe path, or a root that is $HOME or above it)
is a WARN with that line. Then report the effective value by the layers in
${CLAUDE_PLUGIN_ROOT}/reference/config.md: the file's valid value wins; a file
that sets the key to an invalid value resolves deterministic, never the user's
value; with no key in the file, a user value of deterministic or non-trivial
applies, else deterministic. A user value outside the list is a WARN naming the
option and the value. An invalid value
never stops the lever check, which names it and drops that layer, so these rows
are WARN, never FAIL; apply fixes the repository value.
Full-batch prerequisite. INFO: the batch's mid-session pass dispatches fork subagents, so report whether fork mode is on in this kind of session. Read the defaults, the version floor and the override variable live from the section the Pointer below names, and report what it states.
sweep-all preflights this itself and degrades when the fan-out cannot inherit; that runbook owns the behavior; report the prerequisite here only so an unavailable
fan-out reads as expected rather than as a misconfiguration, and do not restate what
the degraded pass does.
To change or clear any personal option, direct the user to Claude Code's native flow,
interactively with /plugin configure discipline@<marketplace> or by a headless route, as the
marketplace's plugin-reconfiguration convention gives them in
§ The routes
(it owns the verified-version record). Apply the scope and failure-signal caveats in its
§ Caveats every setup skill's short form carries.
Read both sections and print what they give, the fallback route, its behavior on an
already-installed plugin and the scope to pass included, rather than only naming them, and
leave out the verified-version record.
Never uninstall to reconfigure; that section links what an uninstall deletes. Claude Code owns
persistence: this skill never writes user settings or pluginConfigs, and never hand-edits any
pluginConfigs key.
Tell the user to rerun check after reconfiguration in a fresh session, and report the
observed effective values from that fresh run, never an unobserved change. Substitution of the
rendered ${user_config.*} values is documented at
plugin manifest reference: reference a saved value,
which does not say when skill content is re-rendered.
apply (writes docs/conventions/discipline.yaml only)Run check and show its report.
Resolve the values. With complete <key>=<value> arguments, use them. Otherwise ask
one key at a time, recommendation first, from the Keys table in
${CLAUDE_PLUGIN_ROOT}/reference/config.md (lever_scope: deterministic, the default,
unless the team wants judgment-bearing repeated changes made with a codemod tool too).
Never invent a key the schema does not list, and never write a personal option here.
Write. One call with every value:
"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" lever_scope=non-trivial
Pass --default <key> as ${CLAUDE_PLUGIN_ROOT}/reference/setup-apply.md "Defaults" says.
The script checks each value against the schema and validates the whole resulting
document before it writes; an invalid value or key exits 1 and writes nothing. It
writes only <git toplevel>/docs/conventions/discipline.yaml, resolves a symlinked root
first, then refuses a root that is $HOME or an ancestor of it, a symlinked docs,
docs/conventions or target, a hard-linked target, or a docs/conventions
that resolves outside the repository, checks the path again before each directory it
creates and right before the write and the rename, and writes through a new temp file
in the same directory. Every refusal is one line. A missing file is created; a value
already in place prints already configured and writes nothing.
Diff, convention-home offer and verify. Follow ${CLAUDE_PLUGIN_ROOT}/reference/setup-apply.md from "A file that would
change" through "Verify", with <file> = docs/conventions/discipline.yaml and <apply-script> =
"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs".
/discipline:sweep-all to run the posture batch with the reported override, or
/discipline:script-the-deterministic-work to apply the lever rule.
apply writes one file. It never writes the plugin cache, Claude Code user
settings, or pluginConfigs, per the uniform setup contract (docs/plugin-philosophy.md
"Setup is explicit and repeatable" in the marketplace repository). Personal options
change only through the native /plugin configure discipline@<marketplace> flow.${user_config.…} means
unset (the key's default applies). Parsing it as a corrector name, a depth or a lever
scope is the failure this check exists to prevent.apply leaves it
uncommitted on purpose, and the tracked-file pair says so.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin discipline18 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./follow-operating-proceduresFollow operating proceduresReread the user's and project's instruction files in force (CLAUDE.md, rules, imports), remind/remember how we work and operate, check work in flight against them, and correct drift or report clean. Use when 'follow operating procedures', 'reread my instructions', 'reread CLAUDE.md', or operating outside my instructions./follow-our-standardsFollow our standardsRe-anchor to organization engineering standard, audit work in flight (or --repo) for drifting from our standard and convention, and correct violation with doc citation. Use when 'follow our standards', 'does this match our conventions', 'audit against standards', or at conversation start on a repo governed by shared standard and convention./hold-my-handHold my handStanding hand-hold posture to guide multi-step work one phase at a time: show only current phase (exact step, output, failure, actor, reply), later as 'Phase 1 of N'. Use when 'hold my hand', 'walk me through this', 'one step at a time'. Not for lists: /adhd:shape; message: /adhd:clarify; scripts: /wizard:generate; stage: /session-flow:workflow./mind-your-maximsMind your maximsRe-anchor cooperative communication quality (Grice maxim plus AI transparency): audit recent response and artifact for completeness (neither too little nor too much), relevance (stay on topic), clarity (clear, not vague, answer the question), and disclosed boundary. Use when 'mind your maxims', 'answer what I asked', 'you buried the answer'.Other plugins' skills for the same job