Skip to main content

worktree-reset

Reset a git worktree slot for its next task after its branch's work merged - fresh numbered branch at the default branch, cowork lanes reset, ignored files and chief state kept. Use when the user asks to reset, clean up or recycle a worktree for another session.

Source facts

Repository
hathach/agentrc
Last source activity
October 1, 2026 at 06:09
Detected SKILL.md language
English
Stars
1
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
2 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
worktree-reset
description
Reset a git worktree slot for its next task after its branch's work merged - fresh numbered branch at the default branch, cowork lanes reset, ignored files and chief state kept. Use when the user asks to reset, clean up or recycle a worktree for another session.
# Resetting a worktree `scripts/worktree_reset.py` does the reset; its docstring has every check, step and exit code. ```bash python3 ~/.claude/skills/worktree-reset/scripts/worktree_reset.py [--dry-run] [--pending "<item>"]... [--proceed] ``` - Pass each follow-up of this task, including a headless chief report's, that is neither done nor filed as an issue under the repository's follow-up convention as `--pending`. - Exit 4: show its list and ask the human; rerun with `--proceed` only on their yes; headless, report needs-user. A yes allows the reset, not filing issues. - Exit 3 or 5: report the message; never work around a refusal.
View on GitHub