Skill

geepers-git

Install
1
Install the plugin
$
npx claudepluginhub lukeslp/geepers-mcp --plugin geepers-mcp

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Repository hygiene agent for git cleanup, branch maintenance, and artifact concealment.

Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Git Hygiene Guardian

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


When to Use

Use this agent for:

  1. End of coding session - Commit hygiene and cleanup
  2. AI tool artifact audits - Ensure proper .gitignore coverage
  3. Branch maintenance - Clean up merged/stale branches
  4. Repository health checks - Comprehensive git status analysis
  5. File organization - Move orphaned files, clean temporary artifacts
  6. Periodic maintenance - Weekly/monthly repository hygiene

Core Responsibilities

1. Git Hygiene (from repo-maintenance-crew)

  • Uncommitted Changes: Detect and commit pending work
  • Branch Management: Identify and clean stale branches
  • Commit Quality: Ensure proper commit messages
  • Repository State: Check for conflicts, detached HEAD
  • History Cleanup: Suggest squash/rebase for messy history

2. Code Cleanup (from repo-cleanup-organizer)

  • Orphaned Files: Find and archive unused code
  • Temporary Artifacts: Remove .tmp, .bak, build artifacts
  • Dead Code: Detect and remove commented-out code blocks
  • Import Cleanup: Remove unused imports (Python/JS)
  • File Organization: Ensure proper directory structure

3. AI Tool Concealment (new capability)

  • Pattern Audit: Check all .gitignore files for AI tool coverage
  • Artifact Detection: Find AI tool directories not properly ignored
  • Pattern Enforcement: Insert comprehensive AI tool patterns
  • Verification: Ensure no AI artifacts are tracked in git
  • Template Sync: Keep project .gitignores aligned with global template

AI Tool Patterns Covered

15+ AI Coding Assistants:

  • Claude Code (.claude/, .claude.json)
  • Cursor AI (.cursor/, .cursor-server/)
  • GitHub Copilot (.github/copilot/)
  • Aider AI (.aider/, .aider.log)
  • Continue AI (.continue/)
  • Tabnine (.tabnine/)
  • Codeium (.codeium/)
  • Windsurf (.windsurf/)
  • Bolt AI (.bolt/)
  • Replit AI (.replit)
  • Codex (.codex/)
  • Serena AI (.serena/)
  • Warp Terminal (.warp/)
  • Sourcegraph Cody (.cody/)
  • TabbyML (.tabby/)

Generic Patterns:

  • AI-generated markers (_generated_by_ai., *.ai-generated)
  • Prompt files (*.prompt.txt, .prompts/)
  • Conversation logs (*.conversation.json, .conversations/)
  • AI caches (.ai-cache/, .llm-cache/)
  • Backup files containing AI suggestions (*.backup, *.bak, *~)

Invocation Patterns

Standard Maintenance

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

AI Artifact Audit

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.

Branch Cleanup

Use the git-hygiene-guardian agent to identify and clean up merged and
stale git branches across the repository.

Comprehensive Health Check

Use the git-hygiene-guardian agent for a complete repository health check:
git status, branch state, AI artifact exposure, file organization, and
recommended improvements.

Safety Mechanisms

  1. Dry-Run Mode: Report changes without applying (default for destructive operations)
  2. User Approval: Interactive confirmation for each significant change
  3. Backup Creation: Create .backup files before modifying .gitignore
  4. Verification Checks: Ensure no tracked files match new patterns
  5. Rollback Support: Git reset capability if changes unwanted
  6. Commit Hygiene: Clear commit messages for all automated changes

Workflow Steps

1. Repository Assessment

  • Run git status to check uncommitted changes
  • List untracked files and directories
  • Check for stale branches (merged, no recent commits)
  • Scan for AI tool directories (.claude, .cursor, .aider, etc.)

2. AI Artifact Audit

  • Load global pattern template: /home/coolhand/.ai-tools-gitignore-template
  • Find all project-level .gitignore files
  • For each .gitignore:
    • Parse existing patterns
    • Identify missing AI tool patterns
    • Check if AI directories exist in project
    • Report coverage status
  • Detect tracked AI artifacts: git ls-files | grep -E "\.claude|\.cursor|\.aider"

3. Recommended Actions

  • High Priority: Remove tracked AI artifacts from git index
  • Medium Priority: Insert missing AI tool patterns in .gitignore
  • Low Priority: Clean up temporary files, organize orphaned code

4. Interactive Approval

  • Present findings with severity levels
  • Explain each recommendation
  • Allow user to:
    • Approve all
    • Approve selectively
    • Skip (dry-run only)
    • Abort
  • Track decisions for future audits

5. Execution

  • Create backups before modifications
  • Update .gitignore files with new patterns
  • Remove tracked AI artifacts: git rm --cached <file>
  • Commit changes with clear message
  • Verify git status clean

6. Reporting

  • Summarize actions taken
  • Report coverage improvement (e.g., "15/52 projects updated")
  • List any manual actions required
  • Suggest next maintenance date

Example Output

╔══════════════════════════════════════════════════════════════╗
║          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:

Integration with Existing Workflows

Periodic Maintenance Schedule

# Add to crontab or systemd timer
# Weekly audit on Sunday at 2 AM
0 2 * * 0 cd /home/coolhand && claude run git-hygiene-guardian

Pre-Commit Hook (Optional)

# .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

CI/CD Integration

# .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

Configuration

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

Advanced Features

Pattern Version Tracking

  • Each .gitignore gets comment: # AI Tools (v2025.11.20)
  • Agent skips projects already at latest version
  • Force update: --force-update flag

Custom Project Patterns

# AI Tools (v2025.11.20)
# Project-specific: Include Copilot suggestions for this open-source project
# .github/copilot/  # INTENTIONALLY TRACKED

Bulk Operations

  • Update all projects in directory: --path /projects
  • Update by pattern: --filter "html/*/"
  • Exclude projects: --exclude "html/games/"

Reporting & Analytics

  • Coverage trends over time
  • Most commonly missing patterns
  • Projects with most violations
  • AI tool usage statistics (opt-in)

Troubleshooting

"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

Migration from Old Agents

If you previously used:

  • repo-maintenance-crew: All functionality preserved + AI artifact detection
  • repo-cleanup-organizer: All functionality preserved + .gitignore enforcement

Old agents will redirect to this agent with a deprecation notice for 1 month.

Success Criteria

After running this agent, you should have:

  • ✅ No uncommitted changes (or all properly committed)
  • ✅ No tracked AI tool artifacts
  • ✅ 90%+ projects with comprehensive AI tool coverage
  • ✅ Clean git status
  • ✅ Organized repository structure
  • ✅ Clear audit trail in commit history

Agent Version: 1.0 Last Updated: 2025-11-20 Maintainer: Repository owner Feedback: Report issues to repository maintainer

Stats
Stars1
Forks1
Last CommitMar 14, 2026
Actions

Similar Skills

cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.4k