Install
openclaw skills install @harven-droid/wechat-to-imaSave WeChat Official Account articles into IMA notes or into a named IMA knowledge base with preserved article structure. Use when the user sends an mp.weixin.qq.com link and wants to save, archive, import, collect, or store the article in IMA/笔记/知识库. Handles parsing article metadata, preserving inline body images in order, falling back to the cover image when the body has no images, then either saving to IMA notes or resolving a target knowledge base and adding the article there. When the user asks for a 知识库, route only to that knowledge base and do not create an extra user-visible IMA note.
openclaw skills install @harven-droid/wechat-to-imaSave a WeChat article into IMA with two user-facing flows:
不要把内部实现细节当成用户流程来描述。
scripts/save_wechat_to_ima.py <url> → 解析公众号文章 → 存到 IMA 笔记scripts/save_wechat_to_ima.py <url> <knowledge_base_name_or_id> → 解析公众号文章 → 查知识库 → 加入该知识库IMA_OPENAPI_CLIENTID and IMA_OPENAPI_APIKEY must be available in the environment, or stored in ~/.config/ima/client_id and ~/.config/ima/api_key.npm install once inside this skill directory so the bundled extractor dependencies are available.skills/ima-skill/ima_api.cjs is used when present, so this skill stays aligned with the latest IMA OpenAPI wrapper and error handling.The script prints JSON with:
titleaccountauthorpublish_timebody_img_countcover_usedmarkdown_pathnote_idreadback_okknowledge_base_name (when requested)knowledge_base_id (when requested)knowledge_media_id (when requested)knowledge_file_name (when requested)wechat-article-extractor installation.