memory-diff

memory-diff is a skill for Claude Code, Codex from realactivity/tula. It costs 105 tokens per session (1,183 once invoked), scanned A, original, Apache-2.0.

A local health-history comparison that finds what changed since a chosen date, event, or previous check-in by reading saved records and notes.

In plain words
What is it for?
Use it for questions such as what changed since last week, a post-visit summary, a lab follow-up, or a weekly or monthly health recap. It reads local workspace data and does not provide medical advice.
Why use it?
It brings together changes from medical records, processed documents, health-feed summaries, and dated notes instead of requiring a manual review of each source. Changes are grouped by clinical significance.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it for questions such as what changed since last week, a post-visit summary, a lab follow-up, or a weekly or monthly health recap. It reads local workspace data and does not provide medical advice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/realactivity/tula/memory-diff
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 realactivity/tula --skill memory-diff
Clone the repo
git clone --depth 1 https://github.com/realactivity/tula

Made for: Claude Code, Codex.

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-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/realactivity/tula/memory-diff/github.svg)](https://agentmods.dev/skills/realactivity/tula/memory-diff)
Your own site
<a href="https://agentmods.dev/skills/realactivity/tula/memory-diff"><img src="https://agentmods.dev/badge/skills/realactivity/tula/memory-diff/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-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/realactivity/tula/memory-diff"><img src="https://agentmods.dev/badge/skills/realactivity/tula/memory-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,183 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.
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.00105 $0.01183
Opus 5.5 $0.00042 $0.00473
Sonnet 5.5 $0.00021 $0.00237
Haiku 4.5 $0.00011 $0.00118

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

Security

Grade A, and why

memory-diff 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-diff/SKILL.md · 111 lines

How it starts

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

memory-diff

When to Use

✅ Use when:

  • User asks "what's changed in my health since <last week / last month / since X>"
  • Post-visit or post-lab summaries - "what's new since my last appointment"
  • Scheduled weekly or monthly longitudinal check-ins
  • "Since I started " or "since my referral to " recaps
  • Another skill needs a "what's new" sub-step (e.g., after health-records refresh)

When NOT to Use

❌ Don't use when:

  • User wants news or social signal -> use myhealth-pulse
  • User shares a PDF, screenshot, or image -> use med-pdf
  • User asks for raw chart data -> use health-records
  • User wants to draft a clinician message -> use epic-note
  • User asks for medical advice - decline politely; this reads memory, not clinical judgment

Setup

No external tools, no API keys. The skill reads from the local workspace only.

Memory sources, in precedence order (full contract in references/memory-paths.md):

  • ~/.openclaw/workspace/.health-records-cache/<date>/ - structured FHIR JSON
  • ~/.openclaw/workspace/.med-pdf-cache/<slug>/ - extracted JSON from PDFs
  • ~/.openclaw/workspace/memory/*.md - dated agent notes
  • ~/.openclaw/workspace/MEMORY.md - persistent agent memory
  • ~/.openclaw/workspace/.myhealth-pulse-cache/<date>.json - pulse digests

Workflow

  1. Resolve the reference point. Default: 7 days ago. Parse named anchors from the prompt:

    • Calendar phrases: "last week" (7d), "last month" (30d), "last 90 days"
    • Event anchors: "since I started ", "since my visit" - scan memory for the matching event date
    • Absolute dates: "since 2026-04-01"
    • If ambiguous, ask one clarifying question, then proceed.
  2. Enumerate within the window. For each source above, list files modified or dated within the window. Don't load everything into context - stream-scan headers and key sections.

  3. Classify each change. Apply the rubric in references/clinical-significance.md:

    • Tier 1 - signal. New abnormal lab, med change, new diagnosis,

      20% trend change in a tracked marker, new imaging finding, abnormal-to-normal resolution.

    • Tier 2 - notable. Stable abnormality continuing, mild trend, new appointment scheduled, new pulse mentions of relevant topics.
    • Tier 3 - noise. Routine entries, unchanged trends, low-relevance pulse items. Collapsed to a one-line count.

Read the full file on GitHub · 111 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 111 lines · 105 tokens per session scan A cdb646a45e98

Subscribe to this mod's changes

memory-diff is a skill published in the GitHub repository realactivity/tula (46 stars, last pushed 4d ago), licensed Apache-2.0. It adds 105 tokens to every session and 1,183 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

ehr-data-parsing

Parse and extract clinical data from HL7v2 messages and FHIR R4 resources using Python. Use when the user mentions HL7v2, HL7, FHIR, PID segment, OBX segment, MSH segment, Patient resource, Observation resource, Condition resource, MedicationRequest, EHR data extraction, clinical message parsing, FHIR bundle, HL7 to…

awslabs/hcls-agent-skills · 165 tokens

healthcare-expert

Expert-level healthcare systems, medical informatics, HIPAA compliance, and health data standards. Use when the user mentions medical, HIPAA, HL7, FHIR, or EHR, or when the task involves Healthcare IT, Standards and Protocols, Regulatory Compliance, or Security and Compliance.

personamanagmentlayer/pcl · 64 tokens

long-horizon-agent-memory-and-provenance-starter

Use this starter when a task lands in the Long-horizon agent memory and provenance frontier leaf and the repository has curated resources but no dedicated runtime implementation yet.

ma-compbio-lab/SkillFoundry · 0 tokens

memory-insights

Knowledge base analytics and health monitoring - file statistics, health scoring, keyword extraction, activity trends, gap detection, and comprehensive reporting.

chainlesschain/chainlesschain · 29 tokens

system-monitor

A system-monitoring tool for inspecting CPU, memory, disk, network, processes, uptime, and general system information.

chainlesschain/chainlesschain · 26 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens