Command Palette

Search for a command to run...

Назад к скиллам
скилл № 10810

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от 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).

  1. Project focus areas present. List .claude/tidy-areas/*.md. None → INFO: tidy resolves the bundled focus areas; apply scaffolds project focus areas when this repo's layout diverges from them.
  2. 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 semantics and shares its name with one of ${CLAUDE_PLUGIN_ROOT}/skills/tidy/areas/*.md inherits 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 shape apply writes, 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).
  3. No unreplaced placeholders. A leftover template <placeholder> is a broken scope glob or watch-for pattern: FAIL, naming the file and the token.
  4. Tracked, not ignored. Per focus area file, run both halves of the tracked-file pair: git check-ignore -v <file> (non-empty means a .gitignore pattern excludes the focus area: FAIL with the pattern, since a directory can be tracked while a pattern excludes one .md inside it) and git 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).
  5. Bundled focus areas and templates. INFO: list them as the scaffold sources apply can use.
  6. 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 ## Overrides heading with one fenced block, one root-relative glob per line. FAIL an absolute path or an entry containing .., naming the line. FAI
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Setup с