Home / All Skills / Design & Motion / guizang-social-card-skill
Design & Motion · op7418/guizang-social-card-skill

guizang-social-card-skill

Generate Guizang-style social card image sets, Live Photo motion cards, material-first Live Photo puzzle layouts, triple Live Photo collages, long-video-to-Live-Photo treatments, and WeChat official account cover pairs from articles, scripts, screenshots, product notes, subtitles, photos, or user-supplied videos. Use when the user asks for 小红书图文, Rednote/Xiaohongshu images, social cards, carousel images, 3:4 covers, Live Photo, 实况照片, 单视频实况拼图, 二宫格实况拼图, 三连实况拼图, 四宫格实况拼图, 微信公众号封面, WeChat 21:9 + 1:1 covers, Swiss Style, or magazine-style social images.

L4 High-Privilege · Graded auth & full auditV1 Commit-PinnedExecute CommandNetwork AccessWrite FileDual-pass Audit
Author op7418GitHub op7418/guizang-social-card-skill ↗Stars 7045License AGPL-3.0(仓库根 LICENSE 为「GNU AFFERO GENERAL PUBLIC LICENSE Version 3」全文;另有 COMMERCIAL_LICENSING.md 说明商业授权合作方式,平台/产品内置接入需另行签署协议)Commit cf4b810fac
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

7-step workflow: Intake (ask only for information that changes the result) → extract story into page plan → select style mode and theme → arrange pages → duplicate seed template → render and inspect → deliver. Deliverables are a 'set of card images' rather than a single poster.

guizang-social-card/SKILL.md
### 1. Intake Gather only the missing information that changes the output:

Two mutually exclusive visual systems: Editorial Magazine × E-ink (serif titles + paper/ink texture + ledger/margin notes/hero image wells) and Swiss International (Inter, ultra-thin divider lines, single high-saturation accent color, card matrix/KPI towers/bar charts); only one system is used per deliverable.

guizang-social-card/SKILL.md
Pick one mode per package. **The two systems are not bound to specific content types** — what changes is the visual stance, not which topic you can talk about.

No hand-coded HTML from scratch: Start by copying from two seed templates (template-editorial-card.html for Editorial, template-swiss-card.html for Swiss) and modify only the `<!-- POSTERS_HERE -->` block to prevent mixing class systems.

guizang-social-card/SKILL.md
- Editorial Magazine × E-ink → copy `assets/template-editorial-card.html` into the task folder as `index.html`.

Rendering and export rely on a local toolchain: Export `.poster` / `.cover` nodes one by one using Playwright or browser screenshot tools, followed by automated checks using the built-in validator.

guizang-social-card/SKILL.md
Use Playwright or a browser screenshot tool to export each `.poster` or `.cover` node.
The validator validate-social-deck.mjs depends on the npm package playwright (listed in package.json dependencies), launching chromium to measure pages against rules R1-R9.

Nine machine-verifiable quality rules (overflow adaptation, footer collision, Swiss font weights, minimum font size, 4-strip density, title line limit, figure default margin drift, visual boundary/bottom whitespace, title-to-body spacing); returns exit code 1 on FAIL.

guizang-social-card/SKILL.md
Keep `node validate-social-deck.mjs <task-dir>` available for auto-check passes. It checks overflow (R1), footer collision (R2), Swiss bold display (R3), minimum font size (R4), 4-band density (R5), `.h-xl` line caps (R6), browser-default figure margin drift (R7), visual bounds / bottom whitespace (R8), and title-to-content gaps (R9). Exit code 1 on any FAIL — fix before final delivery when auto-check is requested.

Image sourcing follows a 'fetch first, disclose later' approach: explicitly avoids pre-filtering sources by guessed licenses, pulling images sequentially from five royalty-free stock pools (Unsplash / Pexels / Flickr CC pool / Wallhaven / direct search), presenting sources to the user afterward to decide on attribution.

guizang-social-card/SKILL.md
Policy: **grab first, disclose after, let the user decide on attribution.**
Requires recording sources in assets/SOURCES.md (one image per line: filename ← URL), retaining traceability even if the user chooses not to include attributions.

Image acquisition explicitly uses WebFetch or curl to download into the task directory assets/, specifying a source order that prioritizes Pexels for Chinese keywords.

guizang-social-card/SKILL.md
- Use WebFetch or `curl` to download the image into the task folder's `assets/` directory.

The Live Photo branch converts static cards into 'video wells': first extracts the initial frame as a static preview check, renders paired MOVs according to platform duration (5s for Xiaohongshu, 3s for Official Accounts), and packages them into a .pvt bundle using makelive for AirDrop testing on iPhone.

guizang-social-card/SKILL.md
Render the paired MOV at the platform duration: `5s` for Xiaohongshu, `3s` for WeChat Official Account.
Packaging commands and dependencies are documented in references/live-photo-production.md: `uvx --from 'makelive==0.7.0' makelive IMG_TEST_LIVE.JPG IMG_TEST_LIVE.MOV`; repository scripts/package-live-photo.py wraps this exact workflow.

Inverted delivery cadence: By default, images are presented to the user first; the validator is run only upon explicit user request (as each run takes several minutes).

guizang-social-card/SKILL.md
**Show user first, validate on request.**

Task outputs must reside within the task directory (default: local-tests/<slug>/); generating scattered files like social-card-*/livephoto-*/wechat-* in the skill root directory is strictly prohibited.

guizang-social-card/SKILL.md
Generated work must live in a task folder, not in the skill root.

Styles and rules are codified into 16 reference documents (platform specs, style systems, theme presets, layout recipes, component specs, background systems, portrait filling, content planning, production workflows, live photos, text-on-image, screenshot handling, map components, title shortening, classification manual, QA checklist) and loaded on demand.

guizang-social-card/SKILL.md
## Required References Read these files as needed: - `references/platform-specs.md` for exact ratios, output sizes, and naming. - `references/style-system.md` for Guizang editorial and Swiss visual rules. - `references/theme-presets.md` when choosing electronic-magazine palettes or Swiss accent palettes. - `references/layout-recipes.md` when selecting carousel/social-card/WeChat page structures. - `references/components.md` for the shared component spec: font stacks, type scale, minimum readable sizes, Chinese title length bands, Swiss card-fill mutual-exclusion rule, image-container ratio classes, spacing tokens, and Lucide icon rules. - `references/background-systems.md` when building electronic-magazine WebGL/ink/paper backgrounds. - `references/portrait-fill.md` when adapting layouts to 3:4 and avoiding under-filled vertical space. - `references/content-planning.md` for cover hooks, page breakdown, and copy compression. - `references/production-workflow.md` for HTML/CSS rendering and image handling. - `references/live-photo-production.md` when the user asks for Live Photo / 实况照片 / 三连实况拼图, supplies video assets for a social card, or wants Xiaohongshu / WeChat motion-card delivery. It covers information budget, single vs triple Live Photo, long-video intake, and platform publishing reminders. - `references/image-overlay.md` whenever text sits on top of a photo: photo qualification, localized tint fallback, and face / subject avoidance via multimodal subject mapping. - `references/screenshot-treatment.md` when the user supplies an app / web / code / dashboard screenshot — picks `.frame-shot` over `.frame-img`, sets corners/shadow/bg/inset, decides on `.device-browser` or `.device-phone` chrome. - `references/map-component.md` when the content has spatial relationships (travel route, store locations, walking tour) — real routes default to Mapbox Static or OSM static tiles; schematic SVG is only for conceptual / illustrative maps. Pins are HTML overlays; never use live JS maps. - `references/title-shortener.md` when the task is a WeChat 21:9+1:1 cover pair, or any cross-platform reuse — derives the 1:1 short title from the long one (5-step extraction, 4 patterns, anti-patterns, sizing on `.poster.square`). - `references/category-cookbook.md` to route a user-named Rednote category (旅行 / 职场 / 游戏 / 影视 / 彩妆 / 美食 / 穿搭 / 家居 / 健身 / 情感 / 推荐) to applicable recipes and to confirm scope. - `references/qa-checklist.md` before delivering final images.

2Core Capabilities

01Xiaohongshu 3:4 image-text carousel card sets (cover hook + one core point per page, typically 5-9 pages)
02WeChat Official Account paired covers (21:9 main header cover + 1:1 share card, previewed side-by-side in the same HTML)
03Two visual systems with 10 theme presets (Editorial: 6 paper/ink palettes + Swiss: 4 accent color palettes)
04Live Photo dynamic motion cards and 3 collage layouts (single-video / 2-grid / triple sequence / 4-grid) plus long video processing
05Web/stock image acquisition and source disclosure workflow (including SOURCES.md traceability tracking)
06Screenshot handling standards (preserving content, programmatic composition, no stretching, scaling screenshots while compressing adjacent text when legibility is prioritized)
07Compliant text-on-image placement (subject mapping first, text exclusively in safe zones, optional localized tone masks, 360px thumbnail legibility checks)
08Automated validator (R1-R9) + density discipline (3:4 card content coverage ≥75% of canvas height)
09Map components (Mapbox Static or OSM static tiles for real routes by default, schematic SVGs strictly for conceptual diagrams, HTML-overlaid pins, dynamic JS maps prohibited)

3External Dependencies

KindDependency / Endpoint
network免版税图库检索与下载(Unsplash)
network免版税图库检索与下载(Pexels,支持中文关键词)
networkFlickr CC 授权池检索
networkWallhaven 壁纸检索
apiMapbox Static Images API(用户自备 access token)
packageplaywright(npm,校验器与渲染依赖)
packagemakelive(PyPI,经 uvx 运行,打包 .pvt)
cliffmpeg / ffprobe(抽帧、拼接、contact sheet)
clicurl / WebFetch(下载图库图片)

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Graded/per-use authorization, sandbox recommended
For Administrators
Approval workflow, rollback support, full audit
Evidence & Triggers (File Paths & Excerpts)
  • scripts/: Local script or command execution: validate-social-deck.mjs (Node + playwright chromium, renders and measures task HTML locally)
  • 网络端点: Declared external network access: Execution phase (active agent fetch): https://unsplash.com/s/photos/<keyword>, https://www.pexels.
  • 本地工作目录: File I/O and artifact output: Task directory (default local-tests/<slug>/, or user-specified path): index.html, assets under assets/, rendered images under output/
Audit Notes: Evaluated target: current skill directory (SKILL.md + 16 reference documents + 2 seed templates + 7 built-in scripts + 8 background assets + package.json/LICENSE, etc.). Grading basis is 'execution-time access to fixed, public endpoints with predictable outbound targets': SKILL.md specifies querying Unsplash / Pexels (including zh-cn search) / Flickr CC pool / Wallhaven and using 'WebFetch or `curl` to download' into task directories (Rule 5), along with map components using api.mapbox.com Static Images (user-provided token, placeholder YOUR_TOKEN in repo)—all being public, royalty-free stock pools or user-token services without credential reading, cookies, security downgrade, or reverse-engineering/spoofing, warranting no elevation to orange/red. Secondary surfaces are treated per Batch 4 standards: ① fonts.googleapis.com / unpkg.com in seed templates are 'artifact-time references' (fetched during browser rendering), noted only in reason/risks without affecting the tier; ② npm playwright and uvx makelive==0.7.0 are remote package dependencies for the local toolchain (matching precedent skill-reviewer yellow grading). Note: image fetching intentionally avoids pre-filtering licenses (fetch first, disclose later); copyright evaluation and attribution decisions rest with the user, requiring verification prior to commercial use.

5Second-Pass Verification

  • [ok] 图库端点属执行期抓取(判黄依据) — SKILL.md「Web-Sourced Images (fallback when user has none)」段列出五个来源与 URL,并给出执行命令「Use WebFetch or `curl` to download the image into the task folder's `assets/` directory.」——是 agent 主动抓取,非仅产物引用。
  • [ok] 模板 CDN 属产物期引用(不判级) — template-swiss-card.html 引用 https://fonts.googleapis.com/... 与 https://unpkg.com/lucide@latest/dist/umd/lucide.min.js,template-editorial-card.html 引用 fonts.googleapis.com/fonts.gstatic.com——均发生在浏览器渲染产物时,按批4 口径只写 reason/risks。
  • [ok] Mapbox token 的性质 — map-component.md 中 URL 形如 `...&access_token=YOUR_TOKEN`,为使用者自备占位;skill 不读环境变量、不读配置文件,故不算凭证读取。
  • [ok] 脚本依赖与外部命令 — package.json dependencies 仅 playwright ^1.60.0,scripts 定义 test:docs 与 validate;make-video-contact-sheet.py 用 subprocess 调 ffprobe/ffmpeg;package-live-photo.py 导入 makelive(文档要求 uvx --from 'makelive==0.7.0');validate-social-deck.mjs `import { chromium } from "playwright"`。
  • [ok] references 完整性 — SKILL.md 列出的 16 份 references(platform-specs / style-system / theme-presets / layout-recipes / components / background-systems / portrait-fill / content-planning / production-workflow / live-photo-production / image-overlay / screenshot-treatment / map-component / title-shortener / category-cookbook / qa-checklist)在仓库中全部存在,无死引用。
  • [ok] 校验器规则与 SKILL.md 描述一致 — validate-social-deck.mjs 头注释的 R1-R9 与 SKILL.md「It checks overflow (R1)…title-to-content gaps (R9). Exit code 1 on any FAIL」逐条对应。
  • [ok] 产物放置纪律 — SKILL.md「Generated work must live in a task folder, not in the skill root.」+ AGENT.md「不要把一次性的生成案例、渲染输出、临时素材、调试脚本或下载图片直接放在 Skill 根目录。」两处一致,且 .gitignore 忽略 local-tests/。
  • [ok] 版权处理流程 — 「Policy: grab first, disclose after, let the user decide on attribution.」+ 抓后模板「⚠️ 版权未经核实。请你判断是否可用。」+ SOURCES.md 溯源要求;SKILL.md 明确「we do not pull from paid stock sites(视觉中国 / Getty / 站酷海洛等)」。

6Verdict & Scenarios

  • Transforms layout into a measurable engineering process: seed templates + numbered recipes (M01-M16/S01-S12) + built-in Playwright validator (R1-R9), offering far higher reproducibility than subjective graphic layout skills.
  • Strict style discipline: mutually exclusive visual systems, bounded theme presets, zero tolerance for pointless decoration/nested cards/fabricated data/arbitrary face cropping, and strict prohibition against directly cropping 21:9 into 1:1.
  • Fully engineered Live Photo pipeline: initial frame pre-check, platform durations (5s/3s), contact sheet frame verification, .pvt packaging, AirDrop publishing path, and fallback options to GIF/MP4.
  • Clear workflow for uncertain facts and copyright: browse and verify recent announcements/prices/policies before citing; stock assets are fetched first and disclosed in SOURCES.md, leaving the attribution decision to the user.
  • Clear documentation division of labor (SKILL/AGENT/HANDOFF/PRODUCT) and strict artifact placement rules to prevent root directory clutter.
  • Transparent copyright and commercial licensing: AGPL-3.0 codebase with supplementary commercial licensing terms.
  • Best for: Ideal for content creators and teams needing batch production of cohesive Xiaohongshu/WeChat carousel image sets and cover pairs: requires consistent aesthetics (magazine editorial or Swiss style), multi-aspect paired outputs, mixed screenshot and photo layouts, and Live Photo motion cards. Also suitable for teams looking to adopt these recipes and validators as an internal reusable design system (numbered recipes + machine-checkable rules can be integrated into local checks outside CI).
    Not for: Not suitable as a PPT/slide presentation or long-form video generation tool (explicitly designated to dedicated PPT/video skills in README/SKILL.md); not suited for standalone photo editing or precision data visualization tasks; not suitable for environments where Playwright or ffmpeg cannot be installed (breaks the rendering and Live Photo pipelines); not recommended for direct commercial embedding sensitive to AGPL obligations without first reviewing COMMERCIAL_LICENSING.md.
    Install Agent-Ready
    ① Verified Mirror 2026-09-15
    Option A · Direct DownloadDownload guizang-social-card-skill.tar.gz
    sha256: e86ce5a878f51bd8…
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit cf4b810fac.