用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nirecom/agents --skill sweep-branches命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Edit source code for the current task. Delegates editing and lint/typecheck/self-repair to a subagent.
Plan and write test cases with high reasoning effort. Test iteration runs in a subagent to minimize confirmations.
Conduct a decision-tree interview with the user to lock in requirements, motivation, scope, and non-goals before planning.
基于 SOC 职业分类
正在显示 SKILL.md
| name | sweep-branches |
| description | Reclaim merged-but-undeleted local and remote branches. Deletes by default; --dry-run to preview. |
| user-invocable | true |
| model | sonnet |
| context | fork |
Reclaims merged-but-undeleted local and remote branches. Local branches are
age-gated (default 24 h); remote branches are only PR-merged checked. Protected
branches (main, master, develop, release/*) are never deleted.
SB-1. Resolve $AGENTS_CONFIG_DIR from the environment; abort with a clear error
if unset.
SB-2. Invoke the sweeper script (no flag = deletes; --dry-run = preview):
bash "$AGENTS_CONFIG_DIR/bin/sweep-branches.sh" [--dry-run] [--min-age-hours N] [--ci-mode]
SB-3. Print the script's stdout verbatim. Do not summarize or filter.
Forward the user's flags verbatim. Add no flags of your own.
--dry-run must be explicit to preview only.--delete-no-pr alone deletes no-PR local branches; add --dry-run to preview.gh api -X DELETE (REST API); local branches use git branch -D with SWEEP_BRANCHES_SKILL=1 guard.--min-age-hours.main, master, develop, release/* are never deleted.origin/<branch>) persist until git fetch --prune.