Long-Term Memory and Knowledge Graph AI Foundation
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_1a470ba8/zwjh-skill.
About this skill
Problem It Solves
Agent sessions often lack stable memory, so users re-explain context; memory plugins also store data separately, making cross-skill reuse hard. As memory grows, duplicates, conflicts, bloat, and noisy retrieval become likely. zwjh-skill turns long-term memory, knowledge graphs, retrieval, compression, and backup into a local, callable foundation rather than another isolated plugin.
How It Works
- Long-term memory: distills knowledge from conversations, files, and daily logs while preserving prior logs and idempotently backfilling entries.
- Knowledge graph: extracts entities such as people, projects, tasks, events, and documents, with relations and reusable interfaces like
add-entityandrelate. - Automatic deposition: merges exact or near-duplicate items and marks competing values for the same entity and predicate as
superseded. - Local retrieval: uses
TF-IDFChinese vector cosine similarity and date-range timeline search, with no API key and no network dependency. - Health and backup: audits stale memory, orphan entities, conflicts, and
DBsize; supports snapshots, compression, restore, and optional local or Baidu Netdisk backup.
Boundaries
It fits agent workflows that need local-first, cross-session memory and controlled governance. Graph quality depends on input text; conflict handling preserves history but does not automatically verify factual truth. Baidu Netdisk is pluggable, off by default, and does not trigger network access automatically.
Use Cases
- After multi-turn support conversations, capture customers, products, and issues as entities and relations to avoid re-confirming context.
- While organizing project notes, extract knowledge from Markdown files and merge near-duplicates to keep the memory store lean.
- When reviewing work from a date range, query timeline entries by dates and keywords instead of scrolling chat logs.
- When the memory store grows, audit health for orphan entities and conflicts, then compress stale records.
Best For
- Agent application developers who need cross-session memory for projects, customers, and todos.
- Personal knowledge managers who want to turn scattered notes into a searchable knowledge graph.
- Memory infrastructure maintainers who need local agent memory without API keys or network calls.
- Team engineers who need multiple agent skills to share entities and relations.
Related Skills
A guide for writing Seedance 2.0 video prompts, covering @ references, camera moves, time segments, audio direction, and common pitfalls.
Collects daily conversations, task logs, and errors, then runs a nine-module review to surface blind spots, generate actions, and update memory.
Local long-term memory for AI agents that appends key facts and daily logs, supports cross-session context and search recall, and auto-archives old diaries to gzip files.
A hybrid-evolution agent for OpenClaw developers that offers tiered-confirmation and rollback-safe capability optimization.