tentacle-post2wechat

Compress local images, upload them, and submit HTML articles as WeChat drafts.

4|1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/tentacle-pro/skills --skill tentacle-post2wechat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tentacle-post2wechat
Source: https://github.com/tentacle-pro/skills/tree/main/tentacle-post2wechat
Command: npx skills add https://github.com/tentacle-pro/skills --skill tentacle-post2wechat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

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

Frequently Asked Questions about tentacle-post2wechat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish HTML articles to a WeChat enterprise draft automatically?

To publish HTML articles to a WeChat enterprise draft, this skill compresses local inline and cover images, uploads them via an enterprise API, rewrites image URLs in the HTML, and submits the final draft payload.

How do I handle local image compression and URL replacement for WeChat enterprise API uploads?

Local image compression and URL replacement for WeChat enterprise API uploads are handled by compressing inline images to JPEG quality 65, uploading them to the endpoint, and replacing HTML src attributes with the returned URLs.

Can I use markdown to HTML output for enterprise WeChat draft publishing?

Yes, you can use markdown to HTML output for enterprise WeChat draft publishing by running this skill on the resulting standalone HTML file to process images and submit the draft.

How do I get a thumb_media_id for a WeChat draft cover image?

To get a thumb_media_id for a WeChat draft cover image, this skill uploads the cover image as permanent material to the enterprise endpoint and retrieves the required thumb_media_id for the draft payload.

Do I need an API_KEY to submit a WeChat draft through the enterprise API?

Yes, you need an API_KEY to submit a WeChat draft, as the draft payload is posted to the server-side api.tentacle.pro draft/add endpoint with API_KEY-based authorization.

What are the limitations of using this enterprise API method for WeChat draft publishing?

A limitation of this WeChat draft publishing method is that it specifically requires standalone HTML articles and depends on the api.tentacle.pro endpoint for image hosting and draft submission rather than official direct API calls.