技能图谱SKILLSGROVE
技能图谱/视频制作/kajisho5/thumbnail-skill/thumbnail-skill

thumbnail-skill

安装

$npx skills add https://github.com/kajisho5/thumbnail-skill --skill thumbnail-skill
$git clone --depth 1 https://github.com/kajisho5/thumbnail-skill.git /tmp/thumbnail-skill && mkdir -p ~/.claude/skills && cp -r /tmp/thumbnail-skill/. ~/.claude/skills/thumbnail-skill
请帮我安装这个 Agent Skill:https://github.com/kajisho5/thumbnail-skill/tree/3d3ba3b7d5154a1aca934fd973f331bec2b6fa0e/ ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITDeterministic thumbnail rendering execution Skill for the AI Video Production Ecosystem. Use it when a caller (normally video-production-agent) has already decided exactly what a thumbnail should show - which still image or which explicit video timestamp, what text, what layout - and needs it rendered safely to PNG/JPEG with provenance. Do NOT use it to choose what a thumbnail should show, pick a "best" video frame, detect faces, generate a title, judge design quality, or run arbitrary ffmpeg/image commands (it refuses them); those decisions belong to the caller.
以下 SKILL.md 内容转载自 kajisho5/thumbnail-skill(提交 3d3ba3b),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 kajisho5 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

thumbnail-skill

Machine interface: thumbnail run - --json with a {"tool": "thumbnail/<name>", "params": {...}} document on stdin; exactly one response document on stdout. thumbnail skill --json prints the contract, thumbnail doctor --json the environment (fonts, ffmpeg-skill, path policy).

Tools: thumbnail/validate (structural check only), thumbnail/render (canvas + assets + elements -> PNG/JPEG), thumbnail/extract_frame (one video timestamp -> one frame, nothing else), thumbnail/render_batch (one template per output.preset plus a CSV or inline rows -> one thumbnail per row and target; {{column}} placeholders; text_fit shrinks a name down to min_font_size, never cuts it; nothing is written until every row is checked), thumbnail/render_variants (thumbnail render req.json --variants N: N documented variants, each checked at 320 px wide for text height and, through qc-skill, contrast; a failing variant is flagged and kept), thumbnail/render_layers (thumbnail render req.json --layers DIR: every composed layer as a PNG with alpha plus layers.json, verified to rebuild the thumbnail pixel for pixel), thumbnail/choose_frame (ranks a detection-skill detections@1 face document's frames by eyes open, sharpness, exposure, angle and size; closed eyes rank last; detects nothing itself), thumbnail/place_text (moves one text element to the first position clear of every face; refuses rather than cover one), and the optional thumbnail/generate_background (one AI background image from a caller-written prompt and seed, FLUX.2 [klein] 4B, only when thumbnail doctor --json -> checks.background_providers says available; otherwise it is refused with TOOL_ERROR / provider_unavailable, and nothing else changes). Use its output as an ordinary image asset; report its provenance (engine, licence). A brand kit (options.kit / --kit: a Velisa kit@1 file or an ffmpeg-skill brand.json) fills the text colour, band and stroke colours, canvas background, font_id and a kit-logo element that a render's document leaves out; the document's own values win, and response.kit lists what was used and every kit key that was not (unmapped, unused).

Rules for a calling agent:

  1. Decide everything about content before calling this skill: which still image, or which exact video timestamp (asset.timestamp, seconds); what the text says (with literal \n for line breaks — this skill never wraps or reflows text); where every element sits (position, size, z_index). This skill renders exactly what it is given and searches for nothing.
  2. Reference fonts by font_id from the registry (thumbnail skill --json -> fonts.font_ids, or thumbnail doctor --json for what actually resolves on this machine). A request never carries a font path; an unresolvable font_id fails MISSING_INPUT, never a silent substitution.
  3. Never send command, argv, shell, filter/filter_complex/vf/af, executable, env, or HTML/CSS/JS: the request is rejected with INVALID_REQUEST wherever such a key appears.
  4. Keep outputs inside the workspace (--workspace / options.workspace), never at an input path; set overwrite: true deliberately. Restrict inputs with options.allowed_input_roots when the caller's own inputs come from an untrusted or shared location.
  5. Read output, sha256, width/height, reused and provenance from the response; the exit code is 0 only when ok is true. For a platform target, set output.preset (youtube, youtube-shorts, tiktok, instagram-reels, instagram-feed, x; limits in thumbnail skill --json -> platform_presets): it supplies the canvas size unless you give both width and height, and an output over the preset's limits fails VALIDATION_ERROR (preset_limit_exceeded). A video_frame asset needs ffmpeg-skill reachable (env var THUMBNAIL_SKILL_FFMPEG_SKILL_DIR or --ffmpeg-skill); a still-image-only document never needs it.

See README.md for the ThumbnailDocument schema, element/font/output tables, error codes, security boundary and the responsibility split with video-production-agent and the other media skills.

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 kajisho5

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.