Skip to content
Skillpedia
Prompts & LLMs6.1k · #14426

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.md

Copy 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

Use this skill to help me: https://github.com/ModelEngine-Group/nexent/blob/develop/.claude/skills/prompts-writing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Structure: Use |- for multi-line system prompts, | for user prompts
  2. Templating: Use {{ variable }} for dynamic content
  3. Separators: Use --- sparingly, only between major sections
  4. 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

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

Similar skills