A hierarchical memory management system for AI agents that optimizes context usage through a tiered Index-Topic-Transcript architecture.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install memory-layer
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install memory-layer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Memory Layer is a sophisticated memory architecture designed specifically for Openclaw Skills, drawing inspiration from the Claude Code memory philosophy. It addresses the challenge of context window bloat by organizing agent knowledge into three distinct tiers: a lightweight Index for global pointers, structured Topic files for on-demand knowledge, and raw Transcripts for historical reference.
By implementing this tiered approach, the system ensures that the AI agent maintains high context efficiency, often exceeding 70% utilization. This allows for long-term project persistence and complex knowledge retrieval without overwhelming the model's immediate memory capacity.
To get started with this memory system for your Openclaw Skills, follow these steps:
# Create the required directory structure
mkdir -p memory/topics memory/transcripts/$(date +%Y-%m)
# Backup your existing memory files
cp -r memory/ memory.backup.$(date +%Y%m%d)
# Restructure your MEMORY.md as an index (refer to index-spec.md)
# Optional: Enable automated maintenance
openclaw cron add "0 23 * * *" "memory-system auto-dream"
The Memory Layer organizes data using a strict hierarchy to ensure fast retrieval within Openclaw Skills:
| Layer | Location | Size Limit | Load Strategy |
|---|---|---|---|
| Index | MEMORY.md | ≤ 25KB | Always Loaded |
| Topic | memory/topics/*.md | ≤ 50KB | On-Demand (2-5 files) |
| Transcript | memory/transcripts/*.log | N/A | Grep/Search Only |
Topics are further categorized by domain, path, update timestamp, summary, tags, and an importance score (0.0 - 1.0).
Loading
Automate the execution of prompts and commands at fixed intervals for continuous monitoring and repetitive tasks.

An AI-powered agent skill for performing deep, actionable reviews of GitHub pull requests based on actual diff data and repository conventions.

A powerful travel automation tool that transforms location lists or itinerary images into interactive HTML route maps with integrated hotel search.

Financy is a professional-grade personal finance tracking API that provides real-time transaction management and actionable financial analytics.

A specialized skill for verifying code changes through live application execution and runtime environment checks.

A structured framework for AI agents to record mistakes, extract lessons, and evolve through continuous self-reflection and documentation.

OTPLY is a high-performance email OTP service designed for developers to implement secure, reliable verification with minimal latency.








































