init-world

init-world is a command for Claude Code from queelius/claude-anvil. It costs 9 tokens per session (1,357 once invoked), scanned A, original, MIT.

A command that sets up or adopts a documentation system for a fictional world, including its existing notes and rules.

In plain words
What is it for?
Use it to start a worldbuilding project, connect existing lore files to project guidance, or verify that documented roles and files are present.
Why use it?
It avoids imposing a new structure on a project that already has one and identifies missing or incomplete documentation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

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 worldsmith plugin — 2 skills, 2 commands, 7 agents shipped together

Good fit Use it to start a worldbuilding project, connect existing lore files to project guidance, or verify that documented roles and files are present.

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 queelius/claude-anvil
Claude Code
/plugin install worldsmith

Made for: Claude Code.

Or install worldsmith, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 7 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 init-world

README.md
[![agentmods](https://agentmods.dev/badge/commands/queelius/claude-anvil/init-world/github.svg)](https://agentmods.dev/commands/queelius/claude-anvil/init-world)
Your own site
<a href="https://agentmods.dev/commands/queelius/claude-anvil/init-world"><img src="https://agentmods.dev/badge/commands/queelius/claude-anvil/init-world/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 init-world

Your own site · 80×15
<a href="https://agentmods.dev/commands/queelius/claude-anvil/init-world"><img src="https://agentmods.dev/badge/commands/queelius/claude-anvil/init-world.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,357 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.00009 $0.01357
Opus 5.5 $0.00004 $0.00543
Sonnet 5.5 $0.00002 $0.00271
Haiku 4.5 $0.00001 $0.00136

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

Security

Grade A, and why

init-world 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 yesterday.

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.

worldsmith/commands/init-world.md · 85 lines

How it starts

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

/worldsmith:init-world

Assess the project state and set up (or verify) a worldbuilding documentation ecosystem. Adapt behavior to what already exists. Do not impose structure on a project that already has one.

If $ARGUMENTS is provided, use it as the project name or description rather than asking.

Mode Detection

Read the current directory. Determine which mode applies:

  1. CLAUDE.md exists and describes a doc structure (has a document roles table or references worldbuilding docs): go to Verify Mode.
  2. Docs exist but CLAUDE.md is absent or unaware of them (a docs/ or lore/ directory with markdown files, but CLAUDE.md either missing or lacking doc role awareness): go to Adopt Mode.
  3. Nothing exists (no docs directory, no worldbuilding markdown files): go to Scaffold Mode.

Verify Mode

The project is already set up. Do not overwrite or "improve" anything unless asked.

  1. If .worldsmith/ does not exist, create it (mkdir -p .worldsmith). This activates worldsmith hooks for this project.
  2. Read the project's CLAUDE.md. Parse the document roles table.
  3. For each role listed, confirm the referenced file exists and is non-empty.
  4. Check for missing roles: are there standard roles (timeline, lore, systems, characters, style, outline, themes, backlog, feedback) that the project might benefit from but doesn't have?
  5. Check for exploratory sections that might be ready for promotion.
  6. Report findings: confirmed files, missing files, incomplete sections, suggested additions.
  7. If CLAUDE.md references related projects (series/shared universe), confirm those paths are accessible.

Adopt Mode

Existing docs need a CLAUDE.md to make them work with the worldsmith methodology.

  1. Read every markdown file in the docs (or lore) directory. Read any existing CLAUDE.md.
  2. For each file, determine which worldsmith role it serves: timeline authority, lore/history, systems/mechanics, character tracking, style conventions, outline/diagnostic hub, editorial backlog, themes/anti-cliche, feedback. A single file may serve multiple roles.
  3. Present the mapping to the user. Ask for corrections.
  4. Look for manuscript files (chapters/, manuscript/, or similar). Note what exists.
  5. If multiple manuscript-like directories exist (e.g., both chapters/ and stories/), ask whether this is a multi-work project. If yes, generate .worldsmith/project.yaml with the detected works.
  6. Draft CLAUDE.md content following the structure described in ${CLAUDE_PLUGIN_ROOT}/skills/worldsmith-methodology/references/doc-structure-guide.md (see the "CLAUDE.md for Worldbuilding Projects" section): project overview, document roles table, consistency rules, world structure summary, character conventions, propagation awareness notes.
  7. Present the draft. Ask the user before writing or modifying anything. Create .worldsmith/ (mkdir -p .worldsmith) when the user approves.
  8. If the user has an existing CLAUDE.md, merge the worldsmith doc-awareness content into it rather than replacing it.

Read the full file on GitHub · 85 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. yesterday Changed cd38c751c4a7
  2. 4d ago First seen · 85 lines · 9 tokens per session scan A 20239a547a77

Subscribe to this mod's changes

init-world is a command published in the GitHub repository queelius/claude-anvil (2 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 1,357 once invoked, about $0.0000 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-10-19.