Setup
Check (default, read-only) or apply repo code-tidying config: focus areas, HARD-exclusion overrides, comment-lint git hooks, and CI lint step.
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Purpose
Verify and scaffold the consuming repo's tracked focus area definitions at .claude/tidy-areas/<area>.md,
so /code-tidying:tidy resolves project-specific scope globs and watch-for patterns instead of the
generic bundled focus areas. A project focus area at ${CLAUDE_PROJECT_DIR}/.claude/tidy-areas/<area>.md layers
over the bundled focus area of the same name: one declaring ## Merge semantics merges per section with
the bundled focus area, one without it resolves project-only (the tidy skill's Focus area resolution).
Project focus areas are optional: with none, tidy uses the bundled focus areas, so their absence is an INFO,
never a FAIL. The skill follows the uniform setup contract (docs/plugin-philosophy.md "Setup is
explicit and repeatable" in the marketplace repository): no argument or check inspects
read-only; check inspect runs only the check inspect section; apply runs the check, scaffolds or retunes focus areas, then re-runs check; apply <area>
targets one focus area. Re-running reads the existing focus area files and proposes changes against them rather
than overwriting a consumer focus area blind.
Focus areas vs. templates
- Bundled focus areas (
${CLAUDE_PLUGIN_ROOT}/skills/tidy/areas/*.md:shell-tooling,docs-prose) cover surfaces that look the same in most repos and resolve with no config. A project override is worth writing only when this repo's tooling or doc directories differ from their defaults. - Bundled templates (
${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/*.template.md) are<placeholder>scaffolds for focus areas that are project-specific by design: code the repo has but no generic focus area can name. Turning the fitting templates into real focus area files is this skill's main job.
Never tell the user to "copy the bundled focus areas": scaffold from templates, and override a bundled focus area only when its defaults miss this repo's layout.
The plugin's second tracked file is ${CLAUDE_PROJECT_DIR}/.claude/code-tidying/exclusion-overrides.md,
optional and absent by default: root-relative globs that lift GLOBAL HARD path exclusions for
every run in this repository, the subtracting mirror of the consumer-declared protections that add
to them. check validates it; apply writes it only when the user asks. Contract, shape,
precedence, and what no channel lifts: the tidy skill's
exclusions reference section 4.
check (read-only)
Report a PASS/FAIL/INFO table with one remediation line per FAIL. Modify nothing, and do not run a
tidy sweep (that is /code-tidying:tidy).
- Project focus areas present. List
.claude/tidy-areas/*.md. None → INFO: tidy resolves the bundled focus areas;applyscaffolds project focus areas when this repo's layout diverges from them. - Focus area structure. Each focus area carries
## Scope,## Watch-for patterns,## Area-specific extra exclusions,## Verification commands,## Conventional Commits type, and## Preferred research sources; a missing section is FAIL. Exception: a focus area that declares## Merge semanticsand shares its name with one of${CLAUDE_PLUGIN_ROOT}/skills/tidy/areas/*.mdinherits every section it omits, so report which sections it inherits instead. The exemption belongs to the declaration, not the heading: confirm the section either adopts the bundled focus area's declaration by reference (the shapeapplywrites,Merge semantics: per the bundled focus area's declaration) or states a disposition for every required section the focus area omits. An empty, unrelated, or silent-on-an-omitted-section declaration is FAIL (malformed merge declaration; remediation: adopt the bundled declaration by reference or state the missing dispositions). - No unreplaced placeholders. A leftover template
<placeholder>is a broken scope glob or watch-for pattern: FAIL, naming the file and the token. - Tracked, not ignored. Per focus area file, run both halves of the tracked-file pair:
git check-ignore -v <file>(non-empty means a.gitignorepattern excludes the focus area: FAIL with the pattern, since a directory can be tracked while a pattern excludes one.mdinside it) andgit ls-files --error-unmatch <file>(non-zero means un-ignored but untracked: report "commit it to share with the team", downgraded to INFO only when the user confirms a deliberately private, uncommitted focus area). - Bundled focus areas and templates. INFO: list them as the scaffold sources
applycan use. - HARD-exclusion overrides. Absent is the normal state: INFO naming the file and what it does.
Present: check it against section 4 of the exclusions reference: an
## Overridesheading with one fenced block, one root-relative glob per line. FAIL an absolute path or an entry containing.., naming the line. FAI
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- actions/install-ci.md
- evals/evals.json
- reference/ci-systems.md
- reference/git-hook-decisions.md
FAQ
Что делает скилл Setup?
Check (default, read-only) or apply repo code-tidying config: focus areas, HARD-exclusion overrides, comment-lint git hooks, and CI lint step.
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…