Create powerful, multi-step custom prompts using our intuitive YML template system. Define variables, structure input steps, and generate consistent outputs.
Create your custom prompt template files within your project directory at the following path:
WORKSPACE_DIR/.betteraicode/custom_prompts/your_template_name.yml
Here is an example of a multi-step prompt template for feature development:
title: Feature Development
category: feature-development
format: xml
# Define the steps for user input
steps:
# Step 1 (contains multiple options/fields)
- options:
- title: Requirements
description: Detailed requirements for the feature
input_type: multi_line
section_name: requirements
required: false
step_number: 1 # Determines the order this field appears in the step
- title: Constraints
description: Any constraints or limitations
input_type: multi_line
section_name: constraints
required: false
step_number: 4 # This field appears later within the same step
# Step 2 (contains multiple options/fields)
- options:
- title: Summary
description: Brief summary of the feature
input_type: single_line
section_name: summary
required: true
default: "here is the default value for the summary"
step_number: 2 # Appears early in this step
- title: Is PRD
description: Check if this is a Product Requirements Document
input_type: yes_no
section_name: is_prd
# Optional: Content to include if 'yes' is selected
section_content: This is a Product Requirements Document (PRD).
required: true
step_number: 3 # Appears later in this step
single_line
: A standard text input field.multi_line
: A larger text area for longer input.yes_no
: A simple yes/no selection (e.g., checkbox or radio buttons).When you select a custom prompt, the system reads the corresponding YML file and presents the input fields defined in the steps
and options
sections, ordered correctly.
Based on your input and the template's structure (including any section_content
for selected options), the final prompt context is constructed and processed.
Ensure your YML is correctly formatted and placed in the specified directory.
BETTER AI CODE