AgentSkillsCN

meme

利用免费的memegen.link API生成表情包。从200多种模板中自定义上下文文字,创作图像表情包;或直接使用文字版表情包格式。

SKILL.md
--- frontmatter
name: meme
description: "Generate memes using the free memegen.link API. Create image memes from 200+ templates with custom top/bottom text, or use textual meme formats."
metadata:
  { "requires": { "bins": ["curl"] } }

Meme Generator Skill

Generate memes using the memegen.link API. No API key needed.

URL Format

code
https://api.memegen.link/images/{template}/{top_text}/{bottom_text}.png

Text Encoding

CharacterEncoding
Space_ or -
Newline~n
Question mark~q
Percent~p
Slash~s
Hash~h
Single quote''
Double quote""

Popular Templates

TemplateNameUse case
drakeDrakepostingComparing two things (reject/prefer)
fryFuturama Fry"Not sure if X or Y"
fineThis is FineEverything is on fire
buzzX, X EverywhereSomething ubiquitous
gruGru's PlanPlans backfiring
astronautAlways Has BeenRevelations
dbDistracted BoyfriendMisplaced priorities
cmmChange My MindHot takes
haroldHide the Pain HaroldHidden suffering
panik-kalm-panikPanik Kalm PanikEmotional rollercoaster
spidermanSpider-Man PointingTwo things that are the same
sameThey're The Same PictureIdentical things
exitLeft Exit 12 Off RampBad decisions
poohTuxedo Winnie the PoohClassy alternative
stonksStonksFinancial "wisdom"
mordorOne Does Not SimplySomething difficult
woman-catWoman Yelling at a CatArguments
handshakeEpic HandshakeShared agreement
successSuccess KidCelebrating wins
interestingMost Interesting Man"I don't always X"
slapWill Smith SlapStrong reactions
chairAmerican Chopper ArgumentHeated arguments
rollsafeRoll SafeBad "smart" ideas

Browsing Templates

Before generating a meme, browse the API to find the right template. Don't just guess — fetch the list.

List all templates:

bash
curl -s https://api.memegen.link/templates/ | jq '.[] | {id, name}'

Search for a template by keyword:

bash
curl -s https://api.memegen.link/templates/ | jq '.[] | select(.name | test("keyword"; "i")) | {id, name}'

Get details and example URL for a specific template:

bash
curl -s https://api.memegen.link/templates/{id}

Always browse first if the user asks for a specific vibe or if you're unsure which template fits best.

Generating a Meme

  1. Browse templates from the API to pick the best fit
  2. Encode the text (underscores for spaces, special char codes)
  3. Keep text short — 2-6 words per line for readability
  4. Build the URL and verify with curl:
bash
curl -s -o meme.png "https://api.memegen.link/images/{template}/{top}/{bottom}.png"
  1. Read the downloaded image to display it to the user

Options

ParameterExample
Width?width=800
Height?height=600
Layout?layout=top or ?layout=bottom
Format.png, .jpg, .webp, .gif

Custom Background Image

code
https://api.memegen.link/images/custom/{top}/{bottom}.png?style=https://example.com/image.jpg

Workflow

  1. Understand the vibe/context from the user
  2. Browse templates from the API — don't assume a template exists, verify it
  3. Pick the right template (match template meaning to the joke)
  4. Write short punchy text
  5. Download the image with curl
  6. Read the image file to show it inline
  7. Clean up the file after if needed

Examples

bash
# deployment humor
curl -s -o meme.png "https://api.memegen.link/images/fine/servers_on_fire/this_is_fine.png"

# code review
curl -s -o meme.png "https://api.memegen.link/images/fry/not_sure_if_bug/or_feature.png"

# comparing approaches
curl -s -o meme.png "https://api.memegen.link/images/drake/writing_tests/shipping_to_prod.png"