memory-layers

Distill user experiences into a five-layer memory system with FTS5 indexing.

77|11|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/MelodyTung888/memory-layers-skill --skill memory-layers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-layers
Source: https://github.com/MelodyTung888/memory-layers-skill/tree/main
Command: npx skills add https://github.com/MelodyTung888/memory-layers-skill --skill memory-layers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlite3, and includes scripts (resource) components.

What problem does it solve?

It helps you transform raw experiences into a structured, continuously improving knowledge base by turning events into lessons, patterns, principles, and an enduring identity.

Core Features & Use Cases

  • Five-layer distillation: Convert event details into L1 events, L2 lessons, L3 patterns, L4 principles, and L5 identity with a strict evidence chain.
  • Auto-distill at conversation end: Automatically decides when something is worth saving and persists it to your vault without requiring the user to trigger it every time.
  • FTS5 memory search + reminders: Index saved layers for fast full-text retrieval and schedule periodic review to validate whether memories still hold true.
  • Skill auto-generation signal: Tracks when patterns/principles are referenced frequently (default threshold) and prompts you for generating reusable skills.

Quick Start

Tell your AI to set up Memory Layers by asking it: "Configure five-layer memory and store my vault at ~/记忆库."

Frequently Asked Questions about memory-layers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I distill project retrospectives into actionable principles?

Convert recurring problem diagnoses into structured knowledge by mapping event details into a five-layer memory system that extracts patterns and principles with a strict evidence chain.

How does FTS5 search work with personal knowledge management?

Yes, this knowledge management approach supports team use by applying structured memory distillation to group project retrospectives, converting shared event details into collective patterns and principles.

How do I automatically save conversation summaries to a local vault?

Configure the five-layer memory vault by instructing your AI to set up Memory Layers and store the database at a specified directory like ~/记忆库.

Do I need sqlite3 to set up periodic reminders for knowledge management?

Schedule periodic review reminders to validate whether extracted patterns and principles still hold true over time, ensuring your knowledge base remains accurate and continuously improving.

What is the best way to track recurring decisions for follow-up?

When extracted patterns and principles are referenced frequently beyond a default threshold, the system prompts you to generate reusable skills, signaling that the knowledge is ready for broader automation.