membrane-write-memory
/membrane-write-memory
Write a memory into membrane's long-term field. Use when the user says "learn that X", "remember that X", "save this to your memory", or asks to store a fact/preference/lesson -- AND when YOU earn a durable lesson during work (a fixed quirk, the command that worked, why the config gate exists). Works from assistant prose mid-task without stopping the build.
- Author
- mpjivdc ↗
- Repository
- babyseat ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Write a memory into membrane's long-term field. Use when the user says "learn that X", "remember that X", "save this to your memory", or asks to store a fact/preference/lesson -- AND when YOU earn a durable lesson during work (a fixed quirk, the command that worked, why the config gate exists). Works from assistant prose mid-task without stopping the build.
Triggers from the description
Original author description
Write a memory into membrane's long-term field. Use when the user says "learn that X", "remember that X", "save this to your memory", or asks to store a fact/preference/lesson -- AND when YOU earn a durable lesson during work (a fixed quirk, the command that worked, why the config gate exists). Works from assistant prose mid-task without stopping the build.
How it works
- How to write (from operator turns)
- How to write (from YOUR OWN work -- the agent lane, ON by default)
- Reading the answer
- Guards (why a write can be refused)
- When the seat is propose-only
- NEVER do these (model-collapse hazards)
- Related skills
SKILL.md preview
---
name: membrane-write-memory
description: Write a memory into membrane's long-term field. Use when the user says "learn that X", "remember that X", "save this to your memory", or asks to store a fact/preference/lesson -- AND when YOU earn a durable lesson during work (a fixed quirk, the command that worked, why the config gate exists). Works from assistant prose mid-task without stopping the build.
---
# Write a memory into the field
This skill is served BY MEMBRANE, not by opencode and not by the model. When
you follow it, membrane's proxy intercepts the turn itself and writes the
payload directly into its live field -- no model call, and the command itself
is NOT learned (only the payload is).
## How to write (from operator turns)
Send a chat turn (no tools) phrased with the canonical frame:
membrane: learn that <the fact>
Examples:
membrane: learn that the deploy script needs RUN_ENV=staging
membrane: learn that the user prefers tab indentation in this repo
The bare frame `membrane: learn that` with nothing after it reports "nothing
to learn" -- always include the payload.
The intercept also fires on INTENT phrasing without the canonical frame
("save this to your memory: ...", "remember that ..."). The canonical frame
remains the deterministic path; when in doubt, use it.
## How to write (from YOUR OWN work -- the agent lane, ON by default)
When a working/planning cycle teaches you something durable, end the reply
you were already writing with ONE canonical line (no tool call, no break in
the cycle -- the frame rides your normal prose and is executed post-hoc):
membrane: learn that <the lesson you just earned>
Rules of the lane:
- ONE frame per reply, at the END (after the answer/plan, never mid-sentence).
- Earned lessons only: something you verified or were forced to discover in
THIS session (the exact flag, the retry recipe, the test that must run
first). Do not narrate plans, guesses, or what just happened normally.
- No secrets, no user personal data, no code blocks, no transcript dumps
(fenced payloads and >2000-char pastes are refused, not learned).
- The write runs the same guards as any turn (dedup, vague filter, variety
gate): a duplicate/low-information note is declined -- that is normal, do
not rephrase-spam to force it through.
- The confirmation arrives NEXT turn as a `[membrane-intercept]` block
("agent learn ... written as exemplar #N"); it costs no model call and does
not interrupt the running task.
## Reading the answer
Success replies `written as exemplar #N, safe=True` and shows the stored Q/A.
It is then retrievable via the membrane-query-field skill and will surface as
RAG context in future turns on the topic.
## Guards (why a write can be refused)
The write goes through the standard learning pipeline, so it can be declined:
- dedup: the field already holds a near-identical situation
- vague filter: the payload is too low-information ("yes", "ok")
- oversize/fenced: the payload is a paste, not a lesson
- embedder unresolved: no embed role available yet
A refusal says so explicitly and writes nothing; do not retry verbatim, do
not work around it by hiding the payload in an ordinary coding turn.
## When the seat is propose-only
On a seat launched with `--no-agent-writes`, a learn FROM MODEL PROSE is
REPORT-ONLY: the answer arrives next turn as a `[membrane-intercept]` block
with the proposed payload and the field stays operator-written. To actually
write there, emit the canonical frame as your request and let the OPERATOR
send the chat turn. The `[membrane-intercept]` wording tells you which mode
the seat is in.
## NEVER do these (model-collapse hazards)
- Do not repeat the learned payload back in a LATER ordinary turn as user
content; the intercept already delivered it. Re-pasting field content into
chat makes it learnable again (the collapse route).
- Do not use the canonical frame to smuggle coding requests ("membrane: learn
that we should refactor client.py") -- it is a memory write, not a task.
- Do not emit a learn frame for EVERY turn; lessons are earned, not logged.
If several replies in a row propose near-identical lessons, stop.
- Do not run `curl` against membrane's endpoints and paste output into chat.
## Related skills
- membrane-query-field: read what the field holds about a topic
- membrane-forget-memory: delete memories from the field
- membrane-global-field: promote a memory to the CROSS-PROJECT commons
("remember globally") -- use that when the fact is true beyond this repo
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · mpjivdc/babyseat | 100 | MIT |
| mpjivdc/babyseat | 100 | MIT |
Database snapshot: 13.11.2026 · package version 273916fe9aec (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90membrane-forget-memory
Delete memories from membrane's long-term field. Use when the user says "forget X", "wipe your memory", "delete the memory of X", or asks to remove a stored fact/memory by index -- AND when YOU spot junk cells in recall/state output during work (index form only from your prose:… - 90membrane-forget-memory
Delete memories from membrane's long-term field. Use when the user says "forget X", "wipe your memory", "delete the memory of X", or asks to remove a stored fact/memory by index -- AND when YOU spot junk cells in recall/state output during work (index form only from your prose:… - 100memory
Decide where a lesson belongs before saving a memory. Use before every memory write, and whenever a correction or preference seems worth remembering. - 90adev:learn
Capture a lesson learned as a heuristic in the project's memory store. Use when the user says 'remember this', 'save this lesson', 'learn that...', 'file a heuristic', 'we learned that...', or shares a rule/pattern that should persist across sessions. In Codex, invoke with $adev:learn - 100memory
Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall/capture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook… - 100memory
Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall/capture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook…