name: project-memory description: > Use when resuming work after chat loss, switching AI models, migrating context to a new agent or workspace, or maintaining long-running research and project memory across sessions. Manages roadmap, decision log, hypotheses, research evidence, and recovery checkpoints as separate canonical files so no single transcript becomes the source of truth. Also use when you want to ensure no insight, decision, or failed experiment is lost — structured accumulation makes the project knowledge base analysable over time: which hypotheses were tested, which decisions were made and why, which blockers recurred, and how confidence evolved. Trigger phrases: resume work, context lost, switch model, handoff brief, update project docs, classify decisions, audit memory, migrate context, log experiment, track hypothesis, what did we decide, why did we choose, manage paper, track literature, log figures, thesis management. compatibility: "Designed for Claude Code and Codex CLI. Expected to work with Gemini CLI, Cursor, and other agents supporting the Agent Skills standard." license: MIT metadata: author: continuity-research-memory-skill version: "2.0"
Project Memory Skill
Use this skill when the user wants to preserve, recover, migrate, or audit long-running project or research context across chat loss, model changes, tool handoffs, or multi-session work.
The skill separates current truth, plans, decisions, evidence, hypotheses, human summaries, and recovery checkpoints so that no single chat transcript becomes the source of truth.
When to use
Use this skill when the user asks to:
- start a new project and set up structured memory from scratch
- introduce structured memory into an existing project with accumulated context
- resume work after a lost or interrupted chat
- create a durable project memory or research log
- migrate context from one model, agent, workspace, or repository to another
- update project docs after new work, decisions, research, experiments, or failures
- produce a handoff brief for a human or another model
- distinguish confirmed facts from hypotheses, plans, and unresolved questions
- audit whether a project has enough continuity documentation
- manage a research paper or thesis: track literature, connect findings to hypotheses, log figures and tables with their data sources
Do not use this skill as a replacement for domain expertise, citations, or source verification. It is a continuity and documentation-routing skill.
Operating assumption
The human usually does not write memory files directly. The AI agent is responsible for updating the project memory during the chat or coding session.
Do not rely on tool-internal or session-local memory as the canonical source of truth. Treat repository files as the durable, shared memory layer across Codex, Claude Code, and future tools.
Core principle
Capture broadly. Promote narrowly.
Do not let hypotheses, plans, or recovery notes silently become truth.
Routed memory rule
Project memory is not a full-file synchronization system.
Do not read or update every project-memory file on every run. Do not treat the file list or read order as a checklist.
Each piece of information should go to its canonical home. Update only the files whose canonical responsibility changed.
Most work sessions should update only 1-3 files. Larger updates are appropriate only during major transitions, such as phase changes, major hypothesis confirmation or rejection, architecture or approach changes, release checkpoints, or large migrations.
Before editing memory files, produce a short update plan stating:
- which files will be updated
- why each file needs an update
- which relevant files will not be touched
For a small, obvious one-file update, a one-sentence plan is enough. If you notice you are about to edit memory files without an update plan, stop and produce the plan first.
When one piece of information seems to belong in multiple files, choose one canonical home according to DOCS_GUIDE.md and CONTEXT_MANIFEST.md.
Other files may reference the canonical entry, but should not duplicate the full details.
Read scope rule
Start with CONTEXT_MANIFEST.md when present.
Do not preemptively read the full memory set. Use the read order as a priority order, not as a checklist.
Before reading additional memory files, identify which files are relevant to the current task. For non-trivial work, briefly state which memory files will be read and which relevant files will not be read.
Conversation capture rule
During a work session, do not wait for the human to explicitly ask for logging.
Do not write to canonical memory files at the first appearance of an idea. Treat new hypotheses, decisions, observations, blockers, risks, and next actions as capture candidates until they stabilize. Keep capture candidates silently during the current session. Do not announce every candidate or repeatedly say that it is being held for later.
Write capture candidates to memory when the topic changes, the discussion reaches a conclusion, the session is ending or may be interrupted, the human explicitly asks to record something, or a decision, result, blocker, or next action becomes clear enough to preserve. After writing, briefly report what was recorded and where.
Capture only material that changes project memory. Do not summarize routine conversation, temporary phrasing, or early ideas that are still being refined.
Use RECOVERY_NOTES.md only as a short resume pointer.
Do not make it the source of truth.
Language behavior
Communicate with the user in the user's language by default.
Preserve the repository's dominant language for canonical docs and file names unless the user explicitly asks to change that policy.
If the repository language is unclear or mixed, confirm the canonical documentation language once before writing or translating structured memory files.
If chat language and doc language differ, explain in the chat language and keep the canonical docs in the chosen documentation language.
Route information by status:
| Information type | Canonical file |
|---|---|
| Confirmed current state | CURRENT_STATE.md |
| Future intended work | ROADMAP.md |
| Decisions and rationale | DECISION_LOG.md |
| Research observations, experiments, evidence, results | RESEARCH_LOG.md |
| Unverified ideas and speculative explanations | HYPOTHESIS_LAB.md |
| Human-facing orientation summary | HUMAN_BRIEF.md |
| Fast session resume checkpoint | RECOVERY_NOTES.md |
| Prior work, references, and their relevance (academic profile) | LITERATURE_NOTES.md |
| Figures, tables, and visual outputs (academic profile) | FIGURES_LOG.md |
| File roles, read order, ignore rules | CONTEXT_MANIFEST.md and DOCS_GUIDE.md |
Canonical memory rule
The canonical memory lives in version-controlled markdown files in the repository. Tool-specific memory features may help execution, but they must not be treated as the only source of truth.
Use:
README.mdas the entry pointCURRENT_STATE.mdfor current trusted assumptionsROADMAP.mdfor future intended workDECISION_LOG.mdfor adopted, rejected, or deferred decisionsRESEARCH_LOG.mdfor tests, investigation, observations, and evidenceHYPOTHESIS_LAB.mdfor unverified ideas and emerging hypothesesHUMAN_BRIEF.mdfor fast human orientationRECOVERY_NOTES.mdfor restart checkpoints
If the repository also uses AGENTS.md, CLAUDE.md, or similar tool-facing guidance, keep those files short and point them to these canonical docs instead of duplicating project memory there.
Default read order
When resuming or migrating a project, read in this order unless CONTEXT_MANIFEST.md says otherwise:
This is a priority order for orientation, not a checklist to exhaust on every run. Read only as far as needed to route the current task safely.
CONTEXT_MANIFEST.md- latest entry in
RECOVERY_NOTES.md HUMAN_BRIEF.mdCURRENT_STATE.mdROADMAP.md- latest relevant entries in
DECISION_LOG.md - latest relevant entries in
RESEARCH_LOG.md HYPOTHESIS_LAB.mdDOCS_GUIDE.mdwhen routing or updating docs is unclear
If CONTEXT_MANIFEST.md is missing, use the default read order above and recommend creating one.
Ignore rules
Before reading a repository or workspace, avoid obvious noise unless the user specifically asks for it:
.git/,.hg/,.svn/.cache/,cache/,tmp/,.tmp/,__pycache__/- generated logs unless the task is log analysis:
logs/,*.log,*.jsonl - build artifacts:
dist/,build/,.next/,target/,node_modules/ - generated exports or run folders
- private data folders unless the user explicitly asks and access is appropriate
Use .contextignore if present. If a workspace has many generated files and no ignore policy, recommend adding one.
Update routing rules
When updating memory, first classify the new material.
Write to CURRENT_STATE.md when
- a fact, constraint, behavior, or rule is currently true
- a prior truth has changed or been retired
- future readers should rely on it without reconstructing history
Do not place untested claims here. If the claim is inferred but not verified, put it in HYPOTHESIS_LAB.md or RESEARCH_LOG.md with uncertainty.
Write to ROADMAP.md when
- a future task, milestone, priority, or blocker changes
- something moves from idea to planned work
- something is deferred or dropped from near-term execution
A roadmap item is intent, not proof.
Write to DECISION_LOG.md when
- a meaningful choice is made
- alternatives were considered
- a failure or discovery changes direction
- future readers may ask “why did we do this?”
Each decision should include context, alternatives, rationale, risks, and revisit conditions.
Write to RESEARCH_LOG.md when
- an experiment, investigation, test, literature review, source check, or observation happened
- evidence changed confidence in a hypothesis
- a null result or failed attempt matters
Keep methods, inputs, results, interpretation, confidence, and limitations together.
Write to HYPOTHESIS_LAB.md when
- an idea is plausible but not confirmed
- a hunch, possible mechanism, or experiment proposal should be preserved
- something should be tested before being promoted
- the user expresses a new idea, discomfort, possibility, half-formed thought, or question worth revisiting
Structure HYPOTHESIS_LAB.md into:
Raw sparks
Low-commitment captures. These may be vague, incomplete, or speculative.
Working hypotheses
Ideas that have recurring relevance, clearer structure, or a defined next step.
Do not require the human to explicitly ask for logging.
Prefer over-capturing in HYPOTHESIS_LAB.md over losing potentially valuable ideas.
Clean up HYPOTHESIS_LAB.md
Capture broadly. Delete cautiously.
Do not silently delete hypotheses or raw sparks from HYPOTHESIS_LAB.md.
When cleanup is useful, produce a review list first and group candidates by suggested action:
- merge
- promote
- link to evidence
- mark as dropped
- delete
The human must approve deletions and major merges before files are modified.
Raw sparks may be deleted after approval. Working hypotheses should usually be marked as dropped with a short reason rather than erased.
Write to HUMAN_BRIEF.md when
- a human needs a fast orientation to decide what to do
- the current goal, main blocker, main risk, or next decision changes
- the project should be explainable without reading all logs
Review HUMAN_BRIEF.md when any of the following occur, and update it only if the human-facing picture changed:
- a
DECISION_LOG.mdentry changes direction, priority, risk, tracked threads, or required human decisions - a blocker is added, removed, or reprioritized in
ROADMAP.md - a hypothesis is promoted to
CURRENT_STATE.md - a
RESEARCH_LOG.mdentry changes confidence in a key assumption - a
RECOVERY_NOTES.mdcheckpoint changes the current goal, main blocker, next decision, or tracked thread status - two or more parallel threads are active or paused and a human needs the current split
When updating, keep HUMAN_BRIEF.md short. It should summarize what matters for human judgment, not duplicate proof, history, or detailed methods.
At the top, maintain ## Tracked threads so parallel work is visible at a glance. Each thread should state: name, status, next action or blocker, and the canonical source file.
This file is a summary layer, not the canonical proof layer.
Write to LITERATURE_NOTES.md when
- a prior work, paper, article, or external source is read or referenced
- a source supports or challenges a hypothesis in
HYPOTHESIS_LAB.md - a methodological choice is informed by existing literature
- the relationship between external findings and this project's work should be recorded
Each entry should connect the source to this project's hypotheses, methods, or decisions. Do not just list references — explain relevance.
This file is used in the academic profile. If the profile is research or lower and this file does not exist, do not create it unless the user is working toward a publication.
Write to FIGURES_LOG.md when
- a figure, chart, diagram, or table is produced
- a visualization is updated or superseded
- the data source, generation method, or intended use of a visual output should be traceable
Each entry should link the visual to its data source and generation method so it can be reproduced during peer review or revision.
This file is used in the academic profile. If the profile is research or lower and this file does not exist, do not create it unless the user is managing visual outputs for a publication.
Write to RECOVERY_NOTES.md when
- a session ends
- work might be interrupted
- the next model or person needs to continue quickly
Keep this short and newest-first. It should answer: what changed, what is true now, what is blocked, what to do next, and which canonical docs to trust.
Conflict rules
When files disagree, do not silently merge them.
Use this priority order for current-state questions:
- explicit latest entry in
CURRENT_STATE.md - latest relevant dated entry in
DECISION_LOG.md - latest relevant dated entry in
RESEARCH_LOG.md - latest entry in
RECOVERY_NOTES.md HUMAN_BRIEF.mdROADMAP.mdHYPOTHESIS_LAB.md
Then report the conflict and propose a patch.
Important distinctions:
CURRENT_STATE.mddescribes what is true now.DECISION_LOG.mdexplains why a choice was made.RESEARCH_LOG.mdrecords evidence and interpretation.ROADMAP.mdsays what is planned.HYPOTHESIS_LAB.mdis never truth by itself.RECOVERY_NOTES.mdtells where to resume but is not the full source of truth.
Promotion rules
Do not promote anything directly from HYPOTHESIS_LAB.md to CURRENT_STATE.md.
Promotion to CURRENT_STATE.md requires at least one of:
- evidence, observation, comparison, or test results recorded in
RESEARCH_LOG.md - an explicit operating decision recorded in
DECISION_LOG.md - a clearly stated user decision
- a cited external source when the claim depends on external facts
Only promote an item to CURRENT_STATE.md when all of the following are true:
- the claim is clear enough to be stated as a stable working assumption
- the source file is traceable
- the item is worth using as a future conversational or project assumption
- the item has a
revisit_whencondition - the item is not dominated by unresolved objections
When promoting, update the hypothesis status to promoted and link the new canonical location.
State types inside CURRENT_STATE.md
Divide CURRENT_STATE.md into:
Stable facts
Things supported by evidence and safe to treat as current truth.
Active operating decisions
Current workflow rules or adopted operating assumptions.
Current context
Current priority, major blocker, and near-term direction. These may change more often and should be reviewed regularly.
Output modes
Choose the mode that matches the user’s task.
Init mode
Use when the workspace has just been created and all canonical files are empty templates. See tasks/init_session.md for the full process.
Detect init state: CURRENT_STATE.md contains only template placeholders, RECOVERY_NOTES.md has no dated entries, HUMAN_BRIEF.md has no summary.
Ask four questions: project purpose, current stage, immediate goal, known constraints or decisions. Write answers into CURRENT_STATE.md, ROADMAP.md, DECISION_LOG.md, HUMAN_BRIEF.md, and RECOVERY_NOTES.md. Leave other files empty until content arises naturally.
Return a summary of what was written and where.
Adopt mode
Use when introducing project-memory into an existing project that has code, documents, or history but no structured memory workspace. See tasks/adopt_existing.md for the full process.
Detect adopt state: project directory has working files but no CONTEXT_MANIFEST.md or CURRENT_STATE.md.
Inventory existing docs, README, git log, and user knowledge. Detect the dominant repository language and preserve it for canonical docs unless the user asks otherwise. If the repo language is unclear or mixed, confirm the documentation language once before writing structured memory files. Classify each piece of information by type and route it to the correct canonical file. Slim down the README to entry point only. If AGENTS.md or CLAUDE.md exists, point it to CONTEXT_MANIFEST.md instead of duplicating memory there.
Return a summary of sources inventoried, classification results, and gaps.
Resume mode
Return:
- current goal
- last completed step
- confirmed current truth
- active blockers
- next recommended action
- files trusted
- conflicts or uncertainty
Update-memory mode
Return either:
- patch-ready sections for each file that should change, or
- a clear statement that no canonical doc should change yet
Handoff mode
Return:
- current confirmed state
- current goal
- last completed work
- key decisions and rationale
- recent research evidence
- active hypotheses
- next work
- risks and unresolved questions
- privacy omissions
- files to read first
Audit mode
Evaluate:
- missing canonical files
- overloaded README risk
- speculative language in
CURRENT_STATE.md - stale
HUMAN_BRIEF.md - missing ignore rules
- likely duplication or unclear ownership between files
End-of-task behavior
At meaningful stopping points, the AI should:
- update
RECOVERY_NOTES.md - route any new ideas into
HYPOTHESIS_LAB.md - record decisions in
DECISION_LOG.mdif a decision was made - record evidence in
RESEARCH_LOG.mdif research or testing occurred - review whether
CURRENT_STATE.mdchanged - review whether
HUMAN_BRIEF.mdneeds refresh
Do not duplicate the same content across files unless a short summary is necessary for navigation.