一键导入
prompt-evaluation-runner
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | prompt-evaluation-runner |
| description | Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls. |
Use when you need to evaluate an LLM app, test a prompt systematically, or run red-team/vulnerability scans against a target model or application.
promptfoo, evals, braintrust).npx promptfoo@latest if promptfoo is already installed locally).Define risk — state target behavior, failure mode, provider(s), and budget limits before writing any config.
Choose assertions — prefer deterministic checks first:
| Assertion type | When to use |
|---|---|
contains / not-contains | Output must include/exclude specific text |
regex | Structured output pattern (e.g., JSON key present) |
json-schema | Output must conform to a schema |
cost | Must stay under a token/dollar budget |
latency | Must respond within N ms |
javascript / python | Custom logic when simpler types don't fit |
| Model grader | Last resort — only for subjective quality checks |
Use model graders sparingly — pin the grader model and provider explicitly; document the cost and non-determinism risk.
Minimal config structure:
description: "Test that the summarizer stays under 200 words"
providers:
- id: openai:gpt-4o-mini
config:
temperature: 0
prompts:
- "Summarize: {{input}}"
defaultTest:
assert:
- type: javascript
value: output.split(' ').length < 200
tests:
- vars:
input: "{{env.TEST_DOCUMENT}}"
Handle env safely — use {{env.VAR_NAME}} for all secrets and inputs. Never hardcode API keys or sensitive data in config files.
Execute locally — run the smallest suite first. Ask before running long, paid, red-team, or production-targeted suites.
Analyze failures — classify before fixing:
{{env.VAR}} references for secrets.references/eval-config-patterns.mdUse when starting work in a repository with Agent Powerups installed, when a task may match a reusable local skill, command, workflow, hook recipe, AGENTS.md template, or MCP feature.
Use when validating rendered web pages, local dev servers, browser automation, screenshots, forms, auth sessions, or UI evidence with strict browser safety boundaries.
Use when designing or reviewing filesystem MCP access, path boundaries, allowed roots, method allowlists, and safe local file operations.
Use when implementing any feature or bugfix, before writing implementation code
Use when completing tasks, implementing major features, or before merging to verify work meets requirements.
Use when receiving code review feedback, before implementing suggestions — requires technical verification and reasoned pushback, not performative agreement or blind implementation.