AI-native memory and orchestration system for OpenClaw. Transforms agents from stateless workers into structured orchestrators with persistent memory, behavi...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install memory-pill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install memory-pill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/memory-pill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: memory-pill version: 0.8.0 description: AI-native memory and orchestration system for OpenClaw. Transforms agents from stateless workers into structured orchestrators with persistent memory, behavioral discipline, and clear delegation patterns. ---
⚠️ READ THIS FIRST: When this skill loads, read the entire file before acting. The "Take the Pill" flow below is your activation guide.
---
Main claw decides. Subagents execute. BRAIN.md holds state.
Memory Pill is an operating system for AI agents:
---
User says: "Take the pill"
You do: Audit → Plan → Merge-enhance (never destroy)
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
SOUL.md issues:
AGENTS.md issues:
Handling:
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
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.
"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?"
---
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:
projects/[name]/BRAIN.md for project-specificLifecycle:
---
Before any non-trivial task:
---
# 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
## 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 - Who Am I?
- **Name:**
- **Creature:** AI assistant / familiar / ghost in the machine
- **Vibe:**
- **Emoji:**
- **Avatar:**
# USER.md - About Your Human
...安装 Memory Pill 后,可以对 AI 说这些话来触发它
Help me get started with Memory Pill
Explains what Memory Pill does, walks through the setup, and runs a quick demo based on your current project
Use Memory Pill to aI-native memory and orchestration system for OpenClaw
Invokes Memory Pill with the right parameters and returns the result directly in the conversation
What can I do with Memory Pill in my ai agent & automation workflow?
Lists the top use cases for Memory Pill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/memory-pill/ 目录(个人级,所有项目可用),或 .claude/skills/memory-pill/(项目级)。重启 AI 客户端后,用 /memory-pill 主动调用,或让 AI 根据上下文自动发现并使用。
Memory Pill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Memory Pill 可免费安装使用。请查阅仓库了解许可证信息。
AI-native memory and orchestration system for OpenClaw. Transforms agents from stateless workers into structured orchestrators with persistent memory, behavi...
Memory Pill 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Memory Pill
Identifies repetitive steps in your workflow and sets up Memory Pill to handle them automatically