tavern2agent

Compile SillyTavern character cards into event-driven pi-native narrative runtimes.

109|7|Updated May 10, 2026
One-click install
npx skills add https://github.com/Xerxes-2/tavern2agent --skill tavern2agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tavern2agent
Source: https://github.com/Xerxes-2/tavern2agent/tree/main
Command: npx skills add https://github.com/Xerxes-2/tavern2agent --skill tavern2agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the fragmentation of SillyTavern character cards by migrating them from static prompt bundles into robust, event-driven pi-native runtimes, ensuring narrative consistency and mechanical reliability.

Core Features & Use Cases

  • Semantic Compilation: Extracts card semantics into a structured Intermediate Representation (IR) to rebuild game logic.
  • Event-Driven Engine: Replaces fragile prompt-based rules with a deterministic engine using domain events, reducers, and state management.
  • Use Case: Convert a complex, system-heavy character card featuring combat, economy, and hidden information into a stable, auditable pi project that maintains state across long-running sessions.

Quick Start

Use the tavern2agent skill to convert the character card file in the current directory into a pi-native project.

Frequently Asked Questions about tavern2agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile SillyTavern character cards into an interactive narrative runtime?

Compiling SillyTavern character cards into an interactive narrative runtime involves extracting card semantics into a structured Intermediate Representation (IR) to rebuild game logic as a deterministic, event-driven engine.

How does an event-driven narrative engine handle complex character card mechanics?

An event-driven narrative engine handles complex character card mechanics by replacing fragile prompt-based rules with domain events, state reducers, and subagent support to ensure narrative and mechanical integrity.

Can I migrate dice systems, combat, and economy rules from SillyTavern cards into pi-native agents?

Yes, you can migrate dice systems, combat, economy, and hidden information scenarios from SillyTavern cards into pi-native agents, ensuring state is maintained across long-running sessions.

What is the best way to maintain state consistency for long-running interactive narratives?

The best way to maintain state consistency for long-running interactive narratives is using a domain-event-driven architecture with state reducers, ensuring stable and auditable mechanical reliability.

Why do prompt-based rules fail when migrating complex roleplay cards to agent runtimes?

Prompt-based rules fail when migrating complex roleplay cards to agent runtimes due to fragmentation and fragility, which semantic compilation into an Intermediate Representation (IR) solves by rebuilding game logic deterministically.