How do I build my own meme skill for Claude Code?
The fastest path is to install an existing skill: run npx skills add https://memecub.com and Claude Code gets meme search plus the memecub REST API and MCP server at https://memecub.com/mcp. If you want your own, create a folder with a SKILL.md that tells Claude when to trigger, which tool to call (search, then return the image URL and caption), and how to keep the tone appropriate. Test it by asking Claude Code for a meme in a code review and check that it returns a real link instead of inventing one.
Send when a client asks for a feature the engineer already said no to.
The moment a demo is due and the design is still a sketch.
For a bug that only appears in production and vanishes on retry.
When the bug report reads like a philosophy essay.
Post it when the AI agent gives up and you go back to writing the code yourself.
For the review where the diff looks fine and the app is on fire.
When you read your own commit from last week.
Use it when someone takes your throwaway comment very seriously.
Option 1: install a ready-made skill
Run npx skills add https://memecub.com in your project. It installs into Claude Code, Codex, Cursor and other skill-aware tools.
The skill points Claude at memecub's REST API for search and at the remote MCP server https://memecub.com/mcp. A keyless trial gives 20 searches a day, so you can try it before adding a key.
There is also a CLI: npx memecub. Useful when you want to search from a terminal or a script instead of inside a chat.
Option 2: write your own SKILL.md
Create a folder such as .claude/skills/meme/SKILL.md. The frontmatter holds the name and a description that tells Claude when to use it; the body holds the steps.
Keep the description trigger-focused: mention code review, standup, release notes and chat replies, so Claude picks the skill in those moments and not in every turn.
In the body, give a short procedure: understand the joke, call the search tool with two or three keywords, pick one result, return the image URL plus a one-line caption. Tell Claude to say so when nothing fits rather than inventing a URL.
Example body: 1. Read the user's message and pick 2-3 keywords. 2. Call the memecub search endpoint with those keywords. 3. Return the top result's image URL and a short caption. 4. If no result fits, say so and offer to generate one.
If you prefer MCP over a hand-written fetch step, register https://memecub.com/mcp as a server in your Claude Code config and let the skill describe when to call its search tool.
Tone and licensing rules to bake in
Most memecub memes are collected from the web: fine for personal chats, copyright stays with the original creators, not for commercial use. Add a line in SKILL.md that blocks the skill in client-facing or marketing output unless the openly licensed filter is on.
The filter shows only openly licensed images (Openverse, open-source emoji, public-domain art) that can be used commercially. If your skill runs in a work repo, make that filter the default.
When nothing in the library fits, the AI meme maker at /generate takes a character, action and caption, or a reference meme, and returns an image in about 10 seconds. It refuses real people, so keep prompts to characters and situations.
Test it like code
Ask Claude Code for a meme after a failing test, after a merged PR, and in a serious incident thread. The last one should get a refusal or a gentle option, not a joke.
Check that every reply contains a real link and a caption, and that repeated prompts do not return the same meme every time.
Watch your credit use: search costs 1 credit per call, and the free plan includes 1000 credits a month.
Let your AI find the memes
REST API, remote MCP, CLI and a skill. Try 20 searches a day without a key.
More that fit
FAQ
Is there a Claude Code meme skill on GitHub I can copy?
Several exist, including meme skills built on template APIs and ones that generate images with AI. memecub's own skill installs with `npx skills add https://memecub.com` and is the shortest route if you want search over a hosted library rather than template rendering.
Do I need an API key to start?
No. The keyless trial allows 20 searches a day, which is enough to test a skill. Add a key when you want the full monthly credit allowance.
Can Claude Code call memecub through MCP instead of a skill?
Yes. Point Claude Code at the remote MCP server https://memecub.com/mcp and it can call search directly. A skill is still useful to describe when to search and how to phrase the caption.
Can I use the memes my skill returns at work?
For internal chat, most memes are fine for personal use, but copyright stays with the original creators. For anything public or commercial, turn on the openly licensed filter or generate an image instead.
What does a search cost?
One credit per search call. The free plan includes 1000 credits a month, and paid plans start at $3/mo.