feat: add 11 new slash commands for campaign wiki tools (/threads, /npc, /npc-fast, /location, /location-fast, /scene, /relations, /hook, /encounter, /loot, /lint)
This commit is contained in:
parent
16f4bb589a
commit
2dcf50d7fa
2 changed files with 68 additions and 13 deletions
22
main.js
22
main.js
File diff suppressed because one or more lines are too long
|
|
@ -16,6 +16,61 @@ export interface HermesChatSettings {
|
||||||
|
|
||||||
/** Built-in slash commands shipped with the plugin. */
|
/** Built-in slash commands shipped with the plugin. */
|
||||||
export const BUILTIN_COMMANDS: { trigger: string; description: string; prompt: string }[] = [
|
export const BUILTIN_COMMANDS: { trigger: string; description: string; prompt: string }[] = [
|
||||||
|
{
|
||||||
|
trigger: "/threads",
|
||||||
|
description: "Crawl the campaign wiki for unresolved plot threads",
|
||||||
|
prompt: "Crawl the campaign wiki for unresolved plot threads relevant to the next session. Cross-reference current party location, active PCs, and open story hooks. Rank by narrative urgency and suggest specific integration points.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/npc",
|
||||||
|
description: "Generate a detailed NPC with full backstory, beliefs, and ties",
|
||||||
|
prompt: "Generate a detailed D&D NPC with full backstory, core beliefs, motivations, ties, a secret, and a voice note. Use the npc-generator skill in detailed mode. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/npc-fast",
|
||||||
|
description: "Quick NPC — name, race, age, description only (mid-session)",
|
||||||
|
prompt: "Generate a quick D&D NPC — just name, race, age range, and 3 bullet descriptions. Use the npc-generator skill in fast mode. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/location",
|
||||||
|
description: "Generate a detailed location with atmosphere, features, and wiki ties",
|
||||||
|
prompt: "Generate a detailed D&D location with atmosphere, notable features, potential encounters, and wiki connections. Use the location-generator skill in detailed mode. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/location-fast",
|
||||||
|
description: "Quick location — name, vibe, one interesting detail (mid-session)",
|
||||||
|
prompt: "Generate a quick D&D location — just name, type, 3-sentence atmosphere, and one notable detail. Use the location-generator skill in fast mode. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/scene",
|
||||||
|
description: "Generate atmospheric read-aloud text for a D&D scene",
|
||||||
|
prompt: "Generate atmospheric read-aloud text for this D&D scene. Pull details from the campaign wiki if the location exists there. Use the scene-setter skill. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/relations",
|
||||||
|
description: "Map all wiki-documented relationships for an NPC",
|
||||||
|
prompt: "Map all wiki-documented relationships, connections, session appearances, and faction ties for this campaign NPC. Use the relation-mapper skill. NPC:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/hook",
|
||||||
|
description: "Generate quest hooks tied to existing campaign threads",
|
||||||
|
prompt: "Generate 2-3 quest hooks tied to existing campaign wiki threads. Every hook must have a documented source. Use the hook-generator skill. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/encounter",
|
||||||
|
description: "Build a themed encounter with creatures, hazards, and wiki ties",
|
||||||
|
prompt: "Build a thematically appropriate D&D encounter with creatures, environmental features, and a wiki connection. Include multiple resolution paths. Use the encounter-builder skill. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/loot",
|
||||||
|
description: "Generate themed treasure — coins, items, and a signature piece with a story hook",
|
||||||
|
prompt: "Generate D&D treasure scaled to party level and themed to the context. Include coin, 1-2 items, and one signature item with a story hook. Use the loot-generator skill. Context:",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
trigger: "/lint",
|
||||||
|
description: "Scan the campaign wiki for lore inconsistencies and stale data",
|
||||||
|
prompt: "Scan the campaign wiki for lore inconsistencies — temporal contradictions, spatial impossibilities, one-way relationships, factual conflicts, orphaned entities, stale records, and dead plot threads. Flag issues for GM resolution. Use the lore-lint skill. Scope:",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
trigger: "/prep-session",
|
trigger: "/prep-session",
|
||||||
description: "Prep the next D&D session",
|
description: "Prep the next D&D session",
|
||||||
|
|
@ -28,8 +83,8 @@ export const BUILTIN_COMMANDS: { trigger: string; description: string; prompt: s
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
trigger: "/lint-wiki",
|
trigger: "/lint-wiki",
|
||||||
description: "Lint the campaign wiki",
|
description: "[Legacy] Scan the campaign wiki (use /lint instead)",
|
||||||
prompt: "Scan the campaign wiki for broken links, orphaned entities, missing templates, and formatting inconsistencies. Report a prioritized list of issues.",
|
prompt: "Scan the campaign wiki for lore inconsistencies and stale data. Use the lore-lint skill. Scope:",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue