/install content-news-thai
Content News Thai
Generate news-style post images with Thai text overlay + captions for social media.
Setup (first time only)
Run the setup script to install dependencies (canvas, Thai fonts):
bash \x3CSKILL_DIR>/scripts/setup.sh
On Docker/VPS this installs: libcairo2, libpango, Thai fonts (Kanit, Prompt, Sarabun). On macOS: uses Homebrew for cairo/pango.
Generate News Image
cd \x3CSKILL_DIR>/scripts && node gen-news.mjs '\x3Cjson>'
Parameters
| Param | Required | Description |
|---|---|---|
| headline | ✅ | Main headline (Thai/English, auto-wraps) |
| sub | Sub-headline text | |
| badge | Badge label (default: "AI NEWS") | |
| badgeColor | Badge color (default: "#CC0000") | |
| bgImage | Background image path or URL | |
| bgColor | Fallback bg gradient color (default: "#0a0a1a") | |
| source | Source attribution at bottom | |
| output | ✅ | Output file path (.jpg) |
| brandName | Watermark text (bottom-right) | |
| accentColor | Bottom bar color (default: "#CC0000") |
Example
cd \x3CSKILL_DIR>/scripts && node gen-news.mjs '{"headline":"AI กำลังเปลี่ยนวงการค้าปลีก","sub":"ยอดขายพุ่ง 40% ใน 6 เดือน","badge":"BREAKING NEWS","source":"Reuters • มี.ค. 2026","brandName":"MY BRAND","output":"/tmp/news_post.jpg"}'
Output: JSON {"status":"done","output":"/tmp/news_post.jpg","size":"1080x1350","type":"image"}
Background Image
Two approaches:
- With bgImage — provide a path/URL to a photo. The script covers it with dark gradient for text readability.
- Without bgImage — generates a dark gradient background with subtle grid pattern. Good for text-focused posts.
For best results, generate a background image first (use the AI model's image generation), save it, then pass the path as bgImage.
Workflow: Full Content Set
When asked to create a complete content set:
- Write headline + sub — short, punchy, Thai-friendly
- Generate background — use AI image gen or use bgColor for clean look
- Run gen-news.mjs — creates 1080x1350 image with Thai text overlay
- Write caption — storytelling style, short sentences, end with engaging question
- Return — image path + caption to user
Caption Style Guide
- Open with a scroll-stopping hook (short, impactful)
- Tell the story with short sentences, reveal layer by layer
- Include the brand's perspective/opinion
- End with: impact summary → specific question → soft share cue (if appropriate)
- Add 3-5 relevant hashtags
- Do NOT end with generic "คิดเห็นยังไงคอมเมนต์มา"
Troubleshooting
- "canvas" error → rerun setup.sh
- Fonts look wrong → check assets/fonts/ has .ttf files, rerun setup.sh
- bgImage not found → use absolute path or URL
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install content-news-thai - 安装完成后,直接呼叫该 Skill 的名称或使用
/content-news-thai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Content News Thai 是什么?
Generate news-style social media images (1080x1350) with Thai text overlay and matching captions. Use when asked to create content, make a news post image, g... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 296 次。
如何安装 Content News Thai?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install content-news-thai」即可一键安装,无需额外配置。
Content News Thai 是免费的吗?
是的,Content News Thai 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Content News Thai 支持哪些平台?
Content News Thai 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Content News Thai?
由 mewic(@mewic)开发并维护,当前版本 v1.0.0。