Command Palette

Search for a command to run...

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

Tidy Work

Opt-in inventory/tidy of gitignored .work memory tiers (repo and ~/.work): report stale/in-flight items, normalize, or clean after confirmation.

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

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

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

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

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

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

Tidy work

Purpose

The memory root (default .work/) and ~/.work collect handoffs, running-retro ledgers, workflow checklists, and slice folders that nothing else deletes, and agents drop scratch files beside them whose names carry the issue or PR they were for. This skill inventories them with age, size, and kind, attributes each scratch entry to that issue or PR and reports its state, marks what is still in flight, and, only on request, moves misplaced items into the standard layout or removes stale ones. ${CLAUDE_PLUGIN_ROOT}/scripts/tidy_work.py does the work; this skill sequences it and owns the confirmation.

Nothing runs unless the user invokes this skill.

Actions

Action Effect
report (default) Read-only inventory: path, age, size, kind, in-flight or stale, per item; a scratch entry also shows the issue or PR its name carries and that item's state
normalize Moves misplaced known-kind items into the standard layout. Never deletes, never overwrites an existing target
clean Removes an item only when it is a known kind, is not in flight, and names at least one issue or PR, every one closed or merged: a handoff or running retro by the references in its text, a scratch entry by the number in its name. An item that names no issue or PR is kept and reported however old it is; a slice or checklist has no attribution source, so clean never removes one; a shape-3 chain's handoffs/archive/ directory is kept while a handoff of its chain is kept and leaves with the last one

Pass --days N (default 14) to change the recency window. Pass --scope {all,repo,home} (default all) to limit inventory, normalize, or clean to the repo memory root (repo), $HOME/.work (home), or both (all). Pass repeatable --extra-concern-dir NAME (or set extra_concern_dirs in <convention_home>/session-flow.yaml) to treat additional bare directory names under the memory root as kept concern state. Pass --offline to treat every linked issue or PR as unknown, which counts as in flight; without it the script asks gh for the open issues and PRs of each repository a handoff names, then for the state of each link that is not open.

A scratch entry is any other top-level entry whose name holds exactly one all-digit token of 3 to 7 digits, optionally prefixed pr, issue, or gh: lint-5371.log, measure-4608, scratch-4586-d2cc1ea4d. That number is read as an issue or PR of the repository holding the memory root. A year-like token (1900 to 2099) counts only with the prefix: pr2026.md is attributed, backup-2026.tar is not. A name with no such token, or with several (a version, a date), is not attributed and stays unknown.

Steps

  1. Resolve the memory root. Use a memory_dir the repo documents in prose (CLAUDE.md or .claude/rules/), else the default .work. Pass the result as --memory-dir <root> on every invocation below; a --memory-dir the user gave wins. The resolution order is the one handoff uses (${CLAUDE_PLUGIN_ROOT}/reference/save-point.md, "Where save-points live").
  2. Report. Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/tidy_work.py report --memory-dir <root> [--scope all|repo|home] [--days N] [--offline] [--extra-concern-dir NAME] and show the table. report is the only tidy_work.py invocation allowed-tools pre-approves. For report alone, stop here.
  3. Dry-run normalize or clean. Run the same script with the action name and no --apply. It prints the exact absolute path of every move or removal and changes nothing; a path whose issue or PR was looked up carries [#N state], and for a scratch path that is the number its name was attributed to. Show those lines to the user verbatim.
  4. Ask one confirmation covering exactly the listed paths. A refusal, or silence, ends the run with nothing changed.
  5. Apply. After a yes, re-run the identical command with --apply. That call is not pre-approved, so it goes through the normal permission flow. Report what moved or was removed, and any path the script refused.

Always kept

An item whose kind is not recognized (for example a drain/ status tree or any tool's own folder) is always kept and always reported, by report, normalize, and clean alike. So is every entry of another skill's concern dir (reviews/, exports/, overengineering/, enforceability/, docs-hygiene/, lanes/, coupling/, recommend-skills/, testing/, testing-cleanup/, testing-cleanup-plan/, plus any extra_concern_dirs declared in <convention_home>/session-flow.yaml or via --extra-concern-dir): that skill reads it back. Explicit non-removable kinds git-clone (a directory holding a .git file or directory; .git/objects is not walked for stats) and recovery-archive (*.bundle, *.tar, *.tar.gz, *.tgz, *.zip, or directories containing them) are always kept and rep

Полный SKILL.md на GitHub

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

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

  1. 01Bash(python3 ${CLAUDE_PLUGIN_ROOT}/scripts/tidy_work.py report:*)

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

  • evals/evals.json

FAQ

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

Opt-in inventory/tidy of gitignored .work memory tiers (repo and ~/.work): report stale/in-flight items, normalize, or clean after confirmation.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Tidy Work с