Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AMAP ML SkillClaw Quality Scoring

From Leeroopedia
Knowledge Sources
Domains Quality_Evaluation, LLM_Judging
Last Updated 2026-10-22 00:00 GMT

Overview

A quality scoring mechanism that evaluates LLM responses using a Process Reward Model (PRM) with majority voting over multiple independent LLM judge queries.

Description

Quality scoring addresses the problem of objectively measuring how well an LLM response meets the user's instruction. The SkillClaw pattern uses a PRM approach: `prm_m` independent judge queries are sent in parallel to an OpenAI-compatible API, each returning a score of -1 (poor), 0 (neutral), or 1 (good). The final score is determined by majority vote. This reduces variance from any single judge call. A representative evaluation text is returned alongside the score for human review. The scorer is used both for real-time session scoring and for distributed validation replay.

Usage

Use this principle when designing systems that need:

  • Automated quality evaluation of LLM responses
  • Reduced scoring variance via majority voting
  • Real-time quality feedback during proxy sessions
  • Comparative quality evaluation (baseline vs candidate) for skill validation

Theoretical Basis

The PRM scoring uses majority voting over M independent samples:

score=mode(s1,s2,…,sM)

Where each si∈{−1,0,1} is an independent judge response. The variance of the majority vote decreases as O(1/M).

# Abstract algorithm (NOT real implementation)
async def score_response(response, instruction, prm_m=3):
    votes = await parallel_gather([
        judge_llm(response, instruction) for _ in range(prm_m)
    ])
    scores = [parse_vote(v) for v in votes]  # each in {-1, 0, 1}
    final = majority_vote(scores)
    return {"score": final, "votes": scores}

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment