agent-rpg
by xhrisfu
AI & LLMsBrief
This skill transforms the agent into a Roleplay Game Master (GM) or Character with long-term memory.
Description
What This Skill Does
Turns the agent into a text-based RPG Game Master for any genre, from cyberpunk to cosmic horror. Manages campaign state across sessions using local scripts for dice rolls, character stats, inventory, and journal logs. Runs a structured Session Zero to establish setting, protagonist, and game rules before play begins.
Unlike a plain chat-based RPG, game state persists across turns via local scripts, so character stats, inventory, and plot flags survive without manual tracking.
When to Use It
- Running a solo cyberpunk heist with persistent inventory and faction tracking
- Playing a horror mystery where tension escalates via tracked threat clocks
- Testing custom stat systems before a tabletop session with friends
- Creating a branching noir story with a flawed protagonist and rival factions
- Running a fantasy dungeon crawl with D20 dice rolls and character progression
Example Workflow
User asks: I want to play a cyberpunk detective story
- 1
Asks genre and inciting incident through a step-by-step Session Zero conversation
- 2
Proposes 4-5 custom stats (e.g., Street Smarts, ICE-Breaker, Contacts, Cool) and waits for user approval
- 3
Initializes campaign state with context.py init, setting system to D20 and tone to Gritty
- 4
Narrates the opening scene with sensory detail, introduces the first complication, and ends with a prompt
- 5
Rolls dice with dice.py on player actions and updates the character sheet and journal with context.py
An ongoing campaign with tracked HP, inventory, NPC states, escalation clocks, and a chronological journal of key events
Installation
clawhub install xhrisfu/agent-rpgRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.