game-lore
Adds or updates one world lore entry (faction, location, NPC, event, conflict or rule) in docs/world-lore.md after a consistency check against the existing…
by fcsouza★ 29 GitHub stars
Install game-lore in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Game Lore: Lore Entry Command
Requires
worldbuildingquest-narrative-coherence
Before you apply a skill listed here, check that it appears in your available skills list. If it is not, name it, give this install line, and stop: bunx skills add fcsouza/agent-skills --skill <name>.
Prerequisites
docs/world-lore.mdin the project (run/game-architectfirst, or create it by hand)
Phase 0: Context load (silent)
Input: $ARGUMENTS. If it is empty, take it from the user's message. It holds the entry type and name.
In this order:
- Apply the
worldbuildingskill. - Apply the
quest-narrative-coherenceskill. Its "World-lore sections" list gives the section names this command writes to. - Read
docs/world-lore.md. If it does not exist, say: "Cannot proceed. docs/world-lore.md not found. Run/game-architectto generate the world foundation, or create the file from the world-lore template ofquest-narrative-coherence." Then stop. - Detect the entry type from the input:
- "faction": faction
- "location": location
- "npc" or "character": NPC
- "event" or "history": historical event
- "conflict": active conflict
- "rule" or "constraint": rule or constraint
- Anything else: ask "What type of lore entry is this? Reply with: faction / location / npc / event / conflict / rule".
- Take the entry name from the text after the type keyword.
- Read
docs/quest-registry.mdif it exists (used in Phase 4).
Phase 1: Consistency check (before writing anything)
Check the proposed entry against docs/world-lore.md. Print the checklist with a result per line: "pass", "note" (minor, proceed and say so) or "conflict" (resolve first).
## Consistency Check: [entry type] - [entry name]
[ ] No name collision: "[name]" is not already in world-lore.md
[ ] Faction alignment: relationships do not contradict existing alliances or enmities
[ ] Geographic plausibility: the location fits the established geography
[ ] NPC faction match: the NPC's faction exists and their alignment fits it
[ ] Timeline consistency: events respect the established timeline
[ ] Conflict and rule consistency: the entry does not contradict an Active Conflicts or Rules and Constraints entry
[ ] Tone consistency: the entry matches the world's established tone
On any conflict, say: "Lore conflict: [the contradiction]. Proposed resolution: [specific fix]. Proceed with the fix?" Wait for the user's confirmation before you continue.
Phase 2: Write the entry
Copy the template for the detected type from templates/lore-entries.md. Fill every field. A genuinely unknown field reads "Unknown / to be determined" and goes on the open-questions list.
Write NPC personality as concrete traits. Vague words ("nice", "mean", "mysterious") give the next writer nothing to act on.
Phase 3: Update docs/world-lore.md
Append the entry under the section for its type. Take the section names from World-lore sections in quest-narrative-coherence:
| Entry type | Section |
|---|---|
| Faction | the factions section |
| Location | the locations section |
| NPC | the characters section |
| Event | the history section |
| Conflict | the active conflicts section |
| Rule | the rules section |
If the section is missing, create it with that heading.
Relationships go both ways. If the new entry names an enemy, ally or other tie to an existing entry, open that entry and add the matching note. List each such edit in the report below.
After writing, report:
Updated: docs/world-lore.md
Added [type]: [name]
[If existing entries changed]: Updated: [entry name] - [what was added]
Phase 4: Cross-reference
If docs/quest-registry.md exists, scan it for the entry name and close variants. Report:
Quest registry cross-reference:
Quests referencing this entry: [quest IDs and names, or "none found"]
[If any]: Run `/game-quest` to update those quests with the new lore.
If it does not exist: "Quest registry: not yet created. Run /game-quest to start quests that use this lore."
Rules
- Run Phase 1 every time. New lore written without a check contradicts old lore.
- Match the world's tone. Read it from
docs/world-lore.mdbefore writing; a whimsical entry in a grim world breaks the setting. - Do not invent a new faction or major location inside an NPC or event entry. If the entry implies one, stop and ask whether to run
/game-lorefor that faction or location first. - Date events with the world's own time markers. Real-world dates (AD, BC, CE) break the setting.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- templates/lore-entries.md
FAQ
What does the game-lore skill do?
Adds or updates one world lore entry (faction, location, NPC, event, conflict or rule) in docs/world-lore.md after a consistency check against the existing lore. Takes the entry type and name as `$ARGUMENTS`, or from the user's message. Use when the world needs a new faction, place, character, historical event, active conflict or world rule, or when an existing entry must change.
How do I install the game-lore skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the game-lore skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…