Skip to content
Back to skills

Repo Cleanup

ASecurity

Use when a repository needs cleanup of dead code, build artifacts, unused dependencies, outdated docs, or stale tests - provides safe cleanup workflows, validation steps, and reporting templates for code, deps, docs, tests, and sprint archives.

  • 37 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add NickCrew/Claude-Cortex --skill repo-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repo Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nickcrew-repo-cleanup-claude-cortex/badge)](https://www.skillsdirectory.com/skills/nickcrew-repo-cleanup-claude-cortex)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repo-cleanup
description: Use when a repository needs cleanup of dead code, build artifacts, unused dependencies, outdated docs, or stale tests - provides safe cleanup workflows, validation steps, and reporting templates for code, deps, docs, tests, and sprint archives.
keywords:
  - archive sprint
  - cleanup repo
  - dead code
  - docs cleanup
  - remove artifacts
  - repo cleanup
  - test cleanup
  - unused dependencies
file_patterns:
  - '**/archive/**'
  - '**/cleanup/**'
  - '**/deprecated/**'
  - '**/legacy/**'
confidence: 0.82
---

# Repo Cleanup

## Overview
Establish a safe, repeatable cleanup workflow for code, dependencies, docs, tests, and sprint artifacts. Minimize risk by validating usage, archiving before deletion, and verifying with tests.

## When to Use
- Repository bloat (generated artifacts, caches, unused files)
- Dead code or unused dependencies suspected
- Docs drifted from actual behavior
- Tests are brittle, redundant, or mislocated
- Sprint closure needs structured archiving

Avoid when:
- Active incident response is ongoing
- The target area lacks owners or rollback coverage

## Quick Reference

| Task | Load reference |
| --- | --- |
| Code cleanup | `skills/repo-cleanup/references/code-cleanup.md` |
| Dependency cleanup | `skills/repo-cleanup/references/deps-cleanup.md` |
| Docs cleanup | `skills/repo-cleanup/references/docs-cleanup.md` |
| Test cleanup | `skills/repo-cleanup/references/test-cleanup.md` |
| Sprint archive | `skills/repo-cleanup/references/archive-sprint.md` |

## Workflow
1. Define scope and safety mode (safe vs aggressive).
2. Capture baseline state (git status, key tests, backups).
3. Load the relevant reference file(s) for the target area.
4. Execute cleanup steps with usage checks before removal.
5. Validate changes (tests, build, lint, or doc checks).
6. Report outcomes (actions taken, risks, follow-ups).

## Output
- Summary of actions and files touched
- Validation results and remaining risks
- Follow-up recommendations or backlog items

## Common Mistakes
- Deleting without confirming usage or regenerability
- Skipping baseline tests and rollback checkpoints
- Removing dependencies without updating build/test scripts
- Collapsing docs without preserving entry points

Files in this skill

  • SKILL.md2.2 KB
  • references/archive-sprint.md10.6 KB
  • references/code-cleanup.md9.6 KB
  • references/deps-cleanup.md12.2 KB
  • references/docs-cleanup.md6.7 KB
  • references/test-cleanup.md12 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…