Agent skill · vasilyu1983
agents-memory
Manages AGENTS.md, CLAUDE.md, and scoped repo rules for Claude Code and Codex. Use when fixing stale memory, ignored instructions, memory audits, or model-upgrade migration.
What it needs
About 10k tokens when loaded.
What this skill does
Project Memory for Claude Code + Codex Configure project memory so Claude Code and Codex get stable, scoped instructions across sessions without bloating every prompt. For shared teams, keep the portable project rules in AGENTS.md, mirror that into CLAUDE.md when needed, and keep tool-specific behavior in the tool's native layer. Treat repo memory as a living exception file. If an agent can reliably infer something by reading the code, config, or README, keep it out of the always-loaded layer. Put only the durable, non-inferable guidance here. Quick Reference Layer Typical Location Purpose ------ ------------------ --------- Shared project memory ./AGENTS.md Portable repo instructions for Codex and other AGENTS.md-aware tools Claude project memory ./CLAUDE.md Claude Code project instructions; often a symlink or mirror of AGENTS.md Claude scoped rules ./.claude/rules/.md Modular Claude-only rules, optionally path-scoped Codex personal instructions ~/.codex/AGENTS.md Personal behavioral guidance across repositories Codex directory override ./AGENTS.override.md Higher-precedence guidance for one directory; it may be local or checked in Codex runtime permissions ~/.codex/config.toml, trusted .codex/config.toml, permission profiles, .rules Configure sandbox boundaries, approval policy/reviewer, and executable command policy Codex auto-memory ~/.codex/memories/ (opt-in via [features] memories = true) Machine-local accumulated recall; off by default; keep must-always rules in AGENTS.md, not here Claude auto memory ~/.claude/projects/<project>/memory/ — MEMORY.md index + topic files Machine-local, accumulated notes; first 200 lines / 25 KB of MEMORY.md load each session; topic files load on demand Instruction budget ~100–150 usable lines across all loaded CLAUDE.md tiers Community-derived heuristic (not an official Anthropic figure): compliance drops past ~150–200 discrete instructions, of which the system prompt already spends ~50; budget is a shared pool across all tiers …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills vasilyu1983/agents-memory