Claude Code mod
close-worktree
After a PR is opened from a git worktree, tells Claude if the worktree can be closed (clean and pushed) or what is still not saved.
Install
git clone https://github.com/hernandezsanti/claude-code-mods.git
claude --plugin-dir ./claude-code-mods/close-worktreeThe repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L2Writes or runs: runs processes, reads env vars, draws
- Sees
- Bash calls
- Hooks
tool.call
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- hernandezsanti/claude-code-mods
- Folder
close-worktree- Author
- Santiago Hernández
- License
- MIT
- Last updated
- 11 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is close-worktree?
After a PR is opened from a git worktree, tells Claude if the worktree can be closed (clean and pushed) or what is still not saved. It is a mod for Claude Code, from hernandezsanti/claude-code-mods on GitHub.
What can the close-worktree mod access?
Its widest reach is "writes or runs" (runs processes, reads env vars, draws). It sees Bash calls. Like any mod, it runs with your permissions.
How do I install close-worktree?
Clone hernandezsanti/claude-code-mods and start Claude Code with --plugin-dir pointing at the mod's folder (close-worktree).
More git & github mods
standup
2ShriD5/claude-mods
/standup writes yesterday's standup (since Friday on Mondays) from your git commits and copies it
cockpit
Joseph-Ayoub/claude-mods
One band above the prompt: quick replies, branch/PR/CI standing, decision cards, waiting-on-you items, standing-rule capture and a Hand off chip at natural breaks.
worktrees
1aseem-upadhyay/qol-mods
Every git worktree of the repo in a pane: how stale each is, how much disk it takes, which ones a Claude session is using, and a button to remove the ones you're done with
danger-check
achapla/cc-mods
Asks you before a command that can destroy work, such as rm -rf, git reset --hard or git push --force.
install-preflight
1StartupBros-com/hov-marketplace
/preflight <folder | owner/repo | git url> shows, in plain language, what a plugin or mod can do before you install it, with the raw hooks: and calls: lines as the authority.
gatekeeper
davidcoulson/crab-workshop
Your open PRs and what each waits on (/gates): the template boxes only you can tick, CodeRabbit threads and change requests, Codecov, CI, conflicts and drafts ready for you, sorted so what needs you comes first. A band above the prompt counts them; Claude can ask through the gates tool.
Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.