Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
统一的 IMA OpenAPI 技能,支持笔记管理和知识库操作。
当用户提到知识库、资料库、笔记、备忘录、记事,或者想要上传文件、添加网页到知识库、
搜索知识库内容、搜索/浏览/创建/编辑笔记时,使用此 skill。
即使用户没有明确说"知识库"或"笔记",只要意图涉及文件上传到知识库、网页收藏、
知识搜索、个人文档存取(如"帮我记一下"、"搜一下知识库里有没有XX"),也应触发此 skill。
description_zh
ima笔记与知识库管理(读取、写入、检索、上传文件)
description_en
IMA notes & knowledge base management (read, write, search, upload)
version
1.1.7
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)\nto authenticate with the official IMA API at https://ima.qq.com.\nCredentials are ONLY sent to the official IMA API endpoint (ima.qq.com) as HTTP headers.\nThe file-upload flow also sends requests to COS endpoints (*.myqcloud.com) using\nshort-lived, scoped temporary credentials returned by the IMA API (create_media);\nthe user's Client ID / API Key are never sent to COS.\nNo credentials are logged, stored in files, or transmitted to any other destination.\n","allowed_domains":["ima.qq.com","*.myqcloud.com"]}}
ima-skill
Unified IMA OpenAPI skill. Currently supports: notes, knowledge-base.
⛔ MANDATORY RULES — read before ANY operation
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 for platform-specific methods.
File upload naming:title MUST equal file_name (with extension). Never rename, shorten, translate, or modify the original filename.
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.
File upload integrity: Keep file content as-is during upload. No encoding conversion for binary files (PDF, images, Excel, etc.).
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.
模块决策表
用户意图
模块
读取
搜索笔记、浏览笔记本、获取笔记内容、创建笔记、追加内容
notes
notes/SKILL.md
上传文件、添加网页链接、搜索知识库、浏览知识库内容、获取知识库信息、获取可添加的知识库列表
knowledge-base
knowledge-base/SKILL.md
查看原文、分析原文、导出原文(需要 media_id)
knowledge-base
knowledge-base/SKILL.md
⚠️ 易混淆场景
用户说的
实际意图
正确路由
"把这段内容添加到知识库XX里的笔记YY"
往已有笔记追加内容
notes — 先搜索笔记获取 note_id,再用 append_doc
"把这个写到XX笔记里"、"记到XX笔记"
往已有笔记追加内容
notes — append_doc
"把这篇笔记添加到知识库"
将笔记关联到知识库
knowledge-base — add_knowledge with media_type=11
"上传文件到知识库"
上传文件到知识库
knowledge-base — create_media → COS → add_knowledge
!test -f ~/.config/ima/client_id && test -f ~/.config/ima/api_key && echo "✅ Credentials configured" || echo "⚠️ NO CREDENTIALS — setup required before any API call"
If ⚠️ NO CREDENTIALS: Guide the user through setup BEFORE attempting any API call:
Security note: Credentials are only sent as HTTP headers to ima.qq.com and never to any other domain, file, or log.
Runtime dependencies: Check meta.json → required_binaries
API 调用模板
所有请求统一为 HTTP POST + JSON Body,仅发往官方 Base URL https://ima.qq.com。