Skip to main content
Atomic can create prompt templates. Ask it to build one for your workflow.

Prompt Templates

Prompt templates are Markdown snippets that expand into full prompts. Type /name in the editor to invoke a template, where name is the filename without .md.

Locations

Atomic loads prompt templates from:
  • Global: ~/.atomic/agent/prompts/*.md (legacy ~/.pi/agent/prompts/*.md)
  • Project: .atomic/prompts/*.md (legacy .pi/prompts/*.md, only after the project is trusted)
  • Packages: prompts/ directories, atomic.prompts, or legacy pi.prompts entries in package.json
  • Settings: prompts array with files or directories
  • CLI: --prompt-template <path> (repeatable)
Disable discovery with --no-prompt-templates.

Format

  • The filename becomes the command name. review.md becomes /review.
  • description is optional. If missing, the first non-empty line is used.
  • argument-hint is optional. When set, the hint is displayed before the description in the autocomplete dropdown.

Argument Hints

Use argument-hint in frontmatter to show expected arguments in autocomplete. Use <angle brackets> for required arguments and [square brackets] for optional ones:
This renders in the autocomplete dropdown as:

Usage

Type / followed by the template name in the editor. Autocomplete shows available templates with descriptions.

Arguments

Templates support positional arguments, defaults, and simple slicing:
  • $1, $2, … positional args
  • $@ or $ARGUMENTS for all args joined
  • ${1:-default} uses arg 1 when present/non-empty, otherwise default
  • ${@:-default} or ${ARGUMENTS:-default} uses all arguments when present/non-empty, otherwise default
  • ${@:N} for args from the Nth position (1-indexed)
  • ${@:N:L} for L args starting at N
Example:
Default values are useful for optional arguments:
Usage: /component Button "onClick handler" "disabled support"

Loading Rules

  • Template discovery in prompts/ is non-recursive.
  • If you want templates in subdirectories, add them explicitly via prompts settings or a package manifest.