repo-memory-updater
Skill9 starsChanged 3 months agoMITView on GitHub
Keep AGENTS.md files and .Codex/state/ in sync with the current repo reality. Use after significant structural changes, after adding risky modules, or when AGENTS.md feels stale.
- Reads credentials
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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 25
After adding a new module, endpoint, or significant capability
- Distinctive: line 26
After adding risky code (auth, file I/O, external service)
- Distinctive: line 27
After any change to key commands, env vars, or test commands
- Distinctive: line 28
When starting a new session and AGENTS.md feels outdated
- Distinctive: line 29
After merging a PR that significantly changes structure
- Very specific: line 40
Look for: new files, renamed modules, new env vars in .env.example, new commands in README.
- Distinctive: line 44
Read AGENTS.md and answer:
- Distinctive: line 79
Do not expand AGENTS.md into a full reference manual.
- Very specific: line 80
Do not duplicate information already in docs/ — link to it instead.
- Distinctive: line 81
Do not add implementation details that belong in module docstrings.
≈ “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
Skill: repo-memory-updater
When to Use
- After adding a new module, endpoint, or significant capability
- After adding risky code (auth, file I/O, external service)
- After any change to key commands, env vars, or test commands
- When starting a new session and AGENTS.md feels outdated
- After merging a PR that significantly changes structure
Instructions
Step 1 — Inventory what changed
git log --oneline -20 # recent commits
git diff HEAD~5 --stat # files changed in last 5 commitsLook for: new files, renamed modules, new env vars in .env.example, new commands in README.
Step 2 — Check root AGENTS.md
Read AGENTS.md and answer:
- Is the Codebase Map section still accurate? (new files, changed structure)
- Are the Key Commands still correct? (nothing renamed or removed)
- Are the Coding Rules still appropriate? (no new risky patterns uncovered)
- Is the skill-to-situation mapping table still complete?
- Is the Where Deeper Truth Lives table up to date?
Step 3 — Check module AGENTS.md files
For any module that changed significantly:
- Does the module
AGENTS.mdreflect current invariants? - Are the env var lists accurate?
- Are the test file references correct?
Step 4 — Update .Codex/state/
Update .Codex/state/agent-state.json:
last_updatedtimestampcompleted_stepsif new milestones were reachedchanged_fileslist if new files were added by recent work
Append to .Codex/state/checkpoint.jsonl with a note like:
{"ts":"<ISO>","step":"repo-memory-update","status":"done","detail":"Updated AGENTS.md for <what changed>"}Step 5 — Commit the update
git add AGENTS.md agent/AGENTS.md router/AGENTS.md .Codex/state/
git commit -m "docs: sync AGENTS.md with current repo state"What NOT to Change
- Do not expand AGENTS.md into a full reference manual. Keep it scannable.
- Do not duplicate information already in
docs/— link to it instead. - Do not add implementation details that belong in module docstrings.
Acceptance Checks
- Root AGENTS.md codebase map reflects current files
- Key commands in AGENTS.md work as written
- Skill-to-situation table is complete
- Module AGENTS.md files updated if those modules changed
agent-state.jsonlast_updated timestamp refreshed- Committed with
docs:prefix (exempt from changelog requirement)
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.

