home/roleplay/prompt-dsl-2

Prompt Dsl

GPTClaudeGemini··385 copies·updated 2026-07-14
prompt-dsl-2.prompt
---
name: prompt-dsl
description: Domain-specific language for categorical prompt composition with functor combinators and natural transformation operators. Use when building composable prompt templates, implementing typed prompt algebras, creating reusable prompt patterns with categorical structure, or designing prompt DSLs that preserve composition properties.
---

# Categorical Prompt DSL

A domain-specific language for composable prompt engineering with categorical foundations.

## Core Algebraic Structure

The Prompt DSL treats prompts as objects in a category:

- **Objects**: Prompt types (system, user, context, etc.)
- **Morphisms**: Prompt transformations
- **Composition**: Sequential prompt chaining
- **Tensor**: Parallel prompt combination
- **Exponential**: Prompt templates (parameterized prompts)

## Basic DSL Primitives

when to use it

Community prompt sourced from the open-source GitHub repo HermeticOrmus/ormus-meta-prompting (MIT). A "Prompt Dsl" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

HermeticOrmus/ormus-meta-prompting · MIT