FORGE Memory
Use this skill to keep long-lived lessons out of the main prompt flow.
Read Pattern
- Do not read memory at startup.
- Read
docs/forge/MEMORY.index.yamlfirst when present. - Read only the relevant file under
docs/forge/memory/. - Fall back to recent high-signal entries in
MEMORY.mdwhen split memory is absent. - Do not read the full memory file when a smaller topic file or recent entries are sufficient.
Write Pattern
After a task attempt:
- record a short recent entry
- record a fuller pattern or failure entry only if it adds future reuse value
- keep entries factual, brief, and attributable to a concrete task
- in team mode, include actor, branch, and task id so future agents can tell parallel work apart
- use the project-local entry shape when memory docs define one
- prefer
contract-conflictorcoordination-incidententries for reusable interface or parallel-work failures - if a
max_entriesvalue is present, consolidate oldest entries before exceeding it - summarize and deduplicate before appending
This skill exists mainly to save tokens while preserving operational learning.