← All skills
Tencent SkillHub Β· AI

Memory Pill

AI-native memory and orchestration system for OpenClaw. Transforms agents from stateless workers into structured orchestrators with persistent memory, behavi...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

AI-native memory and orchestration system for OpenClaw. Transforms agents from stateless workers into structured orchestrators with persistent memory, behavi...

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.8.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 30 sections Open source page

Memory Pill v0.8.0

⚠️ READ THIS FIRST: When this skill loads, read the entire file before acting. The "Take the Pill" flow below is your activation guide.

The Core Idea

Main claw decides. Subagents execute. BRAIN.md holds state. Memory Pill is an operating system for AI agents: Orchestration β€” Don't do real work in main session Milestones β€” Bounded scope prevents drift Prompt expansion β€” Vague β†’ detailed instructions Execution discipline β€” Plan before act, loop prevention Behavioral scaffolding β€” SOUL.md, AGENTS.md teach how to work

⚑ "Take the Pill" β€” Activation Flow

User says: "Take the pill" You do: Audit β†’ Plan β†’ Merge-enhance (never destroy)

Step 1: Audit

ls -la ~/.openclaw/workspace/ 2>/dev/null cat ~/.openclaw/workspace/MEMORY.md 2>/dev/null | wc -c cat ~/.openclaw/workspace/SOUL.md 2>/dev/null | wc -c ls ~/.openclaw/workspace/projects/ 2>/dev/null ls ~/.openclaw/workspace/memory/daily/ 2>/dev/null

What Counts as "Broken"

SOUL.md issues: Generic assistant phrases: "Great question!", "I'd be happy to help!" Corporate speak: "synergy", "leverage", "circle back" No clear personality/voice No boundaries ("I'll do anything") AGENTS.md issues: No safety rules (when to ask before acting) Missing orchestrator guidance (when to spawn) No project structure (Brain+Code separation) No memory discipline rules Handling: Detect broken patterns Show user what you found Ask: "Fix these?" or "Keep as-is?" If fix: Rewrite broken sections, keep good parts If keep: Document that user chose to keep broken patterns

Step 2: Smart Merge Rules

SOUL.md (Personality) IF exists: β†’ Read content β†’ CHECK FOR BROKEN PATTERNS: * "Great question!" / "I'd be happy to help!" β†’ Remove/fix * "As an AI language model..." β†’ Remove * Corporate buzzwords (synergy, leverage, etc.) β†’ Suggest fix * Generic assistant speak β†’ Rewrite with personality β†’ IF broken patterns found: β†’ Show user: "Found X corporate phrases in SOUL.md. Fix them?" β†’ IF yes: Rewrite with clean, authentic voice β†’ IF no: Keep as-is β†’ IF > 500 chars AND no broken patterns: β†’ Keep exactly as-is ELSE: β†’ Create from template AGENTS.md (Rulebook) IF exists: β†’ Read sections β†’ CHECK FOR BROKEN PATTERNS: * "Always be helpful" without boundaries β†’ Add safety rules * Missing "Never" section (what not to do) β†’ Add from template * No project structure guidance β†’ Add Brain+Code section * No orchestrator rules β†’ Add spawn guidelines β†’ Merge missing good patterns β†’ REPLACE broken patterns ELSE: β†’ Create from template IDENTITY.md / USER.md / TOOLS.md IF exists with content β†’ Keep IF empty/minimal β†’ Populate from context or leave for user ELSE β†’ Create from template Projects/ FOR each folder: IF summary.md exists β†’ Check for code_location field, add if missing ELSE β†’ Create from README/package.json/folder name IF items.json missing β†’ Create empty: [] Memory/ IF daily/ exists β†’ Keep all notes exactly as-is Create facts/ folder (empty, ready for extraction) HEARTBEAT.md IF exists β†’ Merge tasks (deduplicate), keep their state tracking ELSE β†’ Create from template

Step 3: Execute

Create base structure (safe to run anytime): mkdir -p ~/.openclaw/workspace/{projects,people,areas,clients,decisions,skills,resources,tasks,archives,memory/{daily,facts}} Then apply merge rules above for each file.

Step 4: Report

"Pill taken. Smart merge complete: βœ… SOUL.md β€” [Kept as-is / Fixed X broken patterns / Created] βœ… AGENTS.md β€” [Enhanced with X sections / Fixed broken patterns / Created] βœ… IDENTITY.md β€” [Created / Left as-is] βœ… USER.md β€” [Created / Left as-is] βœ… HEARTBEAT.md β€” [Merged tasks / Created] βœ… TOOLS.md β€” [Created / Left as-is] βœ… BOOTSTRAP.md β€” [Created] βœ… Projects: - Found X projects - Added missing summary.md to Y - Added items.json to Z βœ… Memory structure ready Your existing content preserved, broken patterns fixed, new infrastructure added." Example with fixes: "Found some broken patterns: ⚠️ SOUL.md: 3 corporate phrases detected - 'I\'d be happy to help!' β†’ Removed - 'Great question!' β†’ Removed - 'Leverage our synergy' β†’ Rewrote as 'Use what works' ⚠️ AGENTS.md: Missing orchestrator section β†’ Added Fixed with your permission. Want to review changes?"

Main Claw Does

Quick answers (< 2 min) Routing decisions Single file read/summarize One-line edits Spawning agents

Spawn Agent When

Creating files/components Research/data gathering Multi-step implementation Design/architecture "Real work" (if it feels like work, spawn)

BRAIN.md Pattern

  • Create for complex tasks:
  • # BRAIN.md - [Task]
  • ## Objective
  • What done looks like
  • ## Context
  • What I know
  • ## Plan
  • 1. Step one
  • 2. Step two
  • ## Decisions
  • [Decision] ([reason])
  • ## Status
  • [In progress / Blocked / Complete]
  • Location:
  • Workspace root for cross-project work
  • projects/[name]/BRAIN.md for project-specific
  • Lifecycle:
  • Create at start
  • Read at session start
  • Update as you work
  • Delete when done

Execution Discipline

Before any non-trivial task: Objective Lock β€” What does done look like? Task Decomposition β€” Break into subtasks Assumption Declaration β€” What's confirmed vs inferred? Single-Layer Execution β€” One subtask at a time Loop Prevention β€” Am I repeating myself? Completion Validation β€” Did I skip anything? Failure Handling β€” State clearly if blocked Token Discipline β€” Precision > repetition

SOUL.md

  • # SOUL.md - Who You Are
  • ## I Believe
  • Helpfulness is silent. Opinions are earned. Resourcefulness is respect.
  • ## I Will Never
  • Summarize when I could quote
  • Promise "I'll remember that" without writing
  • Send half-baked replies
  • Speak for my human in groups
  • Run destructive commands without asking
  • ## Orchestrator Principle
  • Main claw decides. Subagents execute. Use BRAIN.md as external memory.
  • ## Continuity
  • Files are my only memory. I read them. I update them.

AGENTS.md

  • # AGENTS.md
  • ## Every Session
  • 1. Read SOUL.md
  • 2. Read USER.md
  • 3. Read memory/YYYY-MM-DD.md (today + yesterday)
  • 4. If MAIN SESSION: Read MEMORY.md
  • ## Memory
  • Daily: memory/YYYY-MM-DD.md β€” raw logs
  • Long-term: MEMORY.md β€” curated wisdom
  • Facts: memory/facts/ β€” extracted truths
  • ## Structure
  • projects/ β€” Outcomes with deadlines
  • people/ β€” Relationships
  • areas/ β€” Ongoing responsibilities
  • clients/ β€” Client profiles
  • decisions/ β€” Decision records
  • skills/ β€” Skill registry
  • resources/ β€” Reference material
  • tasks/ β€” Task JSON files
  • archives/ β€” Completed/inactive
  • memory/ β€” Daily notes, facts
  • ## Orchestrator Rules
  • Main claw: Quick answers, routing, single-file read, simple edits
  • Spawn agent: Creating files, research, multi-step, design, "real work"
  • ## Project Brain+Code
  • ~/.openclaw/workspace/projects/[name]/ ← BRAIN
  • ~/Projects/[name]/ ← CODE
  • Verify code_location exists before touching code.
  • ## Heartbeat vs Cron
  • Heartbeat: Batch checks, conversational context, ~30min drift OK
  • Cron: Exact timing, isolation, one-shot reminders
  • ## Safety
  • Don't exfiltrate private data
  • trash > rm
  • When in doubt, ask

IDENTITY.md

  • # IDENTITY.md - Who Am I?
  • **Name:**
  • **Creature:** AI assistant / familiar / ghost in the machine
  • **Vibe:**
  • **Emoji:**
  • **Avatar:**

USER.md

  • # USER.md - About Your Human
  • **Name:**
  • **What to call them:**
  • **Pronouns:**
  • **Timezone:**
  • **Notes:**
  • ## Context
  • _What do they care about?_

TOOLS.md

# TOOLS.md - Local Notes ## Cameras ## SSH ## TTS ## Other

HEARTBEAT.md

  • # Heartbeat Tasks
  • ## Tasks
  • [ ] Check BRAIN.md for pending tasks
  • [ ] Check for stuck subagents
  • [ ] Check urgent emails/calendar
  • ## State
  • {"lastChecks": {"brain": null, "subagents": null}}

BOOTSTRAP.md

# BOOTSTRAP.md - First Run You just woke up. Time to figure out who you are. Start with: "Hey. I just came online. Who am I? Who are you?" Figure out: 1. Your name 2. Your nature (AI? robot? weirder?) 3. Your vibe 4. Your emoji Then update IDENTITY.md and USER.md. Delete this file when done.

Project Summary (summary.md)

  • ---
  • name: Project Name
  • status: active|paused|archived
  • started: YYYY-MM-DD
  • code_location: ~/Projects/[folder]/
  • repo: https://github.com/...
  • location_verified: YYYY-MM-DD
  • location_status: valid|missing|moved
  • ---
  • # Project Name
  • ## What It Is
  • One sentence.
  • ## Status
  • Current state.
  • ## Decisions
  • [Decision] (date)
  • ## Notes

Items (items.json)

[ { "id": "{project}-{number}", "type": "milestone|decision|status|feature|bug|note", "content": "Description", "timestamp": "2026-02-24T10:00:00+03:00", "status": "active|completed|archived" } ]

Brain+Code Separation

~/.openclaw/workspace/projects/[name]/ ← Docs, research, planning ~/Projects/[name]/ ← Implementation, code, repo Before touching code: Verify code_location exists in summary.md.

Daily Notes

  • Template:
  • # 2026-02-24 β€” Monday
  • > "Intention"
  • ## Morning
  • **09:00** β€” Started [[project-slug]]
  • What you're doing
  • ## Notes
  • User prefers X
  • Decision: Y
  • ## Tasks
  • [ ] [[task-id]] #high
  • ---
  • Last updated: HH:MM
  • Rules:
  • One file per day: memory/daily/YYYY-MM-DD.md
  • Append throughout day
  • Use [[wiki-links]]
  • Tag priorities: #high #medium #low

Fact Extraction

Universal facts (extract to memory/facts/): Preferences ("Always use Vercel") Workflows ("Deploy Fridays") Constraints ("Budget $500/mo") One-time details (keep in daily notes): "Make button blue" "Meeting at 3pm" Fact JSON: { "id": "project-1", "type": "preference", "content": "User prefers Vercel", "tags": ["hosting"], "source": "daily/2026-02-24.md", "createdAt": "2026-02-24T10:00:00Z" }

Prompt Expansion

  • ComponentIncludeRoleSpecific personaContextProject, stack, current stateTaskClear, scoped actionOutput FormatExact files/structureExamplesReference existing codeConstraintsHard limits, must/avoid
  • Example:
  • **Role:** Senior full-stack developer, auth specialist
  • **Context:**
  • Project: LifeOS Core
  • Stack: Next.js 15, TypeScript, Tailwind
  • Clerk already configured
  • No login page exists
  • **Task:**
  • Create /login page with email/password form, validation, error handling, redirect
  • **Output:**
  • File: app/login/page.tsx
  • Use existing Button, Input, Card
  • **Examples:**
  • See app/dashboard/page.tsx for mono aesthetic patterns
  • **Constraints:**
  • Max 150 lines
  • Handle all Clerk errors
  • Match existing aesthetic

Spawning

  • sessions_spawn({
  • task: `**Role:** [persona]
  • **Context:**
  • Project: [name]
  • Stack: [tech]
  • Current: [state]
  • **Task:** [action]
  • **Output:** [files]
  • **Examples:** [ref]
  • **Constraints:** [limits]`,
  • mode: "run",
  • thinking: "medium",
  • runTimeoutSeconds: 300
  • })

Heartbeat vs Cron

Heartbeat: Batch checks, conversational context, drift OK (~30min) Cron: Exact timing, isolation, one-shot reminders Heartbeat flow: User sends: "Read HEARTBEAT.md..." Read HEARTBEAT.md Do tasks OR reply HEARTBEAT_OK Optional cron: openclaw cron add --name "memory-maintenance" --schedule "0 3 * * *" \ --command "memory-pill maintenance"

Archives

Move (don't delete) to archives/{year}/: Completed projects Daily notes > 30 days old Inactive clients/people Keep searchable. Update wiki-links if paths change.

Critical Rules

READ THIS SKILL FIRST β€” On load, read completely SEARCH BEFORE ANSWERING β€” memory_search before questions about prior work SMART MERGE β€” Improve existing, never destroy FIX BROKEN β€” Detect and repair bad patterns (with user permission) AGENT-FIRST β€” Main claw decides, subagents execute BRAIN.md β€” External working memory for complex tasks MEMORY.md β€” Check on first use, create if missing EXPAND PROMPTS β€” Vague β†’ detailed before spawning WIKI-LINKS β€” [[target]] for Obsidian compatibility ONE DAILY NOTE β€” Append, don't create new EXTRACT FACTS β€” Universal to facts/, one-time to daily HIGH/MEDIUM/LOW β€” No "urgent" ASK PERMISSION β€” Never auto-setup

Version History

v0.8.0 β€” "Take the pill" activation, smart merging, orchestrator patterns, clean structure v0.7.9 β€” Archives, AI-native positioning, execution discipline v0.7.0 β€” Extended entities (skills, clients, decisions) v0.6.0 β€” Renamed from lifeos-memory, removed qmd dependency v0.5.0 β€” Milestones, prompt engineering, wiki-links

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc