/bugs:setup [check|apply]from bugs
Checks userConfig report paths and applies docs/conventions/bugs.yaml focus areas, filing posture, and native_suggestions. Use for read-only inspection or writing team YAML policy.
Ships in bugs. 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.
None: SKILL.md is the whole skill.
| Surface | Holds | Written by |
|---|---|---|
output_dir, gotchas_file. Native userConfig | one operator's personal --file destination on one machine; one operator's gotchas file for every repository | Claude Code's own plugin configuration prompt, never this skill |
docs/conventions/bugs.yaml. Tracked, cascade-layered | team policy: /bugs:scan focus areas and filing posture; /bugs:write native_suggestions | apply here |
This is the narrow-write setup shape: apply writes the team YAML only. output_dir and gotchas_file stay check-only: each is a
native option, and this skill never writes the pluginConfigs the uniform setup contract forbids;
reconfiguration routes through the native flow.
Pointer: where option values are stored and which settings files they are read from are read at
plugins manifest reference: user configuration
and settings reference: pluginConfigs.
Keys, layers, merge semantics, the output_dir partition rule, and the file format live in
${CLAUDE_PLUGIN_ROOT}/reference/config.md. Read it before checking or
writing; never restate its keys here or disagree with it.
No argument runs check. Both actions run without questions when the invocation and the repo make
the values unambiguous: report and recommend, and ask only where a focus area genuinely needs the user.
check (read-only, the default)Modify nothing. Report both surfaces, then one remediation line per gap.
output_dir (native userConfig)Read the rendered ${user_config.output_dir} value from this skill. Do not inspect or edit
settings.json, settings.local.json, managed settings, or pluginConfigs directly.
Explain the effective behavior: an empty or unexpanded value means --file uses
${CLAUDE_PLUGIN_DATA}/bug-reports/<project-slug>/; a configured value means that directory.
State the tradeoff instead of asking: machine-private (the default) versus a repository path
committed alongside code. For the repository option, inspect the consumer's CLAUDE.md,
AGENTS.md, and existing report or artifact directories and recommend one portable location.
Never recommend a machine-absolute team path.
If the recommended value differs, set output_dir to it through Claude Code's native flow,
interactively with /plugin configure bugs@<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. This skill never
writes user settings or pluginConfigs. Then rerun check in a fresh session, since a
same-session check can still show the old value, and report the observed destination, never
an unobserved change.
docs/conventions/bugs.yaml (tracked focus area config)Anchor at the repo root (${CLAUDE_PROJECT_DIR} when set, otherwise
git rev-parse --show-toplevel), never the CWD. Report each layer separately and the effective
merged result:
${CLAUDE_PLUGIN_ROOT}/schemas/bugs.schema.json and report
each violation; the reference still governs how a run treats an unknown key or a bad focus area entry.areas, the resolved filing_posture (the
reference's Filing posture section) and the resolved native_suggestions (on or off), and
the layer that supplied each, honoring the reference's merge semantics. A native_suggestions
outside on, off is WARN, quoting the file, key and value. A filing_posture in a bugs layer is WARN: deprecated, move it to
docs/conventions/work-items.yaml; an explicit empty-list opt-out is
reported as an opt-out, not a broken layer. All layers absent is a fully working state: INFO,
never FAIL, since /bugs:scan falls through to its bundled default focus areas.git check-ignore -v docs/conventions/bugs.yaml: a non-empty result is FAIL,
naming the matching pattern. git ls-files --error-unmatch docs/conventions/bugs.yaml: a
non-zero exit on a present file is FAIL, "present but untracked, commit it so teammates receive
it". Probe docs/conventions/bugs.md the same way when present. The .local.md personal override must be
gitignored; staged or unignored is FAIL. The gotchas_file file sits outside the worktree: say
no git verdict applies rather than run a meaningless command.gotchas_file one), WARN that it was
not considered rather than present the rest as the whole effective config.output_dir, which is not a
recognized key here.bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}/retirements.yaml".
Exit 0 → PASS. Exit 1 → one finding per TSV row: migrate is FAIL, delete/remove-line
WARN, report-only INFO. Exit 2 → FAIL, never silent. Bash
unavailable → report the step UNKNOWN with remediation, never green. Record bugs-r001
(.claude/bugs.local.md) is report-only: bugs no longer reads that file.apply (idempotent, bounded to docs/conventions/bugs.yaml)Run check first, then converge the team YAML. Never touch settings.json,
settings.local.json, managed settings, pluginConfigs, userConfig, or the consumer's
.gitignore. An output_dir or gotchas_file change requested here routes to the native flow in
check step A4, never written.
git log, and any subsystem the repo's own docs treat as critical.
Propose kebab-case focus area names with globs relative to the repo root. With focus areas already in the
team YAML, propose only additions; with nothing to infer from, propose the bundled generic
default focus areas.filing_posture: it lives in
docs/conventions/work-items.yaml. When the team YAML still sets it, show the line to add there
and, once that file sets it and the user says yes, drop it from the team YAML. Write
native_suggestions only when the user names it: on, the default, unless the team wants no
line suggesting a Claude Code command only the person can run (off).check B probes against the file on disk: it parses, it
meets the schema, every focus area declares name and globs, the globs match real paths (a focus area
matching nothing is reported as skipped), and git check-ignore -v docs/conventions/bugs.yaml
confirms it is not ignored. Report the values observed, never an unobserved change.docs/conventions/bugs.local.md; recommend the recursive .gitignore line the reference names
if not already covered.Re-running apply when everything already matches changes nothing and reports "already configured".
For each surface: the effective state and the layer that supplied it, the recommended state, and
what changed (the tracked file's path and the keys written), plus whether the user must still change
output_dir through Claude Code's own flow. Claim a change only once observed: for the tracked file
by re-reading it, for output_dir by a rerun in a fresh session.
/bugs:write via the Skill tool./bugs:scan.pluginConfigs, per the uniform
setup contract (docs/plugin-philosophy.md "Setup is explicit and repeatable" in the
marketplace repository).apply converges and never removes./bugs:write./bugs:scan.check step A4; what an uninstall deletes
is linked from the convention section that step cites.check step A4 gives it.check-ignore output as a healthy tracked one; the ls-files probe is what catches it.apply just scaffolded is untracked until staged. git ls-files --error-unmatch will
not match yet; that is not a FAIL after apply. State the commit obligation instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin bugs3 skills in this plugin
/scanProactive read-only hunt checking resting code for unobserved bugs: recall hunters + candidate refute gate over a path, feature, diff, or focus area rotation (loop/routine; --track, --dry-run, --unattended). Use when: 'bug hunt', 'scan for bugs', 'find a bug'. Not for /bugs:write, /debugging:debug, /codebase-health:audit, /harness-ops:known-issues./writeRead-only structured five-field bug report (title, reproduce steps, expected vs actual, severity, fix location) for an observed defect or error (--file writes/offers filing). Use when writing up a defect: 'report a bug', 'file a bug', 'expected X got Y'. Not for root-cause debugging: /debugging:debug; not for missing features or active fixes.Other plugins' skills for the same job