repo-sweep
Skill41 starsChanged 12 months agoMITView on GitHub
Comprehensive pre-production repository audit for preparing repos for public release. Use when the user wants to perform a "final sweep", "production check", "pre-release audit", or prepare a repository to be made public. Audits metadata files across all project types (Fabric mods, Node/npm, Go, Python, etc.) for correct username/organization, checks README links, and identifies leftover development artifacts like planning docs, test scripts, and temporary files. Interactive cleanup with user confirmation.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- mcp-publishSkill
- readme-generatorSkill
- minecraft-devSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 16 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Start by understanding the repository structure and project type(s):
- Very specific: line 23
Fabric Minecraft mod: Look for fabric.mod.json, gradle.properties
- Very specific: line 24
Node/npm: Look for package.json, package-lock.json
- Very specific: line 25
Go: Look for go.mod, go.sum
- Very specific: line 26
Python: Look for pyproject.toml, setup.py, requirements.txt, uv.lock
- Distinctive: line 27
Other: Check for project-specific metadata files
- Very specific: line 71
Critical: Check for package-lock.json:
- Very specific: line 79
Not in .gitignore (should be committed)
- Very specific: line 80
If missing or ignored, warn user that GitHub Actions will fail with npm ci
- Very specific: line 94
Check pyproject.toml or setup.py:
- Distinctive: line 108
Check README and other documentation for outdated links:
- Distinctive: line 115
Look for and update:
- Distinctive: line 128
Look for markdown files typically generated during development:
- Very specific: line 134
Keep in repo (in a docs/ or dev-docs/ folder)
- Distinctive: line 136
Keep for now (user will handle manually)
- Distinctive: line 140
Look for standalone test scripts and temporary files in the root:
- Distinctive: line 156
Check for build artifacts that shouldn't be in the repo:
- Very specific: line 165
Action: Verify these are properly ignored.
- Distinctive: line 169
Check for proper GitHub configuration:
- Distinctive: line 180
Verify any hardcoded URLs or usernames in these files.
- Distinctive: line 182
Workflow Trigger Audit: Check each workflow file for proper path filtering to prevent unnecessary runs:
- Distinctive: line 232
After completing all checks, provide a structured summary:
- Very specific: line 246
Ask user for preferences (keep/delete/move for dev artifacts)
- Distinctive: line 252
Always ask before deleting: Never delete files without explicit user confirmation
- Distinctive: line 253
Be thorough but focused: Check all metadata files but don't get lost in non-metadata code files
- Distinctive: line 256
Username is case-sensitive: Use "GhostTypes" exactly (capital G and T)
- Distinctive: line 257
Preserve functionality: Only suggest removing files that are clearly development artifacts, not files that might be part of the project's …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo Sweep
Perform a comprehensive pre-production audit of a repository before making it public. This skill systematically checks metadata files, documentation, and development artifacts to ensure the repo is production-ready.
Workflow
1. Initial Repository Scan
Start by understanding the repository structure and project type(s):
# Get repository overview
ls -la
find . -type f -name "*.json" -o -name "*.toml" -o -name "*.mod" -o -name "go.mod" | head -20Identify all project types present (can be multiple in monorepos):
- Fabric Minecraft mod: Look for
fabric.mod.json,gradle.properties - Node/npm: Look for
package.json,package-lock.json - Go: Look for
go.mod,go.sum - Python: Look for
pyproject.toml,setup.py,requirements.txt,uv.lock - Other: Check for project-specific metadata files
2. Metadata Audit
For each project type found, audit metadata files for correctness. The expected username is GhostTypes and organization names should be verified with the user.
Fabric Minecraft Mods
Check fabric.mod.json:
cat fabric.mod.jsonVerify:
"authors": Should include "GhostTypes""contact": URLs should use correct GitHub username"sources": Should point to correct repository URL"homepage": Should use correct username/org"issues": Should point to correct repository issues
Check gradle.properties:
cat gradle.propertiesVerify:
maven_group: Should use correct organization (e.g.,io.github.ghosttypes)- Any URLs or author fields
Node/npm Projects
Check package.json:
cat package.jsonVerify:
"name": Should follow correct naming convention with org scope if applicable"author": Should be "GhostTypes" or include correct details"repository": URL should use correct GitHub username"bugs": URL should point to correct repository"homepage": Should use correct username/org- Any other URL fields
Critical: Check for package-lock.json:
ls -la package-lock.json
git check-ignore package-lock.jsonVerify:
package-lock.jsonexists (required fornpm ciin CI/CD)- Not in
.gitignore(should be committed) - If missing or ignored, warn user that GitHub Actions will fail with
npm ci
Go Projects
Check go.mod:
cat go.modVerify:
modulepath: Should use correct GitHub username (e.g.,github.com/GhostTypes/project-name)
Python Projects
Check pyproject.toml or setup.py:
cat pyproject.toml 2>/dev/null || cat setup.py 2>/dev/nullVerify:
authors/author: Should be "GhostTypes"homepage/urls: Should use correct GitHub usernamerepository: Should point to correct repo URL
For UV projects: Also check the [tool.uv] section if present and any [project.urls] entries.
3. README and Documentation Audit
Check README and other documentation for outdated links:
cat README.md
find . -name "*.md" -type f | grep -v node_modules | head -10Look for and update:
- GitHub repository links (should use GhostTypes or correct org)
- GitHub badge URLs (shields.io badges, workflow badges, etc.)
- Any references to old usernames or placeholder names
- Documentation links that should point to the correct repo
- Installation instructions that reference the repo
4. Development Artifacts Scan
Scan for leftover development files that may not be needed in production:
Development Planning/Tracking Files
Look for markdown files typically generated during development:
find . -type f \( -name "*plan*.md" -o -name "*todo*.md" -o -name "*roadmap*.md" -o -name "*implementation*.md" -o -name "*spec*.md" -o -name "*design*.md" -o -name "*notes*.md" -o -name "*blueprint*.md" -o -name "*tracker*.md" -o -name "*bugs*.md" -o -name "*features*.md" \) | grep -v node_modules | grep -v .gitAction: Present findings to user and ask what to do with each file:
- Keep in repo (in a
docs/ordev-docs/folder) - Delete
- Keep for now (user will handle manually)
Test Scripts and Temporary Files
Look for standalone test scripts and temporary files in the root:
# Test scripts
find . -maxdepth 2 -type f \( -name "test*.js" -o -name "test*.py" -o -name "test*.go" -o -name "*_test_*.py" -o -name "debug*.js" -o -name "scratch*.py" \) | grep -v node_modules | grep -v __tests__ | grep -v tests/
# Log files
find . -type f \( -name "*.log" -o -name "*.log.*" \) | grep -v node_modules | head -20
# Temporary files
find . -maxdepth 2 -type f \( -name "*.tmp" -o -name "*.temp" -o -name "temp_*" -o -name "tmp_*" \) | grep -v node_modulesAction: Present findings to user and recommend deletion unless they serve a specific purpose.
Build Artifacts and Cache Files
Check for build artifacts that shouldn't be in the repo:
# Common build/cache directories (should be in .gitignore)
ls -la | grep -E "(dist|build|out|target|__pycache__|.cache|.next|.nuxt)"
# Check .gitignore exists and is comprehensive
cat .gitignore 2>/dev/nullAction: Verify these are properly ignored. If not, recommend adding to .gitignore.
5. GitHub-Specific Files
Check for proper GitHub configuration:
# Check for GitHub Actions workflows
ls -la .github/workflows/ 2>/dev/null
# Check for issue/PR templates
ls -la .github/ISSUE_TEMPLATE/ 2>/dev/null
ls -la .github/PULL_REQUEST_TEMPLATE.md 2>/dev/nullVerify any hardcoded URLs or usernames in these files.
Workflow Trigger Audit: Check each workflow file for proper path filtering to prevent unnecessary runs:
# List all workflows
find .github/workflows -name "*.yml" -o -name "*.yaml"For each workflow, verify triggers are configured appropriately:
Bad (triggers on ANY file change):
on:
push:
branches: [ main ]
pull_request:Good (triggers only on relevant changes):
on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/ci.yml'
pull_request:
paths:
- 'src/**'
- 'package.json'
- 'package-lock.json'Common path patterns by project type:
- Node/npm:
src/**,*.js,*.ts,package.json,package-lock.json - Python:
src/**,*.py,pyproject.toml,requirements.txt,uv.lock - Go:
**/*.go,go.mod,go.sum - Fabric mods:
src/**,*.java,gradle.properties,fabric.mod.json
Files that should NOT trigger CI (add to exclusions or omit from paths):
README.md,*.md(unless testing docs).gitignore,.editorconfigLICENSEdocs/**(unless you have doc tests)
Action: For workflows without path filtering, suggest adding appropriate filters based on project type.
6. Generate Summary Report
After completing all checks, provide a structured summary:
- Metadata Issues Found: List all files that need username/org updates
- README/Docs Issues: List documentation files with incorrect links
- CI/CD Issues:
- Missing or ignored
package-lock.jsonfor Node projects - Workflows without proper path filtering (wasting CI minutes)
- Missing or ignored
- Development Artifacts: Categorized list of files requiring user decision
- Recommendations: Suggested actions for cleanup and optimization
7. Interactive Cleanup
For each category of issues found:
- Present findings clearly
- Ask user for preferences (keep/delete/move for dev artifacts)
- Execute approved changes
- Confirm completion
Important Notes
- Always ask before deleting: Never delete files without explicit user confirmation
- Be thorough but focused: Check all metadata files but don't get lost in non-metadata code files
- Respect .gitignore: Files already gitignored are less urgent to address
- Support monorepos: A single repo might have multiple project types
- Username is case-sensitive: Use "GhostTypes" exactly (capital G and T)
- Preserve functionality: Only suggest removing files that are clearly development artifacts, not files that might be part of the project's functionality
Common Development Artifact Patterns
Files often created during development that may need cleanup:
*-plan.md,*-implementation.md,*-spec.mdTODO.md,ROADMAP.md,NOTES.mdBLUEPRINT.md,DESIGN_DOC.mdtest-*.js/py/go(in root, not in test directories)debug-*.js/py,scratch-*.py*.log,*.log.*filestemp_*.ext,tmp_*.ext- Files with names like "old_", "backup_", "draft_"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

