Tencent IMA Hermes Knowledge Management
Paste the following prompt into your AI chat to install this skill:
Please install @user_15292d5a/yjkj-tencent-ima-hermes according to https://skillhub.cn/install/skillhub.md.
About this skill
What Problem It Solves
Tencent IMA’s official OpenAPI package is best suited for read-and-append workflows, but engineers often need to batch Chinese notes, translated documents, and repository use cases into knowledge-base subfolders and verify that files actually land there. This skill adapts the official v1.1.7 package to a Hermes-style interface without changing API endpoints or field names. It adds a bin/ima CLI, credential-path alignment, an upload-file convenience wrapper, and practical constraints around folder_id namespaces, GATE3 deduplication, and pagination.
How It Works
- Credential checks: prefer
IMA_OPENAPI_CLIENTIDandIMA_OPENAPI_APIKEY, then.envand config files, to avoid false “missing credential” reports. - Batch ingestion: after
check-name, file uploads run throughcheck_repeated_names,create_media, COS upload, andadd_knowledge;browse-kbresults must be followed with cursor pagination before counting items. - Landing verification: do not trust
code:0alone; compare subfolder item counts and confirm that the target subfolder actually received the entries.
Boundaries and Caveats
- The OpenAPI surface does not provide stable delete, overwrite, or reliable move;
move_knowledgecan return success while doing nothing, and accidental empty notes may require manual cleanup. - Note-mode entries attach to the KB root and cannot be moved into subfolders; use file-upload mode and prefer
folder_-prefixed IDs for subfolder targets. upload-filecreates new entries rather than overwriting them; re-uploading the same name or content may create duplicates, and--forceonly adds a timestamp.- Note writes require UTF-8 handling, especially in PowerShell 5.1, where request bodies must be explicitly converted to UTF-8 bytes.
Use Cases
- Translate repository docs into Chinese, then deduplicate by topic and upload them into an IMA subfolder.
- Use check-name and content deduplication before upload to avoid duplicate entries in the knowledge base.
- Page through browse-kb with cursor to count all subfolder items and verify the upload landed correctly.
- Check whether IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY are available in env vars, .env, or files.
Best For
- Engineers maintaining an internal KB who need reliable batch upload into a target IMA subfolder.
- Technical editors curating bilingual use-case repos who need pre-upload dedup and source metadata.
- Agent developers integrating IMA APIs who need credential precedence, UTF-8, and error handling.
- Automation leads who need to verify CLI subcommands, pagination, and final placement.
Related Skills
Turns Taleb's antifragility, barbell strategy, and via negativa into executable prompts for risk analysis in career, investing, health, and other domains.
Keyword news search over ZAKER’s corpus with optional time filtering, returning up to 20 titles, authors, and summaries.
A generic knowledge review skill that generates role-based checklists, rrule-based reminders, and on-demand reviews without storing personal data.
A knowledge-management skill for layered retrieval across information sources.