By younghai
Card news generator — create Instagram/LinkedIn visual slides with AI images, Remotion rendering, and video export
Card news generator for Instagram/LinkedIn -- powered by Go CLI + Remotion React + Gemini AI images.
A Claude Code plugin that generates professional card news from any topic.
Topic -> Research -> Plan -> Scaffold -> AI Images -> Card Components -> Rendered PNGs
Two modes:
See Architecture for detailed workflow diagrams.
claude plugin add github.com/pureugong/mmk-cardnews-v2
Then in Claude Code:
/cardnews 일본 디저트 --slides 7
Prerequisites:
GEMINI_API_KEY in your environment or .env file (Get one here)Fork or clone this repo, then set up secrets:
# 1. Set required secrets
gh secret set CLAUDE_CODE_OAUTH_TOKEN # Claude Code auth token
gh secret set GEMINI_API_KEY # Gemini API key
# 2. Enable PR creation
gh api repos/OWNER/REPO/actions/permissions/workflow \
-X PUT -F can_approve_pull_request_reviews=true
# 3. Trigger from Actions tab
# Actions -> "Generate Card News" -> Run workflow
# Fill in: topic, slides (default 7), style (default auto)
The workflow will:
Workflow inputs:
| Input | Required | Default | Description |
|---|---|---|---|
topic | Yes | -- | Card news topic (Korean or English) |
slides | No | 7 | Number of slides (3-13) |
style | No | auto | Magazine style: auto, BRUTUS, POPEYE, Casa BRUTUS, OLIVE, SWITCH, Pen |
git clone https://github.com/pureugong/mmk-cardnews-v2.git
cd mmk-cardnews-v2
./setup.sh # builds dist/mmk-cn
# Set Gemini API key
export GEMINI_API_KEY=your-key-here
# Generate card news step by step
mmk-cn new "Topic" --slides 7 # scaffold project
mmk-cn imagegen --batch batch.json # generate AI images
cd output/topic && npm install # install Remotion deps
mmk-cn preview . # live preview at localhost:3000
mmk-cn still . # export PNG stills
mmk-cn render . # export MP4 video
mmk-cn pdf out/stills # export PDF carousel
| Command | Description |
|---|---|
mmk-cn new <title> --slides N | Scaffold a new Remotion project |
mmk-cn imagegen --batch file.json | Batch generate AI images via Gemini |
mmk-cn imagegen -p "prompt" -o out.png | Generate a single image |
mmk-cn preview <project> | Open Remotion Studio for live preview |
mmk-cn still <project> | Export each card as 1080x1350 PNG |
mmk-cn render <project> | Export video as MP4 |
mmk-cn pdf <stills-dir> | Stitch PNGs into a PDF carousel |
output/<topic>/
research.md # Topic research
plan.md # Card news plan
batch.json # Image generation prompts
src/cards/Card01~CardN.tsx # React card components
public/card-01~N.png # AI-generated background images
out/stills/card-01~N.png # Final rendered card news (1080x1350)
out/output.mp4 # Video (optional)
out/carousel.pdf # PDF carousel (optional)
gemini-3.1-flash-image-preview)| Format | Size | Ratio |
|---|---|---|
| Instagram portrait | 1080 x 1350 | 4:5 |
| Vertical video | 1080 x 1920 | 9:16 |
| Style | Best For | Aesthetic |
|---|---|---|
| BRUTUS | Concepts, trends, IT | Bold, high-contrast, graphic |
| POPEYE | Food, travel, lifestyle | Warm film, casual confidence |
| Casa BRUTUS | Architecture, space | Material reverence, precise |
| OLIVE | Personal, vintage, emotional | Analog warmth, intimate |
| SWITCH | Portraits, interviews | B&W, portrait-first |
| Pen | Art, minimal, high culture | Swiss minimalism, white space |
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub younghai/claude_cardnews-v2Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Multi-agent orchestration system for Claude Code
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Use Superset to spawn agents, create workspaces, manage tasks, and schedule automations from Claude Code.
Personalized coding tutorials that use your actual codebase for examples with spaced repetition quizzes
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.