.fleet/context/skills/repo-cleanup/SKILL.md
--- title: Repository Cleanup and Git Hygiene tags: [git, cleanup, maintenance, hygiene] author: OpenCode created: 2024-12-30 --- # Repository Cleanup and Git Hygiene ## Context **When to use this skill:** - Repository has accumulated unused directories from various AI tools - Files are tracked despite being in `.gitignore` (committed before rule was added) - GitHub Agentic Workflows logs are taking up disk space - Need to clean up before a release **Why this matters:** - Keeps repository
npx skillsauth add qredence/agentic-fleet .fleet/context/skills/repo-cleanupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When to use this skill:
.gitignore (committed before rule was added)Why this matters:
# Check what's in .gitignore but still present locally
git ls-files --others --ignored --exclude-standard | head -50
# Check which directories are gitignored
git check-ignore .data .factory .junie .kilocode .letta .skills .idea report/
# Find directories with sizes
du -sh */ .*/ 2>/dev/null | sort -hr | head -20
If files were committed before being added to .gitignore:
# Untrack but keep locally
git rm --cached -r <path>
# Example: untrack .skills/ directory
git rm --cached -r .skills/
This removes from git tracking but preserves local files.
The .github/aw/logs/ directory accumulates run logs. Best practice .gitignore:
# .github/aw/logs/.gitignore
*
!.gitignore
Clean up run directories:
# Check size
du -sh .github/aw/logs/
# Delete run directories (preserves .gitignore)
rm -rf .github/aw/logs/run-*
Common AI tool directories that can be safely deleted:
# All are typically gitignored
rm -rf .junie/ # JetBrains AI
rm -rf .idea/ # JetBrains IDE settings
rm -rf .kilocode/ # Kilocode AI tool
rm -rf .factory/ # Factory AI tool
rm -rf .data/ # Legacy cache (use .var/ instead)
rm -rf report/ # Generated jscpd reports
Check before deleting:
.letta/ - May contain memory tool config.factory/ - May contain skills you want to keep# Verify directories removed
ls -d .junie .idea .kilocode 2>&1 # Should show "No such file"
# Check git status
git status --short
# Check disk space recovered
du -sh .
Problem: git rm --cached shows files as "deleted" in status
Problem: Can't delete directory - permission denied
Problem: Accidentally deleted files you needed
git checkout HEAD -- <path>Internal:
.fleet/context/blocks/project/gotchas.md - Git hygiene section.gitignore - Project ignore patternsExternal:
rm -rf.skills/, .factory/) should stay gitignoredLast Updated: 2024-12-30 Status: Active
tools
Analyze the current session and consolidate learnings. Use at the end of a session or task.
devops
Semantic search for memory. Use to find solutions, patterns, or context from Chroma Cloud.
documentation
Ingest new procedural memory (skills, patterns, docs) into the vector database.
testing
Initialize or hydrate the agent's memory system and verify configuration.