[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MN8ZHAY86WB83QB89TD08":3,"skill-same:01M77MN8ZHAY86WB83QB89TD08":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77MN8ZHAY86WB83QB89TD08","md-to-share",null,"将 Markdown 文件转换为原生长图的 skill，可被 OpenClaw、Claude Code 等 AI Agent 直接调用。A skill that converts Markdown to long images, callable by AI Agents like OpenClaw and Claude Code.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmd-to-share\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: md-to-share\nversion: 2.2.0\ndescription: \"将 Markdown 文件转换为原生长图的 skill，可被 OpenClaw、Claude Code 等 AI Agent 直接调用。A skill that converts Markdown to long images, callable by AI Agents like OpenClaw and Claude Code.\"\nauthor: DTacheng\nlicense: MIT\n---\n\n# MD to Share \u002F MD 转长图\n\nA skill that converts Markdown files to long images, directly callable by AI Agents like OpenClaw and Claude Code. Perfect for sharing on WeChat, Discord, and other platforms.\n\n将 Markdown 文件转换为原生长图的 skill，可使用 OpenClaw、Claude Code 等 AI Agent 直接调用。方便分享到微信、Discord 等平台。\n\n## Features \u002F 特点\n\n- **Environment Auto-Detection**: Automatically detects OpenClaw vs Claude Code and applies optimal settings\n- **High Resolution**: Configurable width up to 1600px (2x scale factor) for crisp display\n- **Auto Theme**: Light mode (6:00-18:00) \u002F Dark mode (18:00-6:00) based on time\n- **Discord Optimized**: JPEG format at 85% quality, auto-splits large files\n- **Self-Contained**: Bundled Chromium via Playwright — no system browser needed\n- **Smart Splitting**: Splits at semantic boundaries (headings, hr) not mid-paragraph\n- **Robust Error Handling**: Clear exit codes for AI agents to understand failures\n\n- **环境自动检测**：自动检测 OpenClaw 或 Claude Code 环境，应用最优设置\n- **高分辨率**：可配置宽度最高 1600px（2x 缩放因子），在所有平台上清晰显示\n- **自动主题**：根据时间自动切换浅色（6:00-18:00）\u002F 深色（18:00-6:00）模式\n- **Discord 优化**：JPEG 格式 85% 质量，自动切分大文件\n- **独立运行**：内置 Playwright Chromium，无需系统安装浏览器\n- **智能切分**：在语义边界（标题、分隔线）处切分，不会在段落中间\n- **健壮错误处理**：清晰的退出码，方便 AI Agent 理解错误\n\n## Quick Start \u002F 快速使用\n\nUse this skill when user asks to \"forward\", \"convert to image\", \"share\", \"generate long image\".\n\n当用户要求\"转发\"、\"转成图片\"、\"方便分享\"、\"生成长图\"时使用此 skill。\n\n## ⚠️ Decision Flow for Agents \u002F Agent 决策流程\n\n**IMPORTANT: Before calling md2img, determine the target channel first.**\n\n```\n用户要求生成图片\n  ├── 明确要发到 Discord → 使用 --channel=discord（自动切图，确保清晰）\n  ├── 明确要发到 WeChat  → 使用 --channel=wechat（保留长图，微信原生支持）\n  ├── 明确要发到 iMessage → 使用 --channel=imessage（保留长图）\n  ├── 本地使用 \u002F 保存文件  → 使用 --channel=local（保留长图）\n  └── 不确定目标渠道      → ❗ 先反问用户确认渠道，再执行\n```\n\n**Why this matters**: Discord has strict image dimension limits (images taller than ~2000px get scaled down to unreadable sizes). WeChat and iMessage handle long images natively — splitting would break the reading experience.\n\n**为什么这很重要**：Discord 对图片尺寸有严格限制（超过 ~2000px 高的图会被缩放到无法阅读）。微信和 iMessage 原生支持长图 — 切分反而会破坏阅读体验。\n\n## Usage \u002F 使用方法\n\n### 1. Convert Command \u002F 转换命令\n\n```bash\nmd2img \u003Cinput.md> [output] [options]\n```\n\n**Options \u002F 选项:**\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--preset=\u003Cname>` | Configuration preset: `openclaw` \\| `generic` | Auto-detect |\n| `--channel=\u003Cname>` | Target channel: `discord` \\| `wechat` \\| `imessage` \\| `local` | None |\n| `--width=\u003Cpx>` | CSS width in pixels | Preset value |\n| `--scale=\u003Cfactor>` | Device scale factor | 2 |\n| `--max-size=\u003CMB>` | Max file size before splitting | Preset value |\n| `--max-height=\u003Cpx>` | Max pixel height per image | Channel value |\n| `--quality=\u003C1-100>` | JPEG quality | 85 |\n| `--theme=\u003Clight\\|dark>` | Force theme | Auto by time |\n| `--timeout=\u003Cms>` | Browser operation timeout | 30000 |\n\n**Channel behavior \u002F 渠道行为:**\n\n| Channel | Splitting | Reason |\n|---------|-----------|--------|\n| `discord` | ✅ Auto-split at 1800px height | Discord scales tall images, making them unreadable |\n| `wechat` | ❌ Keep long image | WeChat handles long images natively |\n| `imessage` | ❌ Keep long image | iMessage handles long images well |\n| `local` | ❌ Keep long image | No platform constraints |\n| Not specified | ❌ No splitting | Default safe behavior |\n\n**Output formats \u002F 输出格式:**\n- `.jpg` \u002F `.jpeg` - JPEG format (default, recommended)\n- `.png` - PNG format (lossless, larger files)\n\nExample \u002F 示例：\n```bash\n# For Discord (auto-split for readability)\nmd2img report.md report.jpg --preset=openclaw --channel=discord\n\n# For WeChat (keep as long image)\nmd2img report.md report.jpg --preset=openclaw --channel=wechat\n\n# For local use (no splitting)\nmd2img report.md report.jpg\n\n# Force dark theme\nmd2img report.md report.jpg --theme=dark\n```\n\n### 2. Configuration Presets \u002F 配置预设\n\n| Preset | CSS Width | Scale | Actual Width | Max Size | Use Case |\n|--------|-----------|-------|--------------|----------|----------|\n| `openclaw` | 600px | 2x | 1200px | 5MB | OpenClaw → Discord (optimized for compression) |\n| `generic` | 800px | 2x | 1600px | 8MB | Claude Code \u002F local use (high resolution) |\n\n| 预设 | CSS 宽度 | 缩放 | 实际宽度 | 最大文件 | 使用场景 |\n|------|----------|------|----------|----------|----------|\n| `openclaw` | 600px | 2x | 1200px | 5MB | OpenClaw → Discord（适配压缩层） |\n| `generic` | 800px | 2x | 1600px | 8MB | Claude Code \u002F 本地使用（高分辨率） |\n\n**Auto-Detection Logic \u002F 自动检测逻辑:**\n- If `OPENCLAW_CHANNEL` or `OPENCLAW_SKILLS_DIR` env var exists → `openclaw` preset\n- If current directory contains `.openclaw\u002Fskills` → `openclaw` preset\n- Otherwise → `generic` preset\n\n### 3. Send to Discord \u002F 发送到 Discord\n\nUse the message tool's media parameter:\n```json\n{\n  \"action\": \"send\",\n  \"target\": \"channel_id\",\n  \"message\": \"Brief description\",\n  \"media\": \"\u002Ffull\u002Fpath\u002Fto\u002Fimage.jpg\"\n}\n```\n\n**Note**: If the converted image exceeds the size limit, it will be automatically split into multiple files:\n- `output-1.jpg`, `output-2.jpg`, `output-3.jpg`, ...\n\n**注意**：如果转换后的图片超过大小限制，会自动切分为多个文件。\n\n### 4. Send to WeChat \u002F 发送到微信\n\n- Image is generated at the specified path\n- Open file manager to get the image\n- Or copy to clipboard and paste\n\n## Image Quality Optimization \u002F 图片清晰度优化\n\n### OpenClaw + Discord Flow \u002F OpenClaw + Discord 流程\n\nOpenClaw has two layers of image compression:\n1. **Agent layer**: `imageMaxDimensionPx=1200`, `maxBytes=5MB`\n2. **Media loading layer**: `MAX_IMAGE_BYTES=6MB`, scales down from 2048px\n\nOpenClaw 有两层图片压缩：\n1. **Agent 层**：`imageMaxDimensionPx=1200`，`maxBytes=5MB`\n2. **媒体加载层**：`MAX_IMAGE_BYTES=6MB`，从 2048px 逐步缩小\n\n**Recommended \u002F 推荐**: Use `--preset=openclaw` to output 1200px images under 5MB. This bypasses both compression layers.\n\n**推荐**：使用 `--preset=openclaw` 输出 1200px 且小于 5MB 的图片，这样可以绕过两层压缩。\n\n```\nWith openclaw preset \u002F 使用 openclaw 预设:\nSkill outputs 1200px (\u003C 5MB)\n    ↓\nAgent layer: 1200px ≤ 1200px → No compression ✓\n    ↓\nMedia layer: 5MB \u003C 6MB → No compression ✓\n    ↓\nUser receives: 1200px (guaranteed) \u002F 用户收到：1200px（确定）\n```\n\n### Final Resolution Reference \u002F 最终分辨率参考\n\n| Environment | Preset | Final Width | Notes |\n|-------------|--------|-------------|-------|\n| OpenClaw + Discord | `openclaw` | **1200px** | Bypasses compression |\n| Claude Code | `generic` | **1600px** | Full resolution |\n| Custom | User-defined | Variable | Full control |\n\n## Exit Codes \u002F 退出码\n\nWhen the skill fails, check the exit code to understand the error:\n\n| Code | Name | Description |\n|------|------|-------------|\n| 0 | SUCCESS | Conversion completed successfully |\n| 1 | INVALID_ARGS | Missing or invalid command line arguments |\n| 2 | FILE_NOT_FOUND | Input markdown file does not exist |\n| 3 | FILE_READ_ERROR | Cannot read the input file (permissions, encoding) |\n| 4 | BROWSER_NOT_FOUND | Playwright Chromium not installed (run: npx playwright install chromium) |\n| 5 | BROWSER_LAUNCH_ERROR | Failed to launch browser |\n| 6 | RENDER_ERROR | Failed to render the HTML content |\n| 7 | SCREENSHOT_ERROR | Failed to capture screenshot |\n| 8 | OUTPUT_WRITE_ERROR | Cannot write to output location |\n\n当 skill 失败时，检查退出码以理解错误：\n\n| 代码 | 名称 | 描述 |\n|------|------|-------------|\n| 0 | 成功 | 转换成功完成 |\n| 1 | 参数无效 | 缺少或无效的命令行参数 |\n| 2 | 文件未找到 | 输入的 markdown 文件不存在 |\n| 3 | 文件读取错误 | 无法读取输入文件（权限、编码） |\n| 4 | 浏览器未安装 | Playwright Chromium 未安装（运行: npx playwright install chromium） |\n| 5 | 浏览器启动错误 | 无法启动浏览器 |\n| 6 | 渲染错误 | 无法渲染 HTML 内容 |\n| 7 | 截图错误 | 无法捕获截图 |\n| 8 | 输出写入错误 | 无法写入输出位置 |\n\n## Configuration \u002F 配置\n\n### Environment Variables \u002F 环境变量\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `CHROME_PATH` | Override Playwright's bundled Chromium | `\u002Fusr\u002Fbin\u002Fchromium` |\n| `MD2IMG_TIMEOUT` | Override default 30s timeout (ms) | `60000` |\n| `OPENCLAW_CHANNEL` | OpenClaw channel (auto-detection) | - |\n| `OPENCLAW_SKILLS_DIR` | OpenClaw skills directory (auto-detection) | - |\n\n### Default Settings by Preset \u002F 各预设默认设置\n\n**OpenClaw preset:**\n- **Width**: 600px CSS (1200px actual with 2x scale)\n- **Max file size**: 5MB (auto-splits if larger)\n\n**Generic preset:**\n- **Width**: 800px CSS (1600px actual with 2x scale)\n- **Max file size**: 8MB (auto-splits if larger)\n\n**Common:**\n- **Format**: JPEG at 85% quality\n- **Timeout**: 30 seconds\n- **Theme**: Light mode 6:00-18:00, Dark mode 18:00-6:00\n\n## Dependencies \u002F 依赖\n\n- Node.js 18+\n- playwright (bundles its own Chromium — no system browser required)\n- marked (markdown parser)\n\nInstall: `npm install` or `bun install` (postinstall automatically downloads Chromium)\n\n## Styling \u002F 样式说明\n\nGenerated image styles:\n- H1: Large font with red bottom border\n- H2: Blue left border accent\n- H3: Gray color, smaller than H2\n- Tables: Zebra stripes with hover highlight\n- Code blocks: Dark background\n- Inline code: Light gray background with red text\n- Blockquotes: Blue border + light gray background\n- Horizontal rules: Elegant dividers\n\n## Example \u002F 示例\n\nWhen user says \"share this to WeChat\" or \"make it easy to forward\":\n1. Read the MD file content\n2. Run `md2img` to convert to long image\n3. Tell user the image path, or send directly to the specified platform\n\n## Troubleshooting \u002F 故障排除\n\n### Browser not found \u002F 浏览器未安装\n\nPlaywright's bundled Chromium should be installed automatically during `npm install`. If not:\n```bash\nnpx playwright install chromium\n```\n\n### Image too large \u002F 图片太大\n\nThe tool automatically splits images at semantic boundaries (headings, horizontal rules). If you still have issues:\n- Use JPEG format (default) instead of PNG\n- Use `--max-size` to set a smaller split threshold\n- Consider splitting your markdown into smaller files\n\n### Image quality too low in OpenClaw \u002F OpenClaw 图片清晰度低\n\nMake sure you're using the `openclaw` preset (should auto-detect):\n```bash\nmd2img input.md --preset=openclaw\n```\n\nThis ensures 1200px output that bypasses OpenClaw's compression layers.\n","# MD to Share \u002F MD 转长图\n\nA skill that converts Markdown files to long images, directly callable by AI Agents like OpenClaw and Claude Code. Perfect for sharing on WeChat, Discord, and other platforms.\n\n将 Markdown 文件转换为原生长图的 skill，可使用 OpenClaw、Claude Code 等 AI Agent 直接调用。方便分享到微信、Discord 等平台。\n\n## Features \u002F 特点\n\n- **Environment Auto-Detection**: Automatically detects OpenClaw vs Claude Code and applies optimal settings\n- **High Resolution**: Configurable width up to 1600px (2x scale factor) for crisp display\n- **Auto Theme**: Light mode (6:00-18:00) \u002F Dark mode (18:00-6:00) based on time\n- **Discord Optimized**: JPEG format at 85% quality, auto-splits large files\n- **Self-Contained**: Bundled Chromium via Playwright — no system browser needed\n- **Smart Splitting**: Splits at semantic boundaries (headings, hr) not mid-paragraph\n- **Robust Error Handling**: Clear exit codes for AI agents to understand failures\n\n- **环境自动检测**：自动检测 OpenClaw 或 Claude Code 环境，应用最优设置\n- **高分辨率**：可配置宽度最高 1600px（2x 缩放因子），在所有平台上清晰显示\n- **自动主题**：根据时间自动切换浅色（6:00-18:00）\u002F 深色（18:00-6:00）模式\n- **Discord 优化**：JPEG 格式 85% 质量，自动切分大文件\n- **独立运行**：内置 Playwright Chromium，无需系统安装浏览器\n- **智能切分**：在语义边界（标题、分隔线）处切分，不会在段落中间\n- **健壮错误处理**：清晰的退出码，方便 AI Agent 理解错误\n\n## Quick Start \u002F 快速使用\n\nUse this skill when user asks to \"forward\", \"convert to image\", \"share\", \"generate long image\".\n\n当用户要求\"转发\"、\"转成图片\"、\"方便分享\"、\"生成长图\"时使用此 skill。\n\n## ⚠️ Decision Flow for Agents \u002F Agent 决策流程\n\n**IMPORTANT: Before calling md2img, determine the target channel first.**\n\n```\n用户要求生成图片\n  ├── 明确要发到 Discord → 使用 --channel=discord（自动切图，确保清晰）\n  ├── 明确要发到 WeChat  → 使用 --channel=wechat（保留长图，微信原生支持）\n  ├── 明确要发到 iMessage → 使用 --channel=imessage（保留长图）\n  ├── 本地使用 \u002F 保存文件  → 使用 --channel=local（保留长图）\n  └── 不确定目标渠道      → ❗ 先反问用户确认渠道，再执行\n```\n\n**Why this matters**: Discord has strict image dimension limits (images taller than ~2000px get scaled down to unreadable sizes). WeChat and iMessage handle long images natively — splitting would break the reading experience.\n\n**为什么这很重要**：Discord 对图片尺寸有严格限制（超过 ~2000px 高的图会被缩放到无法阅读）。微信和 iMessage 原生支持长图 — 切分反而会破坏阅读体验。\n\n## Usage \u002F 使用方法\n\n### 1. Convert Command \u002F 转换命令\n\n```bash\nmd2img \u003Cinput.md> [output] [options]\n```\n\n**Options \u002F 选项:**\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--preset=\u003Cname>` | Configuration preset: `openclaw` \\| `generic` | Auto-detect |\n| `--channel=\u003Cname>` | Target channel: `discord` \\| `wechat` \\| `imessage` \\| `local` | None |\n| `--width=\u003Cpx>` | CSS width in pixels | Preset value |\n| `--scale=\u003Cfactor>` | Device scale factor | 2 |\n| `--max-size=\u003CMB>` | Max file size before splitting | Preset value |\n| `--max-height=\u003Cpx>` | Max pixel height per image | Channel value |\n| `--quality=\u003C1-100>` | JPEG quality | 85 |\n| `--theme=\u003Clight\\|dark>` | Force theme | Auto by time |\n| `--timeout=\u003Cms>` | Browser operation timeout | 30000 |\n\n**Channel behavior \u002F 渠道行为:**\n\n| Channel | Splitting | Reason |\n|---------|-----------|--------|\n| `discord` | ✅ Auto-split at 1800px height | Discord scales tall images, making them unreadable |\n| `wechat` | ❌ Keep long image | WeChat handles long images natively |\n| `imessage` | ❌ Keep long image | iMessage handles long images well |\n| `local` | ❌ Keep long image | No platform constraints |\n| Not specified | ❌ No splitting | Default safe behavior |\n\n**Output formats \u002F 输出格式:**\n- `.jpg` \u002F `.jpeg` - JPEG format (default, recommended)\n- `.png` - PNG format (lossless, larger files)\n\nExample \u002F 示例：\n```bash\n# For Discord (auto-split for readability)\nmd2img report.md report.jpg --preset=openclaw --channel=discord\n\n# For WeChat (keep as long image)\nmd2img report.md report.jpg --preset=openclaw --channel=wechat\n\n# For local use (no splitting)\nmd2img report.md report.jpg\n\n# Force dark theme\nmd2img report.md report.jpg --theme=dark\n```\n\n### 2. Configuration Presets \u002F 配置预设\n\n| Preset | CSS Width | Scale | Actual Width | Max Size | Use Case |\n|--------|-----------|-------|--------------|----------|----------|\n| `openclaw` | 600px | 2x | 1200px | 5MB | OpenClaw → Discord (optimized for compression) |\n| `generic` | 800px | 2x | 1600px | 8MB | Claude Code \u002F local use (high resolution) |\n\n| 预设 | CSS 宽度 | 缩放 | 实际宽度 | 最大文件 | 使用场景 |\n|------|----------|------|----------|----------|----------|\n| `openclaw` | 600px | 2x | 1200px | 5MB | OpenClaw → Discord（适配压缩层） |\n| `generic` | 800px | 2x | 1600px | 8MB | Claude Code \u002F 本地使用（高分辨率） |\n\n**Auto-Detection Logic \u002F 自动检测逻辑:**\n- If `OPENCLAW_CHANNEL` or `OPENCLAW_SKILLS_DIR` env var exists → `openclaw` preset\n- If current directory contains `.openclaw\u002Fskills` → `openclaw` preset\n- Otherwise → `generic` preset\n\n### 3. Send to Discord \u002F 发送到 Discord\n\nUse the message tool's media parameter:\n```json\n{\n  \"action\": \"send\",\n  \"target\": \"channel_id\",\n  \"message\": \"Brief description\",\n  \"media\": \"\u002Ffull\u002Fpath\u002Fto\u002Fimage.jpg\"\n}\n```\n\n**Note**: If the converted image exceeds the size limit, it will be automatically split into multiple files:\n- `output-1.jpg`, `output-2.jpg`, `output-3.jpg`, ...\n\n**注意**：如果转换后的图片超过大小限制，会自动切分为多个文件。\n\n### 4. Send to WeChat \u002F 发送到微信\n\n- Image is generated at the specified path\n- Open file manager to get the image\n- Or copy to clipboard and paste\n\n## Image Quality Optimization \u002F 图片清晰度优化\n\n### OpenClaw + Discord Flow \u002F OpenClaw + Discord 流程\n\nOpenClaw has two layers of image compression:\n1. **Agent layer**: `imageMaxDimensionPx=1200`, `maxBytes=5MB`\n2. **Media loading layer**: `MAX_IMAGE_BYTES=6MB`, scales down from 2048px\n\nOpenClaw 有两层图片压缩：\n1. **Agent 层**：`imageMaxDimensionPx=1200`，`maxBytes=5MB`\n2. **媒体加载层**：`MAX_IMAGE_BYTES=6MB`，从 2048px 逐步缩小\n\n**Recommended \u002F 推荐**: Use `--preset=openclaw` to output 1200px images under 5MB. This bypasses both compression layers.\n\n**推荐**：使用 `--preset=openclaw` 输出 1200px 且小于 5MB 的图片，这样可以绕过两层压缩。\n\n```\nWith openclaw preset \u002F 使用 openclaw 预设:\nSkill outputs 1200px (\u003C 5MB)\n    ↓\nAgent layer: 1200px ≤ 1200px → No compression ✓\n    ↓\nMedia layer: 5MB \u003C 6MB → No compression ✓\n    ↓\nUser receives: 1200px (guaranteed) \u002F 用户收到：1200px（确定）\n```\n\n### Final Resolution Reference \u002F 最终分辨率参考\n\n| Environment | Preset | Final Width | Notes |\n|-------------|--------|-------------|-------|\n| OpenClaw + Discord | `openclaw` | **1200px** | Bypasses compression |\n| Claude Code | `generic` | **1600px** | Full resolution |\n| Custom | User-defined | Variable | Full control |\n\n## Exit Codes \u002F 退出码\n\nWhen the skill fails, check the exit code to understand the error:\n\n| Code | Name | Description |\n|------|------|-------------|\n| 0 | SUCCESS | Conversion completed successfully |\n| 1 | INVALID_ARGS | Missing or invalid command line arguments |\n| 2 | FILE_NOT_FOUND | Input markdown file does not exist |\n| 3 | FILE_READ_ERROR | Cannot read the input file (permissions, encoding) |\n| 4 | BROWSER_NOT_FOUND | Playwright Chromium not installed (run: npx playwright install chromium) |\n| 5 | BROWSER_LAUNCH_ERROR | Failed to launch browser |\n| 6 | RENDER_ERROR | Failed to render the HTML content |\n| 7 | SCREENSHOT_ERROR | Failed to capture screenshot |\n| 8 | OUTPUT_WRITE_ERROR | Cannot write to output location |\n\n当 skill 失败时，检查退出码以理解错误：\n\n| 代码 | 名称 | 描述 |\n|------|------|-------------|\n| 0 | 成功 | 转换成功完成 |\n| 1 | 参数无效 | 缺少或无效的命令行参数 |\n| 2 | 文件未找到 | 输入的 markdown 文件不存在 |\n| 3 | 文件读取错误 | 无法读取输入文件（权限、编码） |\n| 4 | 浏览器未安装 | Playwright Chromium 未安装（运行: npx playwright install chromium） |\n| 5 | 浏览器启动错误 | 无法启动浏览器 |\n| 6 | 渲染错误 | 无法渲染 HTML 内容 |\n| 7 | 截图错误 | 无法捕获截图 |\n| 8 | 输出写入错误 | 无法写入输出位置 |\n\n## Configuration \u002F 配置\n\n### Environment Variables \u002F 环境变量\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `CHROME_PATH` | Override Playwright's bundled Chromium | `\u002Fusr\u002Fbin\u002Fchromium` |\n| `MD2IMG_TIMEOUT` | Override default 30s timeout (ms) | `60000` |\n| `OPENCLAW_CHANNEL` | OpenClaw channel (auto-detection) | - |\n| `OPENCLAW_SKILLS_DIR` | OpenClaw skills directory (auto-detection) | - |\n\n### Default Settings by Preset \u002F 各预设默认设置\n\n**OpenClaw preset:**\n- **Width**: 600px CSS (1200px actual with 2x scale)\n- **Max file size**: 5MB (auto-splits if larger)\n\n**Generic preset:**\n- **Width**: 800px CSS (1600px actual with 2x scale)\n- **Max file size**: 8MB (auto-splits if larger)\n\n**Common:**\n- **Format**: JPEG at 85% quality\n- **Timeout**: 30 seconds\n- **Theme**: Light mode 6:00-18:00, Dark mode 18:00-6:00\n\n## Dependencies \u002F 依赖\n\n- Node.js 18+\n- playwright (bundles its own Chromium — no system browser required)\n- marked (markdown parser)\n\nInstall: `npm install` or `bun install` (postinstall automatically downloads Chromium)\n\n## Styling \u002F 样式说明\n\nGenerated image styles:\n- H1: Large font with red bottom border\n- H2: Blue left border accent\n- H3: Gray color, smaller than H2\n- Tables: Zebra stripes with hover highlight\n- Code blocks: Dark background\n- Inline code: Light gray background with red text\n- Blockquotes: Blue border + light gray background\n- Horizontal rules: Elegant dividers\n\n## Example \u002F 示例\n\nWhen user says \"share this to WeChat\" or \"make it easy to forward\":\n1. Read the MD file content\n2. Run `md2img` to convert to long image\n3. Tell user the image path, or send directly to the specified platform\n\n## Troubleshooting \u002F 故障排除\n\n### Browser not found \u002F 浏览器未安装\n\nPlaywright's bundled Chromium should be installed automatically during `npm install`. If not:\n```bash\nnpx playwright install chromium\n```\n\n### Image too large \u002F 图片太大\n\nThe tool automatically splits images at semantic boundaries (headings, horizontal rules). If you still have issues:\n- Use JPEG format (default) instead of PNG\n- Use `--max-size` to set a smaller split threshold\n- Consider splitting your markdown into smaller files\n\n### Image quality too low in OpenClaw \u002F OpenClaw 图片清晰度低\n\nMake sure you're using the `openclaw` preset (should auto-detect):\n```bash\nmd2img input.md --preset=openclaw\n```\n\nThis ensures 1200px output that bypasses OpenClaw's compression layers.\n",{"name":5,"author":24,"license":15,"version":25,"description":7},"DTacheng","2.2.0","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fm\u002Fmd-to-share",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill md-to-share",{"tool":41,"command":42},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill md-to-share",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill md-to-share","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmd-to-share\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]