foundryvtt-module-scaffold
БесплатноЗапускает вложенные скриптыНе проверенLocal files only: a new FoundryVTT v13 module tree (Vite + TS + bun + biome, CI, release-please), basic/app/libwrapper variants; no GitHub repo. Use when…
от laurigates★ 61 звезда на GitHubОб этом скилле
foundryvtt-module-scaffold
Bootstrap a new FoundryVTT v13 module repo built with Vite + TypeScript +
bun + biome, leaving only the actual module logic to implement. The generated
repo passes just check (typecheck + build + lint + test) from the first commit
and distributes via the GitHub-release manifest-URL convention.
When to Use This Skill
| Use this skill when... | Use the alternative when... |
|---|---|
| Starting a new FoundryVTT module repo — CI-green TS toolchain, release-please, and a basic/app/libwrapper skeleton before writing module logic | You want the full pipeline (repo created + seeded + gitops-adopted) → foundryvtt-module |
| Spinning up a FoundryVTT module backlog idea | Adding a feature to an existing module — this creates a new repo |
The architecture it scaffolds
TypeScript source in src/ (entry src/module.ts), built to dist/<id>.mjs
via Vite library mode. vite-plugin-static-copy places module.json, lang/,
styles/ (and templates/ for the app variant) into dist/, which Foundry
serves as the module root. tsc --noEmit type-checks; Vite emits — decoupled.
- Type gate:
bun run typecheck→tsc --noEmit. Foundry globals are typed by loose local ambient shims (src/foundry-shims.d.ts), so the build is self-contained and CI-green without the (beta, git-only)fvtt-types. Verify the real Foundry API before relying on a shape — the shims are deliberately loose. Opt intofvtt-typeslater if you want richer types. - Build:
bun run build→vite build→dist/<id>.mjs+ copied assets. - Dev:
bun run dev→ Vite dev server on:30001proxying everything to Foundry on:30000except the module's own files (served with HMR). - Distribute via GitHub release:
module.jsonmanifest→releases/latest/download/module.json,download→releases/latest/download/<id>.zip. release-please bumps$.versionin bothpackage.jsonandmodule.json; the release job builds, zipsdist/, and attaches the assets. No foundryvtt.com submission is needed to install by URL (only to be listed in the in-app package browser).
Three variants
| Variant | Use when | Adds on top of basic |
|---|---|---|
basic (default) |
Settings + lifecycle behavior — the minimal well-formed module. | init/ready hooks, a registered world setting, i18n, scoped CSS. |
app |
The module has a UI panel. | An ApplicationV2/HandlebarsApplicationMixin window (src/app.ts + templates/app.hbs) and a game.settings.registerMenu button that opens it. |
libwrapper |
The module patches a core/system method. | src/patches.ts with a libWrapper.register(...) call and a manual monkey-patch fallback when lib-wrapper is absent; a relationships.recommends entry for lib-wrapper. |
Decision rule: basic for behavior driven by hooks/settings; app when the
module surfaces a window or dialog; libwrapper when it overrides a core method
(the conflict-safe way to do that on Foundry). Variants compose conceptually —
start from the closest one and add the rest by hand.
How to run
scaffold.py is stdlib-only. Run from the directory where the module should
land (the one holding the user's other module clones), or pass --dir.
Pass the repo owner and author from context (the git remote, a sibling
module's module.json, or gh api user); the built-in defaults are one
maintainer's account and would land in module.json's
url/manifest/download and authors:
python3 ${CLAUDE_SKILL_DIR}/scaffold.py --name foundryvtt-initiative-tweaks --display "Initiative Tweaks" --desc "Small quality-of-life tweaks to the combat initiative tracker." --publisher <owner> --author "<author>"
Add --variant app or --variant libwrapper for the other variants.
Flags: --name (GitHub repo, e.g. foundryvtt-x), --id (Foundry module id;
default = --name minus the leading foundryvtt-), --display (title),
--desc, --variant {basic,app,libwrapper}, --fvtt-min / --fvtt-verified
(compatibility, default 12 / 13), --publisher (repo owner), --author,
--dir (parent dir, default cwd).
It refuses to overwrite an existing directory.
Verifying a module (--verify)
python3 ${CLAUDE_SKILL_DIR}/scaffold.py --verify foundryvtt-initiative-tweaks
Re-runs the finishing-pass audit against an existing module and emits a
machine verdict (MODULE_ID_MATCH=, ESMODULES=, MANIFEST_URL=,
DOWNLOAD_URL=, RELEASE_ZIP=, DECLARED_ASSETS=, LOCKFILE=, then
ISSUE_COUNT= and STATUS=). Exit 1 on ERROR.
STATUS= |
Meaning |
|---|---|
ERROR |
Foundry cannot install, load, or update the published module — the id disagrees across module.json / vite.config.ts / src/constants.ts, esmodules names a file the build never emits, or an install URL resolves to a release asset nobody uploads. |
WARN |
It loads, but something |
Установить foundryvtt-module-scaffold в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(python3 ${CLAUDE_SKILL_DIR}/scaffold.py *)Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/check-fleet-drift.py *)Bash(git init -b main)Bash(just check *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/tests/test-template-parity.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/tests/test-manifest-invariants.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/tests/test-app-biome-format.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/tests/test-fleet-drift.sh *)Bash(bash ${CLAUDE_SKILL_DIR}/scripts/tests/test-biome-markdown-off.sh *)ReadWriteEditGrepGlobTodoWriteВложенные файлы
FAQ
Что делает скилл foundryvtt-module-scaffold?
Local files only: a new FoundryVTT v13 module tree (Vite + TS + bun + biome, CI, release-please), basic/app/libwrapper variants; no GitHub repo. Use when generating a new module's files.
Как установить скилл foundryvtt-module-scaffold?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл foundryvtt-module-scaffold запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub