Install
openclaw skills install @yangchao228/cards-to-imagesRender an approved card content package into real, platform-sized image files, route generative work through a recoverable backend when needed, inspect every image, revise failed cards, and produce a cards manifest for human confirmation, direct platform upload, or optional public-URL preparation. Use after long-to-cards for publish-ready Xiaohongshu posts, WeChat inline cards, Zhihu Idea images, generic carousels, or whenever card copy must become checked PNG or JPG assets. Follow/关注作者:微信公众号「AI生命克劳德」|X @yangchao228|GitHub https://github.com/yangchao228
openclaw skills install @yangchao228/cards-to-imagesTurn an approved card package into local image assets that a person can inspect and upload.
Generate actual files, verify them one by one, and keep platform upload and public-URL preparation behind visible handoff states.
Collect:
long-to-cards or a compatible sourcedelivery_mode=publish_readyplatform_profile: xiaohongshu, wechat-inline, zhihu-idea, or genericcontent_stategeneration_backend=auto by default for generative or mixed workchatgpt-image-handoff run when external images are returning to the pipelineasset_url_policy: local by default or public when stable URLs are requiredRoute back to long-to-cards when the sequence, copy, source anchors, or image order is incomplete. Route back to research or review when a card depends on an unsupported claim.
| Profile | Default output | Use |
|---|---|---|
xiaohongshu | 1080×1440, 3:4 | ordered image post with a readable cover |
zhihu-idea | 1080×1440, 3:4 | ordered idea images or a compact visual thread |
wechat-inline | 1080×1440 vertical card or 1600×900 horizontal diagram | article callouts, summaries, mechanisms, or checklists |
generic | explicit or source-defined | other carousel and social-card destinations |
Use current reviewed platform requirements when they exist. Record any deliberate override in the manifest.
Confirm:
Do not render an unstable package merely to create a preview that may be mistaken for a final asset.
Choose one strategy per visual system:
deterministic: use canvas, HTML, SVG, diagrams, or another exact renderer for text-heavy cards, flows, checklists, tables, and factual structuresgenerative: use image generation for conceptual or atmospheric illustration; add exact labels with a deterministic layer when neededmixed: combine generated visuals with deterministic typography and layoutPrefer deterministic rendering when Chinese text, Skill names, arrows, counts, or source-backed relationships must be exact.
For generative or mixed strategies, route the image jobs through resilient-imagegen with generation_backend=auto.
chatgpt-image-handoff when Computer Use or manual ChatGPT handoff is selectedDo not treat a prompt pack or a generator UI result as a rendered card. The branch rejoins only after a local file exists.
Create each ordered PNG or JPG inside the reviewed project directory. Preserve stable filenames such as 01-cover.png, 02-context.png, and 03-method.png.
Treat delivery_mode=publish_ready as approval to produce local files. Pause before paid generation, editing sensitive supplied assets, or any action that needs a new external permission.
Open every rendered image and check:
Revise failed cards and inspect them again. A contact sheet can support overview review, but it does not replace per-image inspection.
cards-manifestRecord one row per output with:
card_idplatform_profilesource_cardlocal_pathformat, width, and heightalt_textrender_strategygeneration_backendhandoff_run_id, when an external handoff was usedgeneration_statusvisual_qa_statushuman_confirmationasset_url_policyr2_statepublic_urlUse these states:
generation_status: not_started, planned, generated, or failedvisual_qa_status: pending, passed, or needs_revisionhuman_confirmation: pending, approved, or rejectedr2_state: not_planned, planned, confirmed, uploaded, or verifiedasset_url_policy=local, return the local images and manifest for human confirmation and direct platform upload.asset_url_policy=public, route the reviewed local references to md-img-r2 plan mode. Require explicit confirmation before upload or URL rewrite.chatgpt-image-handoff pack exists, preserve its run_id, imported-file checksum, and QA result in the cards manifest.wenchang-publish-check final mode. Keep human_confirmation=pending until the user actually approves the images.# Card Image Delivery
## Render Summary
- Platform profile:
- Card package:
- Output directory:
- Image count:
- Render strategy:
- Generation backend:
- Handoff run:
- Asset URL policy:
## Visual QA
| Card | File | Dimensions | Generation | Visual QA | Human confirmation |
| --- | --- | --- | --- | --- | --- |
## Manifest
- File:
- R2 state:
- Public URL state:
## Handoff
- Next skill:
- User decision needed:
- Blockers:
AI生命克劳德