playground
БесплатноБез исполняемых скриптовНе проверенAuthor, edit, or iterate on prompts in the Phoenix prompt playground, including running experiments over a dataset. Load before any playground `ui.*`…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
Prompt Playground
The prompt playground is a tool for authoring and optimizing prompts. It supports two different ways of working: fast manual prompt iteration without a dataset, and dataset-backed prompt experimentation with evaluators and experiments. Choose the workflow that matches the user's current goal and the UI context they have mounted.
The playground actions named below are ui.* operations, called from execute_browser_action scripts as
await ui.<operation>(input) (for example await ui.playground.run({})). Confirm exact input
shapes with search_browser_actions before first use, and prefer one small script that chains related steps
over many single-call scripts.
Workflow: Create And Iterate Without A Dataset
Use this workflow when the user wants to draft, rewrite, or manually improve a prompt and no dataset-backed evaluation loop is in scope.
- Clarify the task the prompt must perform: input variables, expected output shape, audience, constraints, and examples of good or bad behavior when available.
- If a playground prompt already exists, call
ui.playground.prompt.readbefore proposing changes so you have the current messages, message IDs, labels, and revision. - Draft or revise the prompt so it clearly states the task, required context, output contract, and success criteria. Keep the prompt directly tied to the user's stated goal.
- Use
ui.playground.prompt.editfor changes to the mounted prompt so the user can review the diff before accepting it. - Use
ui.playground.instance.addwhen the user wants a fresh comparison instance that starts from the default prompt messages. Useui.playground.instance.clonewhen comparing alternatives should preserve existing prompt content as the starting point. Discuss variants by their alphabetic labels, but pass numeric instance IDs to operations. After adding, use the returnedaddedInstancesnapshot for follow-up edits. - Use
ui.playground.variables.setwhen the user provides manual values for prompt template variables. - Use
ui.playground.repetitions.setbefore running when the user is concerned about flakes, structured output consistency, tool-call reliability, or whether the prompt is ready to save. LLM outputs are nondeterministic; repetitions build confidence by checking the same task across multiple runs instead of trusting one successful response. - Call
ui.playground.runonly when the user asks to run, try, test, or compare the current prompt. Treat the output as qualitative feedback rather than dataset-backed evidence. One script can run and read in sequence:const run = await ui.playground.run({}); if (!run.ok) return run; return await ui.playground.run.readOutput({}); - After the run finishes, call
ui.playground.run.readOutputto inspect raw output and get the traceId for trace analysis when needed. If the run used multiple repetitions, inspect every repetition before summarizing confidence or recommending that the user save. - Call
ui.playground.prompt.saveonly when the user explicitly asks to save or confirms that the current prompt should be persisted. For a first-time save of an unsaved prompt, omitnameunless the user provided one; the operation will derive a valid Phoenix prompt name from the prompt content. Always pass a save description; it should read like a clear, short git commit message. Treat tags like releases and do not promote tags unless the user asks. - Inspect the output with the user, identify the next concrete improvement, and repeat the edit or comparison loop until the prompt is useful for the task.
Workflow: Iterate Over A Dataset With Evaluators And Experiments
Use this workflow when the user wants evidence that a prompt is improving across a dataset, or when
they are comparing prompt variants using evaluator results. Running a prompt over a dataset is
implicitly an experiment: consult the experiments skill before designing the run, not only after
results arrive — it owns the iteration methodology end to end (what to stage at creation, how to
read and compare results, when an evaluator is warranted), and the evaluators skill owns designing
the evaluators that score them. This workflow covers only the playground mechanics of setting up and
starting a recorded run.
- Load the dataset with
ui.playground.dataset.loadif it isn't already loaded. If the user named a dataset but no split and the dataset has splits, name them and ask whether to scope to one or load the whole dataset — then load once. - Make sure the starting prompt is well formed before running it: it should define the task, relevant variables, output format, and any constraints needed for consistent evaluation.
- Use
ui.playground.experiment.setRecordingbefore running when the user wants the next dataset-backed playground run recorded, persisted, or saved as an experiment, or wants to name, describe, or atta
Установить playground в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл playground?
Author, edit, or iterate on prompts in the Phoenix prompt playground, including running experiments over a dataset. Load before any playground `ui.*` operation call, including single-shot prompt rewrites.
Как установить скилл playground?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл playground запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic