burningportra

Flywheel Cleanup — Git skill for Claude Code

Git community

Clean up orphaned git worktrees from crashed or stopped sessions.

How to install Flywheel Cleanup

Installs to ~/.claude/skills/burningportra-agent-flywheel-plugin-flywheel-cleanup/SKILL.md

Terminal
mkdir -p ~/.claude/skills/burningportra-agent-flywheel-plugin-flywheel-cleanup && curl -fsSL https://raw.githubusercontent.com/burningportra/agent-flywheel-plugin/HEAD/commands/flywheel-cleanup.md -o ~/.claude/skills/burningportra-agent-flywheel-plugin-flywheel-cleanup/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Flywheel Cleanup does


description: Clean up orphaned git worktrees from crashed or stopped sessions. argument-hint: ""

**First action:** Run `git worktree list --porcelain` via Bash and diff the result against `.pi-flywheel/checkpoint.json` to identify orphaned worktrees before prompting the user.

Clean up orphaned git worktrees.

  1. Run git worktree list --porcelain via Bash to list all active worktrees.
  2. Compare against tracked worktrees in .pi-flywheel/checkpoint.json (if any).
  3. Identify orphaned

Alternatives in Git

Full documentation available on GitHub

View Source Repository