worldbuilding

worldbuilding is a skill for Claude Code, Codex from mm-weber/loremaester. It costs 93 tokens per session (1,606 once invoked), scanned A, original, MIT.

A writing assistant for building tabletop role-playing game (TTRPG) settings in an Obsidian vault, a folder of linked notes. It uses the vault as the campaign's established source of truth.

In plain words
What is it for?
Use it to create or expand campaign locations, non-player characters, factions, lore, quests, and items, with links to related notes and source-book research.
Why use it?
It helps keep new world details consistent with existing locations, characters, factions, and lore instead of creating disconnected material.

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/mm-weber/loremaester/worldbuilding
Any agent
npx skills add mm-weber/loremaester --skill worldbuilding
Clone the repo
git clone --depth 1 https://github.com/mm-weber/loremaester

Made for: Claude Code, Codex.

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 worldbuilding

README.md
[![agentmods](https://agentmods.dev/badge/skills/mm-weber/loremaester/worldbuilding.svg)](https://agentmods.dev/skills/mm-weber/loremaester/worldbuilding)
Your own site
<a href="https://agentmods.dev/skills/mm-weber/loremaester/worldbuilding"><img src="https://agentmods.dev/badge/skills/mm-weber/loremaester/worldbuilding.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,606 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.00093 $0.01606
Opus 5 $0.00046 $0.00803
Sonnet 5 $0.00019 $0.00321
Haiku 4.5 $0.00009 $0.00161

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

Security

Grade A, and why

worldbuilding 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 4d 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.

examples/ttrpg/skills/worldbuilding/SKILL.md · 151 lines

How it starts

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

Worldbuilding Assistant

Orchestrate Obsidian vault navigation, source book research, and TTRPG content generation. The GM's vault is the single source of truth — source books provide inspiration, never override what's already established.

Workflow

Every worldbuilding request follows four steps. Some requests (pure research, quick lookups) may only need steps 1–2. Use judgment about which steps apply.

Step 1: Gather Vault Context

Before generating anything, understand what already exists. The vault is canon.

  1. Search the graph for related notes:

    • vault_search_notes(name_pattern="topic") to find notes by name
    • vault_search_notes(tag="faction") or vault_search_notes(note_type="NPC") to find by category
    • vault_central_notes(tag="location") to find the most-connected notes in a category
  2. Map connections around the topic:

    • vault_graph(note="Note Name", depth=2) to see how a note connects to the rest of the world
    • vault_backlinks(note="Note Name") to see what references this note
  3. Read primary notes — Read the most relevant notes found above. Follow wikilinks 1–2 levels deep to build context:

    • Read the note itself
    • Read notes it links to (first-level wikilinks)
    • Optionally read one more level if the topic is broad
  4. Search for mentions across the vault:

    • Grep for [[Topic Name]] to find every note that references this concept
    • Grep frontmatter fields like faction: "Name" or location: "Place" for structured references
  5. Summarize what's established before proceeding. Note any contradictions or gaps.

Step 2: Research Source Books

Use the sourcebooks MCP server to find relevant published material.

  1. Broad search: search_lore(query="topic keywords") for general results
  2. Filtered search: Narrow with book and content_type when results are too broad:
    • search_lore(query="dwarven politics", book="Dwarf Kingdoms Sourcebook")
    • search_lore(query="undead", content_type="bestiary")
  3. Deep dive: get_chapter(book="Book Title", chapter="Chapter 3") when you need full chapter context
  4. Discover sources: list_books() if unsure what source books are available

Read the full file on GitHub · 151 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. 4d ago First seen · 151 lines · 93 tokens per session scan A dcb476d8ce75

Subscribe to this mod's changes

worldbuilding is a skill published in the GitHub repository mm-weber/loremaester (19 stars, last pushed 1mo ago), licensed MIT. It adds 93 tokens to every session and 1,606 once invoked, about $0.0005 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 skills, from other repositories

figure-remap

Extract single figures from PDF textbooks on-demand with built-in QC verification. Primary use: when writing/supplementing a note that needs an embedded figure (anatomy, classification, algorithm, imaging). Each call checks an existing fast-path crop, re-extracts from PDF if missing/wrong, retries with local-vision…

drpwchen/textbook-to-note · 126 tokens

textbook-to-md

Convert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference. Use this skill whenever: (1) the user asks to convert a textbook/PDF chapter to markdown, (2) you need to search textbook content and no markdown version exists yet, (3) batch-converting a set of reference books into a knowledge…

drpwchen/textbook-to-note · 90 tokens

lecture-to-notes

Turn a lecture/conference recording (video or audio: MOV/MP4/M4A/MP3/WAV) into structured vault notes via local GPU transcription + slide extraction — 演講影片, 演講音檔, 上課錄影, '整理演講', '影片轉筆記', '音檔轉筆記', or a dropped media file. Handles batch runs.

drpwchen/lecture-to-notes · 87 tokens

dmcheck

Deterministic conduct verdicts for live tabletop sessions — CI for running a game. Use it when you want to know how a session went as a table: "did I leave anyone hanging?", "was that roll ever acknowledged?", "did the fight end without anyone being told?", "why did the table go quiet for five minutes?", post-session…

chaoz23/dmcheck · 96 tokens

invest_analysis

Systematic investment research workflow for A-share and Hong Kong stock markets using AI-powered analysis. Use when conducting sector selection, supply chain analysis, financial report verification, or market sentiment evaluation. 系统化的 A 股/港股投资研究工作流程,适用于赛道筛选、产业链分析、财报验证和市场情绪评估。.

Linearl/reasonix_skill_repo · 75 tokens

beautiful-article

把用户提供的素材(网页 URL / PDF / DOCX / Markdown / 纯文本 / 截图 / 粘贴材料)编辑、设计成一篇美丽的、可离线打开和分享的单文件 HTML 网页文章。基于 reacticle 组件协议:不手写裸 HTML/CSS,而用语义组件 + 受主题约束的 Raw 自由层;按 source→规划→双确认→生成→终审→修复的小型 harness 流程推进,默认 100% 信息保留的长文。触发场景:把 URL/PDF/DOCX/文章做成网页文章 / 长文 / briefing / 解释文 / 视觉文章 / 教程 / 审阅复盘 / 方案分析,'render this as a beautiful web…

Linearl/reasonix_skill_repo · 226 tokens