Agent Skillsanymouschina/TapCanvas › tapcanvas-collage-local

tapcanvas-collage-local

GitHub

本地 Python Pillow 脚本,用于将多张分镜或角色卡合并为网格拼贴图,并自动添加角色名称标签。支持本地文件与 URL 输入,无需调用 AI 模型,确定性强。

apps/agents-cli/skills/tapcanvas-collage-local/SKILL.md anymouschina/TapCanvas

Trigger Scenarios

需要将多个故事板帧合并为网格图片 需要生成带角色名标签的角色卡拼贴

Install

npx skills add anymouschina/TapCanvas --skill tapcanvas-collage-local -g -y
More Options

Non-standard path

npx skills add https://github.com/anymouschina/TapCanvas/tree/main/apps/agents-cli/skills/tapcanvas-collage-local -g -y

Use without installing

npx skills use anymouschina/TapCanvas@tapcanvas-collage-local

指定 Agent (Claude Code)

npx skills add anymouschina/TapCanvas --skill tapcanvas-collage-local -a claude-code -g -y

安装 repo 全部 skill

npx skills add anymouschina/TapCanvas --all -g -y

预览 repo 内 skill

npx skills add anymouschina/TapCanvas --list

SKILL.md

Frontmatter
{
    "name": "tapcanvas-collage-local",
    "description": "Use local Python Pillow to compose storyboard\/role-card collages with per-cell role-name labels. No model call needed."
}

TapCanvas Local Collage

Use this skill when the task is:

  • merge multiple storyboard frames into one grid image
  • merge role-card images and add role-name labels
  • avoid model-based collage generation

This skill is local-first and deterministic. It does not call any model API.

Prerequisites

  • Python 3.9+
  • Pillow

Install:

python3 -m pip install --upgrade pillow

Script

Path:

skills/tapcanvas-collage-local/scripts/collage.py

Input modes

You can pass image inputs as:

  • local file paths
  • HTTP/HTTPS URLs

Usage examples

  1. 2x2 collage with role labels:
python3 skills/tapcanvas-collage-local/scripts/collage.py \
  --input ./tmp/shot1.png \
  --input ./tmp/shot2.png \
  --input ./tmp/shot3.png \
  --input ./tmp/shot4.png \
  --label "真宫寺唯" \
  --label "萧夜" \
  --label "真宫寺唯" \
  --label "萧夜" \
  --output ./tmp/role-collage.png \
  --grid 2 \
  --cell-size 640 \
  --divider-width 4 \
  --divider-color "#ffffff"
  1. URL inputs, auto grid:
python3 skills/tapcanvas-collage-local/scripts/collage.py \
  --input "https://example.com/a.png" \
  --input "https://example.com/b.png" \
  --input "https://example.com/c.png" \
  --output ./tmp/storyboard-collage.png \
  --grid auto

Behavior

  • Fills each cell with center-crop + resize (stable visual layout).
  • Draws a semi-transparent dark label strip at cell bottom.
  • Draws per-cell label text in white.
  • If labels are fewer than images, remaining cells are unlabeled.
  • If labels are more than images, extra labels are ignored.

Output

  • Default output format: PNG.
  • Ensure output path parent directories exist (script auto-creates).

Version History

  • 1.0.0 Current 2026-07-24 20:46

Same Skill Collection

apps/agents-cli/skills/aesthetic-audit/SKILL.md
apps/agents-cli/skills/agent-builder/SKILL.md
apps/agents-cli/skills/agents-team-book-metadata/SKILL.md
apps/agents-cli/skills/agents-team/SKILL.md
apps/agents-cli/skills/code-review/SKILL.md
apps/agents-cli/skills/cognitive-memory/SKILL.md
apps/agents-cli/skills/evolver/SKILL.md
apps/agents-cli/skills/generate-media/SKILL.md
apps/agents-cli/skills/khazix-writer/SKILL.md
apps/agents-cli/skills/long-running-app-harness/SKILL.md
apps/agents-cli/skills/mcp-builder/SKILL.md
apps/agents-cli/skills/pdf/SKILL.md
apps/agents-cli/skills/skill-creator/SKILL.md
apps/agents-cli/skills/tapcanvas-api/SKILL.md
apps/agents-cli/skills/tapcanvas-continuity/SKILL.md
apps/agents-cli/skills/tapcanvas-demo-patterns/SKILL.md
apps/agents-cli/skills/tapcanvas-design-to-web/SKILL.md
apps/agents-cli/skills/tapcanvas-prompt-specialists/SKILL.md
apps/agents-cli/skills/tapcanvas-public-chat/SKILL.md
apps/agents-cli/skills/tapcanvas-storyboard-expert/SKILL.md
apps/agents-cli/skills/tapcanvas-video-prompting/SKILL.md
apps/agents-cli/skills/tapcanvas-visual-focus/SKILL.md
apps/agents-cli/skills/tapcanvas-workflow-orchestrator/SKILL.md
apps/agents-cli/skills/tapcanvas-replicate/SKILL.md

Metadata

Files
0
Version
1.0.0
Hash
f2214e7f
Indexed
2026-07-24 20:46

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 22:09
浙ICP备14020137号-1 $Гость$