Agent skill

clean-worktrees

Clean git worktrees created by git-worktree-runner

dyoshikawa1,265★ · +16/wk · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add dyoshikawa/rulesync --skill clean-worktrees --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 0 KB
Bundled scripts: none
Path: .rulesync/skills/clean-worktrees/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,285 · +20 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

1. Run `git gtr list` to list all worktrees. 2. For each worktree branch that is NOT the default branch (e.g. main), run `git gtr rm --force {branch}` to remove it. 3. Run `git pull --prune` to fetch latest changes and prune deleted remote branches.

More from rulesync
All skills →
About this skill
What does the clean-worktrees skill do?

Clean git worktrees created by git-worktree-runner

How do I install it?

Run `npx skills add dyoshikawa/rulesync --skill clean-worktrees --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dyoshikawa/rulesync, a repository with 1,285 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going