本文へスキップ
Skillpedia
プロンプトとLLM40k · #7064

arize-prompt-optimization

できること

このツールは、AIの回答を改善するのに役立ちます。質問(プロンプト)がどのように行われたかを分析し、より正確な結果が得られるように、どのように書けばよいかを提案します。

使う場面

  • ✓AIの回答が期待どおりでないとき。
  • ✓AIをより効率よく動かしたいとき。
  • ✓AIへの新しい指示を作成するとき。

スキルのリンク

https://github.com/github/awesome-copilot/blob/main/skills/arize-prompt-optimization/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“AIの回答を、私の質問に対してより良くするにはどうすればよいですか?”

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

仕組み

ツールは、以前にAIが行った回答のデータを確認し、その情報を使って指示を調整します。これは自動で行われ、パフォーマンスが最適化されます。

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

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Arize Prompt Optimization Skill

SPACE — All --space flags and the ARIZE_SPACE env var accept a space name (e.g., my-workspace) or a base64 space ID (e.g., U3BhY2U6...). Find yours with ax spaces list.

Concepts

Where Prompts Live in Trace Data

LLM applications emit spans following OpenInference semantic conventions. Prompts are stored in different span attributes depending on the span kind and instrumentation:

Column What it contains When to use
attributes.llm.input_messages Structured chat messages (system, user, assistant, tool) in role-based format Primary source for chat-based LLM prompts
attributes.llm.input_messages.roles Array of roles: system, user, assistant, tool Extract individual message roles
attributes.llm.input_messages.contents Array of message content strings Extract message text
attributes.input.value Serialized prompt or user question (generic, all span kinds) Fallback when structured messages are not available
attributes.llm.prompt_template.template Template with {variable} placeholders (e.g., "Answer {question} using {context}") When the app uses prompt templates
attributes.llm.prompt_template.variables Template variable values (JSON object) See what values were substituted into the template
attributes.output.value Model response text See what the LLM produced
attributes.llm.output_messages Structured model output (including tool calls) Inspect tool-calling responses

Finding Prompts by Span Kind

  • LLM span (attributes.openinference.span.kind = 'LLM'): Check attributes.llm.input_messages for structured chat messages, OR attributes.input.value for a serialized prompt. Check attributes.llm.prompt_template.template for the template.
  • Chain/Agent span: attributes.input.value contains the user's question. The actual LLM prompt lives on child LLM spans -- navigate down the trace tree.
  • Tool span: attributes.input.value has tool input, attributes.output.value has tool result. Not typically where prompts live.

Performance Signal Columns

These columns carry the feedback data used for optimization:

Column pattern Source What it tells you
annotation.<name>.label Human reviewers Categorical grade (e.g., correct, incorrect, partial)
annotation.<name>.score Human reviewers Numeric quality score (e.g., 0.0 - 1.0)
annotation.<name>.text Human reviewers Freeform explanation of the grade
eval.<name>.label LLM-as-judge evals Automated categorical assessment
eval.<name>.score LLM-as-judge evals Automated numeric score
eval.<name>.explanation LLM-as-judge evals Why the eval gave that score -- most valuable for optimization
attributes.input.value Trace data What went into the LLM
attributes.output.value Trace data What the LLM produced
{experiment_name}.output Experiment runs Output from a specific experiment

Prerequisites

Proceed directly with the task — run the ax command you need. Do NOT check versions, env vars, or profiles upfront.

If an ax command fails, troubleshoot based on the error:

  • command not found or version error → see references/ax-setup.md
  • 401 Unauthorized / missing API key → run ax profiles show to inspect the current profile. If the profile is missing or the API key is wrong, follow references/ax-profiles.md to create/update it. If the user doesn't have their key, direct them to https://app.arize.com/admin > API Keys
  • Space unknown → run ax spaces list to pick by name, or ask the user
  • Project unclear → ask the user, or run ax projects list -o json --limit 100 and present as selectable options
  • LLM provider call fails (missing OPENAI_API_KEY / ANTHROPIC_API_KEY) → run ax ai-integrations list --space SPACE to check for platform-managed credentials. If none exist, ask the user to provide the key or create an integration via the arize-ai-provider-integration skill
  • Security: Never read .env files or search the filesystem for credentials. Use ax profiles for Arize credentials and ax ai-integrations for LLM provider keys. If credentials are not available through these channels, ask the user.

Phase 1: Extract the Current Prompt

Find LLM spans containing prompts


…
よくある質問

「スパン」とは何ですか?

スパンは、AIが行う各処理ステップの記録のようなものです。質問を処理したときに何が起きたかを把握するのに役立ちます。

「プロンプト」とは何ですか?

プロンプトは、AIに与える指示や質問のことです。プロンプトの質がそのまま回答の質に影響します。

ここでの「最適化」とはどういう意味ですか?

最適化とは、物事を可能な限り最も効果的に機能させることです。この場合は、AIへの指示を、良い回答を得るために最も効果的なものにすることを指します。

詳細

作者による元の説明

Optimizes, improves, and debugs LLM prompts using production trace data, evaluations, and annotations. Extracts prompts from spans, gathers performance signal, and runs a data-driven optimization loop using the ax CLI. Use when the user mentions optimize prompt, improve prompt, make AI respond better, improve output quality, prompt engineering, prompt tuning, or system prompt improvement.

repo: github/awesome-copilot

人気

GitHubのスター
40k
ランキング
#7064
ライセンス
MIT
更新日
2026/10/15

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

0

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

コメント

  • …

このリポジトリの他のスキル

似ているスキル