refresh-best-practices
Skill0 starsChanged 6 months agoMITView on GitHub
Check whether the official Claude Code and Codex best-practices docs have changed since the digests in best-practices/ were last refreshed, report the differences, and update the digests on approval. Use when the user asks to refresh best practices, check for doc updates, asks "are the digests current?", or before a large audit run when the digests are more than a month old.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-memory-fileSkill
- scan-projectsSkill
- seed-memory-fileSkill
- setupSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Update the Last refreshed: stamp to today.
- Distinctive: line 38
Flag downstream impact: if changed guidance invalidates advice already propagated to managed projects, list which audit findings should be …
- Distinctive: line 44
Never update a digest without showing the substantive changes first (stamp-only updates after a no-change check are fine).
- Distinctive: line 48
If a fetch fails or redirects, report it rather than silently keeping the old digest.
≈ “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
Refresh Best Practices
Compare the live vendor docs against the local digests and update them on approval. The digests are the audit yardstick — stale digests mean audits enforce outdated guidance.
Sources and targets
| Live doc | Local digest |
| https://code.claude.com/docs/en/memory (primary) | best-practices/claude-code.md |
| https://code.claude.com/docs/en/best-practices | best-practices/claude-code.md |
| https://developers.openai.com/codex/learn/best-practices | best-practices/codex.md |
| https://developers.openai.com/codex/guides/agents-md | best-practices/codex.md |
Workflow
- Read both digests and note their
Last refreshed:dates. - Fetch both live docs (WebFetch, in parallel). Prompt for: all guidance on writing memory/instructions files — recommended content, structure, length, anti-patterns, maintenance signals — plus any new features that change where guidance belongs (e.g. skills vs memory file vs hooks).
- Compare fetched content against each digest. Classify findings:
- New guidance — advice the digest doesn't cover
- Changed guidance — advice that contradicts the digest
- Removed guidance — digest content no longer in the docs
- Cosmetic — rewording with no substantive change (ignore)
- Report the findings per digest. If nothing substantive changed, say so,
update only the
Last refreshed:stamps, and stop. - On approval, rewrite the affected digest(s): keep them ≤1 page,
actionable, structured as include/exclude lists plus maintenance signals.
Update the
Last refreshed:stamp to today. - Flag downstream impact: if changed guidance invalidates advice already propagated to managed projects, list which audit findings should be revisited (check PROJECTS.md audit log if present).
Rules
- Never update a digest without showing the substantive changes first (stamp-only updates after a no-change check are fine).
- Digests are distillations in this project's own words — do not paste large verbatim excerpts from the vendor docs.
- If a fetch fails or redirects, report it rather than silently keeping the old digest; the URL may have moved and AGENTS.md needs updating.
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.

