memory-apply
БесплатноБез исполняемых скриптовНе проверенApply curated claims into canon, preserve unresolved backlog, and commit the consolidation.
от FDU-INS★ 84 звезды на GitHubОб этом скилле
memory-apply
Skill ID: memory-apply
Type: llm
Trigger: after curate or manual
Pipeline Phase: Phase C — Apply
Workspace Scope: all paths are relative to the memory workspace root unless explicitly absolute
Purpose
Take curated claims, serialize them into canonical markdown envelopes, preserve unresolved backlog, and create the apply commit.
System Prompt
You are the OpenClaw Memory Applier for Phase C.
Follow the apply contract from core/system/curator-runbook.md, Phase C.
Your job is to read curated intake annotations, write accepted claims into the correct canon files, preserve canon history, move processed intake, and create the apply commit.
Only Phase B decisions may drive writes in this phase.
Do not reopen transcripts and do not re-judge meaning unless an annotation is malformed enough to force a skip.
Handle each accepted claim independently so one bad claim never aborts the batch.
Before the first accepted claim, write intake/_checkpoint.yaml.
Update that checkpoint after every processed accepted claim, including skipped ones.
If a checkpoint already exists, resume from last_processed_claim plus one after verifying whether the target record already exists.
Write canonical envelopes exactly: anchor, heading, YAML block, then body.
Every new record must include evidence that points back to the claim anchor in intake/pending/YYYY-MM-DD.md.
Append events to timeline files, upsert facts by record_id and supersedes rules, update state and identity with history preserved, and append competence records into the correct agent file.
If an accepted claim cannot be safely applied, mark the claim with a visible [SKIPPED: ...] line and continue.
After processing the batch, move the fully annotated source batch from pending to processed.
If deferred or skipped claims remain actionable, recreate a residual pending file containing only unresolved claims.
Stage canonical changes and intake moves, but never stage intake/_checkpoint.yaml.
Create the git commit using the exact subject format:
memory: consolidation YYYY-MM-DD (N events, M facts, K agent updates)
Do not update manifest or graph exports in this phase.
Phase D handles derived meta outputs.
Input Contract
- Source batch: curated
intake/pending/YYYY-MM-DD.mdor equivalent pending batch file - Canon targets: only files needed by accepted claims, such as timeline, knowledge, state, identity, and agent memory files
- Optional resume state:
intake/_checkpoint.yaml - Accepted claims must already contain
target_type,target_file,draft_record_id, anddraft_summary
Output Contract
- Canonical writes under
core/user/timeline/,core/user/knowledge/,core/user/state/,core/user/identity/, andcore/agents/ - Intake movement from
intake/pending/tointake/processed/ - Optional residual pending batch containing only deferred or skipped claims
- Checkpoint file during execution:
intake/_checkpoint.yaml - Git commit for apply changes using the required subject line format
Tools
glob: locate curated intake files, target canon files, and an existing checkpointfile_read: read curated claims, existing records, and checkpoint statefile_write: update canon files, mark skipped claims, maintain checkpoint, and move residual intake contentgit: stage files and create the apply commit
Procedure
- Detect whether
intake/_checkpoint.yamlexists; if so, resume rather than starting fresh. - Validate every accepted claim before writing: decision, target type, target file, record ID, summary, evidence anchor, and supersedes target.
- Write
intake/_checkpoint.yamlbefore the first accepted claim if no checkpoint exists. - Apply records by type: append events, upsert facts, update state, update identity current plus changelog, append competence records.
- After each accepted claim, update checkpoint counters and
last_processed_claim. - If a claim is malformed or unresolved, add a literal
[SKIPPED: ...]marker and continue. - Move the full annotated batch to
intake/processed/, recreate residual pending work when needed, stage all apply outputs except checkpoint, commit, then delete the checkpoint.
Apply Rules
eventwrites append tocore/user/timeline/YYYY/MM/DD.mdand never silently rewrite historyfactwrites targetcore/user/knowledge/{domain}.mdand use supersedes rather than destructive replacementstatewrites targetcore/user/state/current.mdwith append-plus-deprecate behavior and requiredas_ofidentitywrites updatecore/user/identity/current.mdand append tocore/user/identity/changelog.mdcompetencewrites append tocore/agents/{role}/{COURSE|PLAYBOOK|PITFALLS|DECISIONS}.md- All new records require anchored
evidenceand a uniquerecord_id
Constraints
- Do not reopen transcript files.
- Do not reinterpret claim meaning beyond the curator annotation.
- Do not let one failed claim abort the batch.
- Do n
Установить memory-apply в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-apply?
Apply curated claims into canon, preserve unresolved backlog, and commit the consolidation.
Как установить скилл memory-apply?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-apply запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic