ouakar/ubinarys-dental/memory-manager
Claude Code and agent skill by ouakar/ubinarys-dental
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Persistent project memory using JSONL (git-committed). TF-IDF search, markdown-aware chunking, value-weighted GC. Stores decisions, architecture, blockers, and task status for cross-session continuity.
Install
npx vskill@latest install ouakar/ubinarys-dental/memory-managerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ouakar/ubinarys-dental/memory-manager.
Memory Manager Skill
Purpose: Give the AI agent persistent, searchable project memory so itdoesn't re-discover the same context every session. Retrieve only what'srelevant, compress the rest.
When to Use
- Session start — auto-retrieve project context instead of re-reading entire codebase
- Before answering — query memory with task keywords for relevant decisions/blockers
- After completing work — store what was done, decisions made, blockers found
- Periodic — refresh project identity when major changes happen
Memory Model
| Category | Examples | Weight (GC) | |
|---|---|---|---|
| decisions | "Chose PostgreSQL because..." | 10 | |
| architecture | "Using Next.js + Prisma + PostgreSQL" | 8 | |
| project | "Forgewright v7.1 — 47 skills, 19 modes" | 8 | |
| blockers | "Waiting on API key from vendor" | 7 | |
| session | "Session completed: built auth module" | 6 | |
| tasks | "BUILD complete: 3 services, 142 tests pass" | 5 | |
| conversation | Extracted facts from summarized files | 4 | |
| general | User-added notes | 4 | |
| git-activity | Recent commit summaries | 3 | |
| ingested | Chunked README/docs sections | 2 |
CLI Commands
All commands use scripts/mem0-cli.py:
Search — How It Works
Search uses TF-IDF (Term Frequency × Inverse Document Frequency) with cosine similarity — all Python stdlib, zero external dependencies.
Advantages over keyword search:
- Matches semantic relevance, not just keyword overlap
- Rare terms (e.g., "JWT") get higher weight than common terms
- Better results for paraphrased or related concepts
Token Optimization Strategy
When to Retrieve
- Always at session start — search with project name + request keywords, limit to top-5
- Before complex tasks — search with task keywords, limit to top-3
- At gate decisions — fetch relevant decisions/blockers
Token Budget
- Retrieval output: max 500 tokens (configurable via
MEM0_MAX_TOKENS) - Total memory injection per prompt: 800 tokens ceiling
Safety
Secret Redaction
The CLI automatically redacts patterns matching:
- API keys (
sk-*,key-*, Bearer tokens) - Passwords, secrets, tokens (configurable regex)
- Database connection strings with credentials
.memignore
Create .memignore at project root to exclude files/folders from ingestion.
Opt-out
- Set
MEM0_DISABLED=trueto skip all memory operations
Configuration
Integration with Forgewright Pipeline
Active Lifecycle Hooks
The orchestrator calls memory-manager at specific lifecycle points. All hooks are wired with exact CLI commands in skills/_shared/protocols/session-lifecycle.md:
| Hook | Trigger | Memory Command | |
|---|---|---|---|
SESSION_START | Pipeline begins | search "<project> <keywords>" --limit 5 | |
PHASE_COMPLETE | After DEFINE/BUILD/HARDEN/SHIP | add "Phase [name]: [summary]" --category tasks | |
GATE_DECISION | After Gate 1/2/3 | add "Gate [N] [decision]: [feedback]" --category decisions | |
SESSION_END | Pipeline completes | add "Session completed: [summary]" --category session + refresh | |
ERROR | Task failure/escalation | add "BLOCKER: [task] failed: [details]" --category blockers |
Context Integration with Project Profile
Memory works alongside .forgewright/project-profile.json:
- Project Profile = structural facts (stack, health, patterns) — always loaded
- Memory = temporal facts (decisions, blockers, progress) — searched contextually
- Together they provide full project context without re-scanning
BA Integration
When the Business Analyst skill completes:
- BA outputs (
ba-package.md, requirements register) are referenced by memory - PM reads BA package directly — memory stores the decision "BA validated requirements"
- Gate 1 stores BRD approval decision for future sessions
Manual Usage
Any skill can invoke memory commands directly:
Garbage Collection — Value-Weighted
GC scores each entry: category_weight × recency_factor, then prunes lowest-scored:
| Category | Weight | Rationale | |
|---|---|---|---|
| decisions | 10 | Most valuable — architecture choices persist | |
| architecture | 8 | Stack identity rarely changes | |
| project | 8 | Core project facts | |
| blockers | 7 | Active impediments need attention | |
| session | 6 | Recent work history | |
| tasks | 5 | Phase completion status | |
| conversation | 4 | Summarized context | |
| general | 4 | User notes | |
| git-activity | 3 | Easily re-ingested | |
| ingested | 2 | Easily re-ingested from source files |
Recency factor: today=1.0, 30 days ago=0.7, 90+ days ago=0.1.
File Layout
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/forgewright/skills/memory-manager/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ouakar/ubinarys-dental/memory-manager)