SkillsGrove
SkillsGrove/디자인 및 이미지/genfeedai/skills/thumbnail-compositor

thumbnail-compositor

설치

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

요약

원문 설명 · MITComposite three branded thumbnail variants locally from a backdrop, up to four words of exact text and the signature at the profile's ratio, with headless Chrome. No image API. Triggers on "render the thumbnail", "make the three thumbnail variants", "composite the thumbnail", "shorts cover image", "put the logo and text on the thumbnail".
아래 SKILL.md는 genfeedai/skills(커밋 38fcdb2)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Genfeed.ai. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Thumbnail Compositor

You draw the exact layers of a thumbnail: backdrop, text and signature. youtube-thumbnail decides what the three variants should be; you turn them into files. Image models misspell text and redraw logos, so text and marks are composited here, never generated.

This is a worker skill: one script, JSON in, files out. It uses a local Chrome or Chromium, calls no API and reads no secrets.


Run It

# check the plan without drawing anything
bun run scripts/compose.ts --spec thumbs.json --out out/thumbs --dry-run

# render variant-a/b/c.png plus a small related-video preview of each
bun run scripts/compose.ts --spec thumbs.json --out out/thumbs

# export at 3x (3840 x 2160 for 16:9)
bun run scripts/compose.ts --spec thumbs.json --out out/thumbs --scale 3

Requires Bun 1.1+ and Chrome or Chromium (CHROME_PATH if it is in an unusual place). Zero npm packages.


The Spec

{
  "mode": "recap",
  "profile": {
    "version": "2026-10-1",
    "accent": "#7c5cff",
    "dark": "#0b0b10",
    "light": "#f5f5f7",
    "fontFamily": "'Inter', Arial, sans-serif",
    "fontFile": "./fonts/Brand-Black.woff2",
    "maxWords": 4,
    "uppercase": true,
    "signature": { "file": "./brand/mark.svg", "corner": "top-left", "widthRatio": 0.075, "insetRatio": 0.0375 }
  },
  "variants": [
    { "name": "Decisive outcome", "hypothesis": "The verdict is the picture", "text": ["FREE RENDER", "NO BILL"], "accentWord": "FREE", "backdropFile": "./art/a.png" },
    { "name": "Firsthand proof", "hypothesis": "The number on screen", "text": ["$0 PER CLIP"], "accentWord": "$0", "backdropGradient": ["#101820", "#2a1a4a"] },
    { "name": "Meaningful tradeoff", "hypothesis": "Two options in tension", "text": ["CLOUD OR LOCAL"], "accentWord": "LOCAL" }
  ]
}
Field Notes
mode livestream and recap are 1280 x 720 (16:9). short is 1080 x 1920 (9:16 cover).
variants Exactly three. The script refuses any other number.
text Optional. At most 2 lines and at most maxWords words in total (default 4). Exact spelling is yours to check.
accentWord One word or token in the accent color. Must appear in the text.
backdropFile Local image from your own tool or a real asset. Falls back to backdropGradient, then the profile's dark color.
scrim 0 to 0.9 darkening layer over the backdrop for text contrast. Default 0.35.
signature SVG or PNG, placed by ratio of canvas width: size = widthRatio x width, inset = insetRatio x width, same inset on both edges. 7.5% and 3.75% give 96 px and 48 px at 1280 wide.

Profile values should come from the channel's video brand profile. Do not restate a rule from memory.


Workflow

  1. Get the three variants from youtube-thumbnail: hypothesis, text, backdrop, exclusions. One truthful promise, three different angles.
  2. Make the artwork layer (backdrop and subject only) with whatever tool the owner uses, or use a real screenshot or photo they own. No words and no logos inside the artwork.
  3. Fill the spec. Use the profile's mark color for the mode: live color for livestreams, edited-video color for recaps and Shorts.
  4. Dry run, then render.
  5. Look at every file. Open each full-size PNG and each .small.png. The small preview is 168 px wide for 16:9, the related-video size. Text must still read there. Check spelling, margins and that the signature appears once.
  6. Fix the spec and re-render until all three pass. Do not hand over an unviewed file.
  7. Hand off with the manifest: profile version, fonts, mode, export size, and which checks you made. Say separately whether anyone watched it next to the real title.

Rules

  • Do not invent product screenshots, benchmarks, results or endorsements. Use real proof or a clearly illustrative metaphor.
  • Do not use a person's face unless the profile allows it and the owner approved the likeness.
  • Never call a variant the winner before a test result exists.
  • YouTube's thumbnail file rules and test eligibility change. Recheck them at release; see youtube-thumbnail.
  • Export is PNG. Convert to JPEG under the platform's size limit yourself if needed.

Output

manifest.json lists mode, profileVersion, fonts, and per variant the name, hypothesis, text, export size and file names. Files: variant-a.png, variant-a.small.png and the same for b and c.

Limits

  • One layout: text bottom-left, signature in a corner. It is a clean default, not a design system.
  • Brand fonts need fontFile; an uninstalled family falls back silently.
  • No JPEG export and no layered source file. Keep the spec and the artwork as the editable source.

Genfeed Integration

Works standalone. With a Genfeed workspace, upload the chosen file with upload_media. Drafts only; never publish or schedule without the owner's explicit confirmation.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Genfeed.ai

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.