Command Palette

Search for a command to run...

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

storage-retention

Inspect machine storage, clean up files, and configure automatic thread archive or deletion.

БесплатноБез исполняемых скриптов
get-bbот get-bb★ 15 звёзд на GitHub

Установить storage-retention в Claude Code и Claude Desktop

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

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

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

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

Storage & retention

Enable bb plugin enable storage-retention. Both policies default to Never. All commands return JSON.

bb storage retention
bb storage retention --archive-after 30 --delete-after 90
bb storage retention --archive-after 30 --delete-after 90 --save --yes
bb storage retention --archive-after never --delete-after never --save --yes
bb storage retention --delete-storage-on-archive true --save --yes
bb storage retention --delete-storage-on-archive false --save --yes
bb storage retention --delete-dev-data-on-checkout-removal true --save --yes
bb storage usage
bb storage usage --rescan
bb storage usage --machine HOST_ID --rescan
bb storage usage --machine HOST_ID
bb storage remove-orphans --machine HOST_ID --yes
bb storage retry-worktree-cleanup --machine HOST_ID
bb storage cleanup --machine HOST_ID --kind orphans|worktrees --yes
bb storage clear-thread --thread THREAD_ID --yes
bb storage clear-archived-files --machine HOST_ID --yes
bb storage clear-large-files --machine HOST_ID --yes
bb storage clear-large-files --yes

Without --save, retention thresholds only preview affected thread counts. Days must be whole numbers from 1 to 3650, or never. Unspecified settings preserve their saved values. Saved policies apply across all projects. The hourly run processes up to 50 trees per action and skips groups with pinned members. Archiving can remove worktrees including uncommitted changes. Deleting removes history and thread storage. Preview first and save only when authorized.

Delete thread storage on archive defaults to off. When on, it applies to future manual and automatic archives while the plugin is enabled; it does not clear previously archived threads. Conversations and uploaded attachments are kept. Pinned threads are skipped. Cleanup waits for stopped threads and online machines; pending cleanup survives reloads and retries every minute, and unarchiving or deleting the thread cancels it.

--delete-dev-data-on-checkout-removal is saved with the policy but has no effect: this version of bb keeps no ~/.bb-dev development data.

--rescan measures the thread storage folder of --machine, or of every online machine, and caches the report; usage without --rescan reads the cached reports and never starts a scan. A report has disk (total and free bytes of the volume holding thread storage), threadStorageBytes, threads (title, size, archived, clearable) and orphans (folders that belong to no known thread).

Remove-orphans needs a completed scan and removes only folders that the scan and a fresh recheck both find orphaned. Clear-archived-files empties the storage folders of archived, stopped, unpinned threads found in the last scan. Clear-large-files deletes files of 10 MB or more from those same archived threads, on --machine or on every scanned online machine, and rescans. Clear-thread empties one stopped thread's storage folder. Processes whose working directory is inside a folder being removed are stopped first. Retry-worktree-cleanup deletes again the worktree environments on the machine whose teardown failed or that stayed retiring for over ten minutes, unless a live thread still uses them. cleanup --kind runs remove-orphans or retry-worktree-cleanup and waits for the result. Conversation history is never affected.

The same actions are operations: storage-retention.state, preview, configure ({archiveAfterDays, deleteAfterDays, deleteStorageOnArchive, deleteDevDataOnCheckoutRemoval}, null for Never), run (one retention pass now), usage({hostId?}), scan({hostId?}), removeOrphans({hostId}), retryWorktreeCleanup({hostId}), clearThread({threadId}), clearArchivedFiles({hostId}) and clearLargeFiles({hostId?}).

Pin automation target threads to keep them. Disabling the plugin stops scheduled retention and removes its storage actions.

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

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

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

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

FAQ

Что делает скилл storage-retention?

Inspect machine storage, clean up files, and configure automatic thread archive or deletion.

Как установить скилл storage-retention?

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

Скилл storage-retention запускает скрипты?

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

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

Сравнить storage-retention с