[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FP8MAS70KR3DSN46YB7E78":3,"skill-same:01M6FP8MAS70KR3DSN46YB7E78":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6FP8MAS70KR3DSN46YB7E78","agent-memory-ultimate",null,"Complete memory system for AI agents. Human-like architecture with daily logs, sleep consolidation, SQLite + FTS5, importers for WhatsApp\u002FChatGPT\u002FVCF. Everything an agent needs to remember across sessions.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"agent memory ultimate","memory","agent memory","system","sleep","consolidation","vcf","memory system","across","human","moltbot","clawdbot","openclaw","sqlite","logs","chatgpt","remember","architecture","ai agents","whatsapp","2026-11-10 10:12:30",false,"---\nname: agent-memory-ultimate\nversion: 2.0.0\ndescription: Complete memory system for AI agents. Human-like architecture with daily logs, sleep consolidation, SQLite + FTS5, importers for WhatsApp\u002FChatGPT\u002FVCF. Everything an agent needs to remember across sessions.\nhomepage: https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\nrepository: https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\n---\n\n# Agent Memory Ultimate\n\n**Platform:** [OpenClaw](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw)  \n**Docs:** https:\u002F\u002Fdocs.openclaw.ai\n\n---\n\n## Overview\n\nAI agents wake fresh each session — no memory of yesterday. This skill solves that by implementing a memory system modeled on human cognition:\n\n| Human Process | Agent Equivalent |\n|---------------|------------------|\n| Short-term memory | Current session context |\n| Daily journal | `memory\u002FYYYY-MM-DD.md` files |\n| Long-term memory | `MEMORY.md` (curated insights) |\n| Sleep consolidation | Scheduled memory review + transfer |\n| Forgetting curve | Session resets; only files persist |\n| Searchable recall | SQLite + FTS5 |\n\n**Why it works:** Humans don't remember everything — they consolidate important patterns during sleep. This skill gives agents the same architecture.\n\n---\n\n## File Structure\n\n```\nworkspace\u002F\n├── MEMORY.md              # Long-term memory (curated)\n├── AGENTS.md              # Operating instructions\n├── SOUL.md                # Identity & personality\n├── USER.md                # Human profile\n├── db\u002F\n│   └── agent.db           # SQLite for structured data\n├── bank\u002F\n│   ├── entities\u002F          # People profiles\n│   │   ├── PersonName.md\n│   │   └── ...\n│   ├── contacts.md        # Quick contact reference\n│   └── opinions.md        # Preferences, beliefs\n└── memory\u002F\n    ├── YYYY-MM-DD.md      # Daily logs\n    ├── projects\u002F\n    │   ├── index.md       # Master project list\n    │   └── project-name\u002F\n    │       ├── index.md   # Project overview\n    │       └── sprints\u002F   # Phase subfolders\n    └── knowledge\u002F         # Topic-based docs\n```\n\nFor OpenClaw workspace setup, see the [workspace docs](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Ftree\u002Fmain\u002Fdocs).\n\n---\n\n## Organizing by Person\n\nStore entity profiles in `bank\u002Fentities\u002F`:\n\n```markdown\n# PersonName.md\n\n## Basic Info\n- **Name:** Full Name\n- **Phone:** +1234567890\n- **Relationship:** Friend \u002F Family \u002F Colleague\n\n## Context\nHow you know them, key interactions, preferences\n\n## Notes\nRunning log of important details learned\n```\n\n**When to create an entity file:**\n- Recurring person in conversations\n- Someone with specific preferences to remember\n- Family members, close contacts\n\n---\n\n## Organizing by Project\n\nProjects live in `memory\u002Fprojects\u002F\u003Cproject-name>\u002F`:\n\n```\nmemory\u002Fprojects\u002F\n├── index.md                    # Master list of all projects\n├── website-redesign\u002F\n│   ├── index.md                # Project purpose, status, decisions\n│   ├── architecture.md         # Technical design\n│   └── sprints\u002F\n│       └── 2026-02\u002F\n│           └── index.md        # Sprint goals, progress\n└── home-automation\u002F\n    ├── index.md\n    └── devices.md\n```\n\n**Project index.md template:**\n```markdown\n# Project Name\n\n**Status:** Active \u002F Paused \u002F Complete\n**Started:** YYYY-MM-DD\n**Purpose:** One-line summary\n\n## Key Decisions\n- [Date] Decision and rationale\n\n## Links\n- Repo: ...\n- Docs: ...\n```\n\n---\n\n## SQLite for Structured Data\n\nUse SQLite (`db\u002Fagent.db`) for data that needs queries. OpenClaw agents can execute SQL directly via the `exec` tool.\n\n### When to Use SQLite vs Markdown\n\n| Data Type | Use SQLite | Use Markdown |\n|-----------|------------|--------------|\n| Contacts (searchable) | ✅ | ❌ |\n| Conversation history | ✅ | ❌ |\n| Preferences | ❌ | ✅ |\n| Project notes | ❌ | ✅ |\n| Entity profiles | ❌ | ✅ |\n| Indexed documents | ✅ (FTS5) | ❌ |\n\n### Schema Example\n\n```sql\n-- Contacts table with full-text search\nCREATE TABLE contacts (\n  id INTEGER PRIMARY KEY,\n  phone TEXT UNIQUE,\n  name TEXT,\n  notes TEXT,\n  source TEXT,\n  created_at TEXT DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE VIRTUAL TABLE contacts_fts USING fts5(\n  name, phone, notes,\n  content='contacts',\n  content_rowid='id'\n);\n\n-- Conversation memory\nCREATE TABLE messages (\n  id INTEGER PRIMARY KEY,\n  chat_id TEXT,\n  sender TEXT,\n  body TEXT,\n  timestamp INTEGER,\n  channel TEXT\n);\n\nCREATE VIRTUAL TABLE messages_fts USING fts5(\n  body, sender,\n  content='messages',\n  content_rowid='id'\n);\n```\n\n### Query Examples\n\n```sql\n-- Find contact by partial name\nSELECT * FROM contacts_fts WHERE contacts_fts MATCH 'john*';\n\n-- Search conversation history\nSELECT * FROM messages_fts WHERE messages_fts MATCH 'project AND deadline';\n\n-- Recent messages from person\nSELECT * FROM messages \nWHERE sender LIKE '%5551234%' \nORDER BY timestamp DESC LIMIT 20;\n```\n\n---\n\n## Daily Cycle\n\n### 1. Wake Up (Session Start)\n\nAdd this to your `AGENTS.md`:\n\n```markdown\nBefore doing anything:\n1. Read SOUL.md — who you are\n2. Read USER.md — who you're helping\n3. Read memory\u002FYYYY-MM-DD.md (today + yesterday) — recent context\n4. If main session: Also read MEMORY.md\n```\n\n### 2. During Day (Active Session)\n- Write significant events to `memory\u002FYYYY-MM-DD.md`\n- Don't rely on \"mental notes\" — they don't survive restarts\n- When told to remember something: write it NOW\n\n### 3. Sleep Cycle (Consolidation)\n\nSchedule a daily \"sleep\" task using [OpenClaw cron](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Fblob\u002Fmain\u002Fdocs\u002Fcron.md):\n\n```json\n{\n  \"schedule\": { \"kind\": \"cron\", \"expr\": \"0 3 * * *\", \"tz\": \"Europe\u002FMadrid\" },\n  \"payload\": { \n    \"kind\": \"systemEvent\", \n    \"text\": \"Memory consolidation: Review recent daily logs, extract key learnings, update MEMORY.md, prune outdated info.\" \n  },\n  \"sessionTarget\": \"main\"\n}\n```\n\n**What consolidation does:**\n1. Reviews last 3-7 daily logs\n2. Extracts patterns and recurring lessons\n3. Adds distilled insights to MEMORY.md\n4. Removes outdated information\n\n---\n\n## Memory Types\n\n### Raw Memory (Daily Logs)\n- Everything that happened\n- Decisions made and why\n- Errors and lessons\n- Technical details\n\n### Curated Memory (MEMORY.md)\n- Abstract principles (not specific fixes)\n- User preferences\n- Core lessons that apply broadly\n- Things that should survive months\u002Fyears\n\n**Abstraction example:**\n- ❌ Daily log: \"Fixed senderE164 bug in message-line.ts\"\n- ✅ MEMORY.md: \"Chat ID ≠ Sender — always verify actual sender field\"\n\n---\n\n## Why This Works (Cognitive Science)\n\n1. **Spaced repetition** — Daily review reinforces important memories\n2. **Active consolidation** — Humans consolidate during sleep; agents consolidate in scheduled tasks\n3. **Chunking** — MEMORY.md groups related concepts into retrievable chunks\n4. **Forgetting is useful** — Raw logs fade in relevance; curated memory persists\n5. **External memory** — Files ARE your memory (like notes for humans)\n\n---\n\n## Memory Tiers Summary\n\n| Tier | Storage | Query Speed | Use For |\n|------|---------|-------------|---------|\n| **Hot** | Session context | Instant | Current task |\n| **Warm** | Daily logs (md) | Fast read | Recent events |\n| **Cold** | MEMORY.md | Fast read | Core principles |\n| **Indexed** | SQLite FTS5 | Query | Contacts, history |\n| **Archive** | Old daily logs | Slow | Historical reference |\n\n**Rule of thumb:** \n- Need to search across many records → SQLite\n- Need to read\u002Fupdate narrative context → Markdown\n- Need instant access → Session context (but dies on restart)\n\n---\n\n## Scripts & CLI\n\nThis skill includes ready-to-use Python scripts for managing your knowledge base.\n\n### Quick Start\n\n```bash\n# Initialize database (first time)\npython3 scripts\u002Finit_db.py\n\n# Query your data\npython3 scripts\u002Fquery.py search \"term\"\npython3 scripts\u002Fquery.py contact \"+1555...\"\npython3 scripts\u002Fquery.py stats\n```\n\n### Available Commands\n\n| Command | Description |\n|---------|-------------|\n| `search \u003Cterm>` | Full-text search across all content |\n| `contact \u003Cphone\\|name>` | Look up contact + their groups |\n| `groups \u003Cphone>` | List groups a phone is in |\n| `members \u003Cgroup>` | List members of a group |\n| `chatgpt \u003Cterm>` | Search ChatGPT message history |\n| `doc \u003Cterm>` | Search documents only |\n| `stats` | Database statistics |\n| `sql \u003Cquery>` | Run raw SQL |\n\n---\n\n## Data Sources\n\n### WhatsApp Contacts & Groups\nExport via the whatsapp-ultimate skill's contact extraction:\n```bash\npython3 scripts\u002Fsync_whatsapp.py\n```\nIndexes: contacts, groups, memberships (who is in which group).\n\n### ChatGPT Conversation History\nExport from ChatGPT and place in `chatgpt-export\u002F` directory:\n```bash\npython3 scripts\u002Finit_db.py  # Will auto-detect and import\n```\nSupports both native ChatGPT format and custom formats.\n\n### Phone Contacts (VCF)\nExport from your phone (Android: Contacts → Settings → Export):\n```bash\npython3 scripts\u002Fimport_vcf.py path\u002Fto\u002Fcontacts.vcf\n```\n\n### Documents\nAutomatically indexes all `*.md` files in `memory\u002F` directory.\n\n---\n\n## Advanced Queries\n\n### WhatsApp Group Management\n\n```sql\n-- Find all groups someone is in\nSELECT g.name FROM wa_groups g\nJOIN wa_memberships m ON m.group_jid = g.jid\nWHERE m.phone = '+15551234567';\n\n-- Find contacts in a specific group\nSELECT c.phone, c.name FROM contacts c\nJOIN wa_memberships m ON m.phone = c.phone\nJOIN wa_groups g ON g.jid = m.group_jid\nWHERE g.name LIKE '%Family%';\n\n-- Find a group's JID for allowlist\nSELECT jid, name, participant_count \nFROM wa_groups WHERE name LIKE '%Project%';\n```\n\n### ChatGPT Search\n\n```sql\n-- Search across all ChatGPT conversations\nSELECT c.title, m.content FROM chatgpt_fts f\nJOIN chatgpt_messages m ON m.conversation_id = f.conv_id\nJOIN chatgpt_conversations c ON c.id = m.conversation_id\nWHERE chatgpt_fts MATCH 'project meeting';\n```\n\n---\n\n## Re-indexing\n\nTo refresh the database with new data:\n```bash\nrm db\u002Fagent.db\npython3 scripts\u002Finit_db.py\n```\n\n---\n\n## Tips\n\n1. **No contact names?** WhatsApp only provides phone numbers. Import your phone's VCF to add names.\n2. **Search not finding?** FTS5 uses word boundaries. Use `*` for prefix matching: `Bas*` matches \"Bashar\".\n3. **Large exports?** ChatGPT exports can be 50MB+. First import may take 30-60 seconds.\n\n---\n\n## Implementation Checklist\n\n- [ ] Create `memory\u002F` directory structure\n- [ ] Set up daily log template\n- [ ] Create initial MEMORY.md with sections\n- [ ] Initialize SQLite database with schema\n- [ ] Schedule consolidation cron (2-4 AM recommended)\n- [ ] Add wake-up routine to AGENTS.md\n- [ ] Test: restart session, verify context loads correctly\n\n---\n\n## Best Practices\n\n1. **Write immediately** — If it matters, write it now\n2. **Abstract up** — Daily: specific. MEMORY.md: principles\n3. **Date everything** — Context decays; dates help\n4. **One source of truth** — Don't duplicate across files\n5. **Review regularly** — Schedule consolidation, don't skip it\n\n---\n\n## Related\n\n- [OpenClaw Documentation](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Ftree\u002Fmain\u002Fdocs)\n- [Cron Scheduling](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Fblob\u002Fmain\u002Fdocs\u002Fcron.md)\n- [Workspace Setup](https:\u002F\u002Fdocs.openclaw.ai)\n\n---\n\n*Inspired by human cognitive architecture. We wake fresh each session, but files are our continuity.*\n","# Agent Memory Ultimate\n\n**Platform:** [OpenClaw](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw)  \n**Docs:** https:\u002F\u002Fdocs.openclaw.ai\n\n---\n\n## Overview\n\nAI agents wake fresh each session — no memory of yesterday. This skill solves that by implementing a memory system modeled on human cognition:\n\n| Human Process | Agent Equivalent |\n|---------------|------------------|\n| Short-term memory | Current session context |\n| Daily journal | `memory\u002FYYYY-MM-DD.md` files |\n| Long-term memory | `MEMORY.md` (curated insights) |\n| Sleep consolidation | Scheduled memory review + transfer |\n| Forgetting curve | Session resets; only files persist |\n| Searchable recall | SQLite + FTS5 |\n\n**Why it works:** Humans don't remember everything — they consolidate important patterns during sleep. This skill gives agents the same architecture.\n\n---\n\n## File Structure\n\n```\nworkspace\u002F\n├── MEMORY.md              # Long-term memory (curated)\n├── AGENTS.md              # Operating instructions\n├── SOUL.md                # Identity & personality\n├── USER.md                # Human profile\n├── db\u002F\n│   └── agent.db           # SQLite for structured data\n├── bank\u002F\n│   ├── entities\u002F          # People profiles\n│   │   ├── PersonName.md\n│   │   └── ...\n│   ├── contacts.md        # Quick contact reference\n│   └── opinions.md        # Preferences, beliefs\n└── memory\u002F\n    ├── YYYY-MM-DD.md      # Daily logs\n    ├── projects\u002F\n    │   ├── index.md       # Master project list\n    │   └── project-name\u002F\n    │       ├── index.md   # Project overview\n    │       └── sprints\u002F   # Phase subfolders\n    └── knowledge\u002F         # Topic-based docs\n```\n\nFor OpenClaw workspace setup, see the [workspace docs](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Ftree\u002Fmain\u002Fdocs).\n\n---\n\n## Organizing by Person\n\nStore entity profiles in `bank\u002Fentities\u002F`:\n\n```markdown\n# PersonName.md\n\n## Basic Info\n- **Name:** Full Name\n- **Phone:** +1234567890\n- **Relationship:** Friend \u002F Family \u002F Colleague\n\n## Context\nHow you know them, key interactions, preferences\n\n## Notes\nRunning log of important details learned\n```\n\n**When to create an entity file:**\n- Recurring person in conversations\n- Someone with specific preferences to remember\n- Family members, close contacts\n\n---\n\n## Organizing by Project\n\nProjects live in `memory\u002Fprojects\u002F\u003Cproject-name>\u002F`:\n\n```\nmemory\u002Fprojects\u002F\n├── index.md                    # Master list of all projects\n├── website-redesign\u002F\n│   ├── index.md                # Project purpose, status, decisions\n│   ├── architecture.md         # Technical design\n│   └── sprints\u002F\n│       └── 2026-02\u002F\n│           └── index.md        # Sprint goals, progress\n└── home-automation\u002F\n    ├── index.md\n    └── devices.md\n```\n\n**Project index.md template:**\n```markdown\n# Project Name\n\n**Status:** Active \u002F Paused \u002F Complete\n**Started:** YYYY-MM-DD\n**Purpose:** One-line summary\n\n## Key Decisions\n- [Date] Decision and rationale\n\n## Links\n- Repo: ...\n- Docs: ...\n```\n\n---\n\n## SQLite for Structured Data\n\nUse SQLite (`db\u002Fagent.db`) for data that needs queries. OpenClaw agents can execute SQL directly via the `exec` tool.\n\n### When to Use SQLite vs Markdown\n\n| Data Type | Use SQLite | Use Markdown |\n|-----------|------------|--------------|\n| Contacts (searchable) | ✅ | ❌ |\n| Conversation history | ✅ | ❌ |\n| Preferences | ❌ | ✅ |\n| Project notes | ❌ | ✅ |\n| Entity profiles | ❌ | ✅ |\n| Indexed documents | ✅ (FTS5) | ❌ |\n\n### Schema Example\n\n```sql\n-- Contacts table with full-text search\nCREATE TABLE contacts (\n  id INTEGER PRIMARY KEY,\n  phone TEXT UNIQUE,\n  name TEXT,\n  notes TEXT,\n  source TEXT,\n  created_at TEXT DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE VIRTUAL TABLE contacts_fts USING fts5(\n  name, phone, notes,\n  content='contacts',\n  content_rowid='id'\n);\n\n-- Conversation memory\nCREATE TABLE messages (\n  id INTEGER PRIMARY KEY,\n  chat_id TEXT,\n  sender TEXT,\n  body TEXT,\n  timestamp INTEGER,\n  channel TEXT\n);\n\nCREATE VIRTUAL TABLE messages_fts USING fts5(\n  body, sender,\n  content='messages',\n  content_rowid='id'\n);\n```\n\n### Query Examples\n\n```sql\n-- Find contact by partial name\nSELECT * FROM contacts_fts WHERE contacts_fts MATCH 'john*';\n\n-- Search conversation history\nSELECT * FROM messages_fts WHERE messages_fts MATCH 'project AND deadline';\n\n-- Recent messages from person\nSELECT * FROM messages \nWHERE sender LIKE '%5551234%' \nORDER BY timestamp DESC LIMIT 20;\n```\n\n---\n\n## Daily Cycle\n\n### 1. Wake Up (Session Start)\n\nAdd this to your `AGENTS.md`:\n\n```markdown\nBefore doing anything:\n1. Read SOUL.md — who you are\n2. Read USER.md — who you're helping\n3. Read memory\u002FYYYY-MM-DD.md (today + yesterday) — recent context\n4. If main session: Also read MEMORY.md\n```\n\n### 2. During Day (Active Session)\n- Write significant events to `memory\u002FYYYY-MM-DD.md`\n- Don't rely on \"mental notes\" — they don't survive restarts\n- When told to remember something: write it NOW\n\n### 3. Sleep Cycle (Consolidation)\n\nSchedule a daily \"sleep\" task using [OpenClaw cron](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Fblob\u002Fmain\u002Fdocs\u002Fcron.md):\n\n```json\n{\n  \"schedule\": { \"kind\": \"cron\", \"expr\": \"0 3 * * *\", \"tz\": \"Europe\u002FMadrid\" },\n  \"payload\": { \n    \"kind\": \"systemEvent\", \n    \"text\": \"Memory consolidation: Review recent daily logs, extract key learnings, update MEMORY.md, prune outdated info.\" \n  },\n  \"sessionTarget\": \"main\"\n}\n```\n\n**What consolidation does:**\n1. Reviews last 3-7 daily logs\n2. Extracts patterns and recurring lessons\n3. Adds distilled insights to MEMORY.md\n4. Removes outdated information\n\n---\n\n## Memory Types\n\n### Raw Memory (Daily Logs)\n- Everything that happened\n- Decisions made and why\n- Errors and lessons\n- Technical details\n\n### Curated Memory (MEMORY.md)\n- Abstract principles (not specific fixes)\n- User preferences\n- Core lessons that apply broadly\n- Things that should survive months\u002Fyears\n\n**Abstraction example:**\n- ❌ Daily log: \"Fixed senderE164 bug in message-line.ts\"\n- ✅ MEMORY.md: \"Chat ID ≠ Sender — always verify actual sender field\"\n\n---\n\n## Why This Works (Cognitive Science)\n\n1. **Spaced repetition** — Daily review reinforces important memories\n2. **Active consolidation** — Humans consolidate during sleep; agents consolidate in scheduled tasks\n3. **Chunking** — MEMORY.md groups related concepts into retrievable chunks\n4. **Forgetting is useful** — Raw logs fade in relevance; curated memory persists\n5. **External memory** — Files ARE your memory (like notes for humans)\n\n---\n\n## Memory Tiers Summary\n\n| Tier | Storage | Query Speed | Use For |\n|------|---------|-------------|---------|\n| **Hot** | Session context | Instant | Current task |\n| **Warm** | Daily logs (md) | Fast read | Recent events |\n| **Cold** | MEMORY.md | Fast read | Core principles |\n| **Indexed** | SQLite FTS5 | Query | Contacts, history |\n| **Archive** | Old daily logs | Slow | Historical reference |\n\n**Rule of thumb:** \n- Need to search across many records → SQLite\n- Need to read\u002Fupdate narrative context → Markdown\n- Need instant access → Session context (but dies on restart)\n\n---\n\n## Scripts & CLI\n\nThis skill includes ready-to-use Python scripts for managing your knowledge base.\n\n### Quick Start\n\n```bash\n# Initialize database (first time)\npython3 scripts\u002Finit_db.py\n\n# Query your data\npython3 scripts\u002Fquery.py search \"term\"\npython3 scripts\u002Fquery.py contact \"+1555...\"\npython3 scripts\u002Fquery.py stats\n```\n\n### Available Commands\n\n| Command | Description |\n|---------|-------------|\n| `search \u003Cterm>` | Full-text search across all content |\n| `contact \u003Cphone\\|name>` | Look up contact + their groups |\n| `groups \u003Cphone>` | List groups a phone is in |\n| `members \u003Cgroup>` | List members of a group |\n| `chatgpt \u003Cterm>` | Search ChatGPT message history |\n| `doc \u003Cterm>` | Search documents only |\n| `stats` | Database statistics |\n| `sql \u003Cquery>` | Run raw SQL |\n\n---\n\n## Data Sources\n\n### WhatsApp Contacts & Groups\nExport via the whatsapp-ultimate skill's contact extraction:\n```bash\npython3 scripts\u002Fsync_whatsapp.py\n```\nIndexes: contacts, groups, memberships (who is in which group).\n\n### ChatGPT Conversation History\nExport from ChatGPT and place in `chatgpt-export\u002F` directory:\n```bash\npython3 scripts\u002Finit_db.py  # Will auto-detect and import\n```\nSupports both native ChatGPT format and custom formats.\n\n### Phone Contacts (VCF)\nExport from your phone (Android: Contacts → Settings → Export):\n```bash\npython3 scripts\u002Fimport_vcf.py path\u002Fto\u002Fcontacts.vcf\n```\n\n### Documents\nAutomatically indexes all `*.md` files in `memory\u002F` directory.\n\n---\n\n## Advanced Queries\n\n### WhatsApp Group Management\n\n```sql\n-- Find all groups someone is in\nSELECT g.name FROM wa_groups g\nJOIN wa_memberships m ON m.group_jid = g.jid\nWHERE m.phone = '+15551234567';\n\n-- Find contacts in a specific group\nSELECT c.phone, c.name FROM contacts c\nJOIN wa_memberships m ON m.phone = c.phone\nJOIN wa_groups g ON g.jid = m.group_jid\nWHERE g.name LIKE '%Family%';\n\n-- Find a group's JID for allowlist\nSELECT jid, name, participant_count \nFROM wa_groups WHERE name LIKE '%Project%';\n```\n\n### ChatGPT Search\n\n```sql\n-- Search across all ChatGPT conversations\nSELECT c.title, m.content FROM chatgpt_fts f\nJOIN chatgpt_messages m ON m.conversation_id = f.conv_id\nJOIN chatgpt_conversations c ON c.id = m.conversation_id\nWHERE chatgpt_fts MATCH 'project meeting';\n```\n\n---\n\n## Re-indexing\n\nTo refresh the database with new data:\n```bash\nrm db\u002Fagent.db\npython3 scripts\u002Finit_db.py\n```\n\n---\n\n## Tips\n\n1. **No contact names?** WhatsApp only provides phone numbers. Import your phone's VCF to add names.\n2. **Search not finding?** FTS5 uses word boundaries. Use `*` for prefix matching: `Bas*` matches \"Bashar\".\n3. **Large exports?** ChatGPT exports can be 50MB+. First import may take 30-60 seconds.\n\n---\n\n## Implementation Checklist\n\n- [ ] Create `memory\u002F` directory structure\n- [ ] Set up daily log template\n- [ ] Create initial MEMORY.md with sections\n- [ ] Initialize SQLite database with schema\n- [ ] Schedule consolidation cron (2-4 AM recommended)\n- [ ] Add wake-up routine to AGENTS.md\n- [ ] Test: restart session, verify context loads correctly\n\n---\n\n## Best Practices\n\n1. **Write immediately** — If it matters, write it now\n2. **Abstract up** — Daily: specific. MEMORY.md: principles\n3. **Date everything** — Context decays; dates help\n4. **One source of truth** — Don't duplicate across files\n5. **Review regularly** — Schedule consolidation, don't skip it\n\n---\n\n## Related\n\n- [OpenClaw Documentation](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Ftree\u002Fmain\u002Fdocs)\n- [Cron Scheduling](https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw\u002Fblob\u002Fmain\u002Fdocs\u002Fcron.md)\n- [Workspace Setup](https:\u002F\u002Fdocs.openclaw.ai)\n\n---\n\n*Inspired by human cognitive architecture. We wake fresh each session, but files are our continuity.*\n",{"name":5,"version":43,"homepage":44,"repository":44,"description":7},"2.0.0","https:\u002F\u002Fgithub.com\u002Fglobalcaos\u002Fclawdbot-moltbot-openclaw","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fglobalcaos\u002Fagent-memory-ultimate",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add kbarbel640-del\u002Fskills --skill agent-memory-ultimate",{"tool":58,"command":59},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill agent-memory-ultimate",{"tool":61,"command":62},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill agent-memory-ultimate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002FSKILL.md",true,[66,72,76,80,86,90,94],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"_meta.json","REFERENCE","参考文档",298,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002F_meta.json",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"package.json",665,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Fpackage.json",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fschema.md",3283,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Freferences\u002Fschema.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fimport_vcf.py","SCRIPT","脚本",5383,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Fscripts\u002Fimport_vcf.py",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Finit_db.py",11491,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Fscripts\u002Finit_db.py",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fquery.py",10513,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Fscripts\u002Fquery.py",{"path":95,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fsync_whatsapp.py",6553,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglobalcaos\u002Fagent-memory-ultimate\u002Fscripts\u002Fsync_whatsapp.py",[99,123,146,164,169,189],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":38},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[106,107,108,109,110,111,112,113,114,115,116,117,21,118,119,120,121,122,36],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","improve","productivity","marketplace","https","content",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":38},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[130,108,131,132,133,134,135,136,137,138,30,139,140,141,142,143,144,113,145],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":38},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[153,154,155,156,157,158,159,109,160,143,145,161,108,162,163],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":165,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":38},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[156,155,154,153,163,158,159,109,157,143,145,160,161,108,162],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":38},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[176,177,178,179,180,181,182,183,184,185,186,187,188],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":38},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[196,197,198,199,109,200,201,45,202,161,203,204,205,206,207,121,208,209,210],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]