[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M779WYPAQ4JEKMZDVGRNK31T":3,"skill-same:01M779WYPAQ4JEKMZDVGRNK31T":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M779WYPAQ4JEKMZDVGRNK31T","cyber-memory",null,"Five-layer memory system with automatic fact extraction via local LLM (Ollama). Processes session transcripts locally — no external API required.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcyber-memory\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cyber-memory\nversion: 1.0.2\ndescription: \"Five-layer memory system with automatic fact extraction via local LLM (Ollama). Processes session transcripts locally — no external API required.\"\nauthor: CyberSun\nkeywords: [memory, long-term-memory, ai-agent, openclaw, fact-extraction, knowledge-graph, vector-search, hooks, ollama, local-llm]\nmetadata:\n  openclaw:\n    emoji: \"🧠\"\n    requires:\n      config:\n        - workspace.dir\n---\n\n# Memory Architecture 🧠\n\nA complete memory system for OpenClaw agents. Five layers of storage, automatic fact extraction via local LLM, hybrid search, and behavioral rules that prevent context loss.\n\n**🔒 Local-first by default** — all fact extraction runs on your local Ollama instance. No data leaves your machine.\n\n## 🔒 Privacy & Data Handling\n\nThis skill includes a hook (`memory-flush`) that:\n\n- **Reads session transcripts** from disk (`~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`)\n- **Processes content locally** via Ollama (default) — no data leaves your machine\n- **No external API key required** — works out of the box with local LLM\n\n**What is processed:** Recent user\u002Fassistant messages (last 30 messages, each truncated to 500 chars).\n**Where it runs:** Local Ollama endpoint (`http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions` by default).\n**What is saved locally:** Extracted facts as Markdown files in `workspace\u002Fmemory\u002F`.\n\nOptional: You can configure an external OpenAI-compatible API by setting `baseUrl` and `apiKey` in the hook config, but local Ollama is the default and recommended setup.\n\n## Architecture\n\n```\n🔥 Hot    → SESSION-STATE.md (WAL protocol, survives compaction)\n🌤 Warm   → memory\u002FYYYY-MM-DD.md (daily event summaries)\n🧊 Cold   → MEMORY.md (decisions, preferences, rules — always loaded)\n🕸 Graph  → memory\u002Fontology\u002F (entity relationships)\n📚 Learn  → .learnings\u002F (errors, best practices)\n```\n\n### Automation\n\n| Mechanism | Trigger | What it does |\n|---|---|---|\n| session-memory (built-in) | `\u002Fnew` `\u002Freset` | Saves conversation to memory\u002F |\n| memory-flush (this skill) | Compaction + `\u002Fnew` | LLM extracts structured facts (local Ollama) |\n| command-logger (built-in) | Any command | Audit log |\n| session indexing | Automatic | Historical sessions searchable |\n\n### Search\n\n- **Vector**: any OpenAI-compatible embedding provider (Ollama, OpenAI, etc.)\n- **Keyword**: SQLite FTS5 (BM25)\n- **Hybrid**: weighted vector + keyword fusion\n- **Scope**: MEMORY.md + daily logs + session transcripts + SESSION-STATE.md\n\n## Setup\n\n### 1. Prerequisites\n\nInstall Ollama and pull a chat model:\n\n```bash\n# Install Ollama (https:\u002F\u002Follama.ai)\nollama pull qwen2.5:7b   # or any chat model you prefer\nollama serve              # ensure Ollama is running on localhost:11434\n```\n\n### 2. Enable Built-in Hooks\n\n```bash\nopenclaw hooks enable session-memory\nopenclaw hooks enable command-logger\n```\n\n### 3. Install Memory-Flush Hook\n\nCopy the `hooks\u002Fmemory-flush\u002F` directory to `~\u002F.openclaw\u002Fhooks\u002F`:\n\n```bash\ncp -r hooks\u002Fmemory-flush ~\u002F.openclaw\u002Fhooks\u002F\nopenclaw hooks enable memory-flush\n```\n\n### 4. Configure Fact Extraction (Optional)\n\nBy default, the hook uses local Ollama — no configuration needed. To customize:\n\n```json5\n{\n  hooks: {\n    internal: {\n      enabled: true,\n      entries: {\n        \"memory-flush\": {\n          enabled: true,\n          extractionModel: \"qwen2.5:7b\",           \u002F\u002F Ollama model name\n          baseUrl: \"http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions\"  \u002F\u002F Ollama endpoint\n        }\n      }\n    }\n  }\n}\n```\n\nWorks with any OpenAI-compatible API (Ollama, LM Studio, vLLM, etc.). Set `baseUrl` and `apiKey` to use an external provider.\n\n### 5. Enable Session Indexing\n\n```json5\n{\n  agents: {\n    defaults: {\n      memorySearch: {\n        provider: \"local\",  \u002F\u002F or \"openai\", \"ollama\", \"gemini\", \"voyage\", etc.\n        experimental: {\n          sessionMemory: true\n        },\n        sources: [\"memory\", \"sessions\"],\n        extraPaths: [\"SESSION-STATE.md\"]\n      }\n    }\n  }\n}\n```\n\n### 6. Restart Gateway\n\n```bash\nopenclaw gateway restart\n```\n\n## Agent Behavioral Rules\n\nAdd these rules to your `AGENTS.md`:\n\n### Memory Writing\n\n- **Important info → MEMORY.md immediately** (decisions, preferences, rules)\n- **Daily summaries → memory\u002FYYYY-MM-DD.md** (event summaries, no raw tool output)\n- **Cron report details → skip** (already delivered elsewhere)\n- **Critical info zero loss** — important things must go to MEMORY.md, not just daily logs\n\n### Memory Searching\n\n- Check MEMORY.md + today\u002Fyesterday logs at session start\n- Use `memory_search` for historical queries\n- Ontology queries (relationships, \"who is responsible for X\") → use ontology skill\n\n### Sub-agent Context Injection\n\nWhen spawning sub-agents, inject relevant context from MEMORY.md:\n\n```\n[Key context from memory, max 500 words]\n\n---\n\n[Actual task]\n```\n\n## File Structure\n\n```\nworkspace\u002F\n├── AGENTS.md              # Behavioral rules (loaded every session)\n├── SOUL.md                # Agent personality\n├── USER.md                # User preferences\n├── TOOLS.md               # Tool notes (keep lean, \u003C2KB)\n├── MEMORY.md              # Long-term curated memory\n├── SESSION-STATE.md       # Hot working memory (WAL)\n├── memory\u002F\n│   ├── YYYY-MM-DD.md      # Daily logs (summaries only)\n│   ├── YYYY-MM-DD-facts-* # Auto-extracted facts\n│   ├── YYYY-MM-DD-compact # Pre-compaction snapshots\n│   └── ontology\u002F\n│       ├── graph.jsonl    # Knowledge graph\n│       └── schema.yaml    # Entity type definitions\n├── .learnings\u002F\n│   ├── LEARNINGS.md       # Best practices\n│   ├── ERRORS.md          # Error log\n│   └── FEATURE_REQUESTS.md\n└── hooks\u002F\n    └── memory-flush\u002F\n        ├── HOOK.md\n        └── handler.ts     # LLM fact extraction (local Ollama default)\n```\n\n## What Gets Loaded When\n\n| File | When |\n|---|---|\n| AGENTS.md, SOUL.md, USER.md, TOOLS.md | Every session start |\n| MEMORY.md | DM session start |\n| memory\u002Ftoday + yesterday | Every session start |\n| SESSION-STATE.md | Via memory_search (indexed) |\n| Other memory files | Via `memory_search` on demand |\n\n## Token Optimization\n\n- Keep TOOLS.md lean (\u003C2KB), move detailed configs to `tools\u002F` subdirectory\n- Daily logs: event summaries, not raw tool output\n- Fact extraction: 30 messages → ~10 facts (16:1 compression)\n\n## Troubleshooting\n\n**Facts not extracted?** Check Ollama is running (`ollama serve`) and the model is available (`ollama list`).\n\n**Session search not working?** Verify `experimental.sessionMemory: true` and `sources: [\"memory\", \"sessions\"]`.\n\n**Hook not loading?** Run `openclaw hooks list --verbose` and check for errors.\n\n**Want to use external API?** Set `baseUrl` and `apiKey` in the hook config to use OpenAI or any compatible provider.\n\n## License\n\nMIT\n","# Memory Architecture 🧠\n\nA complete memory system for OpenClaw agents. Five layers of storage, automatic fact extraction via local LLM, hybrid search, and behavioral rules that prevent context loss.\n\n**🔒 Local-first by default** — all fact extraction runs on your local Ollama instance. No data leaves your machine.\n\n## 🔒 Privacy & Data Handling\n\nThis skill includes a hook (`memory-flush`) that:\n\n- **Reads session transcripts** from disk (`~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`)\n- **Processes content locally** via Ollama (default) — no data leaves your machine\n- **No external API key required** — works out of the box with local LLM\n\n**What is processed:** Recent user\u002Fassistant messages (last 30 messages, each truncated to 500 chars).\n**Where it runs:** Local Ollama endpoint (`http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions` by default).\n**What is saved locally:** Extracted facts as Markdown files in `workspace\u002Fmemory\u002F`.\n\nOptional: You can configure an external OpenAI-compatible API by setting `baseUrl` and `apiKey` in the hook config, but local Ollama is the default and recommended setup.\n\n## Architecture\n\n```\n🔥 Hot    → SESSION-STATE.md (WAL protocol, survives compaction)\n🌤 Warm   → memory\u002FYYYY-MM-DD.md (daily event summaries)\n🧊 Cold   → MEMORY.md (decisions, preferences, rules — always loaded)\n🕸 Graph  → memory\u002Fontology\u002F (entity relationships)\n📚 Learn  → .learnings\u002F (errors, best practices)\n```\n\n### Automation\n\n| Mechanism | Trigger | What it does |\n|---|---|---|\n| session-memory (built-in) | `\u002Fnew` `\u002Freset` | Saves conversation to memory\u002F |\n| memory-flush (this skill) | Compaction + `\u002Fnew` | LLM extracts structured facts (local Ollama) |\n| command-logger (built-in) | Any command | Audit log |\n| session indexing | Automatic | Historical sessions searchable |\n\n### Search\n\n- **Vector**: any OpenAI-compatible embedding provider (Ollama, OpenAI, etc.)\n- **Keyword**: SQLite FTS5 (BM25)\n- **Hybrid**: weighted vector + keyword fusion\n- **Scope**: MEMORY.md + daily logs + session transcripts + SESSION-STATE.md\n\n## Setup\n\n### 1. Prerequisites\n\nInstall Ollama and pull a chat model:\n\n```bash\n# Install Ollama (https:\u002F\u002Follama.ai)\nollama pull qwen2.5:7b   # or any chat model you prefer\nollama serve              # ensure Ollama is running on localhost:11434\n```\n\n### 2. Enable Built-in Hooks\n\n```bash\nopenclaw hooks enable session-memory\nopenclaw hooks enable command-logger\n```\n\n### 3. Install Memory-Flush Hook\n\nCopy the `hooks\u002Fmemory-flush\u002F` directory to `~\u002F.openclaw\u002Fhooks\u002F`:\n\n```bash\ncp -r hooks\u002Fmemory-flush ~\u002F.openclaw\u002Fhooks\u002F\nopenclaw hooks enable memory-flush\n```\n\n### 4. Configure Fact Extraction (Optional)\n\nBy default, the hook uses local Ollama — no configuration needed. To customize:\n\n```json5\n{\n  hooks: {\n    internal: {\n      enabled: true,\n      entries: {\n        \"memory-flush\": {\n          enabled: true,\n          extractionModel: \"qwen2.5:7b\",           \u002F\u002F Ollama model name\n          baseUrl: \"http:\u002F\u002Flocalhost:11434\u002Fv1\u002Fchat\u002Fcompletions\"  \u002F\u002F Ollama endpoint\n        }\n      }\n    }\n  }\n}\n```\n\nWorks with any OpenAI-compatible API (Ollama, LM Studio, vLLM, etc.). Set `baseUrl` and `apiKey` to use an external provider.\n\n### 5. Enable Session Indexing\n\n```json5\n{\n  agents: {\n    defaults: {\n      memorySearch: {\n        provider: \"local\",  \u002F\u002F or \"openai\", \"ollama\", \"gemini\", \"voyage\", etc.\n        experimental: {\n          sessionMemory: true\n        },\n        sources: [\"memory\", \"sessions\"],\n        extraPaths: [\"SESSION-STATE.md\"]\n      }\n    }\n  }\n}\n```\n\n### 6. Restart Gateway\n\n```bash\nopenclaw gateway restart\n```\n\n## Agent Behavioral Rules\n\nAdd these rules to your `AGENTS.md`:\n\n### Memory Writing\n\n- **Important info → MEMORY.md immediately** (decisions, preferences, rules)\n- **Daily summaries → memory\u002FYYYY-MM-DD.md** (event summaries, no raw tool output)\n- **Cron report details → skip** (already delivered elsewhere)\n- **Critical info zero loss** — important things must go to MEMORY.md, not just daily logs\n\n### Memory Searching\n\n- Check MEMORY.md + today\u002Fyesterday logs at session start\n- Use `memory_search` for historical queries\n- Ontology queries (relationships, \"who is responsible for X\") → use ontology skill\n\n### Sub-agent Context Injection\n\nWhen spawning sub-agents, inject relevant context from MEMORY.md:\n\n```\n[Key context from memory, max 500 words]\n\n---\n\n[Actual task]\n```\n\n## File Structure\n\n```\nworkspace\u002F\n├── AGENTS.md              # Behavioral rules (loaded every session)\n├── SOUL.md                # Agent personality\n├── USER.md                # User preferences\n├── TOOLS.md               # Tool notes (keep lean, \u003C2KB)\n├── MEMORY.md              # Long-term curated memory\n├── SESSION-STATE.md       # Hot working memory (WAL)\n├── memory\u002F\n│   ├── YYYY-MM-DD.md      # Daily logs (summaries only)\n│   ├── YYYY-MM-DD-facts-* # Auto-extracted facts\n│   ├── YYYY-MM-DD-compact # Pre-compaction snapshots\n│   └── ontology\u002F\n│       ├── graph.jsonl    # Knowledge graph\n│       └── schema.yaml    # Entity type definitions\n├── .learnings\u002F\n│   ├── LEARNINGS.md       # Best practices\n│   ├── ERRORS.md          # Error log\n│   └── FEATURE_REQUESTS.md\n└── hooks\u002F\n    └── memory-flush\u002F\n        ├── HOOK.md\n        └── handler.ts     # LLM fact extraction (local Ollama default)\n```\n\n## What Gets Loaded When\n\n| File | When |\n|---|---|\n| AGENTS.md, SOUL.md, USER.md, TOOLS.md | Every session start |\n| MEMORY.md | DM session start |\n| memory\u002Ftoday + yesterday | Every session start |\n| SESSION-STATE.md | Via memory_search (indexed) |\n| Other memory files | Via `memory_search` on demand |\n\n## Token Optimization\n\n- Keep TOOLS.md lean (\u003C2KB), move detailed configs to `tools\u002F` subdirectory\n- Daily logs: event summaries, not raw tool output\n- Fact extraction: 30 messages → ~10 facts (16:1 compression)\n\n## Troubleshooting\n\n**Facts not extracted?** Check Ollama is running (`ollama serve`) and the model is available (`ollama list`).\n\n**Session search not working?** Verify `experimental.sessionMemory: true` and `sources: [\"memory\", \"sessions\"]`.\n\n**Hook not loading?** Run `openclaw hooks list --verbose` and check for errors.\n\n**Want to use external API?** Set `baseUrl` and `apiKey` in the hook config to use OpenAI or any compatible provider.\n\n## License\n\nMIT\n",{"name":5,"author":24,"version":25,"keywords":26,"metadata":37,"description":7},"CyberSun","1.0.2",[27,28,29,30,31,32,33,34,35,36],"memory","long-term-memory","ai-agent","openclaw","fact-extraction","knowledge-graph","vector-search","hooks","ollama","local-llm",{"openclaw":38},{"emoji":39,"requires":40},"🧠",{"config":41},[42],"workspace.dir","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fcyber-memory",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cyber-memory",{"tool":58,"command":59},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cyber-memory",{"tool":61,"command":62},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill cyber-memory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcyber-memory\u002FSKILL.md",true,[],[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]