/briefbound-skills:briefbound-development-cleanupfrom briefbound-skills
Cleans up development residue after PR merge or task completion: removes temporary artifacts, background processes, merged branches, and stale claims while preserving unmerged work and evidence.
Ships in briefbound-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
保护未合并工作和证据,清掉可证明噪音并收尾 branch、worktree 与 claim。
无法证明“可重建、已吸收、无 owner”就保留;清理不扩大范围。
CLEAN / NOOP / DEFERRED_INTEGRATION / BLOCKED、已删除项、保留项、延后条件、清理后证据和 Route Out。briefbound-autonomous-collaboration-loop、briefbound-thread-coordination、briefbound-pr-review、briefbound-router 或 BLOCKED。briefbound-router 或更具体 owner,复合任务不吞其他 owner。下一步建议: <一个具体动作>,否则声明继续已授权工作。NOOP。DEFERRED_INTEGRATION;合并后再次收尾这些 Git 资源。briefbound-autonomous-collaboration-loop 调用时,沿用其本轮安全本地清理授权;已证明被本地 main 吸收的任务 branch/worktree 和已完成 claim 不再逐项询问。同一任务 PR 读取 references/post-pr-closeout.md:PR_OPEN 关闭空闲 claim 并保留 Git 现场,PR_MERGED 验证吸收后本地收尾,PR_CLOSED_UNMERGED 保留工作;远程分支删除必须单独授权。
先确认真实 repo root、当前 branch、integration target 和本轮 owned surface,再读取:
git status --short --branch、相关 diff、untracked/ignored 候选;git worktree list --porcelain 和本地分支占用;git merge-base --is-ancestor <branch-tip> <target> 或等价吸收证据;briefbound-router 的 references/harness-compat.md);把候选分成四类:
REMOVE_NOW:本轮创建、可重建、删除后不影响行为或证据。CLOSE_AFTER_INTEGRATION:当前 feature branch/worktree 已完成但尚未被 target 吸收。KEEP:源码、用户内容、验收证据、未合并提交、归属不明或仍被依赖。BLOCKED:删除需要 force、远程动作、所有权裁决或路径风险未解除。git clean -fdx、仓库根目录递归删除或宽泛通配符。git clean -ndX 只能用于预览;node_modules、.venv、下载缓存、模型/数据、密钥、用户日志和共享依赖默认保留。.gitignore 来隐藏无法解释的残留;先判断它为何存在。关闭 branch、worktree、claim 或 task-owned runtime 时读取 references/local-resource-closeout.md;禁止 force 删除 dirty worktree。
误路由后无候选时直接返回原 owner,不输出清理报告。有动作时仅汇报:已清理、保留/延后、验证证据,以及有自然闸门时的一个下一步建议;不打印完整文件树、全部分支或命令日志。
只有远程删除、force、dirty/未合并内容、归属冲突或路径不确定时才停下来询问。用户已明确授权的安全本地清理不重复确认。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ccdawn/briefbound-skills) — no native marketplace selected
npx claudepluginhub p/ccdawn-briefbound-skills39 skills in this plugin
/briefbound-adrUse when the user asks to record a settled architecture or technology decision as an ADR(写 ADR、记录决策、技术选型定案存档), or a "why" trail is needed for a chosen design, an old decision must be superseded, or new work conflicts with a prior decision; do not use for options still under discussion, project status snapshots, or README writing./briefbound-ai-research-loopUse when AI/ML research engineering needs baseline reproduction, hypothesis-driven experiments, ablations, evaluation design, findings synthesis, research direction selection, plateau recovery, or a reproducible loop from a paper/repository/research question to evidence-backed results, or coordinating cross-stage research competitions and benchmarks./briefbound-api-contractUse when a change touches an external contract surface - REST/GraphQL endpoints, request/response schemas, DB schema, events, or CLI arguments - and needs design, breaking-change analysis, versioning, or a migration path; do not use for general implementation planning, code review, or feature coding./briefbound-autonomous-collaboration-loopUse when the user explicitly enables an automated same-project multi-thread development loop that keeps peer Codex tasks progressing, recovers conflicts or stale coordination, integrates verified work into local main, and closes cleanup without repeated gates; do not use before opt-in, for one-off coordination, remote publication without permission, or subagent creation./briefbound-bdd-tdd-developmentUse when an already-defined new behavior or high-risk implementation contract needs a failing test before implementation, or the user explicitly requests TDD; diagnosed bugs stay with briefbound-bug-review, while simple or mechanical work uses targeted verification./briefbound-bug-reviewUse when an observed bug, correctness regression, failing test, build failure, abnormal behavior, or unresolved root cause needs Chinese-first diagnosis and bounded repair; obvious local inefficiency found during feature work stays with its owner, while measurable performance work uses briefbound-performance-engineering.