AGENT SKILL

promptfoo-evals

Creates or updates promptfoo evaluation suites, prompts, tests, assertions, and provider configs. Use when adding eval coverage, debugging regressions, or scaffolding a new eval matrix.

License 许可
MIT
最近更新
2026-04-14
Stars
★ 2
Forks
0

01 前言 Front Matter

name
promptfoo-evals
license
MIT
description
Creates or updates promptfoo evaluation suites, prompts, tests, assertions, and provider configs. Use when adding eval coverage, debugging regressions, or scaffolding a new eval matrix.

03 SKILL.md 正文

Promptfoo Evals

Use this skill for:

  • /Users/wendyly/.local/share/agent-skills/external/promptfoo

Scope

  • Create or refine maintainable promptfoo evaluation suites.
  • Prefer deterministic assertions first and model-graded assertions only where they add real value.

Workflow

  1. Search for existing promptfooconfig.yaml, promptfooconfig.yml, or evals/ directories before creating new ones.
  2. For new suites, prefer:
evals/<suite-name>/
  promptfooconfig.yaml
  prompts/
  tests/
  1. Add the schema header to config files:
# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  1. Put prompts in prompts/*.txt or prompts/*.json and reference them with file://.
  2. Keep provider count small and aligned with the real system under test.
  3. Use file-backed tests where possible and include edge cases, regressions, safety/refusal checks, and output-shape validation.
  4. Use deterministic assertions first:
    • equals
    • contains
    • regex
    • is-json
    • javascript
    • python
  5. Use model-graded assertions sparingly:
    • llm-rubric
    • factuality
    • answer-relevance
    • context-faithfulness

Validation

  • During development, run with --no-cache.
  • In the promptfoo repo itself, prefer local build commands over published npm packages.

Example:

npm run local -- validate -c <config>
npm run local -- eval -c <config> --no-cache --env-file .env

Output Contract

When done, state:

  • what the suite evaluates
  • files created or modified
  • how to run it
  • required env vars
  • any unavoidable TODOs

04 同仓库更多 Skills

gerald-ica
gerald-ica/opencode-config-snapshot

web-design-guidelines

Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.

设计师前端开发视觉设计
★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

watchos-design-guidelines

Apple Human Interface Guidelines for Apple Watch. Use when building watchOS apps, complications, or workout features. Triggers on tasks involving Watch UI, Digital Crown, glanceable interfaces, or wrist-based interactions.

设计师视觉设计
★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

visionos-design-guidelines

Apple Human Interface Guidelines for Apple Vision Pro. Use when building spatial computing apps, implementing eye/hand input, or designing immersive experiences. Triggers on tasks involving visionOS, RealityKit, spatial UI, or mixed reality.

设计师视觉设计
★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

tvos-design-guidelines

Apple Human Interface Guidelines for Apple TV. Use when building tvOS apps with focus-based navigation, Siri Remote input, or living room viewing experiences. Triggers on tasks involving Apple TV, tvOS, 10-foot UI, or media playback.

设计师视觉设计
★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

timesfm-forecasting

Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM/GPU before loading the model, validates dataset fit before processing, supports CSV/DataFrame/array inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.

电子表格
★ 2
gerald-ica
gerald-ica/opencode-config-snapshot

sqlmap-defensive-audit

Use when working with sqlmap for defensive SQL injection research, local lab validation, code reading, or safe remediation guidance around SQLi testing workflows.

★ 2