What problem does it solve?
This Skill automates the multi-step process of preparing and publishing HTML content to enterprise WeChat by handling image compression, image uploads, URL replacement, cover media mapping, and draft submission so authors can focus on content rather than API details.
Core Features & Use Cases
- Inline image handling: Finds inline images, compresses local images to JPEG quality 65, uploads them to the enterprise endpoint, and rewrites image URLs in the HTML.
- Cover image management: Uploads a cover image as permanent material and obtains a thumb_media_id suitable for WeChat drafts.
- Draft submission: Builds the WeChat draft payload (title, author, digest, content, thumb_media_id) and posts it to the server-side api.tentacle.pro draft/add endpoint.
- Use case: Convert markdown to HTML, then run this Skill to replace images, upload a cover, and save the article as a WeChat draft without manual API calls.
Quick Start
Run the skill to upload article.html, compress and replace images, and save a WeChat draft by executing bun .agents/skills/tentacle-post2wechat/scripts/main.ts article.html --cover path/to/cover.jpg --title Example --author AuthorName