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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
- 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
よくある質問
どの形式を使いますか?
システムプロンプトのブロックとユーザープロンプトのブロックを持つ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
コメント
- …
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。