blog-cover-poster
Skill này làm gì
Skill này tạo một ảnh bìa và loạt ảnh slide từ bài blog hoặc ghi chú. Skill dành cho người viết và người làm nội dung mạng xã hội cần hình ảnh cho bài viết của mình.
Khi nào nên dùng
- ✓Khi bạn muốn có ảnh bìa và các slide nội dung cho một bài blog hoặc bài mạng xã hội.
- ✓Khi bạn cần một bộ ảnh dọc để đăng carousel trên mạng xã hội.
- ✓Khi bạn muốn các slide giải thích những ý chính của tài liệu.
Liên kết skill
https://github.com/digoal/blog/blob/master/skills/blog-cover-poster/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Biến bài blog của tôi về sao lưu cơ sở dữ liệu thành một ảnh bìa và năm ảnh slide dọc.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill lên kế hoạch mỗi ý chính thành một slide, viết trang HTML cho từng slide, rồi dựng thành ảnh PNG đúng kích thước bằng trình duyệt chạy ngầm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Blog Cover Poster
Overview
Generate a cover image (1.png) plus N coherent content slides (2.png, 3.png, …) from source material. Each image is an exact 1080×1920 PNG. The pipeline authors one HTML file per page using bundled CSS/templates, then renders them to PNG with headless Chrome — this gives precise control over Chinese/English typography, color semantics, and emphasis.
Workflow
- Read the source. Take the file/text the user provides. Extract the title/hook and the core points. Verify facts against the source only — do not invent stats, names, or claims that aren't in the material.
- Plan the deck (do this before writing any HTML):
- Pick a theme:
theme-dark(tech / AI / finance / dev topics) ortheme-light(knowledge / tutorial / lifestyle / business explainer). Default to the topic fit; honor an explicit user request. - Decide page count automatically from the number of distinct core points: cover + one slide per point. Typical total is 4–8 images. Merge thin points; split overloaded ones. One idea per content slide.
- Sketch a one-line outline:
1 cover → 2 <point> → 3 <point> …. If the user gave a fixed count, follow it.
- Pick a theme:
- Set up a scratch working dir — author intermediate HTML/CSS here, not in the source directory and not littering the project dir:
Author pages asWORK=$(mktemp -d) cp <SKILL_DIR>/assets/poster.css "$WORK"/$WORK/page-1.html(cover),$WORK/page-2.html, … using the templates as a starting point (see Authoring pages). The relative<link href="poster.css">resolves because the CSS sits beside them. - Render PNGs into the current project directory (
$PWD— where the user invoked the skill), never the source file's directory:
This writespython3 <SKILL_DIR>/scripts/render.py --in "$WORK" --out "$PWD"1.png,2.png, … (exact 1080×1920) into$PWD.page-1.htmlalways becomes the cover1.png. If the user names a different output dir, use that instead — but default to$PWD. - Inspect every PNG with the Read tool. Check the checklist below. Fix the HTML in
$WORKand re-render until clean. - Clean up the scratch dir (
rm -rf "$WORK"). Only theN.pngfiles remain in the project dir — that is the deliverable. The source directory is never touched.
Authoring pages
Start from the templates and edit — don't write markup from scratch:
assets/template-cover.html→page-1.htmlassets/template-content.html→page-2.html,page-3.html, …
Keep the same theme-* class on <body> across all pages.
Content-slide layouts
The content template ships three layout blocks — keep one per page, delete the rest:
- Points (
ul.points): 2–4 scannable items, best default for "reasons / steps / features". - Paragraph (
.body): 2–3 short sentences for a concept that needs prose. - Big stat (
.stat): one large number for a data point that deserves a full slide.
Emphasis rules (semantic coloring & sizing)
Emphasis must track meaning and importance, not decoration:
.hl/.hl2— filled color chip. At most ONE per page, on the single most important term..hl2(warm) for contrast/warning/payoff;.hl(cool) otherwise..ul— underline. Softer emphasis, for 1–2 secondary terms..accent— colored text, for the lead word of each list item..muted— de-emphasized text (subtitles, footers, labels).- Type hierarchy is pre-tuned in the CSS: cover title 132px, content heading 84px, body 50–52px. Bigger = more important. If text overflows the 1920px height, cut words or split into another slide — do not shrink below the template sizes.
Copywriting for posters
- Cover title: a punchy hook, ≤ ~14 CJK chars per line, ≤ 2 lines.
- Content headings: short, one idea. Content body: fragments over full paragraphs — these are read in seconds.
- Number the deck in the content
.index(e.g.01 / 05) so the series reads as coherent.
Verification checklist (per image)
- Size is exactly 1080×1920 (render.py enforces & prints this).
- No text is clipped at edges or overflows the bottom.
- Exactly one filled highlight chip per page, on the right term.
- Emphasis reflects the actual key point, not random words.
- Theme is consistent across all pages; contrast is readable.
- Content slides read as a coherent, ordered series (indices match count).
- Every claim traces t
Câu hỏi thường gặp
Kích thước ảnh là bao nhiêu?
Mỗi ảnh là file PNG có kích thước chính xác 1080 x 1920 pixel.
Tôi sẽ nhận được bao nhiêu ảnh?
Số lượng phụ thuộc vào các ý chính, và bộ ảnh thường có từ bốn đến tám ảnh.
Skill có thêm thông tin không có trong nguồn không?
Không. Skill chỉ đối chiếu các sự kiện với tài liệu gốc.
Chi tiết
Mô tả gốc của tác giả
Turn a blog post, article, notes, or any source material into a set of vertical poster images — one cover plus several coherent content slides that explain the core points. Renders HTML/CSS to exact-size PNGs via headless Chrome. Use whenever the user wants cover art, 讲解图/配图, carousel slides, 封面图, poster series, or "content images" from an article/文章/素材/文件, especially for blog, 公众号, 小红书, or social posts. Default output is 1080×1920 PNG named 1.png (cover), 2.png, 3.png … written to the current working directory (the project the user is in) — never the source file's directory.
repo: digoal/blog
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12352
- Giấy phép
- GPL-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
article-to-podcast-script
8.6kGiúp agent của bạn biến bài viết Markdown thành kịch bản podcast cho một đến bốn người nói, lưu thành file văn bản, mặc định bằng tiếng Trung.
axiom-explainer
8.6kGiúp agent của bạn viết bài tiếng Trung rõ ràng, giải thích một quan điểm, định luật hoặc lý thuyết, kèm ví dụ, giới hạn và sơ đồ đơn giản.
buffett
8.6kGiúp agent của bạn suy nghĩ về quyết định công ty và cổ phiếu theo cách Warren Buffett, dựa trên ý tưởng về lợi thế cạnh tranh, quản trị và biên an toàn.
daily-finance
8.6kGiúp agent của bạn viết bản tin tài chính hằng ngày từ các nguồn đáng tin, hiện tại, có số liệu đã kiểm tra và liên kết để làm bản tóm tắt thị trường.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.