Structured Memory
Skill by chauncyzbc
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chauncyzbc/structured-memoryname: structured-memory description: Build and maintain a structured memory system for OpenClaw workspaces using layered storage: daily memory as the source of truth, domain/module/entity/tag indexing, critical-facts extraction, and retrieval planning. Use when designing, initializing, updating, or operating a memory system that must scale across work topics such as business, finance, legal, HR, projects, operations, tech, routines, and personal context.
Structured Memory
Version: 1.0.1
Use this skill to initialize and maintain a layered memory system in the OpenClaw workspace.
What it does
- Uses
memory/YYYY-MM-DD.mdas the source of truth - Builds rebuildable indexes by date, module, and entity
- Extracts reusable execution-critical facts into
critical-facts/ - Rebuilds object-style cards under
critical-facts/cards/ - On first initialization, backfills existing
memory/*.mdhistory automatically - Maintains a frozen summary baseline with
preview + topic_summaries
Default operating rule
For agents that have this skill installed, structured-memory should not be treated only as an on-demand utility. When the day produced meaningful task progress, decisions, blockers, risks, reusable execution-critical facts, or other meaningful updates to memory/YYYY-MM-DD.md, the agent should treat structured-memory rebuild as part of its default memory maintenance workflow.
Work-cycle maintenance rule
After meaningful updates are written into memory/YYYY-MM-DD.md, the agent should normally rebuild the current day into the structured layer before the work cycle ends. This keeps indexes, modules, entities, critical-facts, and cards aligned with the source-of-truth daily memory.
Core rules
- Treat
memory/YYYY-MM-DD.mdas the source of truth. - Keep first-level
domainfixed and small. - Create second-level
modulefiles only on demand. - Prefer
entitiesfor stable objects andfree_tagsfor one-off concepts. - Store reusable execution-critical facts under
critical-facts/. - Never store high-sensitivity secrets in plain text unless the user explicitly requires it.
- Indexes are rebuildable caches, not the truth.
- A short daily preview is only for quick glance; it must not replace topic-level summaries for multi-topic days.
Fixed first-level domains
Use these exact domains:
strategybusinessorganizationfinancelegalprojectoperationstechroutinespersonalmetamisc
When creating modules
Before creating a new module:
- Check whether an equivalent module already exists.
- Check whether the concept should instead be an entity.
- Check whether the concept is too specific and should remain a free tag.
- Create a module only if it is a reusable topic bucket.
Retrieval order
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chauncyzbc-structured-memory": {
"enabled": true,
"auto_update": true
}
}
}