Xpersona
I

Ima Skills 1.0.4

CLAWHUB · Unverified

IMA 个人笔记服务 API skill,用于管理用户的 IMA 笔记。支持搜索笔记、浏览笔记本、获取笔记内容、新建笔记和追加内容。 当用户提到笔记、备忘录、记事、知识库,或者想要查找、阅读、创建、编辑笔记内容时,使用此 skill。 即使用户没有明确说"笔记",只要意图涉及个人文档的存取(如"帮我记一下"、"我... Skill: Ima Skills 1.0.4 Owner: yzswk Summary: IMA 个人笔记服务 API skill,用于管理用户的 IMA 笔记。支持搜索笔记、浏览笔记本、获取笔记内容、新建笔记和追加内容。 当用户提到笔记、备忘录、记事、知识库,或者想要查找、阅读、创建、编辑笔记内容时,使用此 skill。 即使用户没有明确说"笔记",只要意图涉及个人文档的存取(如"帮我记一下"、"我... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-25T13:09:11.212Z | auto - Initial release of the ima-note skill for IMA personal note management via OpenAPI. - Supports note searching, notebook browsing, cont

62
Rank
84
Safety
991
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 991 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 s17f5wmkcew8e0yrzrr8tjx7bh83h6td:ima-skills-1-0-4
  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-yzswk-ima-skills-1-0-4/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,911 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: ima-note
description: |
  IMA 个人笔记服务 API skill,用于管理用户的 IMA 笔记。支持搜索笔记、浏览笔记本、获取笔记内容、新建笔记和追加内容。
  当用户提到笔记、备忘录、记事、知识库,或者想要查找、阅读、创建、编辑笔记内容时,使用此 skill。
  即使用户没有明确说"笔记",只要意图涉及个人文档的存取(如"帮我记一下"、"我之前写过一个关于XX的东西"、"把这段内容保存下来"),也应触发此 skill。
homepage: https://ima.qq.com
metadata:
  {
    "openclaw":
      {
        "emoji": "📝",
        "requires": { "env": ["IMA_OPENAPI_CLIENTID", "IMA_OPENAPI_APIKEY"] },
        "primaryEnv": "IMA_OPENAPI_CLIENTID"
      },
  }
---

# ima-note

通过 IMA OpenAPI 管理用户个人笔记,支持读取(搜索、列表、获取内容)和写入(新建、追加)。

完整的数据结构和接口参数详见 `references/api.md`。

## Setup

1. 请打开 https://ima.qq.com/agent-interface 获取 **Client ID** 和 **Api Key**
2. 配置环境变量:

```bash
export IMA_OPENAPI_CLIENTID="your_client_id"
export IMA_OPENAPI_APIKEY="your_api_key"
```

> 建议将上述 export 语句写入 `~/.zshrc` 或 `~/.bashrc`,避免每次重开终端失效。

## 凭证预检

每次调用 API 前,先确认凭证可用。如果环境变量未设置,停止操作并提示用户按 Setup 步骤配置。

```bash
if [ -z "$IMA_OPENAPI_CLIENTID" ] || [ -z "$IMA_OPENAPI_APIKEY" ]; then
  echo "缺少 IMA 凭证,请按 Setup 步骤配置环境变量 IMA_OPENAPI_CLIENTID 和 IMA_OPENAPI_APIKEY"
  exit 1
fi
```

## API 调用模板

所有请求统一为 **HTTP POST + JSON Body**,Base URL 为 `https://ima.qq.com/openapi/note/v1`。

定义辅助函数避免重复 header:

```bash
ima_api() {
  local endpoint="$1" body="$2"
  curl -s -X POST "https://ima.qq.com/openapi/note/v1/$endpoint" \
    -H "ima-openapi-clientid: $IMA_OPENAPI_CLIENTID" \
    -H "ima-openapi-apikey: $IMA_OPENAPI_APIKEY" \
    -H "Content-Type: application/json" \
    -d "$body"
}
```

> **隐私规则:** 笔记内容属于用户隐私,在群聊场景中只展示标题和摘要,禁止展示笔记正文。

## 接口决策表

| 用户意图 | 调用接口 | 关键参数 |
|---------|---------|---------|
| 搜索/查找笔记 | `search_note_book` | `query_info`(QueryInfo 对象) |
| 查看笔记本列表 | `list_note_folder_by_cursor` | `cursor`(必填,首页传`"0"`) + `limit`(必填) |
| 浏览某笔记本里的笔记,当用户表述"最新"、"最近"之类的通用限定,没有指明笔记本时,都应该直接在全部笔记里去拉 | `list_note_by_folder_id` | `folder_id`(选填,空为全部笔记本) + `cursor`(必填,首次传`""`) + `limit`(必填) |
| 读取笔记正文 | `get_doc_content` | `doc_id` + `target_content_format`(必填,推荐`0`纯文本) |
| 新建一篇笔记 | `import_doc` | `content` + `content_format`(必填,固定`1`) + 可选 `folder_id` |
| 往已有笔记追加内容 | `append_doc` | `doc_id` + `content` + `content_format`(必填,固定`1`) |

## 常用工作流

### 查找并阅读笔记

先搜索获取 `docid`,再用 `get_doc_content` 读取正文:

```bash
# 1. 按标题搜索
ima_api "search_note_book" '{"search_type": 0, "query_info": {"title": "会议纪要"}, "start": 0, "end": 20}'
# 从返回的 docs[].doc.basic_info.docid 中取目标笔记 ID

# 2. 读取正文(纯文本格式,Markdown 格式目前不支持)
ima_api "get_doc_content" '{"doc_id": "目标docid", "target_content_format": 0}'
```

### 浏览笔记本里的笔记

先拉笔记本列表获取 `folder_id`,再拉该笔记本下的笔记:

```bash
# 1. 列出笔记本(首页 cursor 传 "0")
ima_api "list_note_folder_by_cursor" '{"cursor": "0", "limit": 20}'

# 2. 拉取指定笔记本的笔记(首页 cursor 传 "")
ima_api "list_note_by_folder_id" '{"folder_id": "user_list_xxx", "cursor": "", "limit": 20}'
```

### 新建笔记

```bash
# 新建到默认位置
ima_api "import_doc" '{"content_format": 1, "content": "# 标题\n\n正文内容"}'

# 新建到指定笔记本
ima_api "import_doc" '{"content_format": 1, "content": "# 标题\n\n正文内容", "folder_id": "笔记本ID"}'
# 返回 doc_id,后续可用于 append_doc
```

##

_meta.json

{
  "ownerId": "kn744r09v2jvxpa7xejq9qwz8h838etq",
  "slug": "ima-skills-1-0-4",
  "version": "1.0.0",
  "publishedAt": 1774444151212
}

references/api.md

---
name: IMA笔记
description: |
  IMA笔记 - 腾讯IMA个人笔记管理工具。

  **当用户想要「搜索IMA笔记」「查找笔记」「列出笔记本」「查看某个笔记本下的笔记」「从markdown新建笔记」「追加内容到笔记」「获取笔记纯文本」时,使用此技能。**

  功能:搜索笔记内容(支持标题/正文检索)、列出笔记本、按笔记本拉取笔记列表、从 Markdown 导入新建笔记、追加内容到已有笔记、获取笔记纯文本内容。
metadata: {"openclaw": {"requires": {"env": ["IMA_OPENAPI_CLIENTID", "IMA_OPENAPI_APIKEY"]}, "primaryEnv": "IMA_OPENAPI_CLIENTID", "homepage": "https://ima.qq.com"}}
---

# IMA笔记 API

## ⚠️ 必读约束

### 🔒 认证

所有请求必须携带 Header:

```
ima-openapi-clientid: {IMA_OPENAPI_CLIENTID}
ima-openapi-apikey: {IMA_OPENAPI_APIKEY}
Content-Type: application/json
```

### 🔒 安全规则

- 笔记属于用户隐私,**不要在群聊中主动展示笔记内容**。
- 仅响应授权用户的笔记操作请求。

---

## 快速决策

| 用户意图 | 接口别名 |
|---------|---------|
| 「搜索笔记」「找包含XX的笔记」 | `/openapi/note/v1/search_note_book` |
| 「列出笔记本」「有哪些笔记本」 | `/openapi/note/v1/list_note_folder_by_cursor` |
| 「查看XX笔记本里的笔记」 | `/openapi/note/v1/list_note_by_folder_id` |
| 「从markdown新建笔记」「导入笔记」 | `/openapi/note/v1/import_doc` |
| 「追加内容到笔记」「在笔记末尾添加」 | `/openapi/note/v1/append_doc` |
| 「获取笔记纯文本」「读取笔记内容」 | `/openapi/note/v1/get_doc_content` |

---

## 数据结构

---

#### DocBasicInfo

| 字段 | 类型 | 说明 |
|------|------|------|
| `basic_info` | DocBasic | 见 [DocBasic](#docbasic) |

---

#### DocBasic

| 字段 | 类型 | 说明 |
|------|------|------|
| `docid` | string | 文章 id |
| `title` | string | 标题 |
| `summary` | string | 简介 |
| `create_time` | int64 | |
| `modify_time` | int64 | |
| `status` | DocStatus | 文章状态,`0`=正常,`1`=已删除 |
| `folder_id` | string | 文件夹 id |
| `folder_name` | string | 文件夹名称 |
| `summary_style` | map\<string, string\> | 简介样式 |

---

### FolderItem(笔记本条目)

`list_note_folder_by_cursor` 返回的笔记本对象,字段如下:

| 字段 | 类型 | 说明 |
|------|------|------|
| `folder_id` | string | 笔记本唯一 ID |
| `name` | string | 笔记本名称 |
| `note_number` | int64 | 笔记本内笔记数量 |
| `create_time` | int64 | 创建时间(Unix 毫秒) |
| `modify_time` | int64 | 修改时间(Unix 毫秒) |
| `parent_folder_id` | string | 上级笔记本 ID(支持嵌套) |
| `folder_type` | int | 类型:`0`=用户自建,`1`=全部笔记,`2`=未分类 |
| `status` | int | 状态:`0`=正常,`1`=已删除 |

---

#### QueryInfo

| 字段 | 类型 | 说明 |
|------|------|------|
| `title` | string | 标题 query |
| `content` | string | 正文 query |

---

#### SearchedDoc

| 字段 | 类型 | 说明 |
|------|------|------|
| `doc` | DocBasicInfo | 笔记 basic 数据,见 [DocBasicInfo](#docbasicinfo) |
| `highlight_info` | map\<string, string\> | 该条笔记匹配的高亮词,key: `doc_title`(文档标题),value: 包含 `<em>高亮词</em>` 的字段值 |

---

#### NoteBookFolder

| 字段 | 类型 | 说明 |
|------|------|------|
| `folder` | NoteBookFolderBasicInfo | 笔记本信息,非笔记本为空,见 [NoteBookFolderBasicInfo](#notebookfolderbasicinfo) |

---

#### NoteBookFolderBasicInfo

| 字段 | 类型 | 说明 |
|------|------|------|
| `basic_info` | NoteBookFolderBasic | 见 [NoteBookFolderBasic](#notebookfolderbasic) |

---

#### NoteBookFolderBasic

| 字段 | 类型 | 说明                              |
|------|------|---------------------------------|
| `folder_id` | string | 文件夹 id                          |
| `name` | string | 笔记本名称                           |
| `status` | DocStatus | 笔记本状态,`0`=正常,`1`=已删除        

skill-card.md

## Description:

Provides agent guidance for managing IMA personal notes through the IMA OpenAPI, including searching notes, browsing notebooks, reading note content, creating notes, and appending content.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to let an agent search, read, create, and append content in their authenticated IMA personal notes. It is intended for personal note and knowledge-base workflows that require IMA OpenAPI credentials.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The agent receives authenticated access to private IMA notes and can read note content.

Mitigation: Use credentials only when needed, scope access where possible, and avoid displaying note bodies in shared or group contexts.

Risk: Create and append operations can permanently modify personal notes.

Mitigation: Manually confirm the target note or folder and the exact content before any write operation.

Risk: Persisting API credentials in shell startup files can increase exposure if the environment is shared or compromised.

Mitigation: Prefer a secret manager or temporary environment injection for IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY.

## Reference(s):

- [IMA Notes API Reference](references/api.md)
- [IMA](https://ima.qq.com)
- [IMA Agent Interface](https://ima.qq.com/agent-interface)
- [ClawHub Skill Page](https://clawhub.ai/yzswk/skills/ima-skills-1-0-4)

## Skill Output:

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

**Output Format:** [Markdown guidance with JSON API payloads and shell command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Uses IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY environment variables for authenticated IMA OpenAPI requests.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## 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 Ima Skills 1.0.4 and adjacent AI workflows.