IMA OpenAPI Unified Access
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_c54b5ab8/ima-skill-pro.
About this skill
Problem
Calling IMA OpenAPI often fails in two places. First, notes text writes can receive non-UTF-8 input from users, web fetches, files, or clipboard, producing irreversible garbled content. Second, the boundary between notes and knowledge-base is easy to misroute: appending to a note, adding a note to a knowledge base, and reading source content from a knowledge base each need different paths. The skill consolidates these operations behind one entry point and enforces validation and routing before execution.
How It Works
- Module routing: use
notesfor searching, browsing, creating, and appending notes; useknowledge-basefor file uploads, link addition, knowledge-base search, and associating notes. Cross-module tasks require reading bothSKILL.mdfiles first. - Credential and request flow: check environment variables or
~/.config/imabefore API calls; send requests asHTTP POST + JSON Bodytohttps://ima.qq.com. - Encoding safeguards: validate
contentandtitleas UTF-8 beforeimport_docorappend_doc; keep uploaded files as original binary content without renaming or re-encoding. - Error handling: distinguish script-level errors
-100and update hints-200from backend JSONcodeandmsg, surfacing actionable failure messages.
Limits and Caveats
This skill fits Agent workflows that need IMA note and knowledge-base access. Video files, Bilibili/YouTube URLs, and file:// URLs are unsupported. In PowerShell 5.1, requests must use UTF-8 byte-array mode. If the target note is ambiguous, confirm whether to create a new note or append to an existing one.
Use Cases
- Save fetched web content as an IMA note after validating UTF-8 before writes.
- Upload PDF, image, or Excel files to a chosen knowledge base with original names intact.
- Search a knowledge-base entry, then append its content to an existing IMA note.
- Associate an existing IMA note with a knowledge base instead of duplicating content.
Best For
- Engineering teams integrating IMA notes and requiring UTF-8 validation before writes.
- Knowledge managers consolidating web pages and files into an IMA knowledge base.
- Integration engineers calling IMA OpenAPI from PowerShell or Node scripts.
- Developers building cross-module automation between IMA notes and knowledge bases.
Related Skills
Extracts an eight-layer reasoning fingerprint from scholar texts and applies a nine-module constraint to run peer review, supervision, lecturing, or panel discussion with quantitative scores and qualitative comments.
Guides users through a nine-step failure review to analyze causes, hidden gains, and controllable improvements, producing a structured Word report.
Paste a paper abstract or passage and output a structured note with subject, methods, innovations, conclusions, and limitations or outlook.
Turn a topic or outline into a structured Markdown mind map for common visualization tools.