A project-level memory skill for coding agents.
project-memory gives an agent a small, durable place to store knowledge that
should survive across sessions but does not belong in source code: hard-won
debugging lessons, non-obvious project conventions, decisions and their reasons,
and local commands that are easy to forget.
The skill is intentionally conservative. It tells the agent to read memory at the start of work, write only durable and non-obvious facts, update stale entries when code proves them wrong, and avoid bypassing the bundled script.
Install with the skills CLI:
npx skills add https://github.com/lijingda/memory-skill --skill project-memoryTo list available skills before installing:
npx skills add https://github.com/lijingda/memory-skill --listTo install specifically for Codex:
npx skills add https://github.com/lijingda/memory-skill --skill project-memory --agent codexManual fallback: copy or symlink skills/project-memory into the skills
directory used by your agent runtime.
project-memory teaches an agent when to read, write, update, and remove
project-level memory entries. Entries are stored per project in
.agent-memory/memory.md; that store is intentionally ignored by git.
The command's cwd determines the project: the script reads and writes only
cwd/.agent-memory/memory.md.
The bundled script has no third-party dependencies and runs with Node.js:
node skills/project-memory/scripts/memory.mjs helpEntry bodies are accepted through --stdin or --file; there is no --body
mode. This avoids shell escaping surprises when memory includes Markdown, code,
backticks, $, or quotes.
Use --stdin for short or moderate entries:
node skills/project-memory/scripts/memory.mjs add --title "Current plan path" --type reference --tags docs --stdin <<'EOF'
The durable planning file is `docs/current-plan.md`; do not replace `$PROJECT_ROOT` before reading it.
EOFUse --file for longer prepared entries or content that already exists in a
file:
node skills/project-memory/scripts/memory.mjs update 3 --file /tmp/project-memory-entry.mdFor local development in this repository, use the script from the repo root:
node skills/project-memory/scripts/memory.mjs listRun the checks:
npm test