Prompt templates
Turn a prompt you use often into a slash command, with arguments when you need them.
On this page
Create a command
Save a Markdown file in ~/.e/prompts/. Its filename becomes the command: review.md gives you /review. The optional description appears in the slash picker.
---
description: review a diff for bugs
argument-hint: [path]
---
Review ${1:-the current diff} for bugs and missing tests.
Explain findings before changing files.Type /review to use the default, or supply a path. e reads templates when you use them, so edits apply to the next invocation.
Pass arguments
/review src/main.rs
/review "src/my module.rs"Quoted text stays one argument. Use $1 through $9 for positional arguments and $@ or $ARGUMENTS for all arguments. ${1:-default} supplies a fallback, and ${@:2} includes arguments from the second onward.
Substitution produces the prompt submitted to the model. Choose defaults that make the command useful without arguments.
Share project commands
Trusted repositories can add templates in .e/prompts/. Installed packages contribute a prompts/ directory too. If names match, the repository template takes precedence over your global template, which takes precedence over a package template.
Use a template for a prompt you invoke yourself. Use a skill for a workflow the model can discover when a task matches.
e docs prompt-templates