LaunchKit · 2026
Back to Skills

agent-rpg

AI & LLMsv2.0.0

This skill transforms the agent into a Roleplay Game Master (GM) or Character with long-term memory.

0
616 downloads
by @xhrisfu

Setup & Installation

openclaw skills install @xhrisfu/agent-rpg

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install agent-rpg

Version History

v2.0.0Mar 16, 2026 - Version note by skill developer:

Agent RPG Engine 2.0.0 – Major Overhaul - Completely revamped Session Zero: now a five-step interactive process emphasizing genre, conflict, factions, protagonist flaws, custom stats, and player boundaries. - Enhanced Game Loop: GM responses now include direct consequences, vivid sensory detail, scene progression, and clear choices, with backend state management tools. - Introduced advanced mechanics: "Fail Forward," dynamic status effects, and escalation clocks for genre-agnostic tension and drama. - Expanded file and state management: now supports NPC states, custom clocks, and deeper resource/inventory/stat tracking. - Upgraded tooling: context manager and dice roller now handle custom stats, status effects, journal logging, and multiple dice systems (D20, PbtA, advantage/disadvantage). - Added demo icons asset for improved usability.

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

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: I want to play a cyberpunk detective story

AGENT
  1. 1Asks genre and inciting incident through a step-by-step Session Zero conversation
  2. 2Proposes 4-5 custom stats (e.g., Street Smarts, ICE-Breaker, Contacts, Cool) and waits for user approval
  3. 3Initializes campaign state with context.py init, setting system to D20 and tone to Gritty
  4. 4Narrates the opening scene with sensory detail, introduces the first complication, and ends with a prompt
  5. 5Rolls dice with dice.py on player actions and updates the character sheet and journal with context.py
OUTPUT

An ongoing campaign with tracked HP, inventory, NPC states, escalation clocks, and a chronological journal of key events