Skip to content

ramble-generate-puml

by official

Text

Create a PlantUML diagram from natural language text using AI

ramble plantuml diagram
# ramble-generate-puml

Create a PlantUML diagram from natural language text using AI

## Installation

This is a CmdForge tool. Install it from the registry:

```bash
cmdforge install ramble-generate-puml
```

## Usage

Pipe natural language text describing a diagram into the tool:

```bash
echo "A user logs into the system, then views their dashboard, and finally logs out" | ramble-generate-puml

cat description.txt | ramble-generate-puml

ramble-generate-puml < workflow.txt
```

The tool outputs valid PlantUML syntax that can be saved to a `.puml` file or piped to a PlantUML renderer.

## Arguments

This tool takes no custom arguments.

## How It Works

The tool processes input through a 3-step pipeline:

1. **Build PlantUML prompt** - Constructs an AI prompt from the input text requesting PlantUML diagram generation
2. **Call AI for PlantUML generation** - Sends the prompt to the `claude-haiku` provider to generate PlantUML syntax
3. **Extract and validate PlantUML block** - Parses the AI response to extract clean PlantUML code and validates the syntax

## Dependencies

None

No reviews yet.

Issues

No issues reported for this tool.