Agent skills
snapcode-readme
Recipe
READMEs and docs landing pages: which sections deserve a visual, where hero/feature/diff images belong, and what must stay copy-pasteable text.
snapcode-readme/SKILL.md
Snapcode README
A recipe skill for writing READMEs that use Snapcode images well. It assumes the `snapcode` base skill is installed — that skill owns the mechanics of calling the CLI/MCP tool; this one owns *where images go and why*.
Structure that works
A strong README answers, in order: what is this, why should I care, show me, how do I run it.
- Title + one-liner — what the project does in a single sentence.
- Hero visual — a Snapcode render of the 5–15 lines that best show the project's value. This replaces a wall of badges as the first thing under the intro.
- Features — short bullets; one Snapcode visual per *non-obvious* feature, not per feature.
- Quickstart — real install + run commands as copy-pasteable text (never an image — people copy these).
- Usage examples — Snapcode renders for the 1–3 most common tasks, each with a one-line caption.
- API/config reference — text tables and fenced code blocks, not images.
Where each image goes
Rules
- Quickstart commands stay text. Images are for code the reader admires; text is for code the reader runs. Never screenshot an install command.
- Every image gets an alt text and a one-line caption telling the reader what they're looking at.
- Store images in `docs/assets/` (or
.github/assets/for README-only images) and reference with relative paths — absolute URLs break in forks. - Keep examples runnable. The code in a visual should be copyable from the repo (an
examples/file), not a hand-typed fragment that drifts out of date. Render from the real file with--file examples/.... - Regenerate, don't edit. When the example code changes, re-run the render — never hand-edit the PNG.
- Match theme to context: dark themes (
github-dark,dracula,nord) read best on GitHub's dark mode; if unsure,github-darkis the safe default.
Workflow
- Draft or read the example file (e.g.
examples/quickstart.ts) — 5–15 lines that actually run. - Render it (base skill):
snapcode generate --file examples/quickstart.ts --theme github-dark --title quickstart.ts --out docs/assets/hero.png - Place the markdown:
with a caption line. - Repeat only for features that genuinely need a visual — a README with 2–4 well-placed images beats one with ten.
Claude Code
mkdir -p ~/.claude/skills/snapcode-readme && curl -sLo ~/.claude/skills/snapcode-readme/SKILL.md https://getsnapcode.dev/skills/snapcode-readme/SKILL.md
Cursor
mkdir -p .cursor/rules && curl -sLo .cursor/rules/snapcode-readme.md https://getsnapcode.dev/skills/snapcode-readme/SKILL.md