Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/dvcrn/openclaw-skills-marketplace --skill cognitive-brain명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your agent a soul.
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
SOC 직업 분류 기준
SKILL.md 표시 중
| name | cognitive-brain |
| description | Cognitive Brain |
跨会话记忆与认知系统 | Cross-Session Memory & Cognition System
让 AI 拥有像人类一样的记忆、思考和预测能力
Version: 2.7.2 | License: MIT
| 功能 | Feature | 描述 |
|---|---|---|
| 🔄 实时共享 | Real-time Sharing | 跨会话毫秒级记忆同步 |
| 🧠 四层记忆 | Four-Layer Memory | 感官/工作/情景/语义记忆架构 |
| 💭 自由思考 | Free Thinking | 非任务驱动的意识流思考 |
| 🔮 智能预测 | Prediction | 预测用户需求,预加载记忆 |
| 📊 可视化 | Visualization | 知识图谱、时间线、摘要 |
| 🔗 联想网络 | Association Network | 概念关联,激活扩散算法 |
# ClawHub 安装(推荐)
clawhub install cognitive-brain
# 手动安装
cd ~/.openclaw/workspace/skills
git clone <repository> cognitive-brain
cd cognitive-brain && npm install
# 存储记忆
node scripts/brain.cjs encode "用户的项目叫 Alpha"
# 检索记忆
node scripts/brain.cjs recall "项目"
# 健康检查
node scripts/brain.cjs health_check
┌─────────────────────────────────────────────────────────────┐
│ 应用层 | Application │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
│ │ 心跳反思 │ │ 自由思考 │ │ 预测预加载 │ │
│ └────────────┘ └────────────┘ └────────────┘ │
└─────────────────────────┬───────────────────────────────────┘
│
┌─────────────────────────▼───────────────────────────────────┐
│ 实时层 | Real-time (Redis) │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
│ │ Pub/Sub │ │ 工作记忆 │ │ 共享上下文 │ │
│ └────────────┘ └────────────┘ └────────────┘ │
└─────────────────────────┬───────────────────────────────────┘
│
┌─────────────────────────▼───────────────────────────────────┐
│ 持久层 | Persistence (PostgreSQL) │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
│ │ 系统记忆 │ │ 情景记忆 │ │ 语义记忆 │ │
│ └────────────┘ └────────────┘ └────────────┘ │
└─────────────────────────────────────────────────────────────┘
| 层级 | Layer | 持续时间 | 用途 |
|---|---|---|---|
| 感官记忆 | Sensory | 毫秒级 | 瞬时感知缓冲 |
| 工作记忆 | Working | 分钟~小时 | 活跃处理工作区 |
| 情景记忆 | Episodic | 长期 | 个人经历、事件 |
| 语义记忆 | Semantic | 长期 | 事实、概念、知识 |
| 表名 | Table | 说明 |
|---|---|---|
system_memory | System Memory | 替代 MEMORY.md,跨会话共享 |
shared_context | Shared Context | 会话间临时上下文 |
memory_changes | Memory Changes | 变更日志,实时追踪 |
# 设置用户档案
node scripts/shared_memory.cjs set "user_name" "master" profile
# 获取用户档案
node scripts/shared_memory.cjs user
# 获取所有教训
node scripts/shared_memory.cjs lessons
# 编码
node scripts/encode.cjs --content "内容" --metadata '{"type":"fact"}'
# 检索
node scripts/recall.cjs --query "关键词" --options '{"limit":5}'
# 联想
node scripts/associate.cjs spread "概念A,概念B"
# 心跳反思
node scripts/heartbeat_reflect.cjs check
# 自由思考
node scripts/free_think.cjs think
# 知识图谱
node scripts/visualize.cjs mermaid > graph.md
node scripts/visualize.cjs html > graph.html
# 时间线
node scripts/timeline.cjs recent 7
触发事件 | Event: message:preprocessed
功能 | Functions:
注入格式 | Injection Format:
[🔮 预测]
用户可能的下一步需求
[/预测]
[🧠 Memory Context]
相关记忆内容
[/Memory Context]
[⚠️ 教训提醒]
系统级别教训
[/教训提醒]
| 组件 | 版本 |
|---|---|
| Node.js | >= 18.0 |
| PostgreSQL | >= 14.0 (需要 pgvector) |
| Redis | >= 6.0 (可选) |
| Python | >= 3.8 (用于本地 Embedding) |
{
"storage": {
"primary": {
"type": "postgresql",
"host": "localhost",
"port": 5432,
"database": "cognitive_brain",
"user": "postgres",
"password": "cognitive123"
},
"cache": {
"type": "redis",
"host": "localhost",
"port": 6379
}
},
"embedding": {
"provider": "local",
"dimension":
| 方法 | 说明 |
|---|---|
getSystemMemory(key) | 获取系统记忆 |
setSystemMemory(key, content, category) | 设置系统记忆 |
getUserProfile() | 获取用户档案 |
getLessons() | 获取所有教训 |
setSharedContext(sessionId, type, content) | 设置共享上下文 |
onChange(callback) | 监听变更 |
| 问题 | 解决方案 |
|---|---|
| 数据库连接失败 | 检查 PostgreSQL 服务状态 |
| Embedding 加载慢 | 运行 warmup_embedding.cjs serve |
| Hook 不生效 | 复制 handler.js 到 OpenClaw hooks 目录 |
| 跨会话不同步 | 确保所有会话使用相同数据库配置 |
MIT License
AI Self-Design