# code-card-news-generator

code-card-news-generator turns a topic and a list of functions into PNG cards with highlighted code: one title card plus one per item, for tutorials.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 946 repo stars
- Author: bear2u
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/bear2u/my-skills/tree/HEAD/backup/code-card-news-generator/SKILL.md
- Updated: 2026-06-22
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/code-card-news-generator

## What it does

The skill runs a short interview first: which library or concept, and which functions to cover. For each item it drafts a description, a code sample and a short explanation, then hands the whole block to `python3 auto_code_generator.py` through a heredoc. You get a title card and numbered PNGs such as `react_router_00_title.png` and `react_router_01.png`.

Cards come out at 1080x1080 on a dark `#1a1a1a` background with a pink `#ff6b9d` accent; code sits in a bordered box on `#2d2d2d`. Pipes in the title line alternate white and pink, and a subtitle is optional. The bundled Cafe24Ssurround covers headings, code falls back to Menlo or Monaco. For a single card, call `generate_code_card.py title` or `generate_code_card.py explain` directly.

You need Python 3 and the scripts in the folder you run from. Nothing renders without `auto_code_generator.py` beside you. Layout is fixed, so the skill tells you to keep samples at 5–7 lines and trim the prose when a card overflows.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add bear2u/my-skills --skill code-card-news-generator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/code-card-news-generator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/code-card-news-generator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add bear2u/my-skills --skill code-card-news-generator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/code-card-news-generator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add bear2u/my-skills --skill code-card-news-generator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/code-card-news-generator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install bear2u/my-skills backup/code-card-news-generator/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/code-card-news-generator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add bear2u/my-skills --skill code-card-news-generator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/bear2u/my-skills --path backup/code-card-news-generator
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/code-card-news-generator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add bear2u/my-skills --skill code-card-news-generator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/bear2u/my-skills/tree/HEAD/backup/code-card-news-generator/SKILL.md

## When to use it
- build a card series explaining React Router hooks
- get a title slide with a two-tone heading
- show a code sample with syntax highlighting on a dark card
- render one card for a single function
- produce square 1080x1080 images for Instagram

## Example prompts
- Make explanation cards for React Router hooks: `useNavigate`, `useParams`, `useLocation`.
- Generate a title card with `React|Router|Hooks` and the subtitle `Navigation Made Easy`.
- Build a single card for `useState` with a code sample and an explanation.

## Similar
- [card-news](https://affpapa.org/en/nevibecode/skills/card-news.md) — skill · ★ 97 repo stars
- [daily-news-caster](https://affpapa.org/en/nevibecode/skills/daily-news-caster.md) — skill · 1900 installs
- [skill-card-generator](https://affpapa.org/en/nevibecode/skills/skill-card-generator.md) — skill · 2300 installs
- [infographics](https://affpapa.org/en/nevibecode/skills/infographics.md) — skill · 2200 installs
- [mermaid-tools](https://affpapa.org/en/nevibecode/skills/mermaid-tools.md) — skill · 1500 installs
- [tech-news-digest](https://affpapa.org/en/nevibecode/skills/tech-news-digest.md) — skill · 773 installs

From the same set: [bear2u/my-skills](https://affpapa.org/en/nevibecode/by/bear2u/my-skills.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
