cleanup

Automate Git repository maintenance by pruning stale branches and detecting uncommitted work.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/photon-grove/skills --skill cleanup-photon-grove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/photon-grove/skills/tree/main/skills/cleanup
Command: npx skills add https://github.com/photon-grove/skills --skill cleanup-photon-grove

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists developers and teams in maintaining clean and efficient Git repositories by removing stale branches, checking for uncommitted work, and safeguarding session memories.

Core Features & Use Cases

  • Repository Cleanup: Automates pruning of outdated branches and removes branches no longer tracked remotely.
  • Integrity Checks: Detects uncommitted changes, unpushed commits, and orphaned session files.
  • Use Case: After completing a project milestone, run this Skill to ensure the repository is tidy, with all irrelevant branches deleted and current work safely preserved.

Quick Start

Invoke the cleanup Skill to audit your repository, remove unnecessary branches, and prepare it for the next development cycle.

Frequently Asked Questions about cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Git repository cleanup and prune stale branches?

Automate Git repository cleanup by invoking a process that prunes stale branches and removes branches no longer tracked remotely, improving overall workflow cleanliness and efficiency.

What is the best way to detect uncommitted changes and unpushed commits in Git?

Detect uncommitted changes and unpushed commits in Git by running an integrity check that scans your working directory and local branch history to safeguard work before pruning operations.

Does this Git cleanup workflow safeguard session memories and orphaned files?

Yes, the Git cleanup workflow safeguards session memories by detecting and preserving orphaned session files during the branch pruning and repository maintenance process.

When do I need to run a repository maintenance check for stale branches?

Run a repository maintenance check for stale branches after completing a project milestone to ensure irrelevant branches are deleted and current work is safely preserved for the next development cycle.

Can I remove untracked remote branches in Git without losing uncommitted work?

You can remove untracked remote branches and preserve uncommitted work by running an automated cleanup process that performs integrity checks to detect and safeguard local changes before deleting branches.