← ClaudeAtlas

mama-contextlisted

Always-on background context injection from MAMA memory. Automatically surfaces relevant decisions when you work on code, without explicit invocation.
jungjaehoon-lifegamez/MAMA · ★ 12 · AI & Automation · score 76
Install: claude install-skill jungjaehoon-lifegamez/MAMA
# 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 unsave