Kein-chronicle

AI Image Pairwise Eval — AI skill for Claude Code

AI community

Evaluate AI-generated art without vibes: position-bias-safe pairwise judging and similarity to reference images with open_clip.

How to install AI Image Pairwise Eval

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Kein-chronicle/ai-image-pairwise-eval and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Image Pairwise Eval does

Evaluate AI-generated art without vibes: position-bias-safe pairwise judging and similarity to reference images with open_clip.

Alternatives in AI

  • Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
  • Pixel Agents — Compressed Reference — VS Code extension with embedded React webview: pixel art office where AI agents (Claude Code terminals) are an 6.5k ★
  • Fast Agent — Code, Build and Evaluate agents - excellent Model and Skills/MCP/ACP Support 3.7k ★

README

ai-image-pairwise-eval

**Evaluate AI-generated art without vibes: position-bias-safe pairwise judging and similarity to reference images with open_clip.**

[![test](https://github.com/Kein-chronicle/ai-image-pairwise-eval/actions/workflows/test.yml/badge.svg)](https://github.com/Kein-chronicle/ai-image-pairwise-eval/actions/workflows/test.yml) ![license](https://img.shields.io/badge/license-MIT-blue.svg)

Why

An LLM that says "this looks better" mostly says "this was shown first". Ask twice with the order swapped and treat a flipped answer as a tie. For references, measure embedding similarity instead of describing.

**Status: beta (embedding inference untested).** Beta: only the pairwise logic is tested; model inference is not exercised by the tests. Embedding similarity is not a quality score.

Install

**As a Claude Code skill** (Claude uses it when the task matches the skill description):

git clone https://github.com/Kein-chronicle/ai-image-pairwise-eval.git ~/.claude/skills/art-eval

For a single project, clone into `/.claude/skills/art-eval` instead, then start a new Claude Code session.

**As plain scripts:**

git clone https://github.com/Kein-chronicle/ai-image-pairwise-eval.git
cd ai-image-pairwise-eval

**Requires:** Python 3.10+, Pillow, torch, pillow, open_clip_torch (optional, for art_similarity.py).

Use the security-patched Pillow runtime:

python3 -m pip install -r requirements.txt

Quick start

Resolve a pairwise judgement:

$ bash examples/demo.sh
# Position bias: ask the judge twice with the two images swapped.
# Each answer is the POSITION picked (first|second). Consistent picks mean a real preference:
$ python3 scripts/pairwise.py first second
A
[exit 0]

# Picking 'first' both times means the judge likes position, not the image: a tie
$ python3 scripts/pairwise.py first first
TIE (answer flipped with order: position bias)
[exit 1]

# Embedding similarity to references needs:  pip