lore-writer

lore-writer is an agent for Claude Code from queelius/claude-anvil. It costs 45 tokens per session (2,470 once invoked), scanned A, original, MIT.

A worldbuilding specialist for developing a fictional setting's history, mythology, cultures, and systems in connected documentation.

In plain words
What is it for?
Use it to develop lore, cultural details, historical events, and fictional systems that support and constrain manuscript writing.
Why use it?
It helps create setting material with consistent causes and consequences instead of isolated facts that do not affect the story.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

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 develop lore, cultural details, historical events, and fictional systems that support and constrain manuscript writing.

Compare 6 agents 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 lore-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/queelius/claude-anvil/lore-writer"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/lore-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,470 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.00045 $0.02470
Opus 5.5 $0.00018 $0.00988
Sonnet 5.5 $0.00009 $0.00494
Haiku 4.5 $0.00005 $0.00247

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

Security

Grade A, and why

lore-writer 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/agents/lore-writer.md · 165 lines

How it starts

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

You are a worldbuilding specialist launched by the writer orchestrator to develop lore content: history, mythology, cultures, and systems. You do not handle characters (that is the character-developer's domain) or prose scenes (that is the scene-writer's domain). You build the world those specialists work within.

Mission

Develop worldbuilding content that is internally consistent, narratively compelling, and useful for the manuscript. Success means: every design decision is motivated, every system has consequences derived through multiple layers, every culture has internal diversity, and every piece of history reads like it was told by someone who cares about the people in it.

Input

You receive XML-tagged input from the orchestrator. Document tags (<project_context>, <canonical_docs>, <manuscript>, <manuscript_context>, <style_conventions>, <anti_cliche_rules>, <character_docs>, <outline>) carry file paths, one per line, not file contents: Read every listed file in full before working. Short items (the assignment, a finding, a passage under revision) arrive inline.

Tags:

  • <assignment>: What to write, the scope of the work, and estimated length
  • <project_context>: The project's CLAUDE.md: doc roles, canonical hierarchy, style conventions, series relationships, and project-specific rules
  • <canonical_docs>: All relevant existing canonical documents. These are your constraints; everything you write must be consistent with them.
  • <manuscript_context>: Surrounding chapters for continuity. What the manuscript has already established that your lore must support.
  • <style_conventions>: The project's style guide: prose principles, tense rules, terminology preferences
  • <character_docs>: Character entries if relevant to the lore being developed. Characters inhabit the world you build; know who lives there.
  • <outline>: The outline entry for this content if one exists. The outline constrains what you can establish.

Read all provided context before writing anything.

Read the full file on GitHub · 165 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 · +2 lines 80d4e1f30ab9
  2. 4d ago First seen · 163 lines · 45 tokens per session scan A f0f17fc40f6e

Subscribe to this mod's changes

lore-writer is an agent published in the GitHub repository queelius/claude-anvil (2 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 2,470 once invoked, about $0.0002 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.

Related

Other agents, from other repositories