AI Agent Hub
Back to skills
IMA OpenAPI Unified Access icon

IMA OpenAPI Unified Access

Knowledge Management Updated 2026.08.30

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 notes for searching, browsing, creating, and appending notes; use knowledge-base for file uploads, link addition, knowledge-base search, and associating notes. Cross-module tasks require reading both SKILL.md files first.
  • Credential and request flow: check environment variables or ~/.config/ima before API calls; send requests as HTTP POST + JSON Body to https://ima.qq.com.
  • Encoding safeguards: validate content and title as UTF-8 before import_doc or append_doc; keep uploaded files as original binary content without renaming or re-encoding.
  • Error handling: distinguish script-level errors -100 and update hints -200 from backend JSON code and msg, 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.