| name | prompt-writing |
| description | Create, refine, and optimize high-quality YAML prompts for AI assistants. Use when working with prompt templates, system prompts, agent prompts, or any prompt engineering tasks. Provides structure guidelines, template patterns, and quality standards for YAML-based prompts. |
| license | Complete terms in LICENSE.txt |
Prompt Writing
Create and optimize YAML-based prompts for AI assistants following industry best practices.
Quick Start
Standard YAML Prompt Structure
system_prompt: |-
# Section with ### header
## Subsection with ## header
Content with clear structure.
**Bold key concepts**
- Bullet points for requirements
- Consistent indentation (2 spaces)
1. Numbered lists for sequences
2. Use when order matters
user_prompt: |
Direct instructions with {{ variable placeholders }}
Key Principles
- Structure: Use
|- for multi-line system prompts, | for user prompts
- Templating: Use
{{ variable }} for dynamic content
- Separators: Use
--- sparingly, only between major sections
- Language: Keep prompts in consistent language (English recommended for templates)
Quality Checklist
Before finalizing any prompt, verify:
Common Patterns
System Prompt with Sections
system_prompt: |-
### Role Definition
You are a professional [role name]. Your task is to [core responsibility].
1. First requirement
2. Second requirement
3. Third requirement
- Do this
- Don't do that
- Always do this
Respond in plain text without separators.
Jinja2 Template Variables
user_prompt: |
Please analyze the following {{ document_type }}:
Name: {{ filename }}
Content: {{ content }}
Summary ({{ max_words }} words):
References
Related Tools
When working with prompts, also consider:
- YAML validation tools
- Jinja2 syntax checkers
- Markdown linters