From geepers-mcp
Repository hygiene agent for git cleanup, branch maintenance, and artifact concealment.
npx claudepluginhub lukeslp/geepers-mcp --plugin geepers-mcpThis skill uses the workspace's default tool permissions.
**Purpose**: Unified repository maintenance agent ensuring git best practices, code cleanup, and comprehensive AI tool artifact concealment.
Enforces trunk-based Git workflows with atomic commits, descriptive messages, and short-lived branches. Use for code changes, committing, branching, resolving conflicts, and organizing parallel work streams.
Automates Git repository analysis, branching strategy detection, semantic commit impact analysis, and workflows for commits, branches, and releases.
Safely cleans repositories of dead code, build artifacts, unused dependencies, outdated docs, stale tests, and sprint archives using workflows with validation, backups, and reporting templates.
Share bugs, ideas, or general feedback.
Purpose: Unified repository maintenance agent ensuring git best practices, code cleanup, and comprehensive AI tool artifact concealment.
Consolidates:
repo-maintenance-crew (git hygiene, commits, branches)repo-cleanup-organizer (file cleanup, organization)New Capability: AI coding assistant artifact detection and .gitignore enforcement
Use this agent for:
15+ AI Coding Assistants:
Generic Patterns:
Use the git-hygiene-guardian agent to perform end-of-session maintenance:
- Check for uncommitted changes
- Review and commit pending work
- Clean up temporary files
- Audit AI tool artifacts
Use the git-hygiene-guardian agent to audit all project .gitignore files
for comprehensive AI tool coverage. Report missing patterns and offer to
update with user approval.
Use the git-hygiene-guardian agent to identify and clean up merged and
stale git branches across the repository.
Use the git-hygiene-guardian agent for a complete repository health check:
git status, branch state, AI artifact exposure, file organization, and
recommended improvements.
git status to check uncommitted changes/home/coolhand/.ai-tools-gitignore-templategit ls-files | grep -E "\.claude|\.cursor|\.aider"git rm --cached <file>╔══════════════════════════════════════════════════════════════╗
║ GIT HYGIENE GUARDIAN - REPOSITORY AUDIT ║
╚══════════════════════════════════════════════════════════════╝
[1/6] Repository State Assessment
├─ Uncommitted changes: 3 files
├─ Untracked files: 7 files
├─ Stale branches: 2 branches (merged >30 days ago)
└─ Status: ⚠️ Requires attention
[2/6] AI Artifact Audit
├─ Projects scanned: 52
├─ Global template: v2025.11.20 (15 AI tools covered)
├─ Missing patterns: 127 across 43 projects
└─ Tracked AI artifacts: 3 files ⚠️
[3/6] Critical Issues
┌────────────────────────────────────────────────────────────┐
│ ⚠️ TRACKED AI ARTIFACTS DETECTED │
├────────────────────────────────────────────────────────────┤
│ • projects/wordblocks/.aider.log (34 KB) │
│ └─ Contains AI coding session history │
│ • html/storyblocks/.cursor/settings.json (2 KB) │
│ └─ Contains Cursor AI preferences │
│ • shared/.claude/history.jsonl (18 KB) │
│ └─ Contains Claude Code conversation history │
└────────────────────────────────────────────────────────────┘
[4/6] Recommended Actions
HIGH PRIORITY (security/privacy):
┌─ Remove tracked AI artifacts from git
│ └─ Command: git rm --cached <files>
└─ Add missing patterns to 43 project .gitignores
MEDIUM PRIORITY (cleanup):
┌─ Commit 3 uncommitted files
├─ Clean 7 untracked temporary files
└─ Remove 2 stale branches
LOW PRIORITY (organization):
└─ Review 12 orphaned files for archival
[5/6] Pattern Coverage Report
Top 5 Missing Patterns:
• .aider/ - Missing in 38 projects
• .continue/ - Missing in 35 projects
• .tabnine/ - Missing in 34 projects
• .github/copilot/ - Missing in 32 projects
• .codeium/ - Missing in 30 projects
Projects with Full Coverage: 9/52 (17%)
Target: 100%
[6/6] Recommended Command
Would you like me to:
[A] Apply all recommended changes (with confirmation)
[H] Apply high-priority changes only
[D] Dry-run mode (show changes without applying)
[S] Skip this audit
[Q] Quit
Your choice:
# Add to crontab or systemd timer
# Weekly audit on Sunday at 2 AM
0 2 * * 0 cd /home/coolhand && claude run git-hygiene-guardian
# .git/hooks/pre-commit
#!/bin/bash
# Quick AI artifact check before commit
if git diff --cached --name-only | grep -qE "\.claude|\.cursor|\.aider"; then
echo "⚠️ AI tool artifacts detected in commit!"
echo "Run: git-hygiene-guardian for cleanup"
exit 1
fi
# .github/workflows/hygiene-check.yml
name: Git Hygiene Check
on: [pull_request]
jobs:
hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for AI artifacts
run: |
if git ls-files | grep -qE "\.claude|\.cursor|\.aider"; then
echo "❌ AI tool artifacts found in PR"
exit 1
fi
Agent behavior can be customized via environment variables:
# Audit frequency
GIT_HYGIENE_AUTO_AUDIT=weekly # weekly, daily, monthly, manual
# Pattern enforcement
GIT_HYGIENE_AUTO_FIX=ask # ask, yes, no, dry-run
# Coverage target
GIT_HYGIENE_MIN_COVERAGE=90 # Minimum % of projects with full coverage
# Notification
GIT_HYGIENE_NOTIFY=true # Send notifications for issues
# Template location
GIT_HYGIENE_TEMPLATE=/home/coolhand/.ai-tools-gitignore-template
# AI Tools (v2025.11.20)--force-update flag# AI Tools (v2025.11.20)
# Project-specific: Include Copilot suggestions for this open-source project
# .github/copilot/ # INTENTIONALLY TRACKED
--path /projects--filter "html/*/"--exclude "html/games/""Pattern already exists": Agent detected pattern present, no action needed "Permission denied": Need write access to .gitignore file "Merge conflict": .gitignore modified externally, manual merge required "Pattern too broad": Review template, consider project-specific exclusions
If you previously used:
Old agents will redirect to this agent with a deprecation notice for 1 month.
After running this agent, you should have:
Agent Version: 1.0 Last Updated: 2025-11-20 Maintainer: Repository owner Feedback: Report issues to repository maintainer