memory-processor

memory-processor is a skill for Claude Code from CraftOS-dev/CraftBot. It costs 16 tokens per session (2,851 once invoked), scanned A, original, MIT.

A batch-processing workflow that turns raw event records into selected long-term memories stored in memory files.

In plain words
What is it for?
Use it to process event batches, append distilled memories, remove processed records, and validate the cleanup.
Why use it?
It reduces a stream of events into a smaller set of important information that can be retained and reused later.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to process event batches, append distilled memories, remove processed records, and validate the cleanup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/craftos-dev/craftbot/memory-processor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CraftOS-dev/CraftBot --skill memory-processor
Clone the repo
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-processor

README.md
[![agentmods](https://agentmods.dev/badge/skills/craftos-dev/craftbot/memory-processor/github.svg)](https://agentmods.dev/skills/craftos-dev/craftbot/memory-processor)
Your own site
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/memory-processor"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/memory-processor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-processor

Your own site · 80×15
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/memory-processor"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/memory-processor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02851
Opus 5.5 $0.00006 $0.01140
Sonnet 5.5 $0.00003 $0.00570
Haiku 4.5 $0.00002 $0.00285

Measured 1mo ago against content hash a1450fd50225, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-processor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/memory-processor/SKILL.md · 263 lines

How it starts

The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Processor

The only way for agent to save event into long-term memory.

Files

  • The EVENT_UNPROCESSED.md staging file - Source (read & clear batches). Its ABSOLUTE path is given in the task instruction (the system merges every session's events into this one time-ordered file, oldest first). Always use that exact path; never assume a fixed location.
  • agent_file_system/MEMORY.md - Destination (append distilled memories)

Todo Tracking (REQUIRED)

Use update_todos to track progress. Create todos at start, update as you go.

Initial todos (create after reading first batch):

1. [pending] Process and loop for each batch (25~50 lines).
2. [pending] Validate and cleanup
3. [pending] Complete task

After each batch: Mark current as completed, add next batch if more events exist.

Batch Processing Workflow

Process 50 lines at a time to avoid memory issues.

Steps:

  1. Read first batch: read_file the staging file (path from the task instruction), offset=11, limit=50

  2. Create todos: Use update_todos to create initial todo list

  3. Loop for each batch (ORDER IS MANDATORY):

    • Distill batch: Apply rules below, extract IMPORTANT memories only
    • Append memories: stream_edit MEMORY.md (append only) — do this FIRST
    • Remove batch: stream_edit the staging file (delete lines 12-61) — ONLY after the MEMORY.md write above has completed
    • Update todos: Mark batch completed, add next batch if more events

    An event is removed from a session's queue only once it is gone from the staging file, so you MUST save to MEMORY.md before deleting from staging. Never delete a batch you have not processed — whatever you leave in the staging file is treated as unprocessed and kept for the next run.

  4. Validation (mark todo in_progress):

    • Validate no more unprocessed events in the staging file
    • Validate no duplicated memory in MEMORY.md
  5. End task: end_turn when validation passes

Read the full file on GitHub · 263 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +6 lines a1450fd50225
  2. 2mo ago Changed · +10 lines 4a4c6e382dd3
  3. 2mo ago First seen · 247 lines · 16 tokens per session scan A f24d109a5e2b

Subscribe to this mod's changes

memory-processor is a skill published in the GitHub repository CraftOS-dev/CraftBot (431 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 2,851 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

memory-processor compared with skills from other repositories

memory-processor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-processorCraftOS-dev/CraftBotSkill431yesterdayMITA16Claude Code
ast-skeletonizeralivirgo/Major-AI-SkillsSkill6todayMITA25Claude Code
context-pack-buildera275618631/codex-antigravity-collaborationSkill114d agoMITA48Claude Code, Codex
productivity-updatefrumu-ai/tandemSkill1251mo agononeA13Claude Code
productivity-memoryfrumu-ai/tandemSkill1251mo agononeA58Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex