🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

daily-news-english-cards

by @jasonruan

Generate daily bilingual English learning cards with vocabulary, summaries, and AI-created comic illustrations from the latest news in politics, finance, spo...

Versionv1.0.0
Downloads401
TERMINAL
clawhub install daily-news-english-cards

πŸ“– About This Skill

Generate daily news English learning cards with comic illustrations.

Search the latest 24-hour news across 5 categories (Politics, Finance, Sports, Entertainment, Technology), create vocabulary-rich learning cards with AI-generated comic art and bilingual summaries.

Use when the user asks to "generate English learning cards", "create news cards", "daily English cards", "新闻英语卑片", "每ζ—₯θ‹±θ―­ε­¦δΉ ", "η”Ÿζˆε­¦δΉ ε‘η‰‡", or similar requests related to news-based English learning content.


Prerequisites

Three API keys are required. Set them as environment variables before running:

| Variable | Service | Get Key | |---|---|---| | TAVILY_API_KEY | Tavily Search (news) | https://tavily.com | | DEEPSEEK_API_KEY | DeepSeek (text gen) | https://platform.deepseek.com | | OPENROUTER_API_KEY | OpenRouter (image gen) | https://openrouter.ai |

Optional:

| Variable | Default | Description | |---|---|---| | IMAGE_MODEL | google/gemini-3.1-flash-image-preview | OpenRouter image model (Nano Banana 2) |

Steps

1. Verify environment variables are set

Check that TAVILY_API_KEY, DEEPSEEK_API_KEY, and OPENROUTER_API_KEY are configured. If any are missing, prompt the user to set them.

2. Install dependencies

   pip install -q tavily-python openai Pillow requests
   

3. Run the generator script

   python daily-news-english-cards/scripts/generate_cards.py
   

The script will: - Search 5 categories of news via Tavily - Generate vocabulary & summaries via DeepSeek - Create comic illustrations via OpenRouter (Nano Banana 2) - Composite final learning cards via Pillow

4. Present results

Show the user the generated card images from output/daily-news-cards/{date}/.

Customization

# Custom categories
python daily-news-english-cards/scripts/generate_cards.py --categories politics sports technology

Custom output directory

python daily-news-english-cards/scripts/generate_cards.py --output-dir ./my-cards

Output

Each run produces in output/daily-news-cards/{date}/:

  • card_{category}_{date}.png β€” Final learning cards (1080Γ—1440px)
  • comic_{category}_{date}.png β€” Raw comic illustrations
  • content_{date}.json β€” Structured learning content data
  • Architecture

    daily-news-english-cards/
    β”œβ”€β”€ SKILL.md                    # This file
    β”œβ”€β”€ requirements.txt            # Python dependencies
    └── scripts/
        └── generate_cards.py       # Self-contained generator (all logic in one file)
    

    The script is fully portable β€” works with Cursor, OpenClaw, or standalone CLI. No IDE-specific tools are used; all external calls go through standard APIs.

    βš™οΈ Configuration

    Three API keys are required. Set them as environment variables before running:

    | Variable | Service | Get Key | |---|---|---| | TAVILY_API_KEY | Tavily Search (news) | https://tavily.com | | DEEPSEEK_API_KEY | DeepSeek (text gen) | https://platform.deepseek.com | | OPENROUTER_API_KEY | OpenRouter (image gen) | https://openrouter.ai |

    Optional:

    | Variable | Default | Description | |---|---|---| | IMAGE_MODEL | google/gemini-3.1-flash-image-preview | OpenRouter image model (Nano Banana 2) |