AGENT SKILL

node.reap_worktrees

Finished git worktrees, removed safely: only when the commits are on the default branch or the PR merged, nothing is uncommitted or untracked, no process is inside, it is not locked, no editable install points into it and its last git activity is old enough. Ignored state beyond regenerable caches is archived (tar.gz plus manifest) before removal, and a failed archive blocks removal. Branches are always kept. Plans by default and says why each other worktree was skipped; apply=true removes up to a batch.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 2
Forks
0

01 前言 Front Matter

name
node.reap_worktrees
inputs
[ { "name": "root", "type": "workspace directory to sweep (defaults to the configured roots, else the current directory)" }, { "name": "apply", "type": "remove what the plan lists, up to the batch size (default: plan only)" }, { "name": "min_age_hours", "type": "least hours since last git activity (default 24)" }, { "name": "batch", "type": "most worktrees removed per run (default 5)" }, { "name": "retention_days", "type": "days an archive is kept (default 30)" } ]
outputs
[ { "kind": "SkillResult" } ]
version
0.1.0
generator
axi-skills-emit-md
description
Finished git worktrees, removed safely: only when the commits are on the default branch or the PR merged, nothing is uncommitted or untracked, no process is inside, it is not locked, no editable install points into it and its last git activity is old enough. Ignored state beyond regenerable caches is archived (tar.gz plus manifest) before removal, and a failed archive blocks removal. Branches are always kept. Plans by default and says why each other worktree was skipped; apply=true removes up to a batch.
allowed-tools
[]

03 SKILL.md 正文

Skill node.reap_worktrees — see registration in the providing extension's skills/__init__.py. This SKILL.md is generated by axi skills emit-md (ADR-063); edit the Python SkillSpec to change it.

04 同仓库更多 Skills