Products / AI Developer Tools

Live

PromptKit

Versioned YAML/JSON prompt templates + CLI + eval stub

Versioned YAML/JSON prompt templates with {{variables}}, few-shot slots, OpenAI message export, CLI render, and a tiny eval stub (string match / optional LLM judge BYOK).

Value

Problem. Prompts get pasted across repos as half-broken strings. Versioning, variables, and few-shots become tribal knowledge.

How it helps. Versioned YAML/JSON prompt templates with {{variables}}, few-shot slots, OpenAI message export, CLI render, and a tiny eval stub (string match / optional LLM judge BYOK).

Why buy. A prompt-ops kit you run locally — not a hosted CMS.

How it works

flowchart LR
  File["YAML / JSON"] --> Load["loadPromptFile"]
  Load --> Render["renderPrompt"]
  Render --> OpenAI["toOpenAIChatMessages"]
  Render --> Eval["runEval stub"]
  CLI["promptkit render"] --> Load

Mermaid flowchart (render in GitHub / VS Code / mermaid.live).

Use case

Render support-triage.yaml with a ticket variable and pipe messages into chat/completions.

What you get

Project structure

promptkit/
  src/
    load.ts, render.ts, types.ts
    cli/  eval/  export/openai.ts
  examples/  tests/

Quick start

npm install && npm test && npm run build
npx tsx src/cli/index.ts render examples/support-triage.yaml -v ticket="Please refund order #42"

Example

From examples/support-triage.yaml

id: support-triage
version: "1.0.0"
messages:
  - role: system
    content: You help users of {{product}}.
  - role: user
    content: "{{ticket}}"

Tested

21 Vitest tests — load, render, OpenAI export, eval stub, CLI render/vars.

npm test

2026-09-20 — 21 passed; npm run build OK

Design decisions

Limitations

Who it’s for

AI builders who want versioned prompts in git with a CLI.

Not for: Teams needing a multiplayer prompt CMS with approvals.

What you own

Full MIT-licensed TypeScript source via Gumroad ZIP. Fork it, ship it commercially, keep the license notice. You are responsible for secrets, hardening, and production ops.

Related

EvalHarness · AgentForge · RagPipe · McpForge

Demo

PromptKit demo
CLI demo — promptkit render examples/support-triage.yaml with variables.
Buy PromptKit — $19 All products