agentleFS
shinzoxDshinzoxD/knackbox/skills/productivity/prompt-evaluation/SKILL.md

prompt-evaluation

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Design and review repeatable offline evaluations for prompts, RAG

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run paired comparisons on the same cases.

    line 35
  2. Distinctive:

    Write this contract before implementing a harness:

    line 44
  3. Distinctive:

    If these fields are unknown, produce a proposed contract and mark assumptions instead of building a large dataset around an undefined …

    line 57
  4. Very specific:

    Read references/evaluation-design.md before finalizing a full evaluation, choosing model graders, or evaluating RAG, tool-using agents, …

    line 62
  5. Distinctive:

    Never fabricate runs, labels, confidence intervals, or pass rates.

    line 102
  6. Distinctive:

    Keep prompts, configs, datasets, graders, and raw outputs versioned or content-addressed so a result can be reproduced.

    line 104
  7. Distinctive:

    Do not use the same model output as both the reference answer and the sole evidence that the model is correct.

    line 106
  8. Distinctive:

    Do not let aggregate improvements mask critical safety or policy failures.

    line 108
  9. Distinctive:

    Do not run side-effecting agent evaluations against production.

    line 109
  10. Distinctive:

    Treat model-judge scores as measurements with bias and variance, not truth.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prompt Evaluation

Turn a vague claim such as “the new prompt is better” into a reproducible, decision-linked evaluation. Measure behavior on representative cases, preserve raw evidence, expose segment regressions, and keep graders auditable.

This skill designs the eval. To rewrite the prompt itself, use prompt-improver. To threat-model tool-using agents, use prompt-injection-hardening.

Workflow

  1. Define the release decision, system boundary, unit of evaluation, target population, unacceptable failures, and the smallest meaningful improvement.
  2. Freeze the compared configurations: prompts, model/version, parameters, tools, retrieval index, policies, dependencies, and relevant runtime flags.
  3. Build a versioned dataset from realistic, privacy-safe cases. Include normal, difficult, adversarial, and known-failure cases with stable IDs and tags.
  4. Define observable criteria before running variants. Choose deterministic, programmatic, model-based, and human graders by criterion.
  5. Run paired comparisons on the same cases. Record outputs, traces, grader decisions, latency, token/cost data, errors, retries, and configuration IDs.
  6. Analyze the primary metric, uncertainty, segment performance, grader disagreement, and severity-weighted regressions.
  7. Return a ship decision with explicit thresholds, residual risk, and the cases humans must inspect. Never convert missing measurements into a score.

Evaluation contract

Write this contract before implementing a harness:

FieldRequired decision
DecisionWhat release, prompt, model, or architecture choice will this inform?
UnitOne turn, conversation, retrieved answer, trajectory, or completed task?
PopulationWhich users, languages, intents, risk levels, and input lengths?
CriteriaWhat observable behavior counts as success or failure?
Primary metricWhich single metric gates the decision?
GuardrailsWhich severe failures cannot be averaged away?
ThresholdMinimum acceptable level and maximum allowed regression?
EvidenceWhich outputs, traces, annotations, and config digests are retained?

If these fields are unknown, produce a proposed contract and mark assumptions instead of building a large dataset around an undefined decision.

Detailed design

Read references/evaluation-design.md before finalizing a full evaluation, choosing model graders, or evaluating RAG, tool-using agents, classification, or extraction. Load only the relevant system-specific sections.

Output format

## Evaluation plan: <system or change>

### Decision contract
- Decision: ...
- Unit / population: ...
- Primary metric and threshold: ...
- Non-negotiable guardrails: ...

### Dataset
| Segment | Source | Count target | Risk covered |
|---|---|---:|---|
| ... | ... | ... | ... |

### Graders
| Criterion | Grader | Evidence | Calibration |
|---|---|---|---|
| ... | ... | ... | ... |

### Run protocol
1. ...

### Report
- Primary result with uncertainty: ...
- Segment and severe regressions: ...
- Grader disagreement: ...
- Latency / cost / errors: ...

### Ship rule
Ship only if ...

Rules

  1. Never fabricate runs, labels, confidence intervals, or pass rates. Separate the evaluation plan from measured results.
  2. Keep prompts, configs, datasets, graders, and raw outputs versioned or content-addressed so a result can be reproduced.
  3. Do not use the same model output as both the reference answer and the sole evidence that the model is correct.
  4. Do not let aggregate improvements mask critical safety or policy failures.
  5. Do not run side-effecting agent evaluations against production; use sandboxes, fakes, scoped test accounts, or transaction rollback.
  6. Record model/provider errors separately from graded failures and define retry behavior before the run.
  7. Treat model-judge scores as measurements with bias and variance, not truth.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.