Skip to content
Back to skills

Setup

ASecurity

Check (read-only) userConfig report paths or apply docs/conventions/bugs.yaml focus areas, filing posture and native_suggestions.

  • 34 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 2, 2026
ai-agentsgobashgitapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add melodic-software/claude-code-plugins --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-setup-9c11f748/badge)](https://www.skillsdirectory.com/skills/melodic-software-setup-9c11f748)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Check (read-only) userConfig report paths or apply docs/conventions/bugs.yaml focus areas, filing posture and native_suggestions."
argument-hint: "[check|apply]"
user-invocable: true
disable-model-invocation: true
---

# Setup

## Two surfaces, two owners

| 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](https://code.claude.com/docs/en/plugins/manifest-reference#user-configuration)
and [settings reference: `pluginConfigs`](https://code.claude.com/docs/en/settings-reference#pluginconfigs).

Keys, layers, merge semantics, the `output_dir` partition rule, and the file format live in
[`${CLAUDE_PLUGIN_ROOT}/reference/config.md`](../../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.

### A. `output_dir` (native `userConfig`)

1. 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.
2. 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.
3. 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.
4. 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](../../reference/plugin-reconfiguration.md#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](../../reference/plugin-reconfiguration.md#caveats-every-setup-skills-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.

   - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and
     when a saved value applies, fetch
     [plugin CLI reference § plugin configure](https://code.claude.com/docs/en/plugins/cli-reference#plugin-configure)
     live.

### B. `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:

1. **Per-layer presence.** For every layer in the reference's layer table: absent,
   present-and-parsed, or malformed. A malformed layer degrades soft: surface the error, name the
   layer, resolve as if it were absent. Check a present team YAML against
   [`${CLAUDE_PLUGIN_ROOT}/schemas/bugs.schema.json`](../../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.
2. **Effective config and provenance.** The merged `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: ignored, 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.
3. **Per-layer version-control verdict.** A present team file must be tracked, which takes **two**
   probes per file. `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.
4. **Unreachable layers.** When a layer cannot be read (often the `gotchas_file` one), WARN that it was
   not considered rather than present the rest as the whole effective config.
5. **Unknown keys.** Report them as inert, naming their layer, including `output_dir`, which is not a
   recognized key here.
6. **Retired conventions.** Run
   `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 does not read 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.

### Converge the team YAML

1. **Read the effective config across every layer** and present it. Where a personal override
   layer changes the team file's effect (adding focus areas, replacing one by name, opting out with an
   empty list), say so: a team-scope edit alone will not
   account for it, and re-adding a focus area a personal override opts out of will not restore it on this machine.
   Prompt the user to update that layer; do not edit it for them.
2. **Draft focus areas from the repository** before asking anything: entrypoint and API directories, the
   highest-churn source areas in `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.
3. **Confirm one decision at a time.** Present each drafted focus area with a recommendation; the user
   accepts, edits, or drops it. Never write `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`).
4. **Write conservatively.** Scaffold the file in the reference's format when absent; otherwise
   make a targeted update. Fill absent keys at their documented defaults, preserve comments, and
   report rather than silently rewrite anything you cannot reconcile. Never rewrite a file you did
   not first read.
5. **Verify after writing.** Re-run the `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.
6. **Recommend the personal override line; do not write it.** Personal deviations belong in
   `docs/conventions/bugs.local.md`; recommend the recursive `.gitignore` line the reference names
   if not already covered.
7. **Remind them to stage it.** The team file reaches teammates only once committed.

Re-running `apply` when everything already matches changes nothing and reports "already configured".

## Output

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.

## What this skill does not do

- Do not produce or file a bug report; invoke `/bugs:write` via the Skill tool.
- Do not run a hunt; that is `/bugs:scan`.
- Do not write 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).
- Do not delete the tracked config: `apply` converges and never removes.
- Do not invent an organization, repository, marketplace, or environment-variable prefix.

## Next

- Produce a bug report: `/bugs:write`.
- Hunt the configured focus areas: `/bugs:scan`.

## Gotchas

- **Verify a reconfiguration only in a fresh session.** When checking when a saved value reaches skill content, fetch
  [plugins manifest reference § Reference a saved value](https://code.claude.com/docs/en/plugins/manifest-reference#reference-a-saved-value)
  and [skills § Available string substitutions](https://code.claude.com/docs/en/skills#available-string-substitutions)
  live.
- **Never uninstall to reconfigure.** Reconfigure through `check` step A4; what an uninstall deletes
  is linked from the convention section that step cites.
- **Check the headless route's own failure signal** before reporting a value saved, as the
  convention's caveats section cited in `check` step A4 gives it.
- **The ignore probe alone blesses an unshared file.** An untracked, unignored file returns the same
  empty `check-ignore` output as a healthy tracked one; the `ls-files` probe is what catches it.
- **A file `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.

Files in this skill

  • SKILL.md10.1 KB
  • evals/evals.json3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.