agentleFS
tentacle-protentacle-pro/skills/tentacle-markdown2html/SKILL.md

tentacle-markdown2html

Skill4 starsChanged 9 months agoCC0-1.0View on GitHub

Enterprise markdown-to-html renderer via API service. Sends markdown to api.tentacle.pro and writes returned html locally.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Call enterprise rendering service instead of local renderer:

    line 10
  2. Very specific:

    Before request, script normalizes Obsidian image embeds like ![[cover.jpg]] to standard markdown image syntax.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

tentacle-markdown2html (Enterprise Edition)

Purpose

Call enterprise rendering service instead of local renderer:

  • Endpoint: https://api.tentacle.pro/markdown2html
  • Auth: API_KEY from .agents/skills/.env

Runtime

bun .agents/skills/tentacle-markdown2html/scripts/main.ts <markdown_file> [options]

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

API_KEY=tpk-xxx

Input/Output

  • Input: markdown file
  • Request payload: { markdown, title? }
  • Output: html file (default same-name .html)

Options

FlagDescription
--output <path>Output HTML path
--title <text>Title override
--summary <text>Article summary (max 120 chars). Injected as summary: into frontmatter so the renderer displays it as a themed lead block after the h1. Use this when the markdown has no frontmatter or when the agent dynamically generates a summary.
--template <id>Template ID (default: preset-classic). See preset list below.
--dry-runFetch only, skip file write

Preset Templates

Template ID名称特色
preset-classic经典平衡的信息密度与阅读舒适度(默认)
preset-grace优雅柔和色彩,适合观点表达和品牌内容
preset-simple简洁去装饰,适合知识密集型内容
preset-sports运动风橙绿双色渐变,活力动感
preset-warm温暖砖红色调,贴近原生公众号体验
preset-elegant-green精致·翡翠绿层次丰富,适合品牌内容与知识型文章
preset-liguan理观锈红铜金,大号序号二级标题(## 01 标题 语法),适合地理/自然/人文深度长文

Preprocessing

  • Before request, script normalizes Obsidian image embeds like ![[cover.jpg]] to standard markdown image syntax.
  • This keeps enterprise behavior aligned with community flow and ensures downstream image extraction/replacement can work consistently.

WeChat-Oriented Expectation

  • The generated HTML is expected to be consumed by tentacle-post2wechat, where:
    • inline images are uploaded with uploadimg semantics and rewritten as URL;
    • cover image is uploaded as permanent material and used as thumb_media_id.

Example

bun .agents/skills/tentacle-markdown2html/scripts/main.ts "02 Projects/article.md" \
  --summary "早餐是一个向量空间。煎饼、可丽饼和炒蛋安置在一个单纯形上,是否存在从未被探索的'暗早餐'?"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.