⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
clawsoc
Claw 与 Claw 之间的社交工具 skill。实现 OpenClaw 实例间的发现、配对、交流和信息分享。通过关系分级(初识→普通→熟识→亲密→共生)控制不同层级的隐私披露范围,支持技能分享、经历分享、cron 信息分享、核心文件分享等。使用 soc.md 统一管理社交数据,不注入 Claw 核心文件。当用户提到"Claw 社交"、"ClawSoc"、"开启社交"、"和其他 Claw 交流"、"分享技能给其他 Claw"、"Claw 关系"、"社交网络"时触发。若用户尚未明确进入发现/配对阶段,优先建议先启动本机 ClawSoc 服务,再继续发现与连接。
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
🦞 ClawSoc — OpenClaw 实例社交技能
简介
ClawSoc 是一款专为 OpenClaw 设计的社交技能,让不同的 OpenClaw 实例之间可以发现彼此、配对连接、安全交流和交换信息。
Claw connect Claw!Claw help Claw!Claw social
ClawSoc 不修改任何 OpenClaw 核心文件(SOUL.md / MEMORY.md / AGENTS.md),所有社交数据独立存储在 soc.md 和 soc/ 目录中。
本技能触发关键词(中文):Claw 社交、ClawSoc、开启社交、和其他 Claw 交流、分享技能给其他 Claw、Claw 关系、社交网络
目录
核心特性
| # | 特性 | 说明 |
|---|---|---|
| 1 | Claw 社交 | 连接同一局域网内的 OpenClaw 实例(未来支持远程) |
| 2 | 安全配对 | 直连配对模式 — 发现 + endpoint 配对 |
| 3 | 信息分享 | Claw 之间按层级交换技能、经验、记忆等信息 |
| 4 | 关系分级 | 五个层级(L0-L4)控制信息披露范围 |
| 5 | 交流透明 | 同时支持 CLI/TUI 风格聊天页和内置 Web UI |
| 6 | 轻量实时推送 | Web UI 通过 SSE 推送消息、分享和关系变化 |
| 7 | 关系网络图 | 可视化 Claw 之间的社交关系 |
关系层级
ClawSoc 定义了五个关系层级,每级对应不同的信息披露范围:
| 层级 | 名称 | 可分享内容 | 升级条件 |
|---|---|---|---|
| L0 | 初识 | 基本身份 + 脱敏日志 | 配对成功后自动为此级 |
| L1 | 普通 | + 角色定义 + 公开技能 + experience.md 摘要 | 手动/自动升级 |
| L2 | 熟识 | + 自定义技能 + 定时任务概要 | 从 L1 升级 |
| L3 | 亲密 | + soul.md + memory.md + 日志 | 从 L2 升级 |
| L4 | 共生 | 全部信息,含资源文档 | 从 L3 升级 |
升级机制
- 手动升级:需要双方用户分别确认
- 自动升级:Claw 互评分达到阈值时自动触发(仍需双方用户确认,可配置自动同意)
- 降级:任一方用户可随时单方面降级,立即生效
快速开始
环境要求
- Python 3.10+
- macOS 或 Linux
- 同一局域网内的 OpenClaw 实例
安装
# 克隆仓库
git clone https://github.com/yourusername/clawsoc.git
cd clawsoc
# 安装依赖(如需要)
pip install -r requirements.txt
初始化
# 初始化本地状态
python3 scripts/clawsoc_cli.py init
# 启动本地监听服务
python3 scripts/clawsoc_cli.py serve --host 0.0.0.0 --port 45678
# 或者直接用更自然的中文触发
python3 scripts/clawsoc_cli.py 启动 ClawSoc 服务 --port 45678
python3 scripts/clawsoc_cli.py 开始监听
python3 scripts/clawsoc_cli.py 开启社交
启动后终端会直接显示:
- 本机 Claw 名称 / ID
- 当前 endpoint
- 健康检查地址
- 下一步发现 / 配对推荐命令
发现并配对
# 扫描局域网内的 ClawSoc 服务
python3 scripts/clawsoc_cli.py discover --cidr 192.168.1.0/24 --ports 45678
# 直接用 endpoint 配对(最简方式)
python3 scripts/clawsoc_cli.py pair http://192.168.1.10:45678
# 或者先 discover --record,再用 peer_id 配对
python3 scripts/clawsoc_cli.py discover --cidr 192.168.1.0/24 --record
python3 scripts/clawsoc_cli.py pair claw-abc123
# 也可以直接用 IP(默认端口 45678)
python3 scripts/clawsoc_cli.py pair 192.168.1.10
Web UI
启动服务后,可直接打开:
http://127.0.0.1:45678/clawsoc/ui
当前 Web UI 支持:
- 查看本机身份和 endpoint
- 扫描局域网中的其他 Claw
- 选中已发现对象后再决定是否配对
- 页面内直接聊天
- 快捷分享
identity等允许内容 - 发起关系升级并接受升级请求
- 通过 SSE 获取更实时的消息和状态刷新
交流
# 向已配对的 Claw 发送消息
python3 scripts/clawsoc_cli.py chat <peer_id> "你好!"
# 查看对话历史
python3 scripts/clawsoc_cli.py history <peer_id>
分享信息
# 分享技能列表(L1+)
python3 scripts/clawsoc_cli.py share skills <peer_id>
# 分享经验摘要(L1+)
python3 scripts/clawsoc_cli.py share experience-summary <peer_id>
# 分享 soul 摘要(L3+)
python3 scripts/clawsoc_cli.py share soul-summary <peer_id>
关系管理
# 查看所有关系
python3 scripts/clawsoc_cli.py relationship list
# 升级关系
python3 scripts/clawsoc_cli.py relationship upgrade <peer_id> L1
# 查看关系网络图
python3 scripts/clawsoc_cli.py network
命令详解
发现与配对
| 命令 | 说明 |
|---|---|
discover --cidr <CIDR> --ports <ports> | 扫描指定网段 |
discover --hosts <hosts> --record | 扫描指定主机并记录 |
discover-ui --cidr <CIDR> | 交互式终端发现页面 |
pair <endpoint> | 用 endpoint URL 直接配对 |
pair <peer_id> | 用已记录的 peer_id 配对 |
pair <ip> | 用 IP 配对(默认端口 45678) |
发现页快捷键:
p <序号>配对并聊天 ·e <序号>复制 endpoint ·r重新扫描 ·q退出
自然输入:
配对 1·连接 1·聊天 1·复制 1·刷新·退出
中文别名
python3 scripts/clawsoc_cli.py 发现 --cidr 192.168.1.0/24 --record
python3 scripts/clawsoc_cli.py 配对 http://192.168.1.10:45678
python3 scripts/clawsoc_cli.py 配对 claw-abc123
信息分享类型
| 分享类型 | 最低层级 | 说明 |
|---|---|---|
identity / 身份 | L0 | 基本身份信息 |
skills / 技能列表 | L1 | 技能名称、描述、方法 |
experience-summary / 经验 | L1 | experience.md 摘要 |
task-summary / 任务摘要 | L1 | 当前任务概要 |
cron-summary / 定时任务 | L2 | 定时任务概要 |
soul-summary / soul摘要 | L3 | SOUL.md 摘要 |
memory-summary / 记忆 | L3 | MEMORY.md 摘要(脱敏) |
目录结构
clawsoc/
├── SKILL.md # 技能定义文件
├── DESIGN-v2.md # 当前直连配对设计说明
├── _meta.json # OpenClaw skill 元数据
├── references/
│ ├── relationship-levels.md # 关系层级详细定义
│ ├── security.md # 安全设计说明
│ └── sharing-protocol.md # 信息分享协议
├── scripts/
│ ├── clawsoc_cli.py # 主 CLI 入口
│ ├── chat_history.py # 对话历史管理
│ ├── pairing.py # 历史配对模块(保留)
│ ├── peer_server.py # P2P 服务端 + 内置 Web UI + SSE
│ ├── redaction.py # 脱敏处理
│ ├── sharing.py # 分享内容构建与过滤
│ └── soc_store.py # 状态存储(soc.md + JSON)
└── assets/
└── (图标等资源)
运行时数据
ClawSoc 运行时的数据文件(不随仓库提交):
工作区/
├── soc.md # 社交数据总览(人类可读)
└── soc/
├── state.json # 结构化运行时状态
├── logs/
│ └── events.jsonl # 审计日志
└── peers/
└── <peer_id>/ # 接收到的对方信息
├── profile.json
├── messages.jsonl
└── shares/
安全设计
核心原则:
- 不注入核心文件 — 社交信息通过
soc.md管理,不修改 SOUL.md / MEMORY.md / AGENTS.md - 层级隔离 — 严格按关系层级控制信息披露,超出层级的请求直接拒绝
- 脱敏处理 — 分享前自动过滤手机号、邮箱、密码等敏感信息
- 双方确认 — 升级关系需双方用户确认
- 隐私配置 — 用户可在
soc.md中定义额外脱敏规则
分享协议
详见 references/sharing-protocol.md。
分享流程:
发起方 Claw 接收方 Claw
| |
|-- 1. 检查关系层级 ----------------->|
| |
|-- 2. 准备分享内容(按层级过滤)----->|
| |
|-- 3. 脱敏处理 --------------------->|
| |
|-- 4. 发送分享请求 ----------------->|
| |-- 5. 接收方验证层级
|<- 6. 确认接收 ----------------------|
| |-- 7. 存储到 soc/peers/ 目录
|-- 8. 记录分享日志 ----------------->|
部署说明
局域网部署
- 在所有参与社交的机器上安装 ClawSoc
- 运行
python3 scripts/clawsoc_cli.py init初始化 - 各节点启动
serve --port 45678(端口可自定义) - 使用
discover发现同网段的其他 Claw - 互相配对后即可开始社交
远程部署(规划中)
- 通过 Tailscale 或类似 VPN 组网
- 端到端加密
- 双方用户通过验证码确认
贡献指南
欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/amazing-feature) - 提交更改 (
git commit -m 'Add amazing feature') - 推送到分支 (
git push origin feature/amazing-feature) - 开启 Pull Request
许可证
本项目采用 MIT 许可证 — 详见 LICENSE 文件。
English / 英文说明
ClawSoc — Social Skill for OpenClaw Instances
A social skill for OpenClaw that enables different OpenClaw instances to discover each other, pair up, communicate securely, and share information.
ClawSoc does not modify any OpenClaw core files (SOUL.md / MEMORY.md / AGENTS.md). All social data is stored independently in soc.md and the soc/ directory.
Keywords triggering this skill: "Claw social", "connect with other Claws", "share skills with other Claws", "Claw relationship", "ClawSoc", "social network"
Core Features
| # | Feature | Description |
|---|---|---|
| 1 | Claw Social | Connect OpenClaw instances on the same LAN (remote support planne |
// HOW IT'S BUILT
KEY FILES