SkillsGrove
SkillsGrove/디자인 및 이미지/liyupi/memecub/memecub

memecub

설치

$npx skills add https://github.com/liyupi/memecub --skill memecub
$git clone --depth 1 https://github.com/liyupi/memecub.git /tmp/memecub && mkdir -p ~/.claude/skills && cp -r /tmp/memecub/skills/memecub ~/.claude/skills/memecub
이 Agent Skill을 설치해 주세요: https://github.com/liyupi/memecub/tree/4f9a0d0adf4aa2837c0f55590e49cc2a2f8fd8f0/skills/memecub — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITFind memes, 表情包 / 斗图 and reaction images and place them into articles, newsletters, docs or video scripts, or draw a custom meme with AI when none fits. Use when the user asks to add memes / 表情包 / reaction images to a piece of writing, to "配图" with memes, to find a meme for a feeling, reaction or character (熊猫头, 奶龙, Drake, This Is Fine…), or to make / generate a meme (做表情包). Searches the memecub library over HTTP with curl; every result says whether it is cleared for commercial use.
아래 SKILL.md는 liyupi/memecub(커밋 4f9a0d0)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Cyber Koi Limited. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

memecub: memes for writing

memecub covers trending memes: Chinese 表情包 / 斗图 (熊猫头, 奶龙, 金馆长, 吗喽…), English reaction memes and templates (Drake, This Is Fine, Doge…), plus openly licensed emoji and art.

  • Memes collected from the web: license.commercial_use: false.
  • Openly licensed images: license.commercial_use: true, with attribution (a ready credit line) when license.attribution_required is true.

Each result has a markdown field that already contains the credit line when one is required.

How to call it

Everything goes through one HTTPS endpoint; curl is enough. No key is needed to try it (20 searches a day per IP). With a key (MEMECUB_API_KEY) each search costs 1 credit from the user's balance (a free account gets 1,000 credits a month) and also covers their private library. The user can get a key with npx memecub login --print or at https://memecub.com/dashboard?tab=keys:

curl -sG https://memecub.com/api/v1/search \
  --data-urlencode "q=无语" -d limit=8 -d min_size=150 \
  ${MEMECUB_API_KEY:+-H "Authorization: Bearer $MEMECUB_API_KEY"}

The response is JSON: {"data": [{id, title, url, width, height, kind, license: {commercial_use, attribution_required, …}, attribution, markdown}, …], "total": …}.

Query parameters:

Parameter Use
q 1–3 words describing the reaction or character
limit up to 50
min_size=150 skip images too small for an article
kind=meme / kind=gif only memes / only animated memes (when emoji or photos crowd the results)
commercial=1 only images cleared for commercial use
no_credit=1 only commercially usable images that need no credit line
private=1 only the user's own uploads (needs a key)
profanity=1 also return memes whose captions contain swearing (hidden by default; only if the user asks)

If a memecub MCP server is connected, its search_memes tool takes the same options and you can use it instead of curl.

Placing memes into an article

Do the reading yourself; only call memecub for search. This keeps cost low and gives better picks.

  1. Read the whole piece. Note its language, tone, audience, and whether it is commercial (ads, sponsored posts, client work).
  2. Pick the spots. Default to one image per 400–600 words (Chinese: per 600–1000 characters), at most one per section, never more than the user asked for. Good spots: a punchline, a surprise or reveal, a pain point the reader recognizes, a win, an ironic aside. Skip the title, the first sentence, code blocks, tables and anything solemn.
  3. Describe each spot as a reaction, not a topic. Search for what the reader should feel. Chinese 表情包 searches work best as short 2–4 character phrases: 无语, 裂开, 震惊, 摸鱼, 打工人, 崩溃, 感动哭了. English: facepalm, mind blown, this is fine, side eye. For a named character (熊猫头, 奶龙, Drake) or the user's own mascot, search the name too.
  4. Search in the article's language first, 2–3 phrasings per spot, with min_size=150. Chinese articles get Chinese 表情包 from Chinese queries; English queries mostly return English memes and emoji, so use them only as a fallback. For commercial pieces add commercial=1 if the user wants to stay safe.
  5. Choose. Prefer, in order: matches the reaction precisely; the caption (title) fits the sentence; visual variety across the article (don't use the same character twice in a row). Never reuse an image in one article.
  6. Insert each image on its own line right after the paragraph it reacts to, with a blank line before and after, using the result's markdown field unchanged. It already includes the credit line when the license requires one; do not strip it.
  7. Report back with a short list: where each image went, which image, and whether it is cleared for commercial use. Mention any spot you skipped because nothing fit well. Do not invent images or URLs.

One-shot alternative

If the user has a key and just wants it done server-side:

curl -s -X POST https://memecub.com/api/v1/match \
  -H "Authorization: Bearer $MEMECUB_API_KEY" -H "Content-Type: application/json" \
  -d '{"text": "<the article, JSON-escaped>", "count": 4, "commercial": false}'

The response has data.markdown (the article with memes inserted) and data.slots (each spot, the chosen meme, alternatives, and placed: false if the sentence could not be found). It costs 20 credits per image actually placed (spots it could not fill and failed runs are not charged). Doing the reading yourself and calling search per spot costs 1 credit each, so prefer that.

Finding a single meme

For "find me a meme for X": search 2–3 phrasings, show the top 3–5 as Markdown images with whether each is cleared for commercial use, and let the user choose.

Making a custom meme with AI

When nothing in the library fits after 2–3 searches, or the user explicitly asks for a meme of their own (their mascot, a specific joke, an English version of a Chinese meme), memecub can draw one. It needs MEMECUB_API_KEY, costs 500 credits per image (refunded if generation fails or is refused) and takes 10–30 seconds, so search first and confirm with the user before generating more than one.

curl -s -X POST https://memecub.com/api/v1/generate \
  -H "Authorization: Bearer $MEMECUB_API_KEY" -H "Content-Type: application/json" \
  -d '{"caption": "Works on my machine", "action": "a cat in a hoodie shrugging at a burning server", "style": "3d"}'
  • caption: the words drawn on the meme, up to 30 characters, in the article's language. action: what the picture shows, up to 200 characters. At least one is required.
  • style (optional): panda (熊猫头 face meme), photo, 3d, anime, sticker; left out, memecub picks one.
  • ref (optional): an id from a search result, to make a new version of that meme's character with a different caption or pose.
  • The response is {"data": {"meme": {id, url, markdown, …}, "style"}}; the image is saved to the user's private library and its file metadata marks it as AI-generated (no visible label). Use data.meme.markdown like a search result.
  • It refuses recognizable real people, sexual, violent or political content (HTTP 422, nothing charged). Tell the user the reason; don't rephrase to get around it.

With the MCP server use the generate_meme tool; with the CLI, npx memecub generate "<caption>" --action "…" [--ref <id or image file>] --out meme.jpg.

Rules

  • Only use images returned by memecub. Never hotlink or suggest images from elsewhere as "free to use".
  • Keep credit lines whenever attribution_required is true.
  • If the user says the piece is commercial and you used any commercial_use: false image, say so once in your report and offer commercial=1 alternatives.
  • Images marked private: true belong to the user's private library: the user declared they have rights to them. Remind the user once if such an image's declared license is non-commercial (e.g. cc-by-nc-sa) and the article looks commercial.
  • If results are thin, say so and try other phrasings; memecub fetches more images for that query in the background, so retrying in a minute can help.
  • On HTTP 429 without a key, the keyless daily limit is used up: tell the user to run npx memecub login --print (or create a key at https://memecub.com/dashboard?tab=keys) and set MEMECUB_API_KEY. On HTTP 402 the user's credits ran out: point them to https://memecub.com/pricing. Do not retry in a loop.
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Cyber Koi Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.