Airsc is free for everyone. If it helps you, support it with $2–$20.

Support
PluginSafeAgent workflow & memoryBeginner friendly

flompt

Nyrok · Nyrok/flompt

Flompt is a visual AI prompt builder that lets users decompose prompts into a flowchart, edit them, and recompile into Claude-optimized XML.

flow + prompt = flompt - Visual AI Prompt Builder. Decompose, edit as flowchart, recompile into optimized machine-readable prompts

152 stars16License: MITUpdated 7 months ago0 opens

Preview

▍

What you can do with it

  • Visually structure complex prompts for a Claude Code agent.
  • Optimize existing prompts by reordering blocks in a flowchart editor.
  • Ensure prompts adhere to Claude's best practices using specialized block types.

Safety check

Safe

No risky patterns found in the files we scanned.

Automated scan of the repo files. Always review code you run.

From the README

flompt

flow + prompt = flompt Turn any AI prompt into a visual flow. Decompose, edit as a flowchart, recompile.


🎥 Demo

Try it live at flompt.dev, free, no account needed.

Paste any prompt. The AI breaks it into typed blocks. Drag, reorder, compile to Claude-optimized XML.


✨ What is flompt?

flompt is a visual prompt engineering tool.

Instead of writing one long block of text, flompt lets you:

  1. Paste any prompt and let the AI break it into structured blocks
  2. Drag, connect, and reorder blocks in a flowchart editor
  3. Compile to a Claude-optimized, machine-ready XML prompt

🧩 Block Types

16 specialized blocks that map directly to Claude's prompt engineering best practices:

BlockPurposeClaude XML
DocumentExternal content grounding<documents><document>
RoleAI persona & expertise<role>
ToolsCallable functions the agent can use<tools>
AudienceWho the output is written for``
ContextBackground information<context>
EnvironmentSystem context: OS, paths, date, runtime<environment>
ObjectiveWhat to DO<objective>
GoalEnd goal & success criteria<goal>
InputData you're providing<input>
ConstraintsRules & limitations<constraints>
GuardrailsHard limits and safety refusals<guardrails>
ExamplesFew-shot demonstrations<examples><example>
Chain of ThoughtStep-by-step reasoning``
Output FormatExpected output structure<output_format>
Response StyleVerbosity, tone, prose, markdown (structured UI)<format_instructions>
LanguageResponse language<language>

Blocks are automatically ordered following Anthropic's recommended prompt structure.


🚀 Try It Now

flompt.dev, free and open-source, no account needed.


🧩 Browser Extension

Use flompt directly inside ChatGPT, Claude, and Gemini without leaving your tab.

  • Injects an Enhance button into the AI chat input
  • Bidirectional sync between the sidebar and the chat
  • Works on ChatGPT, Claude, and Gemini

🤖 Claude Code Integration (MCP)

flompt exposes its core capabilities as native tools inside Claude Code via the Model Context Protocol (MCP).

Once configured, you can call decompose_prompt, compile_prompt, and list_block_types directly from any Claude Code conversation, no browser, no copy-paste.

Installation

Option 1: CLI (recommended)

claude mcp add --transport http --scope user flompt https://flompt.dev/mcp/

The --scope user flag makes flompt available in all your Claude Code projects.

Option 2: ~/.claude.json

{
  "mcpServers": {
    "flompt": {
      "type": "http",
      "url": "https://flompt.dev/mcp/"
    }
  }
}

Available Tools

Once connected, 3 tools are available in Claude Code:

decompose_prompt(prompt: str)

Breaks down a raw prompt into structured blocks (role, objective, context, constraints, etc.).

  • Uses Claude or GPT on the server if an API key is configured
  • Falls back to keyword-based heuristic analysis otherwise
  • Returns a list of typed blocks + full JSON to pass to compile_prompt
Input:  "You are a Python expert. Write a function that parses JSON and handles errors."
Output: ✅ 3 blocks extracted:
          [ROLE] You are a Python expert.
          [OBJECTIVE] Write a function that parses JSON…
          [CONSTRAINTS] handles errors
        📋 Full blocks JSON: [{"id": "...", "type": "role", ...}, ...]

compile_prompt(blocks_json: str)

Compiles a list of blocks into a Claude-optimized XML prompt.

  • Takes the JSON from decompose_prompt (or manually crafted blocks)
  • Reorders blocks following Anthropic's recommended structure
  • Returns the final XML prompt with an estimated token count
Input:  [{"type": "role", "content": "You are a Python expert", ...}, ...]
Output: ✅ Prompt compiled (142 estimated tokens):

        <role>You are a Python expert.</role>
        <objective>Write a function that parses JSON and handles errors.</objective>

list_block_types()

Lists all 16 available block types with descriptions and the recommended canonical ordering. Useful when manually crafting blocks.

Typical Workflow

1. decompose_prompt("your raw prompt here")
   → get structured blocks as JSON

2. (optionally edit the JSON to add/remove/modify blocks)

3. compile_prompt("<json from step 1>")
   → get Claude-optimized XML prompt, ready to use

Technical Details

PropertyValue
TransportStreamable HTTP (POST)
Endpointhttps://flompt.dev/mcp/
SessionStateless (each call is independent)
AuthNone required
DNS rebinding protectionEnabled (flompt.dev explicitly allowed)

🛠️ Self-Hosting (Local Dev)

Requirements

  • Python 3.12+
  • Node.js 18+
  • An Anthropic or OpenAI API key (optional, heuristic fallback works without one)

Setup

Backend:

cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env   # add your API key
uvicorn app.main:app --reload --port 8000

App (Frontend):

cd app
cp .env.example .env   # optional: add PostHog key
npm install
npm run dev

Blog:

cd blog
npm install
npm run dev   # available at http://localhost:3000/blog
ServiceURL
Apphttp://localhost:5173
Backend APIhttp://localhost:8000
API Docs (Swagger)http://localhost:8000/docs
MCP endpointhttp://localhost:8000/mcp/

⚙️ AI Configuration

flompt supports multiple AI pro

View source on GitHub