clear-out-wip
Clear backed-up local repository work without sweeping up peers - inventory the dirty tree, remove proven generated junk, prioritize coherent slices, ship…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить clear-out-wip в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/clear-out-wip
Reduce backed-up work to the smallest truthful residual set. "Clear out" means every observed
path ends in one witnessed disposition: ship, keep active, park, remove generated junk, or file
and dispatch. A smaller git status is an outcome, not the objective; never get there by hiding,
resetting, stashing, or absorbing another worker's changes.
This is the operator workflow over existing primitives. Use /commit-clean for each ship unit,
/stale-work-loop for stale or ownerless candidates, and /fleet-wave only for already-filed,
collision-priced follow-on units. Do not recreate those workflows here.
Non-negotiable fences
- Work on
main; do not create a branch, hand-rolled worktree, stash, reset, clean unignored files, or bulk-stage the checkout. - Treat the shared checkout as peer-dirty. A path's presence in
git statusdoes not make it yours. Mutate or commit only paths whose ownership is evidenced by the operator, current task, a lane/lease record, or a coherent diff you can attribute independently. - If
MERGE_HEADexists and the merge is not yours, do not finish or abort it. Leave your edits unstaged and wait. Strictly avoid raw unverified git merges,--autostash, or force-pushes. Integrate upstream advances only through structured convergence (fak sync applyorfak sync reconcile). - Dual-repo boundary awareness: when clearing WIP spanning shared interfaces (
pkg/*), platform modules, or cross-repo dependencies withfak-private, inventory and coordinate both checkouts. Verify multi-module alignment (go work sync) and ensure zero private leak needles (python tools/scrub_public_copy.py --audit-staged) before declaring enabling or ship-now slices ready to land. - Never add a
.gitignorerule merely to make an unknown path disappear. Ignore only a reproducible generated class with a named producer; verify no tracked or durable source path matches. Prefer allocating output throughfak tree-doctor --scratch-dir/--scratch-path. - Never ship broken default builds, secrets, generated binaries, private run fuel, misleading claims, or half of a cross-file symbol dependency. A build tag may protect genuine in-progress source, but is not a way to launder abandoned code into trunk.
- Do not close a parent issue merely because an independently useful enabling slice shipped. Describe and witness exactly the slice that landed; keep or file the remaining done-condition.
0. Open the lifecycle receipt
Before any mutation, run:
fak wip lifecycle begin --kind clear-out --root .
Keep the returned operation_id. This persists the fak-wip-inventory/1 before snapshot outside the working tree. If capture fails, report the typed WIP_LIFECYCLE_CAPTURE_FAILED condition but continue any safety-critical recovery; never reinterpret capture failure as a zero WIP count.
1. Freeze a read-only census
Run the inventory before editing anything. Save bulky machine output under an allocated scratch path, not a new repository-root filename.
git status --short --branch
git rev-parse --abbrev-ref HEAD
git rev-parse -q --verify MERGE_HEAD
fak sweep --json
fak tree-doctor --json
If clearing WIP that crosses shared boundaries into companion repository fak-private, run the dual-repo census:
# In fak-private checkout:
git status --short --branch
git rev-parse -q --verify MERGE_HEAD
git fetch origin
# Multi-module workspace graph verification:
go work sync
If either checkout has an active MERGE_HEAD, halt and wait for merge quiescence before proceeding. Never abort or finish a peer's merge.
Also inspect lane/lease and WIP records when available:
fak wip list --json
fak worktree worker list --json
If a verb differs in the installed build, inspect fak <verb> -h and use its current read-only
form. Do not replace a missing read-only verb with an ad hoc mutation.
Build a path ledger with these columns:
| Unit | Paths | Evidence of owner | Intent | Dependency seam | Test/proof | Age/origin | Disposition |
|---|
Group paths by one coherent outcome, not merely by directory. Keep unknown ownership as
UNKNOWN; do not infer it from timestamps, author names in nearby commits, or apparent quality.
Record the before count and grouped unit count so the final reduction is measurable.
2. Retire hygiene debt first, but only proven hygiene
Classify maintenance residue before feature work because it obscures the real queue:
- Generated junk: known outputs, temp binaries, logs, caches, or allocated scratch. Preview
ignored cleanup with
fak tree-doctor --sweep-scratch --dry-run; apply only after every listed path is known disposable. Usefak sweep --clean-junkonly for paths that the sweep itself freshly classifies as junk. - Durable generated output: promote a successful reusable artifact up the tooling ladder instead of discarding it. In this repo that me
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash
FAQ
Что делает скилл clear-out-wip?
Clear backed-up local repository work without sweeping up peers - inventory the dirty tree, remove proven generated junk, prioritize coherent slices, ship green partial/enabling work honestly, park or issue the rest, and use stale-work/fleet workflows only after ownership and path contracts are explicit. Use when the operator says "clear out local WIP", "clean up the dirty tree", "get this backlog of changes shipped", "sort out uncommitted work", or asks what can be committed even though the larger feature is not.
Как установить скилл clear-out-wip?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clear-out-wip запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…