Skip to content
Development
Skill

/online-doc-html

Export Markdown files to paste-friendly standalone HTML for online document editors. Use when the user wants to copy local Markdown content into an online document, reduce manual formatting work, preserve tables/code blocks/headings, convert SVG diagrams to PNG, embed images

From plugin
all-my-ai-needs
1223 skills9 MCP
Install
$ npx -y skills add codingSamss/all-my-ai-needs --skill online-doc-html --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/online-doc-html

Context preview

The summary Claude sees to decide when to auto-load this skill.

Export Markdown files to paste-friendly standalone HTML for online document editors. Use when the user wants to copy local Markdown content into an online document, reduce manual formatting work, preserve tables/code blocks/headings, convert SVG diagrams to PNG, embed images

SKILL.md

online-doc-html.SKILL.md
name: online-doc-html
description: Export Markdown files to paste-friendly standalone HTML for online document editors. Use when the user wants to copy local Markdown content into an online document, reduce manual formatting work, preserve tables/code blocks/headings, convert SVG diagrams to PNG, embed images into HTML, or says "在线文档", "粘贴到在线文档", "Markdown 转 HTML", "图片复制不过去", "导出在线文档 HTML".

Online Doc HTML

Overview

Use this skill to turn local Markdown into standalone HTML that can be opened in a browser, selected, copied, and pasted into online document editors with less formatting cleanup.

The default output is HTML only. Do not generate DOCX unless the user explicitly asks for it.

Workflow

1. Identify the Markdown files the user wants to sync or copy. 2. Prefer a repo-local export script if one already exists and is clearly maintained for that repo. 3. Otherwise run the bundled script:

~/.claude/skills/online-doc-html/scripts/export_online_doc_html.sh --out build/online-doc-html <file1.md> <file2.md>

4. Open the generated HTML file in a browser, select the article body, copy it, and paste into the online document editor. 5. If images still fail to paste, treat it as an online editor clipboard/upload limitation. The next step is browser automation to insert or upload images, not more HTML tuning.

Bundled Script

Use `scripts/export_online_doc_html.sh`.

Behavior:

  • Converts each Markdown file to standalone HTML via `pandoc`.
  • Converts referenced `.svg` images to `.png` with `rsvg-convert` before HTML export.
  • Embeds images and CSS into the generated HTML with `pandoc --embed-resources`.
  • Writes output to `build/online-doc-html` by default.
  • Generates `targets.tsv` with source Markdown and output HTML paths.
  • Removes stale DOCX files from the output directory because DOCX is not the default path.

Dependencies:

  • Required: `pandoc`.
  • Required for SVG diagrams: `rsvg-convert` from `librsvg`.

On macOS:

brew install pandoc librsvg

Output Guidance

Tell the user:

  • Which HTML files were generated.
  • Whether SVG references were fully replaced by PNG images.
  • Whether any image references could not be resolved.
  • That no online document was modified unless browser automation or API update was explicitly requested and confirmed.

Guardrails

  • Do not overwrite or save online documents without explicit user confirmation.
  • Do not reverse-engineer private save APIs as the first approach. Prefer paste-friendly HTML first.
  • Keep generated artifacts in ignored build/output directories when working inside a repo.
Read more
Ships withall-my-ai-needs

跨 Claude Code 与 Codex 两套 agent 的 skill 能力真源与同步规则。写入由 agent 执行,人只审校与决策。 把 Claude Code 与 Codex 的可复用能力收敛到一个仓库,按 platform-first 维护:每个平台独立持有自己的 skills/ 与运行约定,同名 skill 允许在两端并存,不强行抽象去重。 仓库要解决的是多端 AI 配置的漂移——GitHub 仓库、本地工作区、本地 CLI

Get the whole plugin

Other skills on all-my-ai-needs.

aihot
Skill

aihot

查询 AIHOT 的中文 AI 资讯、精选、当前热点和日报。用户询问今天或最近的 AI 新闻、AI 圈动态、大模型或产品发布、OpenAI/Anthropic/Google 最新消息、AI 论文、AI 日报、AIHOT 精选、当前最热事件,或需要同步当前全部精选时使用。必须通过 aihot.news 的匿名只读…

apifox-cli
Skill

apifox-cli

通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含…