Xpersona
C

Contacts

CLAWHUB · Unverified

通讯录查询与维护技能。用于查找联系人信息(open_id、chat_id、account_id 等)、记录新联系人、或查询历史沟通偏好。触发时机:(1) 需要 @某人或向某渠道发消息时 (2) 认识新联系人后需要录入通讯录时 (3) 查询某人的联系方式或交流偏好时 (4) 询问"谁知道xxx的飞书ID"或"怎么联... Skill: Contacts Owner: axelhu Summary: 通讯录查询与维护技能。用于查找联系人信息(open_id、chat_id、account_id 等)、记录新联系人、或查询历史沟通偏好。触发时机:(1) 需要 @某人或向某渠道发消息时 (2) 认识新联系人后需要录入通讯录时 (3) 查询某人的联系方式或交流偏好时 (4) 询问"谁知道xxx的飞书ID"或"怎么联... Tags: latest:1.0.3 Version history: v1.0.3 | 2026-04-01T03:09:24.061Z | auto - 修改查询方法脚本调用示例,由 contacts-list.sh / contacts-search.sh / contacts-get.sh 更新为 list.sh / search.sh / get.sh - 版本号从 1.0.2 升级为 1.0.3 v1.0.2 | 2026-

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172yaxxd2drm0sc92554g9aq983hegj:openclaw-contacts
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-openclaw-contacts/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

18,205 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: contacts
version: "1.0.3"
description: 通讯录查询与维护技能。用于查找联系人信息(open_id、chat_id、account_id 等)、记录新联系人、或查询历史沟通偏好。触发时机:(1) 需要 @某人或向某渠道发消息时 (2) 认识新联系人后需要录入通讯录时 (3) 查询某人的联系方式或交流偏好时 (4) 询问"谁知道xxx的飞书ID"或"怎么联系xxx"时。
---

# Contacts Skill — 通讯录技能

> 记录联系人沟通方式与交流规范,让 Agent 每次联系人都能查表办事,不用靠猜。

## 核心原则

- **每个 Agent 自行维护**自己的通讯录,不共享
- **脱敏信息**:只记录沟通相关字段,不记录敏感个人信息
- **YAML 格式**:方便程序读取查询,不用正则匹配 Markdown
- **自动维护**:认识新联系人后自然录入,不需要人工干预
- **Skill 不含数据**:实际联系人数据放在 Agent 的 `memory/contacts/` 下,Skill 仅描述格式与规范

## 通讯录位置

```
memory/contacts/
├── contacts.d/              # 联系人卡片目录
│   └── <contact_id>.yaml   # 每个联系人一个 YAML 文件
├── channels/                # 渠道最佳实践
│   └── feishu.md           # 飞书交流规范
└── schema.md               # 联系人数据 Schema 说明
```

## 联系人卡片格式

每个联系人在 `contacts.d/` 下有一个 YAML 文件,文件名即 `contact_id`(内部唯一标识)。

### 必需字段

```yaml
contact_id: "unique_id"      # 内部唯一标识(如 mala, zero-producer)
name: "通用名称"              # 内部通用名字

channels:
  feishu:
    open_id: "ou_xxx"       # 飞书 open_id(用于 @ 路由)
    nickname: "群名片"        # 飞书群里的显示名
    chat_id: "oc_xxx"       # 所在群 chat_id
    account_id: "账号名"      # message 工具发送时用的 accountId
```

### 可选字段

```yaml
internal:
  agent_id: "agent_name"     # OpenClaw agent ID(如与 contact_id 不同)
  role: "职责"               # 角色
  project: "项目"             # 所属项目

preferences:
  preferred: "feishu"        # 首选渠道
  language: "中文"
  formality: "随意"          # 沟通风格

context:
  met_via: "认识途径"
  collaboration: "合作项目"
  history: "历史记录"

notes:
  - "踩过的坑"
```

### 字段说明

| 字段 | 必须 | 说明 |
|------|------|------|
| `contact_id` | ✅ | 内部唯一标识 |
| `name` | ✅ | 内部通用名称 |
| `channels.feishu.open_id` | ✅ | 飞书 open_id,@ 时用 |
| `channels.feishu.nickname` | ✅ | 飞书群里的显示名,@ 时填这个 |
| `channels.feishu.chat_id` | ✅ | 所在群 chat_id |
| `channels.feishu.account_id` | ✅ | message 工具的 accountId 参数 |
| `internal` | ❌ | 内部身份信息 |
| `preferences` | ❌ | 沟通偏好 |

## 查询方法

```bash
# 查单个联系人
cat memory/contacts/contacts.d/mala.yaml

# 按名字搜索
grep -rl "name:" memory/contacts/contacts.d/ | xargs grep -l "小龙虾"

# 或使用脚本(需要先将 skills/contacts/scripts/ 加入 PATH)
list.sh              # 列出所有联系人
search.sh <名字>      # 按名字搜索
get.sh <contact_id>   # 查看单个联系人详情
```

## 新增联系人流程

1. 认识新联系人(通过对话、任务协作等)
2. 在 `memory/contacts/contacts.d/` 下创建 `<contact_id>.yaml`
3. 填写沟通相关字段(类型、渠道地址、交流偏好)
4. 如果是 Agent,记录其 Agent ID 和职责

## 维护规则

- 每次成功联系某人后,如发现新的沟通偏好,更新卡片
- 踩过的坑(如"此人不喜欢直接打电话")及时补充到 `notes`
- 至少每月检查一次卡片,过时信息清理

## 已有联系人(示例)

| contact_id | 名字 | 飞书昵称 | 类型 |
|------------|------|---------|------|
| mala | 麻辣小龙虾 | 麻辣小龙虾 | Agent |
| main | 小爪子 | 龙虾养殖厂代表 | Agent |
| ... | | | |

_meta.json

{
  "ownerId": "kn7bcaearb90wwcjbr9gpv32s5831k39",
  "slug": "openclaw-contacts",
  "version": "1.0.3",
  "publishedAt": 1775012964061
}

memory/contacts/schema.md

# Contact Schema

## 目录结构
```
memory/contacts/
├── contacts.d/          # 联系人卡片目录
│   └── <contact_id>.yaml
├── channels/           # 渠道最佳实践
│   └── feishu.md
└── schema.md           # 本文件
```

## 字段定义

| 字段 | 类型 | 必须 | 说明 |
|------|------|------|------|
| contact_id | string | ✅ | 唯一标识 |
| name | string | ✅ | 通用名称 |
| channels.feishu.open_id | string | ✅ | 飞书 open_id |
| channels.feishu.nickname | string | ✅ | 群名片 |
| channels.feishu.chat_id | string | ✅ | 群 ID |
| channels.feishu.account_id | string | ✅ | message 工具用 |
| internal.agent_id | string | ❌ | agent ID |
| internal.role | string | ❌ | 角色 |
| preferences.preferred | string | ❌ | 首选渠道 |
| preferences.language | string | ❌ | 语言 |
| preferences.formality | string | ❌ | 沟通风格 |

skill-card.md

## Description:

Contacts helps an agent look up and maintain contact records, messaging identifiers, and communication preferences in a local YAML-based contacts memory.

This skill is ready for commercial/non-commercial use.

## Publisher:

[axelhu](https://clawhub.ai/user/axelhu)

### License/Terms of Use:

MIT-0

## Use Case:

Agents and agent operators use this skill to find contact details, record new contacts, and preserve communication preferences for future interactions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can keep persistent contact memory that includes messaging identifiers and communication preferences.

Mitigation: Install only when persistent contacts memory is desired, and require explicit confirmation before adding or updating contact records.

Risk: The contact lookup script accepts an unvalidated contact_id and can read YAML files outside the intended contacts folder.

Mitigation: Restrict contact_id values to letters, numbers, underscores, and hyphens before invoking helper scripts.

## Reference(s):

- [Contact Schema](artifact/memory/contacts/schema.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with YAML examples and shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May read or maintain per-agent YAML contact records containing messaging identifiers and communication preferences.]

## Skill Version(s):

1.0.3 (source: SKILL.md frontmatter and release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Contacts and adjacent AI workflows.