prompt-calculus

Community

Reason about prompts with a minimal calculus.

Authorjbrukh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This formalism provides a compact framework to reason about LLM prompts, their evaluation semantics, and how prompt functions compose and affect outputs.

Core Features & Use Cases

  • Evaluation kernel and context modeling: defines how prompts map to output distributions and how context modifies evaluation.
  • Prompt functions and composition: formalizes applying prompts as functions and composing them (G ∘ F) to build complex behaviors.
  • Iterated self-application and fixed points: explains how prompts can be applied repeatedly, convergence properties, and quines.

Quick Start

Apply a simple prompt function to a sample input and trace the resulting output distribution using the evaluation kernel.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prompt-calculus
Download link: https://github.com/jbrukh/skills/archive/main.zip#prompt-calculus

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.