tests

A code area containing automated checks for Bloxforge, including tests for tools, runtime connections, simulations, and multiplayer sessions.

In plain words
What is it for?
Use it when working in the tests/ folder or investigating how the project checks assertions, network state, runtime life cycles, and tool behavior.
Why use it?
It gives developers a starting point for understanding or changing the project’s test code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/princeofscale/bloxforge/tests
Any agent
npx skills add princeofscale/bloxforge --skill tests
Clone the repo
git clone --depth 1 https://github.com/princeofscale/bloxforge

Made for: Claude Code, Codex.

Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.01177
Opus 5 $0.00010 $0.00589
Sonnet 5 $0.00004 $0.00235
Haiku 4.5 $0.00002 $0.00118

Measured 2d ago against content hash 1baa64a24a73, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tests 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 2d 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.

.claude/skills/generated/tests/SKILL.md · 90 lines

How it starts

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

Tests

62 symbols | 6 files | Cohesion: 82%

When to Use

  • Working with code in tests/
  • Understanding how assert, assertContains, waitForEditPeer work
  • Modifying tests-related functionality

Key Files

File Symbols
tests/auto-install-plugin-e2e.mjs assert, waitPortClosed, compareFiles, removeVariantFiles, launchStudioPlace (+25)
tests/studio-tooling-smoke.mjs assertNoError, runEditModeToolSmoke, isPortOpen, waitPortClosed, backupPluginFiles (+5)
tests/lib/mcp-client.mjs assert, assertContains, McpClient, start, _waitForLog (+4)
tests/runtime-bridge-lifecycle.mjs waitForRoles, waitForNoRuntime, assertEditBridgesAbsent, assertRuntimeEvalWorks, startDirectPlay (+2)
tests/simulation-state-lifecycle.mjs networkState, assertNetworkValues, assertDeviceDefault, assertDeviceActive, expectToolFailure
tests/multiplayer-test-lifecycle.mjs pickInstanceId

Entry Points

Start here when exploring this area:

  • assert (Function) — tests/lib/mcp-client.mjs:182
  • assertContains (Function) — tests/lib/mcp-client.mjs:187
  • waitForEditPeer (Function) — tests/lib/mcp-client.mjs:215
  • startPlaytestAndWait (Function) — tests/lib/mcp-client.mjs:230
  • McpClient (Class) — tests/lib/mcp-client.mjs:48

Key Symbols

Symbol Type File Line
McpClient Class tests/lib/mcp-client.mjs 48
assert Function tests/lib/mcp-client.mjs 182
assertContains Function tests/lib/mcp-client.mjs 187
waitForEditPeer Function tests/lib/mcp-client.mjs 215
startPlaytestAndWait Function tests/lib/mcp-client.mjs 230
start Method tests/lib/mcp-client.mjs 64
_waitForLog Method tests/lib/mcp-client.mjs 107
stop Method tests/lib/mcp-client.mjs 171
waitForRoles Function tests/runtime-bridge-lifecycle.mjs 7
waitForNoRuntime Function tests/runtime-bridge-lifecycle.mjs 20
assertEditBridgesAbsent Function tests/runtime-bridge-lifecycle.mjs 33
assertRuntimeEvalWorks Function tests/runtime-bridge-lifecycle.mjs 52
startDirectPlay Function tests/runtime-bridge-lifecycle.mjs 69
startDirectMultiplayer Function tests/runtime-bridge-lifecycle.mjs 87
endDirectTest Function tests/runtime-bridge-lifecycle.mjs 105
networkState Function tests/simulation-state-lifecycle.mjs 18
assertNetworkValues Function tests/simulation-state-lifecycle.mjs 22
assertDeviceDefault Function tests/simulation-state-lifecycle.mjs 29
assertDeviceActive Function tests/simulation-state-lifecycle.mjs 34
expectToolFailure Function tests/simulation-state-lifecycle.mjs 39

Read the full file on GitHub · 90 lines

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. 2d ago First seen · 90 lines · 20 tokens per session scan A 1baa64a24a73

Subscribe to this mod's changes

tests is a skill published in the GitHub repository princeofscale/bloxforge (5 stars, last pushed 5d ago), licensed MIT. It adds 20 tokens to every session and 1,177 once invoked, about $0.0001 per session on Opus 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.