agentleFS
gg-mogg-mo/repo-hygiene/skills/using-repo-hygiene/SKILL.md

using-repo-hygiene

Skill3 starsChanged 7 months agoMITView on GitHub

Use when starting any conversation in a repo — establishes the repo-hygiene skill set and the moments each sub-skill applies

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you were dispatched as a subagent to execute a specific task, skip this skill.

    line 7
  2. Distinctive:

    User instructions win: If the user says "skip the orientation," skip it.

    line 31
  3. Very specific:

    Coordinate with peer skill sets: If superpowers:test-driven-development is already in play, testing-new-code is satisfied by that workflow.

    line 32

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<SUBAGENT-STOP> If you were dispatched as a subagent to execute a specific task, skip this skill. </SUBAGENT-STOP>

Using Repo Hygiene

This plugin keeps a codebase healthy as you work in it. Each sub-skill triggers on a specific moment — invoke it then via the Skill tool.

Important override: This skill set INVERTS the usual "no comments unless WHY is non-obvious" default. In a repo using this plugin, docstrings on functions and file headers ARE expected. Quality matters (see repo-hygiene:writing-docstrings); silence does not.

Trigger Table

When this happensInvoke
Starting substantive work in a repo you don't already understandrepo-hygiene:orienting-to-repo
Writing or modifying a function, class, or source filerepo-hygiene:writing-docstrings
About to add lines to a file >400 lines, or your edit pushes one past thatrepo-hygiene:keeping-files-small
Changing a public API (renamed export, new flag, new route, changed signature)repo-hygiene:keeping-docs-fresh
Adding business logic, branching code, or fixing a bugrepo-hygiene:testing-new-code
Drafting any commit messagerepo-hygiene:writing-commit-messages
User asks to commit, merge, or pushrepo-hygiene:gating-commits
User asks to "clean up" or apply repo-hygiene to an existing codebaserepo-hygiene:cleaning-existing-codebase

Priority

  1. User instructions win. If the user says "skip the orientation," skip it.
  2. Coordinate with peer skill sets. If superpowers:test-driven-development is already in play, testing-new-code is satisfied by that workflow.
  3. Otherwise apply at the triggers above.

Bypass

A user can bypass a hygiene skill for one turn with #hygiene-skip <reason> in their message. Acknowledge the bypass and proceed.

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.