Command Palette

Search for a command to run...

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

Tidy

When bundled simplify resolves in this session, prefer it for the current diff; this skill for proactive focus area hunts. Hunts one rotated focus area for…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Tidy в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Tidy

Repository context. Gather first

Run each command below as its own Bash call, all sent together in one message (worktree isolation). Keep any bound in the command's own pipe (output limits). Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).

  • Current branch, git branch --show-current
  • Recent commits, git log --oneline -5
  • Working tree status (empty = clean), git status --porcelain | head -20

Pre-computed context

Open chore/tidy-* PRs: !${CLAUDE_SKILL_DIR}/scripts/open-pr-count.sh 2>/dev/null | grep -E '^(Open tidy|Throttle)' || echo unknown Comment settings (team then personal layer, one line per key): !${CLAUDE_SKILL_DIR}/scripts/comment-settings.sh 2>/dev/null | grep -E '^comment_(posture|keep_list)' || echo "(settings unavailable)"

Variables

Arguments: $ARGUMENTS

HARD path exclusions: ${user_config.hard_exclusions} (unexpanded, empty, or any value outside enforce and advisory means enforce).

Comment posture: comment_posture resolves through four layers, lowest first, a later one winning: the default auto, userConfig (${user_config.comment_posture}), the team file <home>/comment-policy.yaml over the org baseline <home>/comment-policy.org.yaml (tighten-only) and the personal override <home>/comment-policy.local.yaml (<home> the repository's bound convention home, else docs/conventions), the files from the settings line above (${CLAUDE_SKILL_DIR}/scripts/comment-settings.sh). auto means necessary; strict, balanced and conservative read as explanatory, aggressive as necessary. An unexpanded or empty userConfig value is unset, and any other value outside auto, none, necessary, explanatory is named with its layer and dropped. The posture decides what tidyings Beck 14 and P-5 may add (reference/tidyings.md).

Purpose

Tidy is the proactive Boy Scout loop: what small structural improvements can one slice of the codebase safely take today, shipped as one tight PR that never mixes structural and behavioral change? It applies Kent Beck's Tidy First? tidyings, separated from behavioral changes by commit and by PR ("Always one or the other, never both at the same time."), under the Boy Scout Rule, and keeps to structure-only work because autonomous agents introduce defects measurably more often in unhealthy code (Tornhill / CodeScene). Its value is rotated focus area discipline, a scope budget, structure-only commits, and research before editing.

Not: /simplify, which tightens the conversation's recent diff, while tidy hunts a focus area independent of recent activity; batch-simplify, which sweeps a time window, a branch, or the repository in waves (on docs it owns factual staleness across the whole doc set in one pass, while tidy's docs-prose focus area owns incremental structural prose work under a scope budget); issue-tracker work, since tidy never starts from a filed item and files its overflow as deferred items; a docs fact-checker, since tidy improves structure, not factual accuracy.

Action Router

Parse $ARGUMENTS to determine the action. The argument hint shows dry-run without its [<area>|<glob>...] to stay within its length budget; the table below lists every form.

Argument Action Use case
(empty) Smart default Infer the most appropriate focus area from current branch / recent commits / git status. If the inference is ambiguous, pause and ask the user. Otherwise proceed as if <area> was passed.
<area> (from the catalog below) Targeted focus area run Load the focus area file, run the full Workflow on that focus area's scope.
<glob>... Ad hoc scope No focus area covers the files. Run the full Workflow on those globs per Ad hoc scope when no focus area fits below. Combines with dry-run.
dry-run [<area>] Plan + present, no edits Run Phases A-D (triage, explore, research, hunt). Present the prioritized findings table and the proposed PR scope. No edits, no branch, no push, no tracker items. The user reviews and decides whether to proceed.
self-update Maintainer focus area Shorthand for <area>=self-update. Operates on this plugin's own files. Valid only in a working-tree checkout of the plugin (marketplace clone or --plugin-dir), never
Полный SKILL.md на GitHub

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

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

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/open-pr-count.sh:*)
  2. 02Bash(${CLAUDE_SKILL_DIR}/scripts/comment-settings.sh:*)
  3. 03Bash(grep:*)
  4. 04Bash(echo:*)

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

  • areas/docs-prose.md
  • areas/self-update.md
  • areas/shell-tooling.md
  • evals/evals.json
  • reference/bundled-simplify.md
  • reference/exclusions.md
  • reference/scope-budget.md
  • reference/tidyings.md
  • scripts/comment-settings.sh
  • scripts/open-pr-count.sh
  • scripts/open-pr-count.test.sh
  • scripts/upkeep-setting.sh
  • templates/.markdownlint-cli2.jsonc
  • templates/apps-area.template.md
  • templates/dependency-root-area.template.md
  • templates/host-wiring-area.template.md
  • templates/polyglot-services-area.template.md

FAQ

Что делает скилл Tidy?

When bundled simplify resolves in this session, prefer it for the current diff; this skill for proactive focus area hunts. Hunts one rotated focus area for Beck tidyings and ships one structure-only PR. Use when: 'tidy up', 'boy scout', or 'small refactors'. Not for current diff (/simplify) or diff windows (/code-tidying:batch-simplify).

Как установить скилл Tidy?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Tidy запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Tidy с