Skip to content
daymade avatar

Promptfoo Evaluation

Structured Promptfoo evaluation guide covering configs, prompts, Python assertions, and llm-rubric grading for prompt and model testing.

CCM score
69 of 100
skills.sh installs
1.6K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full eval workflow: init, configure prompts and providers, define test cases, run, and view results
  • Includes configuration examples for promptfooconfig.yaml, chat and few-shot prompt formats, and common assertion types such as contains, regex, and latency
  • Explains Python custom assertions (get_assert) and LLM-as-judge rubrics with thresholds and per-rubric grader providers
  • Designed for teams testing prompts or comparing models, including relay or proxy API setups with concurrency and file:// path pitfalls

Install

$ npx -y skills add daymade/claude-code-skills --skill promptfoo-evaluation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Promptfoo Evaluation

Overview

This skill provides guidance for configuring and running LLM evaluations using Promptfoo, an open-source CLI tool for testing and comparing LLM outputs.

Quick Start

# Initialize a new evaluation project
npx promptfoo@latest init

# Run evaluation
npx promptfoo@latest eval

# View results in browser
npx promptfoo@latest view

Configuration Structure

A typical Promptfoo project structure:

project/
├── promptfooconfig.yaml    # Main configuration
├── prompts/
│   ├── system.md           # System prompt
│   └── chat.json           # Chat format prompt
├── tests/
│   └── cases.yaml          # Test cases
└── scripts/
    └── metrics.py          # Custom Python assertions

Core Configuration (promptfooconfig.yaml)

# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: "My LLM Evaluation"

# Prompts to test
prompts:
  - file://prompts/system.md
  - file://prompts/chat.json

# Models to compare
providers:
  - id: anthropic:messages:claude-sonnet-4-6
    label: Claude-Sonnet-4.6
  - id: openai:gpt-4.1
    label: GPT-4.1

Details

Repository
github.com/daymade/claude-code-skills
Categories
Testing & QA, AI Agents & LLM Apps
First seen
Jun 3, 2026

More from daymade/claude-code-skills

All 50

Similar to Promptfoo Evaluation

More Testing & QA