From dev-on-leash
Use to cleanly close a session-leash worktree. Refuses on dirty index or unmerged branch unless --keep-branch is passed. Removes the worktree, deletes the session branch (unless kept), and clears the lockfile.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-on-leash:leash-session-endThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You finished the work that prompted `/leash-session-new` and you want
You finished the work that prompted /leash-session-new and you want
the temporary worktree gone. Run this skill before closing the Claude
Code session.
If your session branch's work belongs on a long-lived branch, commit and merge it first (the skill refuses to delete unmerged branches by default).
Run:
python -m scripts.harness.session_end
The script:
--keep-branch)git worktree remove, deletes the session branch (when not
kept), and removes the lockfile--keep-branch — keep the session branch around (useful if you want
to PR it later). The worktree directory is still removed.--force removal. If the script refuses, fix the underlying
issue. git worktree remove --force would silently discard
uncommitted work — out of scope.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub diogeneshfg/dev-on-leash --plugin dev-on-leash