forge-preflight

forge-preflight is a command for Claude Code from vstrapasson/rpg-marketplace. It costs 20 tokens per session (380 once invoked), scanned A, original, MIT.

A pre-build checklist for an RPG Foundry Forge project. It checks whether local files, the game world connection, creature data, and optional token or lighting tools are available before compiling.

In plain words
What is it for?
Use it to check a named unit, confirm the campaign vault and links load, verify Foundry and creature compendium access, and identify whether token artwork or scene lighting will be skipped.
Why use it?
It prevents a build from starting when a required dependency is missing or the Foundry Virtual Tabletop connection is unavailable. It reports a go/no-go result without building anything.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rpg-foundry-forge plugin — 9 skills, 5 commands, 3 agents shipped together

Good fit Use it to check a named unit, confirm the campaign vault and links load, verify Foundry and creature compendium access, and identify whether token artwork or scene lighting will be skipped.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vstrapasson/rpg-marketplace
Claude Code
/plugin install rpg-foundry-forge

Made for: Claude Code.

Or install rpg-foundry-forge, the plugin that ships this one along with the rest of its 9 skills, 5 commands, 3 agents.

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 forge-preflight

README.md
[![agentmods](https://agentmods.dev/badge/commands/vstrapasson/rpg-marketplace/forge-preflight/github.svg)](https://agentmods.dev/commands/vstrapasson/rpg-marketplace/forge-preflight)
Your own site
<a href="https://agentmods.dev/commands/vstrapasson/rpg-marketplace/forge-preflight"><img src="https://agentmods.dev/badge/commands/vstrapasson/rpg-marketplace/forge-preflight/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 forge-preflight

Your own site · 80×15
<a href="https://agentmods.dev/commands/vstrapasson/rpg-marketplace/forge-preflight"><img src="https://agentmods.dev/badge/commands/vstrapasson/rpg-marketplace/forge-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 380 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.00020 $0.00380
Opus 5.5 $0.00008 $0.00152
Sonnet 5.5 $0.00004 $0.00076
Haiku 4.5 $0.00002 $0.00038

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

Security

Grade A, and why

forge-preflight 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.

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.

plugins/rpg-foundry-forge/commands/forge-preflight.md · 26 lines

What it actually says

/forge-preflight [unit note name]

Run the dependency matrix and present a go/no-go report. Do NOT build.

Script-side checks (vault loads, the unit resolves with no broken links, ComfyUI reachable). cwd = the user's vault root:

PLUGIN="${CLAUDE_PLUGIN_ROOT}"
node --input-type=module <<EOF
import { runLocalPreflight } from "${PLUGIN}/scripts/lib/preflight.mjs";
const r = await runLocalPreflight(process.cwd(), process.argv[1] || "");
console.log(JSON.stringify(r, null, 2));
EOF

(Pass the unit name as the argument when the user named one.)

MCP-side checks (do these by calling the tools):

  1. get-world-info — if it errors "Foundry VTT module not connected", that's a 🔴 blocker; tell the user to reload the Foundry world (F5) or toggle Game Settings → Foundry MCP Bridge → Enable, then /mcp reconnect.
  2. list-compendium-packs — confirm the canonical creature pack (e.g. pf2e.pathfinder-monster-core) exists (🔴 for actors if absent).
  3. Inspect update-token for an imagePath field, and whether get-scene-geometry/set-scene-lighting exist — optional; if absent, note that token art / lighting will be skipped.

Present the combined matrix (✅ ok / ⚠️ warn / 🔴 fail) and a clear verdict: GO only if all critical checks pass; otherwise list exactly what to fix. See skills/rpg-forge-conductor/references/preflight-checks.md.

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 First seen · 26 lines · 20 tokens per session scan A acdd81cedb0e

Subscribe to this mod's changes

forge-preflight is a command published in the GitHub repository vstrapasson/rpg-marketplace (2 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 380 once invoked, about $0.0001 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-09-28.

Related

forge-preflight compared with commands from other repositories

forge-preflight next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
forge-preflightvstrapasson/rpg-marketplaceCommand21mo agoMITA20Claude Code
editor-lifecycle-and-observabilityAlex-Rachel/TEngineCommand2.4k16d agoMITA0Claude Code
debug-on-questmeta-quest/Meta-Spatial-SDK-SamplesCommand2813d agoMITA0GitHub Copilot
hotfixstriderZA/OpenCodeGameStudiosCommand114yesterdayMITA9Claude Code
bug-reportstriderZA/OpenCodeGameStudiosCommand114yesterdayMITA7Claude Code
bug-triageMRCalderon3D/everything-game-dev-codeCommand10428d agoMITA14Claude Code
godot-build-fixMRCalderon3D/everything-game-dev-codeCommand10428d agoMITA15Claude Code