ima-skill
Installation
SKILL.md
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_docorappend_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:
titleMUST equalfile_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 |