Prompts & Templates
Write prompt files and use variables
Promptmd runs Markdown files as prompts. A prompt file is just text, with optional YAML frontmatter.
Basic prompt
Say hello to the user.Run it:
promd greetingsVariables
Any unknown --flag value passed to promd becomes a template variable.
Check the weather in {{city}}.promd weather --city BerlinIf a variable is missing, promptmd keeps the placeholder (and warns in verbose logs).
Using {{input}}
When you chain prompts, the next step receives the previous step output in {{input}}.
Summarize this in 3 bullet points:
{{input}}Write a story about {{topic}}promd story summarize --topic BananasStructured output (frontmatter)
Add an output: section to tell the backend you want a JSON object back.
---
output:
title: "short title"
priority: "low|medium|high"
---
Read the following text and return JSON.
{{input}}In later steps, you can reference properties:
Make a plan for: {{input.title}} (priority: {{input.priority}})