kleene-play

Run YAML-based interactive narrative gameplay with persistent state in chat.

Updated Jan 11, 2026
One-click install
npx skills add https://github.com/kleene-games/kleene --skill kleene-play
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kleene-play
Source: https://github.com/kleene-games/kleene/tree/main/skills/kleene-play
Command: npx skills add https://github.com/kleene-games/kleene --skill kleene-play

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables running a full interactive narrative game session inside a chat, with persistent state, dynamic narration, and seamless turn-based choices, eliminating the need for external tools or serialization.

Core Features & Use Cases

  • Inline game logic: run narrative gameplay directly in the conversation context with state kept across turns.
  • Adaptive narration: adjust storytelling based on a user-controlled temperature setting, actions, and improvisation signals.
  • Scenario handling: load, track, and progress through YAML-defined scenarios with preconditions, consequences, and endings.
  • Saving and resuming: save progress and resume later, including checkpoint-like behavior and ending states.
  • Use Case: imagine starting a dragon quest, continuing later, then exploring with free-form actions.

Quick Start

Use the Kleene Play skill to start or resume an interactive narrative in your chat.

Frequently Asked Questions about kleene-play

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

FAQPage Schema
How do I run an interactive narrative game directly in a chat interface?

Interactive narrative gameplay runs directly in the chat context using persistent state tracking and adaptive narration across turns, eliminating the need for external tools. The session loads YAML-defined scenarios with preconditions and consequences.

Can I save my RPG session progress and resume the story later?

Yes, RPG session progress is saved and resumed later using checkpoint-like behavior and ending states. Persistent state tracking keeps your narrative scenario data intact across multiple conversation turns and scenarios.

How does adaptive narration work in interactive storytelling?

Adaptive narration adjusts storytelling based on user-controlled temperature settings, actions, and improvisation signals. It evaluates preconditions and consequences from YAML scenario files to dynamically change the narrative flow.

Do I need external serialization tools to manage state persistence in chat RPGs?

No, state persistence in chat RPGs is handled inline within the conversation context without external serialization tools. The system tracks frontmatter-driven metadata and scenario state internally across turns.

How do I render narrative choices for users during an interactive fiction session?

Narrative choices are rendered using AskUserQuestion-based option rendering during the interactive fiction session. This presents scripted options directly in the chat interface while evaluating precondition and consequence logic.