Token导航 LogoToken导航TokenDH.com
图像处理敏感数据github未标认证来源可访问许可证需确认审计通过

markdown-to-imageMarkdown TO 图像

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

574

周安装

23

GitHub Stars

1

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:markdown-to-image(Markdown TO 图像)
来源仓库:https://github.com/ericjy/inkframe
仓库路径:skills/markdown-to-image
安装命令:
npx skills add https://github.com/ericjy/inkframe --skill markdown-to-image
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ericjy/inkframe --skill markdown-to-image

简介

通过 inkframe.dev API 将 Markdown 内容渲染为精美样式图像。

  • 无需安装全局依赖,npx 调用即可使用共享免费 API key。
  • 支持从文件或字符串输入生成排版精美的文档图片。
  • 适用于 README、说明文档和社交媒体图文内容快速生成场景。
  • 使用时需注意 API 调用频率限制,合理安排批量处理任务节奏。

SKILL.md

Inkframe — Markdown to Image

Inkframe renders markdown content into polished, styled images via the inkframe.dev API. Run it via npx inkframe — no global install needed. The package includes a free shared API key, so it works out of the box.

Setup

No setup needed — always run the CLI via npx inkframe. The package ships with a free shared API key, so it works out of the box with no signup.

Quick Start

# Simplest render — just give it markdown
npx inkframe render --content "# Hello World\n\nThis is styled." --output out.png

# Render from a file
npx inkframe render --content @post.md --output out.png

# Use a template for instant styling
npx inkframe render --template tmpl_PWfUUDlVw --content @post.md --output out.png

# Preview in the browser (free, no API key needed)
npx inkframe open --content @post.md --design @design.json

CLI Commands

npx inkframe open

Opens the Inkframe playground in the browser with your content and design pre-loaded. Free, no API key needed — great for previewing and tweaking before rendering.

FlagDescriptionDefault
-c, --content <text>Markdown string or @file.md to read from file
-d, --design <json>Inline JSON or @file.json
--base-url <url>Playground base URLhttps://www.inkframe.dev
npx inkframe open --content "# Hello World"
npx inkframe open --content @post.md --design @design.json

npx inkframe render

FlagDescriptionDefault
-c, --content <text>Markdown string or @file.md to read from fileRequired (unless --template provides content)
-t, --template <id>Template ID — applies its design (and content if --content omitted)
-d, --design <json>Inline JSON or @file.json — overrides template design
-o, --output <path>Save image to file (e.g. out.png). Prints URL if omittedprints URL
-s, --scale <n>Scale factor: 1, 2, or 32
-f, --file-type <fmt>Output format: png, jpeg, webppng

Content uses the @ prefix convention: --content @notes.md reads from notes.md, while --content "# Title" is inline markdown.

npx inkframe templates list

Lists all available templates with their IDs and names.

npx inkframe templates get <id>

Gets full template JSON. Add --design-only to get just the design object. Add -o file.json to save to file.

Available Templates

IDNameGood for
tmpl_650IbCa8kTweet (Dark)Dark-themed tweet screenshots
tmpl_vm9wHdOtUPoemPoetry, literary quotes
tmpl_PWfUUDlVwQuoteInspirational/pull quotes
tmpl_DAtOcPEQEBusiness PosterProfessional announcements
tmpl_W46vhIVoJTweetTweet-style cards
tmpl_4LNNIaHHODeepSeek问答Q&A format (Chinese)
tmpl_vOv0UwIwlMeme - DrakeDrake meme format
tmpl_inxjqashVTweet (Bilingual)Bilingual tweet cards
tmpl_9PbGi7zcJStory (Bilingual)Bilingual story format
tmpl_qtYz45XaoQuote Card (Classic)Classic styled quotes
tmpl_lVArmW0pPFlowchartProcess/flow diagrams
tmpl_pXED6toGNQuote CardModern quote cards
tmpl_ciwTrec6UTweetAlternative tweet style
tmpl_jKumMZX6ETestimonialCustomer testimonials
tmpl_hSlqk3U8hCode SnippetCode with syntax highlighting
tmpl_KIHNN4CRgCarouselMulti-slide carousel
tmpl_0fJUHUTWsListicleNumbered/bulleted lists

Templates are designed to look good out of the box — their fonts, colors, backgrounds, and layouts are already curated to work well together. Resist the urge to override a template's design unless the user specifically asks for customization. A template used as-is will almost always look more polished than a hastily assembled custom design.

Choosing the right template

Match the content to the template's purpose. When in doubt, inspect the template first with inkframe templates get <id> to see its content structure and design — then model your markdown after the template's content format for best results.

  • Quotes/sayings: tmpl_qtYz45Xao (Quote Card Classic) for elegant serif look, tmpl_PWfUUDlVw (Quote) for casual, tmpl_pXED6toGN (Quote Card) for modern
  • Code: tmpl_hSlqk3U8h (Code Snippet) — dark theme, window controls, syntax highlighting
  • Tweets/social: tmpl_W46vhIVoJ, tmpl_650IbCa8k (dark), tmpl_ciwTrec6U
  • Long-form content: tmpl_DAtOcPEQE (Business Poster), tmpl_0fJUHUTWs (Listicle)
  • Testimonials: tmpl_jKumMZX6E

Custom designs (when templates aren't enough)

Only reach for --design when the user wants something specific that no template provides — a particular aspect ratio, custom branding, or a specific color scheme. In that case, the best approach is:

  1. Find the closest template: npx inkframe templates get <id> --design-only --output design.json
  2. Modify only the fields that need to change
  3. Render with: npx inkframe render --content @post.md --design @design.json --output out.png

For the full reference of all design fields (dimensions, backgrounds, color palettes, fonts, and more), read references/design-options.md in this skill's directory.

Interop With Prompt To Image

You can combine this skill with prompt-to-image when the user wants AI-generated art behind rendered markdown.

Important background fields:

  • backgroundImageUrl: full-canvas background image
  • contentBoxImageUrl: background image inside the content box

These fields can use a normal hosted URL, and they can also use a base64 data URL such as data:image/png;base64,....

Recommended workflow:

  1. Use prompt-to-image to generate a background image
  2. Convert the resulting file to a base64 data URL
  3. Put that data URL into backgroundImageUrl or contentBoxImageUrl
  4. Render with npx inkframe render

Example design:

{
  "backgroundImageUrl": "data:image/png;base64,...",
  "backgroundOverlayPresence": "dark",
  "contentBoxVisibility": true,
  "colorPaletteKey": "pure-white"
}

When the background is busy or high-contrast, use backgroundOverlayPresence and keep the content box visible so the text stays readable.

Multi-Page Content

Content can include \pagebreak to separate pages (e.g. for carousels or slideshows). The API renders one image per request — if your content has \pagebreak, only the first page is rendered. The inkframe.dev studio UI supports rendering all pages at once.

To render multi-page content, split it yourself and make one render call per page. Run them in parallel for speed:

# Split content and render each page in parallel
npx inkframe render --content @page1.md --design @design.json --output slide1.png &
npx inkframe render --content @page2.md --design @design.json --output slide2.png &
npx inkframe render --content @page3.md --design @design.json --output slide3.png &
wait

When building carousels or slideshows, write each page to a separate temp file, then render all pages in parallel using & and wait.

Design Pitfalls

When contentBoxVisibility is false, text renders directly on the background with no box behind it. Avoid these combinations — the text becomes unreadable:

  • Dark backgroundKey + light colorPaletteKey (which has dark text) + contentBoxVisibility: false
  • Light backgroundKey + dark colorPaletteKey (which has light text) + contentBoxVisibility: false

Either keep the content box visible, or match the palette theme to the background.

Workflow Tips

  1. Try a template as-is first — the curated designs are almost always better than custom ones. Use npx inkframe templates list to browse, then render with --template.
  2. Inspect before customizingnpx inkframe templates get <id> shows the template's content and design. Model your markdown after the template's content structure.
  3. Customize sparingly — if you must customize, start from a template's design and change only what's needed. Don't build designs from scratch.
  4. Preview with npx inkframe open — use npx inkframe open --content @post.md --design @design.json to open the playground in the browser for interactive previewing and tweaking. Free, no API key needed.
  5. Write markdown to a temp file for anything longer than a line or two, then use @file.md. This avoids shell escaping issues with inline content.
  6. Always use --output to save the image locally rather than just printing a URL.
  7. Content is standard markdown — headings, bold, italic, lists, code blocks, and blockquotes all render as expected.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.97%
按下载量换算67

Claude

33.07%
按下载量换算62

Cursor

18.19%
按下载量换算34

Gemini CLI

10.36%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills