/docs-naming:setup [check|apply] [--defaults] [<key>=<value> ...]from docs-naming
Verifies and configures the docs-naming convention layers (userConfig, team YAML, personal override) for file-name skills. Run `check` to inspect, `apply` to persist.
Ships in docs-naming. 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.
Every value the file-name skills act on comes from one consumer surface,
layered as userConfig (this plugin's file_names option, one JSON object of
file_names keys), team (docs/conventions/docs-naming.yaml, tracked,
validated by ${CLAUDE_PLUGIN_ROOT}/schemas/docs-naming.schema.json), and
personal override (docs/conventions/docs-naming.local.yaml). The convention
home is docs/conventions unless the repository's AGENTS.md or CLAUDE.md
binds another. All three absent is a valid state: every key has a bundled
default, and the defaults are this marketplace's own values, except generated,
which is empty. The old team and personal override JSON files under .claude/
are not read; check names each, and apply seeds an absent team YAML from the
old team file.
The option's current value is ${user_config.file_names}. Pass it to
setup-check.sh as --user-config '<that value>' on every call, one single-quoted
argument (escape any single quote in it). An empty value or the literal
${user_config.…} placeholder means unset.
This skill is the check-centric setup for that surface: check inspects and
verifies, apply persists, and neither installs anything. Keys, defaults, layer
classes, and provenance live in
${CLAUDE_PLUGIN_ROOT}/reference/config.md.
Action routing: no argument or check runs the check; apply runs the check
first, then persists. check asks nothing. With apply and no key, interview
one key at a time, recommendation first, walking the annotated template
${CLAUDE_SKILL_DIR}/templates/docs-naming.json.
check (read-only)Run it and present the table as printed:
${CLAUDE_SKILL_DIR}/scripts/setup-check.sh --user-config '<option>'
Rows, each PASS, FAIL, WARN, or INFO:
jq is FAIL and stops the
table, because every skill in this plugin reads the concern file with it..claude/, naming the next step (apply seeds an absent team
YAML, else copy by hand; then delete).grep -E, and it carries no single
quote. The quote matters because the gate emitter inlines this value.all,
links-and-paths, none.<path>: the regenerate command's first real argument resolves
on PATH or under the root. An interpreter at the front is stepped past, so
what gets resolved is the script it runs.<home>/*.local.* (the row prints it). Recommend it; never
edit the consumer's .gitignore.Exit 0 with no FAIL row, 1 with one, 2 on a usage or environment error.
check also runs this step on every invocation:
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; remediation is apply. Exit 2 →
FAIL, never silent. Bash unavailable → report the step UNKNOWN with remediation,
never green.
Both records here, docs-naming-r001 (.claude/docs-hygiene.json) and
docs-naming-r002 (.claude/docs-hygiene.local.json), are report-only: INFO,
no cleanup, since neither file is read; the old-file rows name the next step.
apply (idempotent)Run check and read its table.
Resolve the values. With complete <key>=<value> arguments, use them.
Otherwise interview one key at a time from the template, recommendation
first: the scope roots, the casing rule and its regex, the three exemption
sets, the tiers and their forms, the sweep exclusions, and the generated
files with their regenerate commands.
Persist. One call per run:
${CLAUDE_SKILL_DIR}/scripts/setup-apply.sh --defaults
${CLAUDE_SKILL_DIR}/scripts/setup-apply.sh roots=["docs"] rule=lower-kebab
--defaults writes the bundled document when no team layer exists. A
<key>=<value> merges one key: the value is parsed as JSON when it parses
and taken as a string when it does not, so roots=["docs","guide"] sets a
list and rule=lower-kebab sets a scalar. The script prints
already configured without touching the file when nothing changes, and
writes docs/conventions/docs-naming.yaml (under the repository's convention
home) and nothing else. When the YAML is absent and an old team JSON file
exists (.claude/docs-naming.json, else .claude/docs-hygiene.json), the
first write seeds the YAML from it, so its settings carry over; the resolver
does not read that file. The JSON file stays until a person deletes it. A rewrite keeps the comment block at the top of the file
and drops comments between keys.
Clean up retired files. After any agreed keys are written, re-run the
retirement detection and handle each active finding behind its own
confirmation (a report-only finding is INFO and has no cleanup). A
retired file's file_names keys are carried into the YAML of its layer as
top-level keys, adding only the ones that file lacks (step 3 already seeded a
team YAML that did not exist). The old file's
content is untrusted input, never executed or interpolated. When the operator
confirms the result, run
bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}/retirements.yaml" --clean <id> --i-migrated.
Re-run detection last and report the final state.
Verify. Re-run check and report the persisted values from its table,
never from the write alone. A WARN saying the file is untracked means "commit
it to share it", never success.
The run is done when check prints a table with no FAIL row and, for apply,
the re-run check shows the intended values with their supplying layer. A FAIL
row that the operator decides to accept is still a FAIL: say which row and why
it was accepted rather than reporting a clean table.
check: the table as printed. apply: the table before and after, the written
path, and one line on re-running this skill to reconfigure. Name the layer that
supplied any value differing from the bundled default.
file_names option, user settings, or
pluginConfigs. Those are the operator's own; configure file_names through
/plugin configure docs-naming@<marketplace>..gitignore. It recommends one line.generated entry names./docs-naming:audit-file-names
apply leaves it untracked
on purpose, and the check row says so until it is committed.generated is team-layer only. A regenerate command is a shell command the
realign executes, so a personal layer never supplies or replaces one.regex quoting, then breaks the emitted gate, which inlines the value into a shell
script.check resolves the team layer and personal override against the repository root of
the working directory. Inside a second worktree, run it from that worktree, or
pass --root.What SKILL.md sets; muted values are Claude Code's defaults
bashnpx claudepluginhub melodic-software/claude-code-plugins --plugin docs-naming4 skills in this plugin
/audit-file-namesAudit file namesRead-only audit of a docs tree's file names against a casing/naming rule (lower-kebab): proposes names, classifies every reference, refuses case-only collisions, and writes a rename plan (renames nothing). Use when: 'audit file names', 'which files break the naming rule', 'plan a docs rename'. Not for applying: /docs-naming:realign-file-names./generate-file-name-gateGenerate File Name GateEmit a standalone bash file-name gate checker + test suite (inlined rule, roots, exemptions; --rule; no overwrite without --force; unwired steps). Use when: 'generate the file-name gate', 'add a CI check for doc filenames', 'enforce the naming rule'. Not for auditing: /docs-naming:audit-file-names; renaming: /docs-naming:realign-file-names./realign-file-namesRealign file namesApply a file-name rename plan one file at a time (human must accept each): git mv, rewrite tier-allowed references, rebuild generated records, sweep stragglers; refuses blanket yes/ranges/globs/'all'; never commits. Use when: 'apply the rename plan', 'apply FN-...', 'rename these files'. Needs /docs-naming:audit-file-names.Other plugins' skills for the same job