kleene-generate

Generate narrative scenarios using Option type semantics and the Nine Cells framework.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables on-demand generation and expansion of narrative scenarios, leveraging Option type semantics and the Nine Cells framework to produce complete, playable narratives.

Core Features & Use Cases

  • Full Scenario Generation: create new scenarios from a theme or prompt.
  • Node Generation (Emergent Play): introduce new nodes when players explore beyond known paths.
  • Branch Expansion: add missing branches to improve grid coverage and narrative depth.

Quick Start

Provide a theme or describe the current state to generate a new scenario, or ask to expand an existing story.

Frequently Asked Questions about kleene-generate

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

FAQPage Schema
How do I generate a complete narrative scenario from a single theme?

To generate a narrative scenario, you provide a theme or prompt and the framework outputs a formatted story with defined nodes, preconditions, and consequences. It builds a complete grid using Option type semantics to ensure total narrative coverage.

What is the Nine Cells framework for narrative generation?

The Nine Cells framework is a structural model for narrative generation that enforces grid coverage to produce complete, playable scenarios. It uses Option type semantics to define story nodes, preconditions, and consequences across the narrative.

How do I expand a story when players explore beyond known boundaries?

To expand a story during emergent play, you describe the current state to trigger node generation. This dynamically introduces new narrative branches and nodes to maintain grid coverage as players venture off the known paths.

Can I add missing branches to an existing scenario to improve narrative depth?

Yes, you can add missing branches to an existing scenario to improve narrative depth and grid coverage. The framework analyzes the current story nodes and generates the missing preconditions and consequences required for a complete narrative.

Do I need to define Option type semantics before generating a quest?

No, you do not need to manually define Option type semantics before generating a quest. The framework inherently applies this logic to automatically handle preconditions and consequences, outputting a properly formatted scenario.

Why does my generated scenario lack narrative completeness?

A generated scenario lacks narrative completeness when grid coverage is incomplete, leaving undefined nodes or missing consequences. Requesting a branch expansion resolves this by adding the missing preconditions and narrative depth required by the framework.