Codex project memory
Skill Retourflow/project-memory-for-codex/skill/codex-project-memory
Verified, token-aware project memory for Codex with selective loading, context budgets, and Git-reviewable Markdown.
npx -y skills add Retourflow/project-memory-for-codex --skill codex-project-memoryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Maintain a minimal, token-aware, verified project memory for Codex repositories. Use when initializing project context files, resuming work across sessions, changing architecture or project goals, recording decisions, updating current state after implementation, or reducing bloated and stale agent documentation.
SKILL.md
3.7 KB, as published. Nobody here has run it
Codex Project Memory
Preserve the smallest verified project state needed for reliable future work.
Core Rules
- Treat code and tests as evidence; do not turn assumptions into project memory.
- Keep always-loaded context small.
- Read detailed documents only when the task needs them.
- Replace stale state instead of appending an endless activity log.
- Mark future work as
Plannedand shortcuts asTemporary. - Use Git history for exhaustive history; do not duplicate it in active context.
- Never store secrets, credentials, tokens, personal data, or private machine-specific information in project memory.
- Do not bypass sandboxing, approval requirements, repository permissions, or other user-controlled security boundaries.
Start A Task
- Read the nearest applicable
AGENTS.md. - Read
docs/PROJECT_CONTEXT.mdanddocs/CURRENT_STATE.md. - Inspect relevant code before relying on documentation.
- Load additional context by task type:
- Architecture, interfaces, data flow, storage, dependencies: read
docs/ARCHITECTURE.md. - A choice whose rationale matters: read relevant entries in
docs/DECISIONS.md. - Historical investigation only: search targeted entries in
docs/CHANGELOG.mdor Git.
- Architecture, interfaces, data flow, storage, dependencies: read
- If documentation conflicts with implementation, verify behavior and repair the documentation as part of the task.
Finish A Task
Update only documents affected by verified changes:
- Goal, scope, audience, constraints:
PROJECT_CONTEXT.md - Current progress, active work, blockers, next steps:
CURRENT_STATE.md - Implemented structure, interfaces, data flow, dependencies:
ARCHITECTURE.md - Significant choices and trade-offs:
DECISIONS.md - Concise user-visible or architectural change summary:
CHANGELOG.md
Then:
- Remove or replace stale statements.
- Keep each document within the budgets defined in
AGENTS.md. - Review the memory diff for sensitive or proprietary information.
- Run
python scripts/validate.py <project-root>when the script is installed. - Report which memory documents changed and why.
Decision Test
Create a decision record only when reversing the choice later would be costly or confusing. Include context, decision, rationale, alternatives, consequences, date, and status.
Do not create decision records for routine edits, formatting, or obvious implementation details.
Compaction
When a document exceeds its budget:
- Preserve current truth, non-obvious constraints, and active risks.
- Remove completed task narration from
CURRENT_STATE.md. - Collapse superseded architecture descriptions into the current design.
- Move durable rationale into
DECISIONS.md. - Leave detailed historical reconstruction to Git.
Evidence And Claims
When evaluating whether project memory saves context:
- Prefer reproducible measurements over intuition.
- Label character-based token calculations as estimates.
- Keep static fact coverage separate from agent task success.
- Report real token usage or success rates only when supplied by an actual run.
- Never infer model quality from context size alone.
If the repository includes benchmarks/run.py, run it after changing document
routing, budgets, benchmark tasks, or report methodology.
Read references/document-contracts.md when initializing files or deciding where information belongs.