social-previewlisted
Install: claude install-skill y-a-v-a/skills
# Social preview generator
Produce `social-preview.png` (exactly 1280×640) in the repo root, ready for manual
upload at GitHub → repo **Settings → General → Social preview**. There is no API
for that upload — always end by reminding the user to do it by hand.
## 1. Gather material
- Read `README.md` (and `package.json` description or similar) to learn what the
project is. Distill a **very short tagline** — one line, roughly ≤ 60 characters.
The project name comes from the repo/package name unless the README uses a
nicer display name.
- Detect whether this is a webapp: look for `public/`, `index.html`, stylesheets,
framework configs, templates. If so, read its CSS/HTML for **theme colors,
fonts, and layout idioms** and echo that visual language in the card.
- Only render the real app for reference if it costs nothing: a static
`index.html` you can open directly, or a dev server that is already running.
Never install dependencies or start builds just for this skill.
- Not a webapp (CLI, library)? Fall back to a tasteful typographic card derived
from the README's tone and any logo/badge assets in the repo.
- **Byline name**: ask the user which name to credit via an **AskUserQuestion**
tool call. Offer `git config user.name` as the recommended first option, plus
a "No byline" option; the user can type any other name via "Other". Ask once,
here — never re-ask during the iteration loop.
## 2. Write the throwaway HTML
Write `social-preview.html` in the **s