一键导入
foundry-setup
Environment bootstrap and verification for the Ilaris FoundryVTT development setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Environment bootstrap and verification for the Ilaris FoundryVTT development setup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | foundry-setup |
| description | Environment bootstrap and verification for the Ilaris FoundryVTT development setup. |
A reusable skill for bootstrapping and verifying the Ilaris development environment.
Data/systems/ directorynode --version # Expect: v18+ or v20+
npm --version # Expect: v9+
git status # Expect: clean working tree or known changes
npm install
Verify: node_modules/ directory exists and contains @foundryvtt/foundryvtt-cli.
If it fails:
node_modules/ and package-lock.jsonnpm install againnpm test
Verify: All tests pass. Check output for number of test suites and tests.
If it fails:
jest.setup.js for mock configuration issuesbabel.config.cjs is present (required for ES module transforms)_spec/ dirsnpm run lint
Verify: No errors. Warnings are acceptable.
If it fails:
npm run lint auto-fixes most issuesnpm run prettier fixes formattingnpm run pack-all
Verify: All packs in comp_packs/ have updated LevelDB files.
If it fails:
_source/ JSON files are valid JSON@foundryvtt/foundryvtt-cli is installedcomp_packs/ directoriesnpm run start-foundry
Prerequisite: Create developer.env from template at .vscode/tasks-scripts/start-foundry/developer.template.env.
Windows developer.env example:
REM FoundryVTT Configuration
set PATH_TO_FOUNDRY=C:\Program Files\Foundry Virtual Tabletop\
set FILE_TO_START_FOUNDRY=Foundry Virtual Tabletop.exe
| Symptom | Likely Cause | Fix |
|---|---|---|
Cannot find module | Missing npm install | npm install |
SyntaxError: Unexpected token | Babel not configured | Check babel.config.cjs |
fvtt is not recognized | CLI not installed | npm install (it's a devDependency) |
ENOENT: no such file on pack | Missing _source/ data | Check file paths in JSON |
| Jest mock errors | Foundry globals not mocked | Check jest.setup.js |
LOCK file errors in packs | Stale lock files | Delete .ldb LOCK files, retry |
- [ ] Node.js >= 18 installed
- [ ] `npm install` completed successfully
- [ ] `npm test` — all tests pass
- [ ] `npm run lint` — no errors
- [ ] `npm run pack-all` — all packs built
- [ ] `comp_packs/` directories contain `.ldb` files
- [ ] (Optional) `developer.env` configured for Foundry launch