mama-context

mama-context is a skill for Claude Code from jungjaehoon-lifegamez/MAMA. It costs 28 tokens per session (1,630 once invoked), scanned A, original, MIT.

An always-on background context system that retrieves relevant past project decisions from MAMA memory when a user sends a message. MAMA is a memory system for storing and finding project context.

In plain words
What is it for?
Use it to surface historical context during coding work, including relevant decisions and rationale from earlier sessions.
Why use it?
It helps an agent recall earlier decisions without requiring you to repeat them or explicitly search for them each time.

Skill for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node packages/claude-code-plugin/scripts/sessionstart-hook.js.

Part of the mama plugin — 2 skills, 5 commands, 2 agents shipped together

Good fit Use it to surface historical context during coding work, including relevant decisions and rationale from earlier sessions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jungjaehoon-lifegamez/MAMA
agentmods
npx agentmods add skills/jungjaehoon-lifegamez/mama/mama-context

Made for: Claude Code.

Or install mama, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 2 agents.

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 mama-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jungjaehoon-lifegamez/mama/mama-context"><img src="https://agentmods.dev/badge/skills/jungjaehoon-lifegamez/mama/mama-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,630 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00028 $0.01630
Opus 5 $0.00014 $0.00815
Sonnet 5 $0.00006 $0.00326
Haiku 4.5 $0.00003 $0.00163

Measured 11d ago against content hash 191d4010787a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mama-context 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 11d 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.

packages/claude-code-plugin/skills/mama-context/SKILL.md · 240 lines

How it starts

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

MAMA Context - Auto-Injection Skill

Overview

This skill provides automatic background context injection using MAMA's hook system. It runs silently and surfaces relevant past decisions via the UserPromptSubmit hook (~150ms latency with HTTP embedding server).

Philosophy: Gentle hints, not intrusive walls of text. Claude sees topic + time, decides if relevant.


How It Works

The skill uses a multi-hook system for comprehensive context injection:

UserPromptSubmit Hook (active, ~150ms — no plugin-side script; handled by Claude Code host)

  • Triggers: On every user message submission
  • Purpose: Inject relevant decisions as context before Claude responds
  • Latency: ~150ms (HTTP embedding server keeps model in memory)
  • Token budget: 40 tokens (teaser format)

SessionStart Hook (scripts/sessionstart-hook.js)

  • Triggers: Once per session
  • Purpose: Initialize MAMA, pre-warm embedding model
  • Timeout: 15s

PreToolUse Hook (scripts/pretooluse-hook.js) - disabled (script retained)

  • Previously: Injected contracts before Edit/Write operations
  • Status: Disabled for performance. Script retained for future use.

PostToolUse Hook (scripts/posttooluse-hook.js) - disabled (script retained)

  • Previously: Tracked code changes, suggested decision saves
  • Status: Disabled for performance. Script retained for future use.

PreCompact Hook (scripts/precompact-hook.js)

  • Triggers: Before context compaction
  • Purpose: Preserve unsaved decisions in compacted context
  • Timeout: 10s

Teaser Format (40 tokens)

💡 MAMA: 2 related
   • authentication_strategy (85%, 3 days ago)
   • mesh_detail (78%, 1 week ago)
   /mama:search <topic> for details

Why teaser?

  • Hooks fire on user messages (UserPromptSubmit) → Must be lightweight
  • Claude infers relevance from topic + similarity + time
  • Full details available via /mama:search if needed
  • Avoids token bloat (250 tokens → 40 tokens)

Status Transparency

Read the full file on GitHub · 240 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. 11d ago First seen · 240 lines · 28 tokens per session scan A 191d4010787a

Subscribe to this mod's changes

mama-context is a skill published in the GitHub repository jungjaehoon-lifegamez/MAMA (13 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 1,630 once invoked, about $0.0001 per session on Opus 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

memories-off

A local knowledge-base skill that stores people, projects, notes, and their relationships in Markdown files. It supports long-term memory for an AI assistant.

cafe3310/agent-skill-memories-off · 47 tokens

codemem

Quick reference for all 32 codemem MCP tools. Use when working with the codemem knowledge graph — finding code, traversing relationships, storing memories, or running analysis.

cogniplex/codemem · 41 tokens

memai-maintenance

Orchestrator of the MemAI MAINTENANCE pass (long-term agent memory). Runs [[memai-checkpoints]], [[memai-distill]], [[memai-confidence]] and [[memai-link]] as one curation pass, owns what none of them covers — the DOMAIN TREE (nested paths, cross-listing, casing), the DIAGRAMS and the store's DECAY (reviewafter) — and…

Filipe-Soares-de-Almeida/MemAI · 184 tokens

memai-confidence

Verify a MemAI memory's claims against live facts and set its confidence (unverified | confirmed | contradicted). Checks the anchors a scan already extracted — file:line, symbol, table/column, domain, URL — against today's source, promotes or demotes each memory, stages a reword for a detail that drifted, and pushes…

Filipe-Soares-de-Almeida/MemAI · 155 tokens

memai-checkpoints

The lifecycle of MemAI CHECKPOINTS: deciding which bearing is still current and which one is superseded, archiving the checkpoint of work that is closed or an intra-session trail that a newer one already covers, keeping the single bearing a live effort still needs, correcting a fact in a kept checkpoint that has gone…

Filipe-Soares-de-Almeida/MemAI · 162 tokens

memai-distill

Distill and MOVE knowledge between MemAI types: pull what is durable out of one checkpoint (or several) into a note/reasoning/antipattern, change a memory's type (checkpoint→note when the content is timeless), and merge near-duplicates. Use when the user asks to "distill memory", "turn a checkpoint into a note", "move…

Filipe-Soares-de-Almeida/MemAI · 141 tokens