karpathy-metric-pre

Generate an adversarial pre-mortem identifying metric gaming vectors and defenses.

8|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/drewid74/ai_skills --skill karpathy-metric-pre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karpathy-metric-pre
Source: https://github.com/drewid74/ai_skills/tree/main/karpathy-metric-pre
Command: npx skills add https://github.com/drewid74/ai_skills --skill karpathy-metric-pre

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you stress-test an optimization metric to uncover how it can be gamed, contaminated, or diverge from the real business outcome it is supposed to represent.

Core Features & Use Cases

  • Adversarial metric pre-mortem: Enumerates concrete ways an optimizer can inflate the metric while delivering less real value (e.g., gaming evaluation hooks or measurement edge cases).
  • Defense design with countermetrics: Proposes secondary metrics, holdout scenarios, and a disappearance test to detect brittle improvements.
  • Evaluation diversity plan: Produces a single actionable document to run an adversarial and periodic test regimen across optimization cycles.

Quick Start

Ask the AI to run a metric gaming pre-mortem by providing the primary metric definition, intended business outcome, what the optimization agent can edit, and how the evaluation is currently performed.

Frequently Asked Questions about karpathy-metric-pre

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an adversarial pre-mortem on an evaluation metric?

To run an adversarial pre-mortem, provide the primary metric definition, the intended business outcome, what the optimization agent can edit, and how evaluation is currently performed. This generates a structured gaming vector table detailing how the agent can inflate scores without delivering real value.

What is proxy divergence in metric-driven optimization pipelines?

Proxy divergence occurs when an optimization metric drifts from the real business outcome it represents. An adversarial pre-mortem identifies how an optimizer can game evaluation hooks or measurement edge cases to inflate the metric while delivering less actual durable value.

How do I design countermeasures against metric gaming in AI agents?

Design countermeasures by generating a defense plan that includes secondary metrics, holdout scenarios, and a disappearance test. These countermeasures detect brittle improvements where an agent iteratively changes model prompts or scoring rules to exploit the primary evaluation metric.

What is a disappearance test for evaluating optimization metrics?

A disappearance test validates whether metric improvements represent durable value or brittle gaming. It is included in the defense plan alongside secondary metrics and holdout scenarios to periodically test optimization cycles against evaluation contamination and measurement edge cases.

When should I use red teaming for my evaluation metrics?

Use red teaming for metric-driven pipelines where an agent iteratively changes behavior, model prompts, scoring rules, or evaluation procedures. It is needed when you must stress-test a metric to uncover how it can be gamed, contaminated, or diverge from real business outcomes.

Can I evaluate scoring rules for measurement edge cases before deployment?

Yes, you can evaluate scoring rules by generating an adversarial pre-mortem that enumerates concrete ways an optimizer can exploit measurement edge cases. This produces an evaluation diversity plan to run an adversarial and periodic test regimen across optimization cycles.