agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/repo-memory-updater/SKILL.md

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

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
  1. Distinctive:

    After adding a new module, endpoint, or significant capability

    line 25
  2. Distinctive:

    After adding risky code (auth, file I/O, external service)

    line 26
  3. Distinctive:

    After any change to key commands, env vars, or test commands

    line 27
  4. Distinctive:

    When starting a new session and AGENTS.md feels outdated

    line 28
  5. Distinctive:

    After merging a PR that significantly changes structure

    line 29
  6. Very specific:

    Look for: new files, renamed modules, new env vars in .env.example, new commands in README.

    line 40
  7. Distinctive:

    Read AGENTS.md and answer:

    line 44
  8. Distinctive:

    Do not expand AGENTS.md into a full reference manual.

    line 79
  9. Very specific:

    Do not duplicate information already in docs/ — link to it instead.

    line 80
  10. Distinctive:

    Do not add implementation details that belong in module docstrings.

    line 81

≈ “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.

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

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 commits

Look 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.md reflect 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_updated timestamp
  • completed_steps if new milestones were reached
  • changed_files list 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.json last_updated timestamp refreshed
  • Committed with docs: prefix (exempt from changelog requirement)

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.