agent-prompts-warmup
Skill142 starsChanged 3 months agoMITView on GitHub
Audit and sync agent instruction files across all coding agent formats. FRE (first-run) checks scaffolding completeness; ongoing use keeps files in sync after edits.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- memex-agentic-memorySkill
- memex-best-practicesSkill
- memex-organizeSkill
- memex-recallSkill
- memex-retroSkill
- memex-syncSkill
The file
We split this skill 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
- Distinctive: line 22
All other files are copies, synced automatically:
- Distinctive: line 42
Run a full scaffolding check:
- Distinctive: line 64
When the user edits AGENTS.md (or asks you to):
- Very specific: line 67
Run sync: node scripts/postbuild.mjs (or npm run build)
- Distinctive: line 73
When a new coding agent emerges that reads a different file:
- Very specific: line 76
Update scripts/postbuild.mjs — add cpSync("AGENTS.md", "<new-file>").
- Very specific: line 78
Update scripts/pre-commit — add the new file to the TARGETS array
- Very specific: line 79
Create the file: cp AGENTS.md <new-file>
- Very specific: line 80
If it should be npm-published: add to package.json files array
- Very specific: line 81
Run npm test to verify
- Distinctive: line 82
Update this skill's mapping table above
≈ “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.
Files
Agent Prompts Warmup
Agent instruction files ensure every coding agent (Claude Code, Codex, Copilot, Cursor, Gemini, Windsurf/Anti-Gravity) reads the same project rules when working on this codebase.
Architecture
Single source of truth: AGENTS.md
All other files are copies, synced automatically:
| File | Agent(s) |
AGENTS.md | Codex CLI, GitHub Copilot (source of truth) |
CLAUDE.md | Claude Code |
GEMINI.md | Gemini CLI, Jules, Anti-Gravity |
.cursorrules | Cursor |
.windsurfrules | Windsurf / Anti-Gravity (legacy) |
Sync mechanisms (4 layers):
scripts/postbuild.mjs—npm run buildcopies AGENTS.md → all targetsscripts/pre-commit— git hook blocks commit if any file has driftedtests/integration/agent-docs-consistency.test.ts—npm testfails on drift- CI — GitHub Actions runs
npm teston push/PR to main
When To Use This Skill
1. FRE Audit (first run in a new clone/worktree)
Run a full scaffolding check:
/agent-prompts-warmup auditChecklist to verify:
AGENTS.mdexists and is non-empty- All target files exist:
CLAUDE.md,GEMINI.md,.cursorrules,.windsurfrules - All targets are byte-identical to
AGENTS.md(diff -q) scripts/postbuild.mjshascpSynclines for all targetstests/integration/agent-docs-consistency.test.tstests all targetsscripts/pre-commitexists and checks all targets.git/hooks/pre-commitis installed and executable (runnpm run prepareif not)package.jsonfilesfield includesAGENTS.md,CLAUDE.md,GEMINI.md,docspackage.jsonhas"prepare"script that installs the hook
If anything fails: fix it immediately. The fix is usually npm run build (syncs files) or npm run prepare (installs hook).
2. After Editing Instructions
When the user edits AGENTS.md (or asks you to):
- Edit only
AGENTS.md— never edit the copies directly - Run sync:
node scripts/postbuild.mjs(ornpm run build) - Verify:
npm test -- tests/integration/agent-docs-consistency.test.ts - Confirm all 5 files are identical
3. Adding a New Agent Target
When a new coding agent emerges that reads a different file:
- Identify the file name the agent reads (e.g.,
.devinrules,CLINE.md) - Update
scripts/postbuild.mjs— addcpSync("AGENTS.md", "<new-file>"); - Update
tests/integration/agent-docs-consistency.test.ts— addexpect(readFileSync("<new-file>", "utf-8")).toBe(agents); - Update
scripts/pre-commit— add the new file to theTARGETSarray - Create the file:
cp AGENTS.md <new-file> - If it should be npm-published: add to
package.jsonfilesarray - Run
npm testto verify - Update this skill's mapping table above
Troubleshooting
"ERROR: CLAUDE.md has drifted from AGENTS.md"
→ Someone edited a copy instead of AGENTS.md. Fix: cp AGENTS.md CLAUDE.md (or whichever file drifted). Then check if the edit in the copy should be applied — if so, edit AGENTS.md first, then npm run build.
Pre-commit hook not running
→ npm run prepare to reinstall. Or manually: cp scripts/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
CI failing on agent docs
→ npm run build && npm test locally. If it passes locally but fails in CI, check that the build step runs before test in the workflow.
Current Mapping Reference
// scripts/postbuild.mjs
cpSync("AGENTS.md", "CLAUDE.md"); // Claude Code
cpSync("AGENTS.md", "GEMINI.md"); // Gemini CLI / Jules / Anti-Gravity
cpSync("AGENTS.md", ".cursorrules"); // Cursor
cpSync("AGENTS.md", ".windsurfrules"); // Windsurf / Anti-Gravity (legacy)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.

