jongio/skills

← All skills

git-tidy illustration

git-tidy

Audit Git work and aim for a clean local default branch with zero stashes.

Use when: When Git work needs cleanup without risking unique changes or relying on age and names as deletion proof.

Source & README

Install

Install the namespaced plugin globally across your coding agents (keeps /jongio-skills:git-tidy conflict-free and includes sibling skills), or install just git-tidy into a project.

Recommended · Global pluginInstall all skills & statuslines (namespaced)

One-liner across detected CLIs (Copilot, Claude, Codex & Gemini):

irm https://raw.githubusercontent.com/jongio/skills/main/install.ps1 | iex
curl -fsSL https://raw.githubusercontent.com/jongio/skills/main/install.sh | bash

Or inside Copilot CLI / Claude Code:

/plugin marketplace add jongio/skills
/plugin install jongio-skills@jongio-skills

In Codex CLI or Gemini CLI:

codex plugin marketplace add jongio/skills && codex plugin add jongio-skills
gemini extensions install https://github.com/jongio/skills --consent
This skill onlyInstall just git-tidy

Project scope via Skills CLI (avoids global ~/.agents/skills plugin shadowing):

npx skills add jongio/skills --skill git-tidy

Or single-skill plugin in Copilot CLI:

/plugin marketplace add jongio/skills
/plugin install git-tidy@jongio-skills

In Copilot CLI, use /skills reload for newly installed skills. Start a new session if you installed the collection's statusline extensions.

What It Does

git-tidy audits the whole repository and shows the evidence for each proposed removal. It aims to leave the primary checkout clean on the verified default branch, with that branch as the sole local branch and zero stashes. One confirmation covers the listed actions, including stale origin tracking refs. Recovery backups are verified before removal.

The audit covers remote refs, tags, ignored tracking, artifacts, large blobs, and maintenance. The final summary lists removals, retained work, and blockers. Active work and operational checkouts are preserved. Changing live remote branches requires an explicit request.

Use --dry-run for a preview, --depth metadata for inventory, or --depth review for a bounded content review. Proof requires Node.js 22 or newer.

Use It

git-tidy
git-tidy branches --depth proof
git-tidy worktrees --depth metadata
git-tidy stashes --depth review
git-tidy tags
git-tidy artifacts
git-tidy blobs
git-tidy maintenance
git-tidy --dry-run