agentleFS
thenavidmthenavidm/remaster/AGENTS.md

remaster

AGENTS.md0 starsChanged 39 days agoApache-2.0View on GitHub

This repo is a Claude Code plugin and a portable Agent Skill in one. These are the rules for agents editing it, not for people installing it (that's the README).

  • 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 31,843 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 repository2 other files it gives its agents.

The file

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

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Plain JavaScript modules with // @ts-check and JSDoc: No build step, so the files in the repo are the files that run.

    line 39
  2. Distinctive:

    One skill, four stages, one CLI: Not one skill per step: every description loads into every session, and narrow skills collide with the …

    line 40
  3. Very specific:

    The clean-room line is not a setting: No flag reads the original's code, logs into another account or gets past a login.

    line 45
  4. Very specific:

    Write skills/clone/scripts/commands/<name>.mjs exporting help (its full usage text, starting remaster <name>) and async run({ flags, …

    line 51
  5. Very specific:

    Add it to COMMANDS in remaster.mjs, and any boolean flag to BOOLEANS.

    line 52
  6. Very specific:

    Put pure logic in exported functions and test them in tests/.

    line 53
  7. Very specific:

    Add it to the scripts table in SKILL.md, the stage reference that uses it, and the README.

    line 54
  8. Distinctive:

    After pushing, publish the same version to npm.

    line 62
  9. Distinctive:

    Never name another project in this repo: not in docs, code comments or commit messages.

    line 67
  10. Distinctive:

    No em dashes. American English.

    line 68
  11. Distinctive:

    Every URL in the docs is checked before it is written.

    line 69

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

Working on Remaster

This repo is a Claude Code plugin and a portable Agent Skill in one. These are the rules for agents editing it, not for people installing it (that's the README).

What's here

PathWhat it is
skills/clone/SKILL.mdThe skill. Every word loads each time it runs, so it stays under 500 lines and the details live in references/
skills/clone/references/One document per stage, plus the clean-room line, the taste floor and the critic's rubric. Read when a stage starts
skills/clone/scripts/remaster.mjsThe CLI entry. Each command is a module in scripts/commands/ that exports help and run
skills/clone/scripts/lib/Shared pieces: args, CSV, colors, text, PNG, robots.txt, HTML, network, browser, state, YAML
skills/clone/scripts/browser/measure.jsThe page measurement. One file, run under Playwright by measure and by hand in any agent's browser tool
skills/clone/scripts/data/The copy rules and the generic phrases the copy check skips
skills/clone/templates/What init copies into a project, and the design, listing and profile templates
claude-agents/The two Claude Code agents, named in .claude-plugin/plugin.json. Not in agents/, because Gemini CLI loads that folder as its own subagents and rejects Claude's format
.claude-plugin/The Claude Code plugin and marketplace manifests
.codex-plugin/plugin.json, .agents/plugins/marketplace.jsonThe Codex plugin and its marketplace, pointing at the same skills/
gemini-extension.jsonThe Gemini CLI extension, which reads the same skills/
tests/node:test, no dependencies

Commands

CommandWhat it does
npm testEvery test
npm run checkSyntax check of the CLI and every command module
claude plugin validate . --strictThe marketplace manifest
claude plugin validate .claude-plugin/plugin.json --strictThe plugin manifest
gemini extensions validate .The Gemini CLI extension
CODEX_HOME=$(mktemp -d) codex plugin marketplace add . && codex plugin add remaster@remasterThe Codex plugin, in a throwaway Codex home
node skills/clone/scripts/remaster.mjs <command> --helpAny command's options

Decisions already made, do not re-litigate

  • Zero runtime dependencies, Node 18 or later. The skill runs wherever an agent runs, with nothing to install. Playwright is borrowed from the user's project or a global install when a command needs a browser, never bundled.
  • Plain JavaScript modules with // @ts-check and JSDoc. No build step, so the files in the repo are the files that run.
  • One skill, four stages, one CLI. Not one skill per step: every description loads into every session, and narrow skills collide with the user's own (a "deploy it" trigger, say).
  • Portable frontmatter only in SKILL.md: name, description, license, compatibility, metadata. claude.ai uploads reject anything else.
  • One measurement script for every browser. browser/measure.js is the single source; never fork a Playwright-only copy.
  • Scripts check, the agent judges. The model reads reviews and groups themes; code verifies every quote and count. The model looks at screenshots; code measures structure and contrast. Never hand a judgment to a regex or a measurement to the model.
  • Research stays private. init adds remaster/research/ to the user's .gitignore, and the sweep skips that folder.
  • The clean-room line is not a setting. No flag reads the original's code, logs into another account or gets past a login. Migrate mode is the only place copying is allowed, and only with --owner.
  • One skill folder for every agent. Claude Code, Codex and Gemini CLI all read skills/clone. Agents that don't substitute ${CLAUDE_SKILL_DIR} get the real path from remaster install, or follow SKILL.md's fallback to its own folder or the pinned npx command.
  • CLAUDE.md lives in .claude/. Claude Code's plugin validator warns about a CLAUDE.md at the plugin root, which is this repo's root.

Adding a command

  1. Write skills/clone/scripts/commands/<name>.mjs exporting help (its full usage text, starting remaster <name>) and async run({ flags, positionals }) returning an exit code.
  2. Add it to COMMANDS in remaster.mjs, and any boolean flag to BOOLEANS.
  3. Put pure logic in exported functions and test them in tests/. A command that touches the network gets a pure function for the parsing and a test for that.
  4. Add it to the scripts table in SKILL.md, the stage reference that uses it, and the README.

Before you commit

  1. npm run check && npm test
  2. Both claude plugin validate commands above, with --strict.
  3. A real run of anything you changed: a real page for measure, tokens and diff; a real help center for crawl; real reviews for store, hn and pains.
  4. The version in step with every place it appears: .claude-plugin/plugin.json, .codex-plugin/plugin.json, gemini-extension.json, package.json, the skill's metadata.version and its pinned npx -y @thenavidm/remaster@<version> line, VERSIONS.md, the README badge and its pinned npx line, and a CHANGELOG entry.
  5. After pushing, publish the same version to npm. npm serves the README from the tarball, so a README fix needs a new version.

Rules

  • Commits are authored Navid Moazzez <n@navid.me> by the machine's git config. Never pass -c user.email, and never add AI attribution to a commit.
  • Never name another project in this repo: not in docs, code comments or commit messages. Credit a real dependency in the README's Credits table; that is required, and it is different.
  • No em dashes. American English. Short paragraphs. Explain why, not what.
  • Every URL in the docs is checked before it is written.

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.