cleanup

Analyze unstaged and untracked files and execute deletions after user approval.

1|Updated Dec 17, 2016
One-click install
npx skills add https://github.com/vm-wylbur/pb-dotfiles --skill cleanup-vm-wylbur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/vm-wylbur/pb-dotfiles/tree/main/ai/claude-code/skills/cleanup
Command: npx skills add https://github.com/vm-wylbur/pb-dotfiles --skill cleanup-vm-wylbur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates repository cleanup with evidence-based decisions to remove unnecessary files, deduplicate content, and organize history, saving time and reducing clutter.

Core Features & Use Cases

  • Evidence-based cleanup: Analyzes unstaged and untracked files and surfaces actionable deletions with justification.
  • Deduplication: Identifies duplicate files and suggests merge/keep/delete options with memory context when available.
  • Completed work memory: Stores decisions and produces a clean history for audit and knowledge retention.

Quick Start

Run the cleanup command to analyze unstaged and untracked files in the current repository and begin the interactive cleanup workflow.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I remove unstaged and untracked files from my Git repository?

Repository cleanup automates the removal of unstaged and untracked files by analyzing your local repo, surfacing actionable deletions with justification, and executing only after your explicit approval. This prevents accidental data loss while decluttering your workspace.

What's the best way to find and remove duplicate files in a repository?

Cleanup identifies duplicate files across your repo and suggests merge, keep, or delete options with memory context from previous decisions. You review each suggestion and approve deletions, maintaining a complete audit trail of what was removed.

Can I automate repository cleanup with a record of what was deleted?

Yes. Cleanup stores all decisions and completed actions under docs/completed/, creating an auditable history of deletions and deduplication. This preserves knowledge of what was cleaned and why for future reference.

How do I handle scattered markdown documentation during repository cleanup?

Cleanup supports /ingest-docs to organize Markdown files as part of the interactive workflow. Files are analyzed, categorized with evidence, and you decide whether to keep, consolidate, or remove them before any changes are made.

Does repository cleanup work with existing Git workflows?

Cleanup applies to local development repositories with unstaged, untracked, and duplicate files. It integrates into your workflow by analyzing the current state, presenting evidence-based recommendations, and executing only after you approve each action.