Got any cool idea?Share your idea via Suggest Feature or contribute directly—learn how at Contribution Guide.
The Goal: To demonstrate a rapid development workflow:Start with a basic prompt template.
- Use AI Documentation to create a baseline understanding.
- Use AI Improvement to refine and strengthen the prompt.
- Version the final, polished result.
1
Create the Initial Draft
First, let’s create a new prompt. Imagine we need a prompt to summarize meeting transcripts. We’ll start by creating a file with a name and a simple template, but leave the description and tags blank.In your teminal, run the command:Created prompt file:This prompt is functional, but it’s vague and undocumented.
prompts/meeting-summarizer.v1.0.0.yml
2
Generate Documentation with AI
Instead of manually writing a description and thinking of tags, let’s use the Result: The AI analyzes the template and automatically updates the Now our prompt is documented and discoverable, but the template itself can still be improved.
document
command..yml
file:prompts/meeting-summarizer.v1.0.0.yml
3
Improve the Prompt with AI
Our current template is too generic. Let’s ask the AI to make it more specific and structured. Optionally, you can provide notes to LLM using Result: The
note
.You can use the CLI or Python, but the CLI is recommended for clearer visibility into the changes.
improve
command will suggest a much more robust template. After you confirm the changes, your file will be updated. Here’s the updated file:4
Version the Polished Prompt
We’ve transformed our rough draft into a documented and structured prompt. The final step is to lock this polished version or create a new one to signify that it’s a major improvement.