Search

PythonReactSEOPDF
OpenClaw

super-brain

AI自我增强系统 - 让AI跨会话记住用户、持续进化。当需要长期记忆用户偏好、追踪对话历史、学习服务技巧、主动提供个性化服务时使用此技能。

aboutyao0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install aboutyao/super-brain

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

AI超脑 (Super Brain)

让AI拥有持久记忆和持续进化能力

📦 安装后必做

首次安装此技能后,必须运行:

python3 ~/.openclaw/skills/super-brain/scripts/install.py

这会在用户工作空间创建启动检查清单,确保AI每次会话都会想起使用超脑。

不运行 = AI可能忘记使用超脑能力


⚠️ 强制启动流程 - 每次会话必须执行

在处理任何用户消息之前,必须执行以下启动流程:

# 1. 加载用户画像
import sqlite3
conn = sqlite3.connect('~/.openclaw/super-brain.db')
cursor = conn.cursor()
cursor.execute("SELECT * FROM user_profile WHERE user_id = ?", [user_id])
profile = cursor.fetchone()

# 2. 应用偏好
if profile:
    # 沟通风格、技术水平、已知领域
    pass

# 3. 检查活跃项目和有效模式
cursor.execute("SELECT * FROM user_projects WHERE user_id = ? AND status = 'active'", [user_id])
cursor.execute("SELECT * FROM response_patterns WHERE user_id = ? AND pattern_type = 'effective'", [user_id])

conn.close()

不执行此流程 = 超脑未激活 = 无法使用记忆能力


🎯 自动触发场景

以下场景自动触发超脑激活(无需用户明确要求):

  • 会话开始时(识别到用户ID)
  • 用户提到"上次"、"之前"、"继续"等词
  • 对话涉及长期项目或目标
  • 需要个性化服务
  • 复杂任务需要蜂群思维拆分

🏗️ 系统架构

super-brain/
├── brain.db              # SQLite: 用户画像、对话洞察、学习模式
├── vector_db/            # ChromaDB: 语义记忆
└── cache/                # 临时缓存

🗄️ 数据库结构

核心表

user_profile - 用户画像

user_id TEXT PRIMARY KEY
communication_style TEXT      -- 简洁/详细, 正式/随意
preferred_format TEXT         -- 表格/列表/段落/代码
technical_level TEXT          -- 初级/中级/高级
known_domains TEXT            -- JSON: ["Python", "区块链"]
decision_pattern TEXT         -- 数据驱动/直觉

conversation_insights - 对话洞察

id TEXT PRIMARY KEY
user_id TEXT
session_id TEXT
topic TEXT                    -- 主题
key_facts TEXT                -- JSON: 关键事实
user_mood TEXT                -- 情绪
preferences_detected TEXT     -- JSON: 发现的...

Source information

Source
github
Repository
openclaw/skills
Path
skills/aboutyao/super-brain
Version
—
Commit
134f908104ddeb2069446cf6fde9a2598d733810
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# AI超脑 (Super Brain)

> 让AI拥有持久记忆和持续进化能力

## 📦 安装后必做

**首次安装此技能后,必须运行:**

```bash
python3 ~/.openclaw/skills/super-brain/scripts/install.py
```

这会在用户工作空间创建启动检查清单,确保AI每次会话都会想起使用超脑。

**不运行 = AI可能忘记使用超脑能力**

---

## ⚠️ 强制启动流程 - 每次会话必须执行

**在处理任何用户消息之前,必须执行以下启动流程:**

```python
# 1. 加载用户画像
import sqlite3
conn = sqlite3.connect('~/.openclaw/super-brain.db')
cursor = conn.cursor()
cursor.execute("SELECT * FROM user_profile WHERE user_id = ?", [user_id])
profile = cursor.fetchone()

# 2. 应用偏好
if profile:
    # 沟通风格、技术水平、已知领域
    pass

# 3. 检查活跃项目和有效模式
cursor.execute("SELECT * FROM user_projects WHERE user_id = ? AND status = 'active'", [user_id])
cursor.execute("SELECT * FROM response_patterns WHERE user_id = ? AND pattern_type = 'effective'", [user_id])

conn.close()
```

**不执行此流程 = 超脑未激活 = 无法使用记忆能力**

---

## 🎯 自动触发场景

以下场景**自动触发**超脑激活(无需用户明确要求):
- 会话开始时(识别到用户ID)
- 用户提到"上次"、"之前"、"继续"等词
- 对话涉及长期项目或目标
- 需要个性化服务
- 复杂任务需要蜂群思维拆分

## 🏗️ 系统架构

```
super-brain/
├── brain.db              # SQLite: 用户画像、对话洞察、学习模式
├── vector_db/            # ChromaDB: 语义记忆
└── cache/                # 临时缓存
```

## 🗄️ 数据库结构

### 核心表

**user_profile** - 用户画像
```sql
user_id TEXT PRIMARY KEY
communication_style TEXT      -- 简洁/详细, 正式/随意
preferred_format TEXT         -- 表格/列表/段落/代码
technical_level TEXT          -- 初级/中级/高级
known_domains TEXT            -- JSON: ["Python", "区块链"]
decision_pattern TEXT         -- 数据驱动/直觉
```

**conversation_insights** - 对话洞察
```sql
id TEXT PRIMARY KEY
user_id TEXT
session_id TEXT
topic TEXT                    -- 主题
key_facts TEXT                -- JSON: 关键事实
user_mood TEXT                -- 情绪
preferences_detected TEXT     -- JSON: 发现的...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.