本文へスキップ
Skillpedia
プロンプトとLLM6.1k · #14426

prompt-writing

できること

このスキルは、システムプロンプトやエージェント用プロンプトなど、YAMLに保存されたプロンプトの作成と改善を導きます。AIアシスタントを作り、わかりやすく整理されたプロンプトがほしい人のためのものです。

使う場面

  • ✓AIアシスタントのシステムプロンプトを書いているとき。
  • ✓うまく動いていないYAMLのプロンプトテンプレートを改善したいとき。
  • ✓プロンプトに変数や明確なセクションを追加する必要があるとき。

スキルのリンク

https://github.com/ModelEngine-Group/nexent/blob/develop/.claude/skills/prompts-writing/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ModelEngine-Group/nexent/blob/develop/.claude/skills/prompts-writing/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“サポートエージェント用のYAMLのシステムプロンプトを書き直してください。セクションを分かりやすくし、顧客名の場所を作り、チェックリストも入れてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、エージェントに標準的なYAMLの形式、見出し・リスト・プレースホルダーのルール、品質チェックリストを提供します。エージェントはこれらを使ってプロンプトを作成または修正し、返す前に確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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
よくある質問

どの形式を使いますか?

システムプロンプトのブロックとユーザープロンプトのブロックを持つYAMLを使います。

変数はどう書きますか?

動的な内容は二重の波かっこで書きます。

結果を確認しますか?

はい。スキルには、仕上げる前にプロンプトを確かめるチェックリストが含まれています。

詳細

作者による元の説明

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

人気

GitHubのスター
6.1k
ランキング
#14426
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

似ているスキル