continuous-refactoring
AGENTS.md2 starsChanged 22 days agoMITView on GitHub
All changes go through feature branches and pull requests — never direct commits to main. Create a branch, implement, ensure CI is green, then open a PR. Merge only after review and passing pipeline. Run the relevant tests locally before pushing, every time — not just for code changes. A change to skills/** or docs/** still needs python3 -m unittest discover -s scripts -p 'test_*.py' and python3 scripts/validate_skills.py . green locally first (see .github/workflows/skills-validation.yml). Pushing untested and then iterating on…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
All changes go through feature branches and pull requests — never direct commits to main.
- Very specific: line 9
Play the scenarios a skill change touches before it merges: Start from the scenarios whose Covers: line names a changed skill file …
- Very specific: line 32
When a rule is violated a second time, add it to scripts/validate_skills.py with a unit test instead of restating it in prose …
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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.
Files
Agent skills
Git workflow
All changes go through feature branches and pull requests — never direct commits to main. Create a branch, implement, ensure CI is green, then open a PR. Merge only after review and passing pipeline.
Run the relevant tests locally before pushing, every time — not just for code changes. A change to skills/** or docs/** still needs python3 -m unittest discover -s scripts -p 'test_*.py' and python3 scripts/validate_skills.py . green locally first (see .github/workflows/skills-validation.yml). Pushing untested and then iterating on red CI is not an acceptable substitute for running it yourself first.
Play the scenarios a skill change touches before it merges. Start from the scenarios whose Covers: line names a
changed skill file (docs/agents/evals/), and play, with /play-scenarios, each whose expected lines bear on the
behaviour the change moves. Note the results at the PR's head commit under the scenarios' ## Results, and name in
the description the scenarios played and those left out, each with its reason. Wording that moves no behaviour plays
none and says so.
Issue tracker
Issues live as markdown files under .scratch/. See docs/agents/issue-tracker.md.
Domain docs
Single-context — one CONTEXT.md + docs/adr/ at the repo root. See docs/agents/domain.md.
Changelog
A noteworthy, user-visible change (skills/**, docs/**, CONTEXT.md, README.md,
CONTRIBUTING.md) needs a
.changelog.d/<slug>.md fragment — CI enforces this. See CONTRIBUTING.md's "Changelog" section
for the fragment convention and the release recipe that consolidates them into CHANGELOG.md.
A rule broken twice becomes a check
When a rule is violated a second time, add it to scripts/validate_skills.py with a unit test instead of restating it in prose (CONTRIBUTING.md). validate_skills.py already checks that README.md and docs/** cite no ADR or PR numbers and no .scratch/ paths.
Docs stay in sync
A change to a skill's behaviour is done only when every human-facing doc that describes it reads true against the change — in the same PR. grep the changed skill, Track, or term across README.md and docs/ (outside docs/adr/) and update each hit:
- Skill roster, the run and its decision points, Track choice →
README.md(skills table, "How it works"),docs/architecture.md,docs/playbooks/tracks.md,docs/playbooks/run.md - A Track's own process → its playbook (
docs/playbooks/housekeeping.md) - New limits, fallbacks, or reasons a run ends early →
docs/known-limitations.md(troubleshooting table) - A design choice a user would ask "why?" about →
docs/FAQ.md - New or changed vocabulary → the glossary,
skills/continuous-refactoring-run/references/glossary.md(CONTEXT.mdonly points to it)
README.md and docs/** explain in their own words: they cite no ADR numbers, ticket numbers, or .scratch/ paths.
No target projects by name
No file in this repo names a real target project: not skills/**, docs/**, ADRs, tickets, fixtures or scripts. Write "a target" or use a neutral example such as acme/shop. The suite's website and test repositories, its dependencies (art4/rector-bc-library) and products such as Redmine are not target projects and stay. No validator check: a list of forbidden names would write them into the repo.
The continuous-refactoring suite
This repo IS the skill suite. The skills live under skills/ and are consumed by symlinking all three into a target repo's .agents/skills/ (see README.md):
continuous-refactoring— the Driver: rounds of a run, its review and rework, with a cadence between them, until an end. Its references hold what only it needs; the run's are reached through../continuous-refactoring-run/.continuous-refactoring-run— one run: a chain of decision points from the target's open tickets to an opened merge request. ItsSKILL.mdholds the call, the decision-point rules and the steps; each step's detail is a file under itsreferences/, where the tooling-tree parser and the tree docs live too.continuous-housekeeping— the Housekeeping Track alone, with no Track choice;continuous-refactoring-runreads the samereferences/housekeeping-track.mdwhen its Track choice lands on Housekeeping.
All three are user-invocable. An agent may invoke continuous-refactoring-run and continuous-housekeeping through its skill tool, a subagent included; the Driver is started by a human or a schedule. The suite keeps no state of its own: tickets, merge requests and rejections are found by searching the target's tracker and forge.
The suite's vocabulary lives in the shipped glossary, skills/continuous-refactoring-run/references/glossary.md, which CONTEXT.md points to (run, decision point, worklist, candidate, tooling tree, Track, merge request, signal, proposals, findings). Human-facing docs live in docs/playbooks/. A reference doc a skill needs at runtime lives under skills/<owning-skill>/references/ instead — docs/playbooks/, like docs/adr/ and docs/agents/, never ships with the skills.
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
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.

