Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-setup-85bb16af)
---
description: "Check (read-only) or apply repo planning config: standards index (docs/standards/) and confirmed docs/conventions/planning.yaml. Re-runnable."
argument-hint: "[check|apply] [<key>=<value> ...]"
user-invocable: true
disable-model-invocation: true
---
# Setup
## Purpose
Verify and settle the planning plugin's two consumer-side concerns: where the consuming repo's
**standards** live, the adopted conventions and criteria the planning skills ground plans in, and
the repository layer of the plugin's **settings**, `docs/conventions/planning.yaml` (keys, values
and layers: [`${CLAUDE_PLUGIN_ROOT}/reference/config.md`](${CLAUDE_PLUGIN_ROOT}/reference/config.md);
schema: `${CLAUDE_PLUGIN_ROOT}/schemas/planning.schema.json`). Where planning artifacts land needs
no configuration: the plugin's artifact protocol
([`${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md))
fixes placement.
Both concerns are optional: with no index, the pipeline uses standard engineering defaults, and with
no settings file every key resolves from `userConfig` or its default, so either absence is a reported
INFO, never a FAIL. `check` inspects read-only; `apply` resolves and persists, then re-runs `check`.
Action routing: no argument or `check` runs the check; `apply <key>=<value> ...` runs the check,
then writes the settings file and nothing else; bare `apply` runs the check, then the standards
bootstrap, then offers the settings keys. Idempotent: re-running reads the current state and offers
an update rather than overwriting blind.
## `check` (read-only)
Report a PASS/FAIL/INFO table with one remediation line per FAIL. Modify nothing, and do not run a
planning stage. Those are the pipeline skills.
1. **Standards index**. The index presence test at the resolved `<standards_dir>/README.md`
(`docs/conventions/standards.yaml` may relocate the root from the documented default). Absent → INFO: the
standards concern is not bootstrapped; `apply` offers to scaffold it. A present index whose
`standards-contract` frontmatter version is behind the plugin binding's on major.minor is INFO with the DIRECTIONAL
version-delta noted (migration runs under `apply`). A present `README.md` that is hand-authored (not
a conforming index) is INFO, flagged for the `apply` confirmation gate.
2. **Interview-rendering toggle**. INFO: report the effective `use_ask_user_question` value,
`${user_config.use_ask_user_question}` (unexpanded or empty means the default `false`. The pipeline
skills' question rounds render as inline prose). This is a native `userConfig` toggle, not a
consumer-project file; `apply` gives the reconfigure guidance below.
3. **Repository settings**. Run `"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" --check` from the
project root and report each line it prints with its own prefix: INFO when
`docs/conventions/planning.yaml` is absent, PASS with each key's value when it validates, WARN
for each problem when it does not (a value outside the key's list, a quoted `"true"` on a
boolean key, a key set twice, an empty
value, a map or list where one value belongs, a key outside the schema), quoting the file, key
and value. An invalid value never stops a planning skill: the skill names it and drops that
layer, so the row is a WARN, not a FAIL, and `apply` is the fix. A one-line refusal (an unsafe
path, or a root that is `$HOME` or above it) is reported as WARN with that line.
## `apply` (idempotent)
Run `check`, then, per the action routing above, write the settings file or bootstrap the standards
index. Proceed non-interactively where the invocation and the repo make the values unambiguous; ask
only where a choice genuinely needs the user. No silent writes. Every write is user-accepted.
### Repository settings (`docs/conventions/planning.yaml` only)
1. **Resolve the values.** With complete `<key>=<value>` arguments, use them. Otherwise (bare
`apply`, after the standards bootstrap) ask one key at a time, recommendation first, from the Keys
table in `${CLAUDE_PLUGIN_ROOT}/reference/config.md`, and skip a key the operator leaves to each
user. Recommend each key's default unless the team named a reason for another value. Never invent
a key the schema does not list.
2. **Write.** One call with every value:
```bash
"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs" phase_order=riskiest-first
```
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/planning.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 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.
3. **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/planning.yaml` and `<apply-script>` =
`"${CLAUDE_SKILL_DIR}/scripts/setup-apply.mjs"`.
### Standards bootstrap
Settle where the consumer's standards live by implementing the normative "Setup and migration" section
of the plugin's contract binding
[`${CLAUDE_PLUGIN_ROOT}/reference/standards-contract.md`](${CLAUDE_PLUGIN_ROOT}/reference/standards-contract.md).
The procedure (state reading via the index presence test, the conforming-index short-circuit, the
hand-authored-README confirmation gate, interview, skeleton write, row-path validation,
DIRECTIONAL version-delta detection with guided migration, idempotent re-run) lives there,
implement it by reference, do not restate it. Plugin-side notes only:
- **State reading order:** `docs/conventions/standards.yaml` → index presence test at the resolved
`<standards_dir>/README.md` → inference sources (existing docs directories, ecosystem configs,
a root `CODING_STANDARDS.md` and `CONTRIBUTING.md`, ambient `CLAUDE.md` content).
- **Bootstrap writes** (interactive, user-accepted. No silent writes): the skeleton index with
its `standards-contract` frontmatter at the binding's version, and the setup-owned
`<standards_dir>/.gitignore` containing `*.local.md` (the personal override ignore). Write
`docs/conventions/standards.yaml` only when the user relocates the root from the documented default.
After a bootstrap write, run the tracked-file pair on each written team file:
`git check-ignore -v` reports no match (a match is FAIL with the pattern) and
`git ls-files --error-unmatch` exits 0 (non-zero right after a fresh write means "written but
untracked: commit it to share with the team", never success).
- **Optional offers, never demands:** pointer-rule generation for indexed ecosystem surfaces
(interactive only), and reorganizing mixed or spread standards content toward the SRP + index
shape.
- **Migration is this skill re-run.** No separate action; direction and messaging per the
binding. It is a versioned-contract upgrade under `apply`, the schema-evolution path the
binding sanctions.
### Interview-rendering toggle
`use_ask_user_question` is a native `userConfig` boolean (default `false`) governing whether the
pipeline skills' question rounds render through `AskUserQuestion` or as inline prose. It is not a
consumer-project file this skill writes. Reconfigure `use_ask_user_question` through Claude
Code's native flow, interactively with `/plugin configure planning@<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 Claude Code user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh
session**, since a same-session `check` can still show the old value, and report the observed
effective value, 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.
### Verify after remediation
Re-run the `check` probes on what was written, the standards index presence/row-path validation, and
report the actual results, never success on the write alone.
Re-running `apply` after everything passes changes nothing and reports "already configured".
## Output
When the standards concern was exercised, a written (or confirmed-healthy) standards index and its
personal override `.gitignore`, a one-line summary of the effective values, the row-validation results, and how
to re-run this setup to reconfigure or migrate. When the settings were exercised, the `check` table
before and after, the diff when one was shown, the written path, and whether the file is tracked.
## Next
/planning:plan
## What this skill does not do
- Run a planning stage. That is the pipeline skills (`/planning:brainstorm`, `/planning:prd`,
`/planning:interview`, `/planning:design`, `/planning:design-handoff`,
`/planning:devils-advocate`, `/planning:plan`). `check` only inspects config.
- Edit the consumer's root `.gitignore` or any ignore file it did not itself create. (The memory
root's own self-ignoring `.gitignore` is created by the first memory-tier write, announced. Not by
setup. The single setup-owned ignore file is the standards root's bootstrap-shipped
`<standards_dir>/.gitignore`.)
- Write anything into the plugin directory or the plugin data directory
(`${CLAUDE_PLUGIN_DATA}` is for caches and generated state only).
- Commit `docs/conventions/planning.yaml`. `apply` leaves it uncommitted, and the tracked-file pair
says so.