factions
Skill17 starsChanged 5 months agoMITView on GitHub
Schema and rules for creating factions
In this repository33 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- abilitiesSkill
- ai-instructionsSkill
- archetypesSkill
- build-skillSkill
- canon-npcsSkill
- chartsSkill
- countSkill
- creator-apiSkill
- image-genSkill
- itemsSkill
- japanese-romanizationSkill
- locationsSkill
- mapsSkill
- name-filter-settingsSkill
- narrative-eventsSkill
- npcsSkill
- npc-type-reviewSkill
- npc-typesSkill
- orchestratorSkill
- premade-charactersSkill
- questsSkill
- realmsSkill
- reflectSkill
- regionsSkill
- review-npcsSkill
- settingsSkill
- skillsSkill
- story-startsSkill
- traitsSkill
- triggersSkill
- world-backgroundSkill
- world-loreSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
Write a full paragraph revealing what is not publicly known.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Factions
Edit tabs/factions.json.
The factions authored here are the world's complete roster: the engine uses them as fixed context during play and reveals them as the story names them.
Required Fields
| Field | Requirement |
name | Must match object key exactly |
basicInfo | Three-sentence structure (see format below) |
factionType | "major" if the faction should span into newly generated regions, "minor" if not |
hiddenInfo | Full paragraph of secrets (see guidelines below) |
Conditional Fields
| Field | When to Include |
known | true for factions the party knows from the start. false, or no known at all, hides the faction until the story names it |
Never Include
Omit these fields (auto-set at runtime):
embeddingId,embedding
basicInfo Format
Three sentences covering scope, purpose, and public perception:
- One sentence about what the faction is and its scope
- One sentence about their goals or activities
- One sentence about how outsiders perceive them
Format: "[Name] is [scope description]. They [primary activity or goal]. [Public reputation or perception]."
hiddenInfo Guidelines
Write a full paragraph revealing what is not publicly known. Mix different types of secrets:
- True origins or founding history
- Internal conflicts or power struggles
- Secret alliances or enmities with other factions
- Hidden resources, locations, or capabilities
- Long-term plans or hidden agendas
- Dark secrets or moral compromises
Both narrative depth AND gameplay-useful information should be included.
Discovery Mechanics
known has no default. A faction with known: true is in the journal from the start; one with known: false, or with no known field, stays hidden until discovered. Set known: true on every faction the party should recognize from turn one, and leave secret organizations, hidden cults, and factions the player must discover through gameplay hidden.
A hidden faction becomes known when the latest story text contains its full name as a whole word (case and spacing insensitive), or when a known-entity trigger effect sets known. Give hidden factions distinctive names that can plausibly appear verbatim in narration.
Schema
interface Faction {
name: string
basicInfo: string
factionType: 'minor' | 'major'
hiddenInfo: string
known?: boolean
}Faction + World Lore Sync
When creating a faction, you must also create a corresponding World Lore entry. The faction key and world lore key must match exactly. The faction basicInfo and world lore text must be identical (same text, two retrieval pathways: semantic search for lore, exact key match for faction).
Reference
For detailed documentation, see factions-reference.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

