prompt-writing
What it does
This skill guides the writing and refining of prompts stored in YAML, such as system prompts and agent prompts. It is for people who build AI assistants and want clear, well-structured prompts.
When to use it
- ✓When you are writing a system prompt for an AI assistant.
- ✓When you want to improve a YAML prompt template that is not working well.
- ✓When you need to add variables and clear sections to a prompt.
Skill link
https://github.com/ModelEngine-Group/nexent/blob/develop/.claude/skills/prompts-writing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Rewrite my YAML system prompt for our support agent so it has clear sections, placeholders for the customer name, and a checklist.”
5 new skills a week. 1 minute to read.
How it works
The skill gives the agent a standard YAML layout, rules for headings, lists and placeholders, and a quality checklist. The agent uses these to create or refine the prompt and checks it before handing it back.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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:
- No unclosed braces
{{without}} - No excessive separators (
---,***) - Consistent heading hierarchy (
###→##) - Clear variable placeholders with descriptive names
- Proper YAML indentation preserved
- No HTML tags in Markdown content
- Lists have parallel structure
Common Patterns
System Prompt with Sections
system_prompt: |-
### Role Definition
You are a professional [role name]. Your task is to [core responsibility].
### Requirements
1. First requirement
2. Second requirement
3. Third requirement
### Guidelines
- Do this
- Don't do that
- Always do this
### Output Format
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
- Best Practices: See best-practices.md for detailed guidelines
- Templates: See templates.md for reusable patterns
- Examples: See examples.md for real-world samples
Related Tools
When working with prompts, also consider:
- YAML validation tools
- Jinja2 syntax checkers
- Markdown linters
FAQ
What format does it use?
It uses YAML with a system prompt block and a user prompt block.
How are variables written?
Dynamic content uses double curly braces, such as a variable name in double braces.
Does it check the result?
Yes, the skill includes a checklist to verify the prompt before finalizing it.
Details
Original description by the author
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.
repo: ModelEngine-Group/nexent
Popularity
- GitHub stars
- 6.1k
- Ranking position
- #14426
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
Similar skills
writing-skills
311kTeaches your agent to write new skills and test each one first, checking that the skill actually changes how the agent behaves.
writing-for-agents
310kExplains how to write clear instructions for AI agents, including skills, AGENTS.md, and CLAUDE.md files, so the agent behaves predictably.
bengali-nlp
280kHas your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.