Tooluck logoTooluck
SKILL.md

arize-prompt-optimization

Agent skill fromgithub/awesome-copilot

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.

How to install arize-prompt-optimization

install arize-prompt-optimization
# install the awesome-copilot pack with the skills CLI
npx skills add github/awesome-copilot

# or add only this skill to Claude Code: copy the folder

skills/arize-prompt-optimization/

# into

~/.claude/skills/arize-prompt-optimization/ (all projects)

.claude/skills/arize-prompt-optimization/ (one project)

skills/arize-prompt-optimization/SKILL.md

MITFull file
1# Arize Prompt Optimization Skill
2
3> **`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`.
4
5## Concepts
6
7### Where Prompts Live in Trace Data
8
9LLM applications emit spans following OpenInference semantic conventions. Prompts are stored in different span attributes depending on the span kind and instrumentation:
10
11| Column | What it contains | When to use |
12|--------|-----------------|-------------|
13| `attributes.llm.input_messages` | Structured chat messages (system, user, assistant, tool) in role-based format | **Primary source** for chat-based LLM prompts |
14| `attributes.llm.input_messages.roles` | Array of roles: `system`, `user`, `assistant`, `tool` | Extract individual message roles |
15| `attributes.llm.input_messages.contents` | Array of message content strings | Extract message text |
16| `attributes.input.value` | Serialized prompt or user question (generic, all span kinds) | Fallback when structured messages are not available |
17| `attributes.llm.prompt_template.template` | Template with `{variable}` placeholders (e.g., `"Answer {question} using {context}"`) | When the app uses prompt templates |
18| `attributes.llm.prompt_template.variables` | Template variable values (JSON object) | See what values were substituted into the template |
19| `attributes.output.value` | Model response text | See what the LLM produced |
20…

Excerpt shown under the repository's MIT license.

More skills in awesome-copilot

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates