Consolidate L1 memory atoms into L2 scene blocks and L3 persona. Triggers when the user says "consolidate memories", "build persona", "update persona", "update scenes", "organize memories", or after memory-seed completes. Also triggers via asyncRewake pipeline after N conversation turns. This skill is about ORGANIZING existing memories into higher structures — for creating memories from transcripts use memory-seed instead.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tencentdb-agent-memory:memory-consolidateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze L1 atoms and produce L2 scene blocks + L3 persona. You perform all reasoning — no external LLM needed.
Analyze L1 atoms and produce L2 scene blocks + L3 persona. You perform all reasoning — no external LLM needed.
tmem status
If zero records exist, tell the user to run memory-seed first and stop.
tmem scenes list
Note existing scene names — you will reuse them when topics match to avoid duplicates.
tmem atoms project
If output is very large (200+ records), focus on records since last consolidation by checking tmem changelog --last 50 for recent writes.
For global atoms (persona/instruction types):
tmem atoms global
Group project-scoped atoms by topic into narrative scenes.
Important: If a scene with the same topic already exists from step 2, reuse that exact name so the file gets updated instead of duplicated.
Write each scene using a heredoc to handle multiline content:
cat <<'SCENE_EOF' | tmem write-scene --name "Scene Name" --summary "One-line summary" --heat 3
## Key Facts
- Fact 1
- Fact 2
## Decisions
- What was decided and why
SCENE_EOF
Guidelines:
Read existing persona:
tmem persona
Merge new insights from persona-type and instruction-type atoms. Don't replace — evolve.
cat <<'PERSONA_EOF' | tmem write-persona
# User Persona
## Identity
- Role, background, expertise
## Preferences
- Tools, styles, communication preferences
## Working Style
- Patterns, habits, workflow characteristics
## Standing Instructions
- Long-term rules for AI behavior
PERSONA_EOF
Keep under 500 words — this gets injected into every turn's recall context.
tmem mark-done
After consolidation, tell the user: Memory pipeline complete. Hybrid recall is now active.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub baodq97/tencentdb-agent-memory --plugin tencentdb-agent-memory