Convention mode lets you run prompts from a directory without authoring
prompts.txt or commit-messages.txt.
File Discovery
Prompt Runner looks for:
*.prompt.md*.mdif no.prompt.mdfiles exist
Files are sorted by their leading numeric prefix.
Examples:
01_auth.prompt.md02_tests.prompt.md10_release.prompt.md
Supported Metadata
Front matter
---
num: 02
phase: 2
sp: 5
targets: [app]
commit: "test: harden auth flows"
validation:
- mix test
- mix compile --warnings-as-errors
---Heading fallbacks
The loader also understands:
# Headingfor the prompt name## Missionfor synthesized commit messages## Validation Commandsfor validation command extraction## Repository Rootfor path-based target inference
Example Prompt
# Reconcile auth ownership
## Mission
Align the auth architecture across code and docs.
## Validation Commands
- `mix test`Targets
You can target repositories in three ways:
Single repo via CLI
mix prompt_runner run ./prompts --target /path/to/repo
Named targets via repeated flags
mix prompt_runner run ./prompts \
--target app:/path/to/app \
--target lib:/path/to/lib
In-file targets
---
targets: [app]
---Or:
## Repository Root
- `/path/to/app`Runtime State
CLI convention mode writes runtime state to:
<prompt_dir>/.prompt_runner/API convention mode defaults to in-memory runtime state and no git commits.
When To Use Convention Mode
Use it when you want:
- minimal setup
- prompt directories that live next to design docs
- API-driven or ad hoc runs
- optional scaffolding into explicit files later