world-of-claudecraft: Instructions file for Claude Code

CLAUDE.md

world-of-claudecraft CLAUDE.md is an instructions file for Claude Code from levy-street/world-of-claudecraft. It costs 7,179 tokens per session, scanned A, original, MIT.

A project guide for a classic-style multiplayer game and a reinforcement-learning environment powered by one deterministic TypeScript simulation.

In plain words
What is it for?
Use it when developing the simulation, game client, Three.js graphics, user interface, admin dashboard, networking, or tests.
Why use it?
It maps the major systems and explains the architecture so changes to gameplay, rendering, controls, storage, or administration remain compatible.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is levy-street/world-of-claudecraft's own configuration. It tells Claude Code how to work on world-of-claudecraft itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything world-of-claudecraft configures →

About the project

World of ClaudeCraft is a browser-based classic-style multiplayer online game with a persistent shared world that can also run locally or be controlled through a Python reinforcement-learning interface. Players can quest and raid in the online world, while developers can host it themselves and train AI agents to play. The catalogue skills, agents, instructions, hooks, and setting support workflows for interacting with and developing the game.

levy-street/world-of-claudecraft · 2,251 stars · on GitHub · worldofclaudecraft.com

Reuse

Borrowing it

Nothing to install: this file belongs to levy-street/world-of-claudecraft. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/levy-street/world-of-claudecraft/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/levy-street/world-of-claudecraft

Made for: Claude Code.

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 world-of-claudecraft CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/levy-street/world-of-claudecraft/claude-md/github.svg)](https://agentmods.dev/instructions/levy-street/world-of-claudecraft/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/levy-street/world-of-claudecraft/claude-md"><img src="https://agentmods.dev/badge/instructions/levy-street/world-of-claudecraft/claude-md/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 world-of-claudecraft CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/levy-street/world-of-claudecraft/claude-md"><img src="https://agentmods.dev/badge/instructions/levy-street/world-of-claudecraft/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,179 This file is loaded in full into every session.
When invoked 7,179 The same file — it is already loaded in full.
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.07179 $0.07179
Opus 5 $0.03589 $0.03589
Sonnet 5 $0.01436 $0.01436
Haiku 4.5 $0.00718 $0.00718

Measured 2d ago against content hash 1809c01ef8c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

world-of-claudecraft CLAUDE.md 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.md · 361 lines

How it starts

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

World of ClaudeCraft

A classic-style micro-MMO and a headless reinforcement-learning environment, both driven by one deterministic TypeScript simulation core. Stack: TypeScript (ESM, strict) · Three.js renderer · ws WebSockets · Postgres (pg) · Vite + esbuild · Vitest. No UI framework in the game client; tiny dependency set. The one sanctioned exception is the standalone admin dashboard (src/admin/), which is built with Svelte 5 (it never touches the game client bundle).

Repo map

Path What it is
src/sim/ Deterministic game core, the source of truth. No DOM/Three deps; runs in browser, server, and headless.
src/sim/content/ Data-as-code: classes, abilities, talents, zones, dungeons, items, professions, mounts, deeds, Reliquary pages.
src/render/ Three.js renderer (procedural geometry/textures/VFX + curated GLBs). Reads the world; never mutates it.
src/game/ Local input, camera, keybinds, gamepad, mobile controls, sampled WebAudio SFX, and procedural music.
src/ui/ Classic HUD (frames, windows, tooltips, map, FCT), procedural icons, i18n.
src/styles/ Extracted HUD CSS under one @layer order, imported once via src/main.ts. See src/styles/CLAUDE.md.
src/net/ Online client: REST auth + WebSocket world mirror (ClientWorld), reconnect, native-app glue, wallet glue.
src/admin/ Admin dashboard SPA (separate admin.html entry).
src/guide/ Public guide/wiki SPA (separate guide.html entry, served at /wiki); spoiler-safe content generated from src/sim/.
src/editor/ World editor SPA (separate root-level editor.html entry); its 3D viewport composes the real Sim + Renderer.
src/world_api.ts + src/world_api/ IWorld, the seam render/ui depend on: one facet interface per domain file under src/world_api/, re-aggregated by the barrel (see Architecture).
src/main.ts Client entry; fixes the world seed.
server/ Authoritative game server: HTTP+WS, world loop, Postgres, auth, social, moderation.
server/http/ The REST request pipeline spine: table router, middleware onion, per-domain RouteDef tables, typed schemas, stable error codes.
server/epic/ · server/steam/ · server/parse/ · server/email/ Store/platform glue, combat-parse ingest, transactional email; each has its own CLAUDE.md.
headless/ + python/ RL env server (env_server.ts) + Python Gym bindings.
bot/ Discord bot (role sync, relay, activity feed; own CLAUDE.md).
electron/ (+ build/) Desktop (Steam) shell + packaging assets; see docs/desktop-release.md.
android/ + ios/ Capacitor native shells (npm run native:*).
tests/ Vitest suite (subdirectory map in tests/CLAUDE.md).
scripts/ Asset/build/i18n/SFX tooling + browser E2E / screenshot scripts.
patches/ + data/ pnpm-patched dependencies (Three.js is patched; check before bumping it) + checked-in map data.
public/ · docs/ Static assets, deployed verbatim to the live site · design + PRD + ops docs.
mediawiki/ + deploy/ Player-wiki container + production first-boot assets (see DEPLOY.md).

Read the full file on GitHub · 361 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 Changed · +7 lines · +138 tokens per session 1809c01ef8c2
  2. 13d ago First seen · 354 lines · 7,041 tokens per session scan A 70274e21e8a7

Subscribe to this mod's changes

world-of-claudecraft CLAUDE.md is an instructions file published in the GitHub repository levy-street/world-of-claudecraft (2,251 stars, last pushed yesterday), licensed MIT. It adds 7,179 tokens to every session, about $0.0359 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-30.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens