agentleFS
ayoubben18ayoubben18/ab-method/.agents/skills/ab-cleanup/SKILL.md

ab-cleanup

Skill193 starsChanged 58 days agoMITView on GitHub

Clean up a repo already using AB Method - compact the domain and architecture docs to their budgets, split pattern docs by topic, remove disposable task leftovers, and migrate the structure index to 4.0. Use when docs have grown too large, after upgrading AB Method, or when the user asks to clean up.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the workflow defined in .ab-method/core/ab-cleanup.md exactly — it contains the full process, output format, and rules.

    line 8
  2. Very specific:

    Before doing anything, check .ab-method/structure/index.yaml.

    line 10
  3. Very specific:

    Locating .ab-method/: Every .ab-method/... path — here and inside the workflow files — is resolved in this order:

    line 12
  4. Very specific:

    The project root (the current working directory) first: If <project>/.ab-method/...

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

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

This skill runs the AB Method ab-cleanup workflow.

Follow the workflow defined in .ab-method/core/ab-cleanup.md exactly — it contains the full process, output format, and rules.

Before doing anything, check .ab-method/structure/index.yaml. It defines where this workflow reads from and writes to. Paths are user-configurable; never hardcode them.

Locating .ab-method/. Every .ab-method/... path — here and inside the workflow files — is resolved in this order:

  1. The project root (the current working directory) first. If <project>/.ab-method/... exists, use it. A project's own .ab-method/structure/index.yaml is how it customises its paths, so it always wins — check for it even when the bundled copy is right there.
  2. Only if the project has no such file (AB Method installed as a plugin rather than with npx ab-method), read the bundled copy: ../../../.ab-method/ relative to this SKILL.md.

The bundled copy is read-only reference material. Every path the index or a workflow names (docs/..., CONTEXT.md, UBIQUITOUS_LANGUAGE.md, ...) is relative to the project root — never to the folder the bundled files live in. Never write inside that folder.

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.