用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nirecom/agents --skill sweep命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | sweep |
| description | Periodic maintenance sweep hub. Dispatches to /sweep-worktrees, /sweep-branches, /sweep-plans, /sweep-tests, /sweep-issues. |
| user-invocable | true |
| model | sonnet |
Hub skill for periodic maintenance sweeps. Dispatches to one or more sub-skills
that each reclaim a specific class of residual state. A flagless run applies
(deletes); pass --dry-run to preview without writing.
SW-1. Invoke /sweep-worktrees (deletes by default; pass --dry-run to preview).
SW-2. Invoke /sweep-branches (deletes by default; pass --dry-run to preview).
Capture stdout for post-processing (SW-2b/SW-2c).
SW-2b. Parse sweep-branches stdout for WORKTREE-LOCKED lines.
Each WORKTREE-LOCKED: branch=X wt=<path> line triggers:
git -C "$MAIN_ROOT" worktree remove --force "<path>" 2>/dev/null || true
This step lives in the hub (not sweep-branches.sh) because the hub has
worktree-remove authority; sweep-branches.sh does not.
SW-2c. After worktree removal, retry git branch -D for each WORKTREE-LOCKED
branch using the branch=X field. SW-2b removes the worktree block, so the
cascade rule no longer prevents deletion. Failures are ignored (reclaimed
next cycle).
SW-3. Invoke /sweep-plans (deletes by default; pass --dry-run to preview).
SW-4. Invoke /sweep-tests (deletes by default; --dry-run and --fix-headers are forwarded when passed).
SW-5. Invoke /sweep-issues (tier-1 meta-parent closes apply by default; --dry-run previews).
Tier-2 candidates are human-gated and only surface under --deep.
SW-6. Future sub-skills to be added in subsequent PRs:
/sweep-wip — stale WIP fingerprints/sweep-logs — old terminal logs / temp filesForward --dry-run (and any other flags) to each invoked sub-skill verbatim.
--dry-run to preview. --apply remains accepted as an explicit synonym of the default..github/workflows/sweep.yml) and manual /sweep use this hub./sweep on the developer's machine, since CI runners do not
see local worktrees.--force — none of the sub-skills accept it by design.--deep automatically for /sweep-issues; it is for human sessions only, so cron and hub runs never stop at a tier-2 gate.