character-map

character-map is a command for Claude Code from reluctantfuturist/loyal-wingman. It costs 21 tokens per session (773 once invoked), scanned A, original, MIT.

A command for mapping characters across a fiction project made of scene files and character records.

In plain words
What is it for?
It lists viewpoint characters, frequently appearing characters, supporting characters, and characters mentioned only, including their scenes and relationships.
Why use it?
It makes it easier to find who appears where, understand recorded relationships, and spot characters that are mentioned but not properly connected to the project.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the loyal-wingman plugin — 12 skills, 7 commands shipped together

Good fit It lists viewpoint characters, frequently appearing characters, supporting characters, and characters mentioned only, including their scenes and relationships.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/reluctantfuturist/loyal-wingman/character-map
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.

Clone the repo
git clone --depth 1 https://github.com/reluctantfuturist/loyal-wingman

Made for: Claude Code.

Or install loyal-wingman, the plugin that ships this one along with the rest of its 12 skills, 7 commands.

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 character-map

README.md
[![agentmods](https://agentmods.dev/badge/commands/reluctantfuturist/loyal-wingman/character-map/github.svg)](https://agentmods.dev/commands/reluctantfuturist/loyal-wingman/character-map)
Your own site
<a href="https://agentmods.dev/commands/reluctantfuturist/loyal-wingman/character-map"><img src="https://agentmods.dev/badge/commands/reluctantfuturist/loyal-wingman/character-map/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 character-map

Your own site · 80×15
<a href="https://agentmods.dev/commands/reluctantfuturist/loyal-wingman/character-map"><img src="https://agentmods.dev/badge/commands/reluctantfuturist/loyal-wingman/character-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 773 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.00021 $0.00773
Opus 5 $0.00010 $0.00387
Sonnet 5 $0.00004 $0.00155
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

character-map 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 9d 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.

commands/character-map.md · 125 lines

How it starts

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

/character-map

Display character appearances, relationships, and identify orphaned characters.

Usage

/character-map                     # Default project (first found)
/character-map [ProjectName]       # Specific project
/character-map --orphans           # Focus on orphan detection

Process

Step 1: Query Project Context

REQUIRED SUB-SKILL: Invoke query-context with:

  • Target: All scene files in 10_Projects/[Project]/Scenes/
  • Focus: Extract character references from frontmatter and prose

Query-context will search:

  • Scene frontmatter for pov_character, related_characters
  • 02_World/Characters/ for all character entries
  • Character relationship sections

Step 2: Build Character Map

From query-context results:

## [Project Name] - Character Map

### POV Characters
- **[Character Name]** - Ch 1, 2, 3 (POV all)

### Major Characters (3+ appearances)
- **[Character Name]** - Ch 1, 2, 3
  - Relationship: [relationship to protagonist]
- **[Character Name]** - Ch 1, 3
  - Relationship: [relationship type]

### Supporting Characters (1-2 appearances)
- **[Name]** - Ch [X]
  - Role: [brief description]

### Mentioned Only
- **[Name]** - Referenced in Ch [X]

Step 3: Map Relationships

From character files' relationship sections:

### Relationship Web

[Protagonist]
├── [Character A] (relationship type)
├── [Character B] (relationship type)
└── [Character C] (relationship type)

Key Dynamics:
- [Character 1] ↔ [Character 2]: [dynamic description]
- [Character 1] ↔ [Character 3]: [dynamic description]

Step 4: Validate Links

REQUIRED SUB-SKILL: Invoke validate-links to check:

  • All character wikilinks in scenes resolve
  • Character files link back to scenes they appear in
  • Bidirectional linking between related characters

Step 5: Identify Issues

### Potential Issues

**Missing World Bible Entry:**
- ⚠️ [Name] appears in Ch [X] but no entry in 02_World/Characters/
  → Use world-bible skill to create

**Orphaned Characters:**
- ⚠️ [Name] has world bible entry but doesn't appear in this project

**Link Issues:** (from validate-links)
- ⚠️ [issues reported by validate-links]

**Faction Mentions Without Detail:**
- ⚠️ [Faction] mentioned in Ch [X], no entry in 02_World/Factions/
  → Use world-bible skill to create

Read the full file on GitHub · 125 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. 9d ago First seen · 125 lines · 21 tokens per session scan A b1e6c8b369c4

Subscribe to this mod's changes

character-map is a command published in the GitHub repository reluctantfuturist/loyal-wingman (7 stars, last pushed 8mo ago), licensed MIT. It adds 21 tokens to every session and 773 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.