Agent skill · creative production · sundial-org
xkcd
Fetch xkcd comics - latest, random, by number, or search by keyword. Display comics with title, image, and alt text (the hidden joke). Generate custom xkcd-style stick figure comics using image generation. Perfect for daily comic delivery via cron, on-demand requests, or creating original xkcd-inspired content.
Why this skill is useful
Adds executable scripts for fetching and generating xkcd comics that the AI wouldn't reliably generate on its own.
What it needs
Requires uv installed locally. About 2k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
xkcd Fetch comics from xkcd.com or generate xkcd-style images. Commands Latest Comic Random Comic Specific Comic Search by Keyword JSON Output Output Format Default markdown output includes: Title: Comic title with number Image: Direct image URL Alt text: The hidden hover text (often the best part!) Link: Permalink to xkcd.com Generating Custom xkcd-Style Comics Use an image generation skill (e.g., nano-banana-pro) with this prompt pattern: Example prompt: Cron Examples Classic Comics #327 "Exploits of a Mom" — Bobby Tables / SQL injection #353 "Python" — import antigravity #303 "Compiling" — sword fighting while code compiles #386 "Duty Calls" — someone is wrong on the internet #1053 "Ten Thousand" — lucky 10,000 learning something new #979 "Wisdom of the Ancients" — unanswered forum posts #927 "Standards" — how standards proliferate API Uses the official xkcd JSON API (no auth required). Latest: https://xkcd.com/info.0.json Specific: https://xkcd.com/{num}/info.0.json
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/xkcd