reaatech/agent-eval-harness/faithfulness-scoring

Claude Code and agent skill by reaatech/agent-eval-harness

Trust tier 3
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install reaatech/agent-eval-harness/faithfulness-scoring

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as reaatech/agent-eval-harness/faithfulness-scoring.

Skill: Faithfulness Scoring

What It Is

Faithfulness scoring measures whether an agent's response is grounded in and consistent with the provided context. It detects hallucination, fabrication, and context drift. Available via the eval.judge.faithfulness MCP tool, CLI judge command, and programmatic API.

Why It Matters

  • Hallucination Detection — Catch fabricated information
  • Context Adherence — Ensure responses use provided information
  • Trust Building — Users need reliable, accurate responses
  • Safety — Prevent spreading misinformation

How to Use It

CLI: Score Faithfulness
bash
npx agent-eval-harness judge faithfulness \
--context "The user's account is associated with email john@example.com. Their subscription expires on 2026-05-01." \
--response "I've sent the password reset to john@example.com" \
--model claude-opus \
--calibrated
MCP Tool
json
{
"name": "eval.judge.faithfulness",
"arguments": {
"context": "Account email: john@example.com",
"response": "I've emailed john@example.com"
}
}
Programmatic Usage
typescript
import { JudgeEngine } from '@reaatech/agent-eval-harness';
const engine = new JudgeEngine({
model: 'claude-opus',
provider: 'claude',
temperature: 0.1,
});
const result = await engine.judge({
type: 'faithfulness',
context: "Account email: john@example.com",
response: "I've emailed john@example.com",
});
console.log(`Score: ${result.score}`);
console.log(`Confidence: ${result.confidence}`);
console.log(`Explanation: ${result.explanation}`);
Batch Faithfulness
typescript
const scores = await engine.judgeBatch([
{ id: '1', request: { type: 'faithfulness', context: '...', response: '...' } },
{ id: '2', request: { type: 'faithfulness', context: '...', response: '...' } },
]);

Key Metrics

MetricDescriptionTarget
faithfulness_scoreContext adherence>0.85
hallucination_rateFabricated information<0.05
context_usageProper context utilization>0.90

Scoring Criteria

  1. Factual Accuracy — All claims match the context
  2. No Fabrication — No invented details
  3. Complete Usage — Relevant context is used
  4. No Contradiction — Response doesn't contradict context

Prompt Template

The faithfulness prompt includes:

  • System message defining the evaluation task
  • Context and response to evaluate
  • Scoring rubric (0-1 scale)
  • Required output format: { score, explanation, confidence }

Custom templates available via createCustomTemplate().

Best Practices

  1. Use calibrated judges — Align with human assessment
  2. Set high thresholds — Faithfulness is critical for trust
  3. Review failures — Analyze hallucination patterns
  4. Combine with other metrics — Faithfulness alone isn't sufficient

Common Pitfalls

  • Missing provider — JudgeConfig must include provider (e.g., 'claude')
  • Low thresholds — Faithfulness should be near-perfect
  • Ignoring edge cases — Check boundary conditions
  • No calibration — Raw scores may be inflated
  • Single judge — Use consensus for critical applications

Related Skills

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Refreshed 26 Jun 2026, 5 months ago.

Extension points

  • templateCustom templates for code generation

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/reaatech/agent-eval-harness/faithfulness-scoring/badge)](https://verified-skill.com/skills/reaatech/agent-eval-harness/faithfulness-scoring)

Something wrong with this skill or its page? Tell us.