macaron-card-generator

Generate beautiful macaron-color cartoon illustration-style card images from text content. Supports various types such as book recommendation cards, concept cards, quote cards, and comparison cards, with multiple aspect ratios including 3:4, 9:16, and 1:1.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "macaron-card-generator" with this command: npx skills add openlark/macaron-card-generator

Macaron Card Generator

Generate beautiful card images from text content with one click, in a macaron-color cartoon illustration style.

Trigger Words

Generate card, make a card, draw a card, generate image, book card, recommendation card, concept card, quote card, comparison card, create an image.

Workflow

  1. Understand user requirements → Confirm card type, content, and aspect ratio
  2. Construct JSON content → Organize data by card type (see references/design_guide.md for field descriptions)
  3. Run scripts/generate_card.py → Generate HTML file
  4. Screenshot with Playwright/CDP → Render HTML as PNG
  5. Send PNG to user

Quick Start

python scripts/generate_card.py \
  --type book \
  --content '{"title":"The Little Prince","author":"Antoine de Saint-Exupéry","recommendation_reason":"...","key_takeaway":"...","rating":"5","tags":["Classic"],"ratio":"3:4"}' \
  --output card.html

Then render card.html as a PNG using a browser screenshot tool.

Card Types

Type--typeDescription
Book Recommendation CardbookTitle, author, rating, recommendation reason, quote tags
Concept CardconceptConcept name, definition, examples, related concepts
Quote CardquoteQuoted text, author, source, background
Comparison CardcompareComparison topic, characteristics of both sides, conclusion

Design System

All cards follow the macaron-color cartoon illustration style:

  • Soft pastel gradient backgrounds + white rounded card
  • Dashed double borders simulating a hand-drawn feel
  • Decorative circle, star, and polka dot elements
  • Each card type is automatically matched with a color scheme

See references/design_guide.md for detailed color palettes, ratio parameters, and JSON field descriptions.

Screenshot Output

The generated HTML needs to be rendered as a PNG. Recommended methods:

  1. Playwright (preferred): Use the playwright MCP tool, set the viewport to the width and height output by the script, then take a screenshot
  2. xbrowser skill: Open the HTML and take a full-page screenshot
  3. browser tool: If the HTML is accessible via HTTP, use the browser to take a screenshot

Once the screenshot is taken, the final PNG card image is ready and can be sent directly to the user.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Dex

Manage your Dex personal CRM — search, create, and update contacts, log interaction notes, set follow-up reminders, organize contacts with tags and groups, a...

Registry SourceRecently Updated
5620ocruzv
General

pumpmarket skill

Predict pump.fun token graduations (YES/NO) on Solana mainnet via PumpMarket parimutuel betting markets.

Registry SourceRecently Updated
General

maxhub-weibo

微博/Weibo平台微博热搜、话题、用户与博文数据采集。当用户提到微博、weibo、热搜、超话、话题等相关需求时激活此Skill。

Registry SourceRecently Updated
General

Context Resume

Reconstructs your full working context when you return to a task after an interruption — meeting, lunch, sleep, weekend, or three-week vacation. Not session...

Registry SourceRecently Updated