fvtt-mcp-molten5e: Skill for Claude Code

.claude/skills/token-cutout/SKILL.md

token-cutout is a skill for Claude Code from Txpple/fvtt-mcp-molten5e. It costs 139 tokens per session (1,037 once invoked), scanned A, original, MIT.

An image-preparation tool that removes a baked-in background from a token or portrait and saves a transparent RGBA PNG. A token is the image representing a character or creature on a virtual tabletop.

In plain words
What is it for?
Use it to cut out token artwork, preserve or remove a cast shadow, upload the result to Foundry, and assign it as an actor's token image.
Why use it?
It makes images with green screens, flat colors, or busy backgrounds usable on a map without a visible rectangular backdrop.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Txpple/fvtt-mcp-molten5e's own configuration. It tells Claude Code how to work on fvtt-mcp-molten5e itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fvtt-mcp-molten5e configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Txpple/fvtt-mcp-molten5e. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Txpple/fvtt-mcp-molten5e/main/.claude/skills/token-cutout/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Txpple/fvtt-mcp-molten5e

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for token-cutout

README.md
[![agentmods](https://agentmods.dev/badge/skills/txpple/fvtt-mcp-molten5e/token-cutout/github.svg)](https://agentmods.dev/skills/txpple/fvtt-mcp-molten5e/token-cutout)
Your own site
<a href="https://agentmods.dev/skills/txpple/fvtt-mcp-molten5e/token-cutout"><img src="https://agentmods.dev/badge/skills/txpple/fvtt-mcp-molten5e/token-cutout/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for token-cutout

Your own site · 80×15
<a href="https://agentmods.dev/skills/txpple/fvtt-mcp-molten5e/token-cutout"><img src="https://agentmods.dev/badge/skills/txpple/fvtt-mcp-molten5e/token-cutout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,037 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00139 $0.01037
Opus 5.5 $0.00056 $0.00415
Sonnet 5.5 $0.00028 $0.00207
Haiku 4.5 $0.00014 $0.00104

Measured 1mo ago against content hash ecc6d5be9173, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

token-cutout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (token_cutout.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/token-cutout/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Token cutout (Foundry install half)

The cutout itself moved to fvtt-mcp-artificer on 2026-09-19. Call cutout-image there (chroma key for flat plates, rembg AI matte fallback, 512 square, magenta preview). Tokens generated or edited with generate-image / edit-image in kind: "token" arrive already cut. There is no script in this folder any more; token_cutout.py lives at fvtt-mcp-artificer/scripts/token_cutout.py and the tool is its only caller.

Read the *_preview.png the tool reports before trusting the edge: a colour halo means a fringe survived (ask for erode: 1 or method: "rembg"); eaten hair or a thin blade means over-cut (prefer rembg). Coverage near 0% or 100% means the key was misread; pass color.

Put it in Foundry

  1. upload-asset the PNG to worlds/<world>/assets/tokens/<name>.png (get <world> from get-world-info).
  2. Assign it. set-actor-art sets the portrait AND the prototype token in one call — imagePath is the portrait and doubles as the token texture unless tokenImagePath overrides it. So by default both get set; say so plainly before you run it. Find the actor with list-actors / get-actor.
    • Token-only, keeping the existing portrait, IS possible — read the current portrait back and pass it straight through. export-actor to a scratch path dumps the full document (img, prototypeToken, folder, ownership), so: imagePath = the img you just read, tokenImagePath = the new cutout. The portrait write becomes a no-op and only the token changes. (export-actor is also how you tell two same-named actors apart — folder gives it away.)
    • Portrait-only is the plain applyToToken: false.
  3. Reset the inherited prototype config — set-actor-art only swaps the texture. A module or compendium actor keeps the rest of its prototype token exactly as imported, so fresh art lands on someone else's settings. The 2024 dnd-monster-manual actors ship a dynamic ring on and texture.scaleX/scaleY at 2 (their art is a small subject on a big plate; a 512-square cutout is already trimmed and centred, so 2 overflows the token's footprint and the ring draws a dark disc under it) — and lockRotation: true, so the token won't turn to face its movement like every other token at the table. After every art swap, update-actor with tokenScale: 1, tokenRing: false, tokenAutoRotate: true (house rules — _shared/authoring-policy.md rule 10).
  4. Prototype vs placed. Setting the prototype only affects newly dropped tokens. A copy already sitting on a scene won't change — list-tokens the scene and patch each with update-token (scale, ring, lockRotation: false), or have the user delete + re-drop it.
  5. Check which way the art faces before you enable auto-rotate. Foundry treats the top of the image as the token's front at rotation 0, so art drawn head-down (or side-on) will move backwards once auto-rotate is live. Look at the cutout and say so — the fix is rotating the source PNG, which is the user's call, not a silent edit.

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -100 lines · -61 tokens per session ecc6d5be9173
  2. 1mo ago Changed · +18 lines def7f77008c6
  3. 2mo ago Changed · +31 lines · +19 tokens per session 3edfb431c4e6
  4. 2mo ago First seen · 108 lines · 181 tokens per session scan A 29295c34c98f

Subscribe to this mod's changes

token-cutout is a skill published in the GitHub repository Txpple/fvtt-mcp-molten5e (0 stars, last pushed 1mo ago), licensed MIT. It adds 139 tokens to every session and 1,037 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

token-cutout compared with skills from other repositories

token-cutout next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
token-cutoutTxpple/fvtt-mcp-molten5eSkill01mo agoMITA139Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
systematic-debuggingobra/superpowersSkill314k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex