CLI Reference¶
Entry point: promptframe
The promptframe CLI provides tools for creating, inspecting, validating, and managing YAML prompt files and markdown skill files.
Global Options¶
Prompt Commands¶
init — Create a prompt template¶
| Argument | Description |
|---|---|
template |
Template type: regular (type: prompt) or model (type: model_prompt) |
output |
Output file path (e.g. prompts/my_prompts.yaml) |
-f, --force |
Overwrite if the file already exists |
Example:
promptframe init regular prompts/my_prompts.yaml
promptframe init model prompts/field_prompts.yaml --force
list — List prompt files¶
| Argument | Default | Description |
|---|---|---|
path |
. |
Directory to search for YAML/YML files |
validate — Validate YAML prompt files¶
Checks all .yaml and .yml files under path for required keys (version, metadata, prompts) and that every prompt has a pid.
Output includes a summary of how many files passed and failed.
inspect — Inspect a prompt file¶
Displays metadata (version, type, name, project, prompt count) and a table of all prompts with their descriptions.
render — Render a specific prompt¶
Render a single prompt by its pid. If the prompt contains {placeholders}, you will be prompted for their values interactively.
lint — Lint prompt files¶
Runs structural and best-practice checks on all YAML files under path, reporting warnings and errors.
export — Export a prompt file¶
| Argument | Default | Description |
|---|---|---|
file |
— | Path to the YAML prompt file |
--format |
json |
Export format (currently json) |
-o, --output |
stdout | Output file path |
diff — Compare two prompt files¶
Show a side-by-side diff of two prompt YAML files.
scaffold — Scaffold a prompt directory structure¶
Creates a standard directory layout with dev/, test/, prod/, and common/ sub-folders.
| Argument | Default | Description |
|---|---|---|
path |
prompts |
Base directory to create |
--example |
— | Also create an example prompt file in common/ |
-f, --force |
— | Allow scaffolding into a non-empty directory |
Generated structure:
prompts/
├── common/
│ └── .gitkeep
├── dev/
│ └── .gitkeep
├── test/
│ └── .gitkeep
└── prod/
└── .gitkeep
Skill Commands¶
All skill subcommands are under promptframe skill.
skill init — Create a new skill¶
| Argument | Default | Description |
|---|---|---|
name |
— | Skill name (used as directory/file name) |
--path |
skills |
Base directory for skills |
-f, --force |
— | Overwrite existing skill |
skill list — List available skills¶
| Argument | Default | Description |
|---|---|---|
path |
skills |
Directory to scan |
skill inspect — Inspect a skill¶
Display metadata (name, description, tags, version, sections) for a skill.
skill render — Render a skill¶
| Argument | Default | Description |
|---|---|---|
key |
— | Skill key (directory or file stem) |
--path |
skills |
Skills directory |
--section |
— | Render only this section (repeatable for multiple sections) |
--no-name |
— | Omit the skill name heading |
skill validate — Validate skills¶
Check all skill files under path for valid frontmatter and required fields.
skill lint — Lint skills¶
Run best-practice checks on all skill files.
skill diff — Diff two skills¶
Show a diff between two skill files.
skill search — Search skills¶
Search skill names, descriptions, and tags for a keyword.