IMA Lobster API Integration
Paste the following prompt into your AI chat to install this skill:
Please install @user_32bcb989/ima-lobster-link according to https://skillhub.cn/install/skillhub.md.
About this skill
What it solves
Calling the IMA OpenAPI can easily mix two paths: append_doc adds content to an existing note, import_doc creates a new note, while file uploads, link additions, and source retrieval belong to knowledge-base. Chinese text read from files, web pages, or sent through PowerShell 5.1 can also be silently converted to GBK, causing unrecoverable mojibake. This skill turns routing, credential checks, UTF-8 validation, and error-code handling into a consistent set of invocation constraints, forcing the agent to decide whether the target is note content, a knowledge-base item, or the source of a knowledge-base item.
How it works and where it stops
- Routing: notes use
notes; uploads, web links, and knowledge-base search useknowledge-base; cross-module tasks read both submodules before acting. - Validation:
contentandtitlemust be valid UTF-8 beforeimport_docorappend_doc; uploads remain binary, andtitlemust match the originalfile_name. - Credentials and requests: environment variables or config files are checked, and requests are sent only to
https://ima.qq.comasPOST+ JSON. - Errors: script-level codes include
-100and-200; business-level errors are returned in stdout withcode != 0and should surfacemsgdirectly. - Limits: video, Bilibili/YouTube URLs, and
file://URLs are unsupported; PowerShell 5.1 must send an explicit UTF-8 byte array to avoid silent GBK conversion.
Use Cases
- Save a web article as a knowledge-base item, add its link, and prepare it for later retrieval before publishing support docs.
- Append a drafted update to a specified existing note by searching the note first and calling the append flow with the right note ID.
- Write Chinese note content from a web page or file, validating UTF-8 before import_doc or append_doc to avoid garbled text.
- Inspect a note-type item in a knowledge base by reading its media info, then fetch the original note content for review.
Best For
- Backend engineers integrating IMA automation: need correct module routing for notes and knowledge-base calls.
- Ops engineers maintaining Chinese docs: need to write web or file content into notes without UTF-8 garbling.
- Developers calling IMA APIs from PowerShell 5.1: need to avoid silent GBK conversion of request bodies.
- Support engineers using knowledge-base retrieval: need to find items, inspect original content, and distinguish note append from KB add.
Related Skills
A QQ bot messaging framework based on qq-botpy, covering guild, C2C, and group message flows, scheduled pushes, and troubleshooting.
Explains how to calculate N+1 severance, including service-year rounding, monthly wage base, caps, taxes, and notice pay.
Takes a name input and returns a simple hello greeting.
A BPU quantization tool for Horizon RDK S100 that handles PyTorch/ONNX calibration, stride alignment, post-processing, and board-side validation.