foundry-vtt-dev

foundry-vtt-dev is a skill for Claude Code from fcsouza/agent-skills. It costs 117 tokens per session (4,860 once invoked), scanned A, original, MIT.

A development guide for building modules and game systems for Foundry Virtual Tabletop version 14. A module extends a game world, while a system defines its rules, documents, sheets, dice, and related behaviour.

In plain words
What is it for?
Use it to create or migrate Foundry modules and game systems, including manifests, data models, sheets, hooks, settings, effects, regions, and compendium content.
Why use it?
It explains the version-specific structure and migration changes that can otherwise cause packages to build but fail inside Foundry. It also documents the expected files, build process, and application interfaces.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the standalone-skills plugin — 8 skills shipped together

Good fit Use it to create or migrate Foundry modules and game systems, including manifests, data models, sheets, hooks, settings, effects, regions, and compendium content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcsouza/agent-skills/foundry-vtt-dev
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fcsouza/agent-skills --skill foundry-vtt-dev
Clone the repo
git clone --depth 1 https://github.com/fcsouza/agent-skills

Made for: Claude Code.

Or install standalone-skills, the plugin that ships this one along with the rest of its 8 skills.

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 foundry-vtt-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcsouza/agent-skills/foundry-vtt-dev/github.svg)](https://agentmods.dev/skills/fcsouza/agent-skills/foundry-vtt-dev)
Your own site
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/foundry-vtt-dev"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/foundry-vtt-dev/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 foundry-vtt-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/foundry-vtt-dev"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/foundry-vtt-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,860 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.00117 $0.04860
Opus 5.5 $0.00047 $0.01944
Sonnet 5.5 $0.00023 $0.00972
Haiku 4.5 $0.00012 $0.00486

Measured yesterday against content hash 812b37383bb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

foundry-vtt-dev 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 yesterday.

The scan reads SKILL.md. This mod also ships 20 executable files (boilerplate/module/src/actor-sheet.mjs, boilerplate/module/src/main.mjs, boilerplate/module/src/socket-handler.mjs, …), 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.

skills/foundry-vtt-dev/SKILL.md · 242 lines

How it starts

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

Foundry VTT development (v14)

A package is either a module (extends any world) or a system (defines the rules: Actor and Item types, dice, combat, sheets). Both share the same document model, application framework, hooks and v14 changes. This file holds the decisions; references/ holds the detail.

The current stable build is 14.371 (November 26, 2026), a security release with breaking changes: read "Breaking changes in 14.371" in references/v14-migration.md. Check names against the v14 API docs, https://foundryvtt.com/api/v14/, before you rely on them. Foundry publishes no llms.txt or agent skill. Coming from v13? Read references/v14-migration.md first.

Building a module

  1. Copy boilerplate/module/. It builds with Vite: src/ holds code, static/ holds module.json, templates and lang files, and bun run build writes a complete dist/.
  2. Set id in static/module.json. It must match the folder name under Data/modules/.
  3. The entry point is scripts/main.mjs in dist/ (from src/main.mjs). Keep esmodules and the Vite fileName in step.
  4. Declare sub-types under documentTypes without a prefix. Foundry prefixes them with the module id, so hero becomes my-module.hero: register CONFIG.Actor.dataModels["my-module.hero"] and sheets with types: ["my-module.hero"]. Read references/module-subtypes.md.
  5. Symlink dist/ into Data/modules/<id>/, run bun run dev, enable the module in a world. bun run format and bun run lint work as shipped: biome.jsonc is what bunx ultracite init writes, plus the Foundry globals.
  6. Load CSS through the manifest with "layer": "modules". Read references/module-styling.md.
  7. After every build, check that each path in dist/module.json exists. A missing module.json, stylesheet or lang file fails silently in Foundry.

Building a system

  1. Copy boilerplate/system/. The entry point is scripts/main.mjs, declared in system.json esmodules. Run bun install and bun run build:css to compile styles/my-system.css, the stylesheet system.json lists.
  2. Declare every type in system.json documentTypes (with htmlFields and filePathFields per sub-type), and give each a TypeDataModel in CONFIG.<Doc>.dataModels. System types carry no prefix.
  3. Ship no template.json. Release 14.352 put it into its deprecation period. Read references/system-manifest.md before you move an old system off it.
  4. Set CONFIG.Actor.documentClass and CONFIG.Item.documentClass in init, and implement getRollData() so @abilities.str.mod resolves.
  5. Keep static rules data in one config.mjs assigned to CONFIG.MY_SYSTEM, and stage work across init, i18nInit, setup and ready. Read references/production-patterns.md.
  6. Dice, combat and character creation each have a reference: references/dice-system.md, references/combat-initiative.md, references/character-creation.md.
  7. Systems carry most CSS in a world. Read references/styling-and-themes.md.

Read the full file on GitHub · 242 lines

Files

What ships with it

60 files 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. yesterday Changed · +1 lines 812b37383bb1
  2. 18d ago First seen · 241 lines · 117 tokens per session scan A c44bff0da1a9

Subscribe to this mod's changes

foundry-vtt-dev is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 117 tokens to every session and 4,860 once invoked, about $0.0005 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-11-16.

Related

foundry-vtt-dev compared with skills from other repositories

foundry-vtt-dev next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
foundry-vtt-devfcsouza/agent-skillsSkill29todayMITA117Claude Code
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill13k3d agoApache-2.0A93Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.7kyesterdayMITA121Claude Code
texture-workflowarjun988/blender-skillsSkill5.8k27d agoMITA41Claude Code
motionOpenDCAI/GameFactory-3ASkill1.6kyesterdayApache-2.0A0Claude Code, Codex
gamedev-shadersericrisco/rsc-harnessSkill707yesterdayMITA102Claude Code, Codex