agentleFS
gualaskgualask/clean-flow/AGENTS.md

clean-flow

AGENTS.md1 starsChanged 27 days agoMITView on GitHub

Clean Flow (Cflow): source pack of skills for cleanup/refactor flows, distributed as the cflow plugin for Claude Code and Codex. This repo authors and distributes the skills; it does not use them at runtime.

  • 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 35,040 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 repository10 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Test: pnpm test (Node built-in test runner): pack-wide checks in test/pack.test.mjs, one skill's contract in test/skills/<skill>.test.mjs, …

    line 7
  2. Very specific:

    Run pnpm test before committing.

    line 33

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

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

AGENTS.md

Clean Flow (Cflow): source pack of skills for cleanup/refactor flows, distributed as the cflow plugin for Claude Code and Codex. This repo authors and distributes the skills; it does not use them at runtime.

Commands

  • Test: pnpm test (Node built-in test runner): pack-wide checks in test/pack.test.mjs, one skill's contract in test/skills/<skill>.test.mjs, tool tests in test/*.test.mjs
  • Flow token report: pnpm report for the full pack; pnpm report -- cf-clean to focus output on one skill. The packaged report uses src/commands/skill-token-report.context.json and fails when its runtime Markdown coverage drifts from the skill contracts.
  • Raw token count: pnpm count-tokens -- <file...> for selected files; without file arguments it reads stdin.
  • Vendor shared files: pnpm vendor; pnpm vendor -- --check reports drift without writing.
  • Plugin check: claude plugin validate . (Claude Code manifests; the Codex ones are covered by test/plugin.test.mjs)
  • CLI (temporary): node ./bin/cflow-skills.mjs migrate <repo>|--global [--dry-run] moves an installation made by the old installer onto the plugin.

Layout

  • .claude-plugin/ — Claude Code's plugin.json (the cflow plugin; the repository root is its root) and marketplace.json (the clean-flow marketplace)
  • .codex-plugin/plugin.json and .agents/plugins/marketplace.json — the same plugin and marketplace for Codex; interface holds what only Codex shows
  • .githooks/pre-commit — blocks a commit whose vendored copies or manifests are out of line; pnpm install enables it
  • .github/workflows/main.yml — runs pnpm test on pushes and pull requests to main, the branch the marketplaces install
  • skills/ — the plugin's skills (cf-*), with their vendored copies committed; nothing else
  • shared/ — content shared across skills (references/, scripts/) and vendor.json
  • src/ — vendoring, token reports, and the temporary migrate command (commands/, lib/)
  • docs/sources/ — one mirror per skill (cf-<name>.md) with the sources its rules rest on; docs/maintaining-this-pack.md is the guide
  • test/ — Node test suites (skills/ per skill, support/ helpers)

Rules

  • ESM only (.mjs, type: module); pnpm; single dev dep: tiktoken.
  • Runtime contracts live in SKILL.md + linked references. A skill's mirror in docs/sources/ holds only the literature each rule rests on, quoted and linked: when a rule is added or changed, add or update its source there; never restate the contract.
  • Content shared across skills lives once in shared/ (references/, scripts/); shared/vendor.json maps which skills receive which files. Each shared file has a committed copy in every consuming skill's references//scripts/, because the hosts install skills/ as it is. To share content: author it in shared/, map it in vendor.json, run pnpm vendor — never edit the vendored copies; a test fails when a copy differs from its source.
  • Both plugin.json files carry the package.json version and the same description (a test checks it); bump all three only when releasing to main, since users receive a new version only when it changes.
  • migrate must stay idempotent; don't bootstrap .cflow/ here.
  • Run pnpm test before committing.
  • CHANGELOG.md is written only when releasing to main, from the commits since the previous release; work on dev adds nothing to it. Follow Keep a Changelog: one heading per release (## <version> - <date>), changes grouped under Added, Changed, Fixed, Removed, one short line per user-visible change saying what changed for whoever installs the pack. No measurements, run counts, token counts or rationale.
  • Work lands on dev; main moves only at a release. To release: add one release: <version> commit on dev with the CHANGELOG entry and the version bump, fast-forward main to it without squashing, tag it <version> (annotated, no v prefix), and push both branches and the tag.

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.