A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Three-layer memory architecture for long-term AI learning with Claude
Solving AI memory limitations through hierarchy, not accumulation.
A three-layer memory system that eliminated 60% RAG retrieval failures in 10+ months of AI-assisted learning.
After 10 months using Claude for Python learning with Socratic method:
Root cause: Accumulated 79,000 lines of documentation in RAG. The knowledge was causing the problem, not solving it.
┌─────────────────────────────────────────────────────────────┐
│ Layer 1: Project MD (Bootstrap / "BIOS") │
│ └→ Declarative config that auto-triggers Skill loading │
├─────────────────────────────────────────────────────────────┤
│ Layer 2: SKILL.md (Permanent Knowledge / "Hard Drive") │
│ └→ 900 lines distilled from 79,000 original documentation │
├─────────────────────────────────────────────────────────────┤
│ Layer 3: RAG (Rotational Working Memory / "RAM") │
│ └→ Only current exercise, cleared between sessions │
└─────────────────────────────────────────────────────────────┘
| Innovation | Description |
|---|---|
| MD as declarative MCP | Project description auto-triggers Skill in Claude.ai |
| Intentionally rotational RAG | Cleared per exercise, not accumulated |
| Human-as-Firewall | Manual curation before cloud upload |
| Three-tier sync | Local → Claude Code → Claude Desktop |
| Metric | Before (RAG-Only) | After (Layered) |
|---|---|---|
| RAG retrieval failures | 60% | 0% |
| Compaction frequency | Every 4-5 prompts | Rarely |
| Session continuity | Poor | Excellent |
| Context control | None | Full |
┌──────────┐ ┌──────────┐ ┌──────────┐
│Exercise N│ --> │Exercise │ --> │Exercise │ --> ...
│ in RAG │ │ N+1 │ │ N+2 │
└────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │
v v v
┌─────────────────────────────────────────────┐
│ SKILL.md (Permanent) │
│ Concepts consolidated here over time │
└─────────────────────────────────────────────┘
RAG size: CONSTANT (~5-10% capacity)
SKILL size: GROWS SLOWLY (only key concepts)
Retrieval failures: 0%
📄 Full Documentation (English)
📄 Documentación Completa (Español)
The full documents include:
This architecture was validated by Claude Opus 4.5 running inside the system described:
"I am the proof that this architecture works. This document was created inside a Claude.ai Project that uses the exact three-layer system. The Project MD triggered my Skill automatically, I have access to 900 lines of permanent knowledge, and the RAG contains only the current session. The system works."
— Claude Opus 4.5, December 21, 2025
See full documentation for detailed implementation.
| Tool | Purpose |
|---|---|
convert_pdfs_to_md.py | Converts PDFs to searchable Markdown |
sanitize_filenames.py | Removes problematic characters for Claude Desktop |
Result: 133 PDFs converted, 277 files sanitized in 5 rounds.
✅ Ideal for:
❌ Not recommended for:
JuanMa Cruz Herrera
Spanish data science student, 51 years old
10+ months learning Python with Claude using Socratic method
MIT - Use freely for educational purposes.
Questions? Improvements? Alternative approaches?
Particularly interested in:
Created: December 21, 2025
Platform: Claude.ai Projects + Claude Code + Claude Desktop
"The solution to AI memory isn't more memory—it's better memory architecture."
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Human + AI music production workflow for Suno - skills, templates, and tools
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho