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.
- .claude/CLAUDE.mdCLAUDE.md
- cloneSkill
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
- Very specific: line 39
Plain JavaScript modules with
// @ts-checkand JSDoc: No build step, so the files in the repo are the files that run. - Distinctive: line 40
One skill, four stages, one CLI: Not one skill per step: every description loads into every session, and narrow skills collide with the …
- Very specific: line 45
The clean-room line is not a setting: No flag reads the original's code, logs into another account or gets past a login.
- Very specific: line 51
Write skills/clone/scripts/commands/<name>.mjs exporting help (its full usage text, starting remaster <name>) and async run({ flags, …
- Very specific: line 52
Add it to COMMANDS in remaster.mjs, and any boolean flag to BOOLEANS.
- Very specific: line 53
Put pure logic in exported functions and test them in tests/.
- Very specific: line 54
Add it to the scripts table in SKILL.md, the stage reference that uses it, and the README.
- Distinctive: line 62
After pushing, publish the same version to npm.
- Distinctive: line 67
Never name another project in this repo: not in docs, code comments or commit messages.
- Distinctive: line 68
No em dashes. American English.
- Distinctive: line 69
Every URL in the docs is checked before it is written.
≈ “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.
Files
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
| Path | What it is |
skills/clone/SKILL.md | The 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.mjs | The 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.js | The 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.json | The Codex plugin and its marketplace, pointing at the same skills/ |
gemini-extension.json | The Gemini CLI extension, which reads the same skills/ |
tests/ | node:test, no dependencies |
Commands
| Command | What it does |
npm test | Every test |
npm run check | Syntax check of the CLI and every command module |
claude plugin validate . --strict | The marketplace manifest |
claude plugin validate .claude-plugin/plugin.json --strict | The plugin manifest |
gemini extensions validate . | The Gemini CLI extension |
CODEX_HOME=$(mktemp -d) codex plugin marketplace add . && codex plugin add remaster@remaster | The Codex plugin, in a throwaway Codex home |
node skills/clone/scripts/remaster.mjs <command> --help | Any 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-checkand 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.jsis 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.
initaddsremaster/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 fromremaster 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
- Write
skills/clone/scripts/commands/<name>.mjsexportinghelp(its full usage text, startingremaster <name>) andasync run({ flags, positionals })returning an exit code. - Add it to
COMMANDSinremaster.mjs, and any boolean flag toBOOLEANS. - 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. - Add it to the scripts table in SKILL.md, the stage reference that uses it, and the README.
Before you commit
npm run check && npm test- Both
claude plugin validatecommands above, with--strict. - A real run of anything you changed: a real page for
measure,tokensanddiff; a real help center forcrawl; real reviews forstore,hnandpains. - The version in step with every place it appears:
.claude-plugin/plugin.json,.codex-plugin/plugin.json,gemini-extension.json,package.json, the skill'smetadata.versionand its pinnednpx -y @thenavidm/remaster@<version>line,VERSIONS.md, the README badge and its pinned npx line, and a CHANGELOG entry. - 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.
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.

