IMA Knowledge Management Assistant
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_034dd33d/ludouxi159 into your AI assistant.
About this skill
Problems It Addresses
Cool Dou Dou targets note and knowledge-base operations over the IMA OpenAPI. The failure modes are often less about raw API calls and more about routing and encoding: a phrase like “save this to the note in the knowledge base” may still mean a note object; PowerShell 5.1 can silently convert request bodies to the system ANSI code page; invalid UTF-8 written to notes can produce irreversible garbled text. This skill makes those checks mandatory before execution.
How It Works
The skill routes intent by module:
- Notes: search notes, browse notebooks, read content, create notes, and append content through operations such as
import_docandappend_doc. - Knowledge base: upload files, add web links, search the knowledge base, browse entries, and retrieve source content or the list of writable knowledge bases.
- Cross-module tasks: for example, moving knowledge-base content into a note requires reading the knowledge base first and then writing the note, so both submodules must be loaded before execution.
Key steps include:
- Credential check: prefer environment variables or
~/.config/ima/client_idand~/.config/ima/api_key; if missing, guide setup before calling APIs. - Intent routing: use
noteswhen the target is note content; useknowledge-basewhen the target is a knowledge-base entry; route tonoteseven if the user only mentions the knowledge base as the location. - Encoding and file constraints: validate
titleandcontentas UTF-8 before note writes; upload files with original binary content unchanged, and settitleequal to the original filename. - Error handling: inspect both script-level exit errors and backend business errors;
-100indicates program errors,-200indicates a skill update is required, and non-zero backendcodevalues should surface the returnedmsg.
Boundaries
The provided material only documents notes and knowledge-base capabilities. Video files, Bilibili/YouTube links, and file:// URLs are unsupported, so the skill should direct users to the IMA desktop client. If the user asks to “save as a note” without naming an existing note, confirm whether to create a new note or append before writing.
Use Cases
- Compile web-page takeaways into a specified notebook and append to an existing note.
- Upload PDFs, Excel files, or images to an IMA knowledge-base entry using their original filenames.
- Retrieve a knowledge-base entry by media_id, then write its source content into a note.
- Search knowledge-base link entries and list writable knowledge bases to build a content index.
Best For
- Engineers organizing external materials who need to write web pages, files, and sources into IMA notes or knowledge bases.
- Product operations staff maintaining team knowledge bases who need to upload files, add links, and search existing entries.
- Agent automation builders who need module-level routing for IMA notes and knowledge-base APIs.
- Editorial assistants handling cross-module content who need to retrieve source text from knowledge bases and append it to notes.
Related Skills
Updates Next.js documentation based on code changes in the active branch to help maintainers review PR documentation completeness.
Use a book title and author to search reviews, contents, and reader feedback, then generate a structured breakdown of historical or decision-logic books with key claims, concepts, quotes, and reading notes in Obsidian.
A multi-system divination advisor covering Bazi, Ziwei, tarot, feng shui, timing, and naming with structured interpretations.
Provides Bazi, Liu Yao, Qimen, Meihua, and date-selection guidance from classical references, with plain-language explanations and actionable suggestions.