agentleFS
HarambeeAIHarambeeAI/bayes-ship/skills/ai-regression-testing/SKILL.md

ai-regression-testing

Skill1 starsChanged 8 months agoMITView on GitHub

AI-specific regression testing for model output drift, prompt sensitivity, and embedding consistency. Use during QA phase for products with AI features. Source: everything-claude-code.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use nuxt4-patterns, dart-flutter-patterns and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mryeastcodeSkill

    nuxt4-patterns

    Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.

    Also in 5 projects that use this

  • JamkrisSkill

    dart-flutter-patterns

    Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.

    Also in 4 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 7 projects that use this

  • JamkrisSkill

    agent-payment-x402

    Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol.

    Also in 3 projects that use this

  • aragaobrunoSkill

    vite-patterns

    Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.

    Also in 3 projects that use this

  • Exploration-labsSkill

    token-budget-advisor

    Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.

    Also in 3 projects that use this

  • +2 more from mryeastcode
  • +4 more from Jamkris

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test multiple phrasings of the same question

    line 19
  2. Distinctive:

    Verify consistent answers across phrasings

    line 20
  3. Distinctive:

    After re-index: compare overlap (should be >80% for same data)

    line 24
  4. Distinctive:

    Verify the agent's actual tool calls match

    line 28
  5. Distinctive:

    After any model version change

    line 42
  6. Distinctive:

    After any prompt modification

    line 43
  7. Distinctive:

    After changing chunking strategy or retrieval parameters

    line 45

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

AI Regression Testing

Why standard tests aren't enough

Standard unit tests verify deterministic logic. AI features produce non-deterministic output. A model update, prompt change, or embedding version bump can silently degrade quality without any test failing.

What to regression test

  1. Model output drift: Same input produces substantially different output after model/prompt changes
    • Baseline: record outputs for a fixed set of inputs
    • On each change: re-run and compare (semantic similarity, not exact match)
    • Alert if similarity drops below threshold
  2. Prompt sensitivity: Small prompt changes cause large output changes
    • Test multiple phrasings of the same question
    • Verify consistent answers across phrasings
  3. Embedding consistency: Vector search results change after re-indexing
    • Baseline: record top-K results for test queries
    • After re-index: compare overlap (should be >80% for same data)
  4. Tool calling accuracy: Agent calls the correct tool with correct arguments
    • Record expected tool call sequences for test scenarios
    • Verify the agent's actual tool calls match

Implementation pattern

def test_invoice_search_regression():
    baseline_results = load_baseline("invoice_search")
    current_results = agent.search("overdue invoices in March")
    overlap = len(set(baseline_results) & set(current_results)) / len(baseline_results)
    assert overlap >= 0.8, f"Search regression: only {overlap:.0%} overlap with baseline"

When to run

  • After any model version change
  • After any prompt modification
  • After re-indexing embeddings
  • After changing chunking strategy or retrieval parameters

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.