agentleFS
JunMA98JunMA98/Computer-science-claude-skills/skills/repo-cleanup/SKILL.md

repo-cleanup

Skill3 starsChanged 8 months agoMITView on GitHub

Use when a research or prototype repository has become messy and you need a disciplined cleanup plan for structure, naming, docs, unused files, configs, and reproducibility hygiene.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    before public release or collaborator handoff

    line 12
  2. Distinctive:

    after a rapid prototyping phase left the repo inconsistent

    line 13
  3. Distinctive:

    when folders, scripts, and outputs have become hard to navigate

    line 14
  4. Distinctive:

    when experiment artifacts and source code are mixed carelessly

    line 15
  5. Distinctive:

    do not assume generated files are disposable without checking

    line 41

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Improve repository clarity so code, experiments, and documents are easier to understand and maintain.

When To Use

  • before public release or collaborator handoff
  • after a rapid prototyping phase left the repo inconsistent
  • when folders, scripts, and outputs have become hard to navigate
  • when experiment artifacts and source code are mixed carelessly

Inputs

  • repository layout and current file structure
  • known pain points, stale outputs, and documentation gaps
  • any constraints about files that must not be touched

Outputs

  • cleanup plan ordered by safety and impact
  • proposed directory and naming normalization
  • list of stale, duplicated, or misplaced files
  • documentation gaps and configuration hygiene fixes
  • explicit separation of safe cleanup versus risky cleanup

Workflow

  1. Inspect the repo structure before proposing moves.
  2. Identify clutter, ambiguity, and unsafe mixing of source and generated outputs.
  3. Group cleanup work into structure, naming, docs, configs, and artifacts.
  4. Separate non-destructive cleanup from anything that needs confirmation.
  5. Produce a minimal end state that is easier to release and maintain.

Constraints

  • do not assume generated files are disposable without checking
  • separate cleanup suggestions from destructive actions
  • preserve provenance for experiment outputs that may still matter
  • favor clear structure over cosmetic churn

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.