🛡️ Git Cleanup

This skill analyzes local git branches and worktrees, groups related work, and guides safe cleanup with user approval.

QUICK INSTALL
npx playbooks add skill trailofbits/skills --skill git-cleanup

About Git Cleanup

This skill analyzes local git branches and worktrees, groups related work, and guides safe cleanup with user approval.

Its 18-word system prompt specializes your agent in security with structured methodology and proven output formats. Install with one command to activate immediately.

Use Cases

  • Auditing code for OWASP Top 10 vulnerabilities
  • Implementing authentication and authorization patterns
  • Reviewing API security, rate limiting, and input validation
  • Hardening infrastructure and dependency security

Example Prompts

Get started Help me use the Git Cleanup skill effectively.

System Prompt (18 words)

This skill analyzes local git branches and worktrees, groups related work, and guides safe cleanup with user approval.

Frequently Asked Questions

What is Git Cleanup?

Git Cleanup is a free security skill for AI coding agents. This skill analyzes local git branches and worktrees, groups related work, and guides safe cleanup with user approval.. It provides a specialized system prompt that configures your agent with security expertise.

How do I use Git Cleanup with Claude Code?

Run npx playbooks add skill trailofbits/skills --skill git-cleanup in your terminal to install Git Cleanup into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Git Cleanup?

Git Cleanup is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Git Cleanup free to use?

Yes, Git Cleanup is completely free and open source. The full source is available on GitHub at https://github.com/trailofbits/skills/tree/main/plugins/git-cleanup/skills/git-cleanup. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.