agentleFS
OutThisLifeOutThisLife/brooklyn-skills/skills/clean/SKILL.md

clean

Skill207 starsChanged 4 months agoMITView on GitHub

Polish your own diff by hand with KISS/DRY and local style — the pre-handoff pass, not a test run and not a subagent sweep. Use for /clean, "clean it up", "tidy this", and automatically before creating, updating, or automerging a PR or moving to the next one.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use expressive, friendly and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bergsideSkill

    expressive

    Vibrant, personality-driven design with bold colors, playful graphics, and dynamic layouts that balance creativity with structure.

    Also in 4 projects that use this

  • bergsideSkill

    friendly

    Approachable, intuitive design with rounded elements, ample whitespace, and soft pastel color palettes.

    Also in 4 projects that use this

  • +10 more from bergside

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 2

    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:

    Prefer the small sharp version over ceremony.

    line 29
  2. Distinctive:

    Run the test suite / tsc / lint just because you were told to "clean"

    line 38

“Common” is measured: kept by at least 6 in 10 of the 16 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

Clean

KISS/DRY and copy the local code style. Be elitist, shorthand, clever, concise, efficient, and elegant.

"Clean" means polishing the code — it does NOT mean running the test suite, tsc, or lint as the task. Run a check only if it's genuinely needed to confirm the polish is safe.

Clean is a standalone pass, not just a pre-PR step — run it whenever things get messy, including mid-work. Also run it automatically before any PR handoff (creating, updating, automerging, or moving to the next PR) without being told each time.

Do

  1. Re-read your diff. Cut dead code, leftover debug logging, and duplication.
  2. Extend existing helpers — don't parallel-implement.
  3. Match neighboring style (names, imports, file layout, comment density).
  4. Prefer the small sharp version over ceremony.
  5. UI work: only after they like the UI (ui-only). Use ui-system for primitives.
  6. On the PR: title/body describe the change as a whole (a short intro), not a changelog of steps. Split into topical commits (pr-update), run no-tropes on the text, and link the PR.

Don't

  • Run the test suite / tsc / lint just because you were told to "clean"
  • Unrelated refactors
  • New abstractions with one caller
  • Scope creep dressed up as cleanup

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.