tentacle-pro/skills

tentacle-post2wechat

Enterprise WeChat draft publisher via api.tentacle.pro. Uses API_KEY, server-side credential mapping, token caching/refresh, cover upload, inline image upload, and draft/add.

First seen Mar 7, 2026

Installation

$ npx skills add tentacle-pro/skills --skill tentacle-post2wechat

Also in this package

Other skills from tentacle-pro/skills · top by installs.

npx skills add tentacle-pro/skills

Browse all from tentacle-pro/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,125 B
  • docs SUMMARY.md 202 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 23 installs

SKILL.md

tentacle-post2wechat (Enterprise Edition)

Purpose

Enterprise publisher that sends requests to api.tentacle.pro. Server resolves API_KEY -> AppID/AppSecret, caches/refreshes WeChat tokens, then forwards to WeChat APIs.

Runtime

bun .agents/skills/tentacle-post2wechat/scripts/main.ts <html_file> [options]

Shared .env (.agents/skills/.env)

API_KEY=tpk_...

Behavior

  1. Force-compress local images before upload (jpeg, quality 65).
  2. Upload inline images using enterprise endpoint and replace <img src> URLs.
  3. Upload cover image as permanent material and obtain thumbmediaid.
  4. Save to draft box only (draft/add).

Official WeChat API Role Mapping

  • Inline article images map to WeChat media/uploadimg semantics and return URL for HTML replacement.
  • Cover image maps to WeChat permanent material (material/addmaterial?type=image) and returns mediaid.
  • Draft save maps to WeChat draft/add (articletype=news) with thumbmedia_id + replaced HTML content.

Recommended Pipeline

  1. If input is .md: proactively invoke the tentacle-markdown2html skill first to convert it to HTML, then continue with the steps below. Do not ask the user to do this manually.
  2. Receive normalized HTML (or convert markdown in previous step).
  3. Upload inline images and rewrite <img src> to returned URLs.
  4. Upload cover image and get thumbmediaid.
  5. Submit draft/add payload.

Required Inputs

  • HTML file (auto-generated from .md via tentacle-markdown2html if needed)
  • Cover image (--cover) or first inline image fallback

Example

bun .agents/skills/tentacle-post2wechat/scripts/main.ts article.html \
  --cover Assets/Cover-Images/topic/cover.jpg \
  --title "标题" \
  --author "作者" \
  --summary "摘要(不超过120字)"

API Contract

See references/api-contract.md.