ima skills
统一的 IMA OpenAPI 技能,支持笔记管理和知识库操作。 当用户提到知识库、资料库、笔记、备忘录、记事,或者想要上传文件、添加网页到知识库、 搜索知识库内容、搜索/浏览/创建/编辑笔记时,使用此 skill。 即使用户没有明确说"知识库"或"笔记",只要意图涉及文件上传到知识库、网页收藏、 知识搜索、个人...
Rank
62
Safety
84
Downloads
16k
Updated
Oct 9, 2026
Version
1.1.7
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 16.1K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 9, 2026
- Adoption signal
- 16.1K downloadsadoption · observed Oct 9, 2026
- Latest release
- 1.1.7release · observed Apr 24, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s17b8zpkvjjj39qt4e1wx3r8a583gg9t:ima-skills- Install using `clawhub skill install s17b8zpkvjjj39qt4e1wx3r8a583gg9t:ima-skills` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/iampennyli/ima-skills before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-iampennyli-ima-skills/snapshot"
Documentation
CLAWHUB
144,235 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
knowledge-base/SKILL.md
# Knowledge Base (知识库) API base path: `openapi/wiki/v1` — 完整数据结构和接口参数详见 `references/api.md`。 ## 接口决策表 | 用户意图 | 调用接口 | 关键参数 | | --------------------------------------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | 上传文件到知识库 | `check_repeated_names` → `create_media` → COS Upload → `add_knowledge` | `media_type`(按扩展名),`knowledge_base_id`,`file_name`,`file_size` | | 上传文件到知识库的某个文件夹 | 先定位文件夹 → 同上(`folder_id` 传入目标文件夹 ID) | 见「文件夹操作」章节 | | 添加网页/微信文章到知识库 | `import_urls` | `urls`(1-10 个),`knowledge_base_id`,可选 `folder_id`(省略则根目录) | | 添加笔记到知识库 | `add_knowledge` | `media_type=11`,`note_info.content_id=<note_id>`,`knowledge_base_id` | | 添加 URL(文件型)到知识库 | `check_repeated_names` → 下载文件 → 走"上传文件"流程 | URL 指向 PDF/Word/PPT 等文件时,按文件方式处理 | | 检查文件名是否重复 | `check_repeated_names` | `params[].name`,`params[].media_type`,`knowledge_base_id`,`folder_id` | | 获取知识库信息 | `get_knowledge_base` | `ids`(1-20 个,不重复) | | 浏览知识库内容列表 / 浏览文件夹 | `get_knowledge_list` | `knowledge_base_id`,`cursor`,`limit`(1~50),可选 `folder_id` | | 在知识库中搜索(含文件和文件夹) | `search_knowledge` | `query`,`knowledge_base_id`,`cursor` | | 按关键词查找知识库(用户知道名字但不知道 ID) | `search_knowledge_base` | `query`,`cursor`,`limit`(1~20) | | 查看/了解自己有哪些知识库 | `search_knowledge_base`(`query` 传空字符串) | `query: ""`,`cursor`,`limit`(1~20) | | 添加内容但**未指定**目标知识库 | `get_addable_knowledge_base_list` → 展示列表让用户选择 | `cursor`,`limit`(1~50) | | 查看原文、分析原文、导出原文
notes/SKILL.md
# Notes (笔记) > ⛔ Before ANY write (`import_doc`/`append_doc`): validate ALL string fields (`content`, `title`) are legal UTF-8. > Non-UTF-8 content causes irreversible garbled text in IMA. See root SKILL.md § MANDATORY RULES for platform-specific validation methods. API base path: `openapi/note/v1` 通过 IMA OpenAPI 管理用户个人笔记,支持读取(搜索、列表、获取内容)和写入(新建、追加)。 完整的数据结构和接口参数详见 `references/api.md`。 > **隐私规则:** 笔记内容属于用户隐私,在群聊场景中只展示标题和摘要,禁止展示笔记正文。 ## 接口决策表 | 用户意图 | 调用接口 | 关键参数 | | --------------------------------------------------------------------------------- | ----------------- | ------------------------------------------------------------------------- | | 搜索/查找笔记 | `search_note` | `query_info`(QueryInfo 对象) | | 查看笔记本列表 / 列出笔记本 | `list_notebook` | `cursor`(必填,首页传`"0"`) + `limit`(必填) | | 列出笔记/获取多篇笔记信息 | `list_note` | `folder_id`(选填,空为全部) + `sort_type` + `cursor`(首次传`""`) + `limit` | | 读取笔记正文 | `get_doc_content` | `note_id` + `target_content_format`(必填,推荐`0`纯文本) | | 新建一篇笔记(用户明确说"新建/创建笔记"时走此接口) | `import_doc` | `content` + `content_format`(必填,固定`1`) + 可选 `folder_id` | | 往已有笔记追加内容(⚠️ **敏感操作**:用户必须明确指定目标笔记,否则先确认再操作) | `append_doc` | `note_id` + `content` + `content_format`(必填,固定`1`) | ## ⚠️ 新建 vs. 追加 — 行为规则 **新建笔记(`import_doc`)** 和 **追加内容到已有笔记(`append_doc`)** 是两个完全不同的操作,务必正确区分: ### 明确走新建的信号词 用户说以下任一表述时,**直接调用 `import_doc` 创建新笔记**: - "**新建**笔记"、"**创建**笔记"、"**写一篇**笔记" - "**新建**一篇笔记记录这些内容" ### 明确走追加的信号词 用户说以下任一表述时,**调用 `append_doc` 追加到已有笔记**(但仍需确认目标笔记,见下方规则): - "把这段话**追加到**《XX》笔记里" - "在那篇笔记**末尾加上**这段内容" ### 模糊场景 — 必须先询问用户 以下表述**既可能是新建、也可能是追加**,agent **不得自行假设**,必须先向用户确认: - "帮我记一下"、"记录一下"、"保存为笔记"、"存成笔记" - "把这段内容记到笔记里" - "添加到笔记里" - 任何其他未明确表达"新建"或"追加"意图的表述 询问示例: > "您是想**创建一篇新笔记**,还是**追加到某篇已有笔记**?" ### 追加到已有笔记是敏感操作 `append_doc` 会**不可撤销地修改**用户的现有笔记,因此必须谨慎处理: 1. **用户明确指定了目标笔记** — 可以直接追加。例如: - "把这段话追加到《会议纪要》笔记里" - "在那篇笔记末尾加上这段内容"(上下文中已有明确的笔记对象) 2. **用户没有明确指定目标笔记** — **必须先向用户确认**,不要自行猜测。例如: - 用户说"添加到笔记里" → 询问:"您想追加到哪篇已有笔记?请提供笔记标题或让我帮您搜索。" - 用户说"把这个加到之前那篇笔记" → 如果上下文中有多篇笔记或不确定是哪篇 → 列出候选笔记让用户选择 > **原则**:不确定时,先问。宁可多问一句,也不要误改用户的已有笔记或自作主张创建新笔记。 ### 🖼️ 本地图片不支持 `import_doc` 和 `append_doc` 的 `content` 字段仅支持Markdown,**不支持本地图片**。 写入笔记内容前,必须检查并处理图片引用: 1. **过滤本地图片** — 如果用户提供的内容中包含本地图片路径(如 ``, ``, `` 等),**移除这些图片引用**,不要将其写入笔记。 2. **告知用户** — 移除后主动提醒用户: > "笔记接口暂不支持上传本地图片,以下图片已被过滤:`xxx.png`、`yyy.jpg`。您可以先将图片上传到网络,再用网络链接插入笔记。" 3. **保留网络图片** — 以 `http://`
SKILL.md
---
name: ima-skill
description: |
统一的 IMA OpenAPI 技能,支持笔记管理和知识库操作。
当用户提到知识库、资料库、笔记、备忘录、记事,或者想要上传文件、添加网页到知识库、
搜索知识库内容、搜索/浏览/创建/编辑笔记时,使用此 skill。
即使用户没有明确说"知识库"或"笔记",只要意图涉及文件上传到知识库、网页收藏、
知识搜索、个人文档存取(如"帮我记一下"、"搜一下知识库里有没有XX"),也应触发此 skill。
homepage: https://ima.qq.com
metadata:
openclaw:
emoji: 🔧
requires:
env:
- IMA_OPENAPI_CLIENTID
- IMA_OPENAPI_APIKEY
primaryEnv: IMA_OPENAPI_CLIENTID
security:
credentials_usage: |
This skill requires user-provisioned IMA OpenAPI credentials (Client ID and API Key)
to authenticate with the official IMA API at https://ima.qq.com.
Credentials are ONLY sent to the official IMA API endpoint (ima.qq.com) as HTTP headers.
The file-upload flow also sends requests to COS endpoints (*.myqcloud.com) using
short-lived, scoped temporary credentials returned by the IMA API (create_media);
the user's Client ID / API Key are never sent to COS.
No credentials are logged, stored in files, or transmitted to any other destination.
allowed_domains:
- ima.qq.com
- '*.myqcloud.com'
---
# ima-skill
Unified IMA OpenAPI skill. Currently supports: **notes**, **knowledge-base**.
## ⛔ MANDATORY RULES — read before ANY operation
1. **UTF-8 encoding (notes writes only):** Before calling `import_doc` or `append_doc`, ALL string fields (`content`, `title`) MUST be validated as legal UTF-8. Non-UTF-8 content causes irreversible garbled text. See [Detailed Rules](#detailed-utf-8-encoding-rules) for platform-specific methods.
2. **File upload naming:** `title` MUST equal `file_name` (with extension). Never rename, shorten, translate, or modify the original filename.
3. **Unsupported file types:** Reject immediately with a clear message. Do NOT ask user "do you still want to try?" Video files, Bilibili/YouTube URLs, and `file://` URLs are not supported — tell user to use IMA desktop client.
4. **File upload integrity:** Keep file content as-is during upload. No encoding conversion for binary files (PDF, images, Excel, etc.).
5. **PowerShell 5.1 (all modules):** If running in PowerShell, detect version before first API call. PS 5.1 silently converts request Body to GBK — must use UTF-8 byte array mode. See [Detailed Rules](#powershell-51-environment-detection).
## 模块决策表
| 用户意图 | 模块 | 读取 |
| ------------------------------------------------------------------------------------------ | -------------- | ------------------------- |
| 搜索笔记、浏览笔记本、获取笔记内容、创建笔记、追加内容 | notes | `notes/SKILL.md` |
| 上传文件、添加网页链接、搜索知识库、浏览知识库内容、获取知识库信息、获取可添加的知识库列表 | knowledge-base | `knowledge-base/SKILL.md` |
| 查看原文、分析原文、导出原文(需要 media_id) | knowledge-base | `knowledge-base/SKILL.md` |
### ⚠️ 易混淆场景
| 用户说的 | 实际意图 _meta.json
{
"ownerId": "kn7fpa7e88ngzptwrczstadp5h831pc9",
"slug": "ima-skills",
"version": "1.1.7",
"publishedAt": 1777025159209
}knowledge-base/references/api.md
# IMA知识库 API ## ⚠️ 必读约束 ### 🌐 服务信息 - **Base URL **:`https://ima.qq.com` - **Base Path**:`/openapi/wiki/v1` - **协议**:HTTP POST,JSON body - **完整示例**:`POST https://ima.qq.com/openapi/wiki/v1/get_knowledge_base` ### 🔒 认证 所有请求必须携带 Header: | Header | 说明 | | ---------------------- | ------------------ | | `ima-openapi-clientid` | Client ID | | `ima-openapi-apikey` | API Key | | `Content-Type` | `application/json` | --- ## 快速决策 | 用户意图 | 接口 | | ------------------------------------ | ---------------------------------------------------------------------- | | 「上传文件到知识库」 | `check_repeated_names` → `create_media` → COS Upload → `add_knowledge` | | 「上传文件到指定文件夹」 | 先定位文件夹 → 同上(传入 `folder_id`) | | 「添加网页/微信文章到知识库」 | `import_urls` | | 「获取知识库信息」 | `get_knowledge_base` | | 「浏览知识库内容 / 浏览文件夹」 | `get_knowledge_list`(可传 `folder_id` 进入子文件夹) | | 「在知识库中搜索」 | `search_knowledge` | | 「搜索知识库列表」 | `search_knowledge_base` | | 「获取可添加的知识库列表」 | `get_addable_knowledge_base_list` | | 「检查文件名是否重复」 | `check_repeated_names` | | 「查看原文」「分析原文」「导出原文」 | `get_media_info` | --- ## 数据结构 ### KnowledgeBaseInfo(知识库信息) | 字段 | 类型 | 说明 | | ----------------------- | -------- | ------------- | | `id` | string | 知识库唯一 ID | | `name` | string | 知识库名称 | | `cover_url` | string | 封面图 URL | | `description` | string | 描述 | | `recommended_questions` | string[] | 推荐问题列表 | ### KnowledgeInfo(知识条目) | 字段 | 类型 | 说明 | | ------------------ | ------ | ------------- | | `media_id` | string | 媒体 ID | | `title` | string | 标题 | | `parent_folder_id` | string | 所属文件夹 ID | ### FolderInfo(文件夹条目) | 字段 | 类型 | 说明 | | ------------------ | ------ | ----------- | | `folder_id` | string | 文件夹 ID | | `name` | string | 文件夹名称 | | `file_number` | int64 | 文件数 | | `folder_number` | int64 | 子文件夹数 | | `parent_folder_id` | string | 父文件夹 ID | | `is_top` | bool | 是否置顶 | ### AddableKnowledgeBaseInfo(可添加的知识库信息) | 字段 | 类型 | 说明 | | ------ | ------ | ---------- | | `id` | string | 知识库 ID | | `name` | string | 知识库名称 | ### SearchedKnowledgeBaseInfo(搜索到的知识库信息) | 字段 | 类型 | 说明 | | ----------- | ------ | --------
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/iampennyli/skills/ima-skills",
"sourceUrl": "https://clawhub.ai/iampennyli/skills/ima-skills",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T01:50:36.800Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-iampennyli-ima-skills/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-iampennyli-ima-skills/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T01:50:36.800Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "16.1K downloads",
"href": "https://clawhub.ai/iampennyli/ima-skills",
"sourceUrl": "https://clawhub.ai/iampennyli/ima-skills",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T01:50:36.800Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.1.7",
"href": "https://clawhub.ai/iampennyli/ima-skills",
"sourceUrl": "https://clawhub.ai/iampennyli/ima-skills",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-24T10:05:59.209Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-iampennyli-ima-skills/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-iampennyli-ima-skills/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.1.7",
"description": "ima-skill 1.1.7 changelog - Initial release providing a unified IMA OpenAPI skill supporting note management and knowledge-base operations. - Automates intent routing between notes and knowledge-base modules based on user requests. - Enforces strict rules for credential usage, file uploads, encoding validation, and module decision logic. - Guides users through credential setup before allowing API operations. - Adds detailed error handling for process and backend errors. - Includes structured instructions and decision tables for handling ambiguous or cross-module user scenarios.",
"href": "https://clawhub.ai/iampennyli/ima-skills",
"sourceUrl": "https://clawhub.ai/iampennyli/ima-skills",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-24T10:05:59.209Z",
"isPublic": true
}
]
}Record generated Oct 9, 2026.
