Setup
Verify docs-naming layers, regex, tiers, and regenerators (check, read-only), or write docs/conventions/docs-naming.yaml per key (apply).
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Purpose
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.
- Pointer: when checking where a saved option value reaches, fetch plugins manifest reference § Reference a saved value live.
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, git: the prerequisites. A missing
jqis FAIL and stops the table, because every skill in this plugin reads the concern file with it. - layer userConfig / team / personal-override: absent (INFO), or present
(the team and personal override rows name the file). The userConfig row is
WARN when the option is not one JSON object, which is ignored. A present file
that does not parse surfaces at the resolve row with the file named.
old team file and old personal override file: WARN per unread JSON
file under
.claude/, naming the next step (applyseeds an absent team YAML, else copy by hand; then delete). - key shape: every key carries the type the contract declares.
- rule, regex, regex quoting: the casing rule is one this version
implements, the regex compiles under
grep -E, and it carries no single quote. The quote matters because the gate emitter inlines this value. - tier names, tier forms: names unique, forms drawn from
all,links-and-paths,none. - generated
<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. - team layer tracked: the team file is committed (PASS), written but uncommitted (WARN, it has reached nobody else yet), or gitignored (FAIL, an ignored team layer never reaches the team).
- personal override ignored: the personal override is gitignored, else WARN naming the
recommended line,
<home>/*.local.*(the row prints it). Recommend it; never edit the consumer's.gitignore. - policy floor: a personal layer that declared a key only the team layer supplies is reported here and was ignored.
Exit 0 with no FAIL row, 1 with one, 2 on a usage or environment error.
Retired conventions
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
checkand 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 rege
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(${CLAUDE_SKILL_DIR}/scripts/setup-check.sh:*) - 02
Bash(${CLAUDE_SKILL_DIR}/scripts/setup-apply.sh:*) - 03
Bash(git check-ignore:*) - 04
Bash(git ls-files:*) - 05
Read
Вложенные файлы
- scripts/setup-apply.sh
- scripts/setup-apply.test.sh
- scripts/setup-check.sh
- scripts/setup-check.test.sh
- templates/docs-naming.json
FAQ
Что делает скилл Setup?
Verify docs-naming layers, regex, tiers, and regenerators (check, read-only), or write docs/conventions/docs-naming.yaml per key (apply).
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…