Kein-chronicle

LLM Adaptation Fidelity Check — AI skill for Claude Code

AI community

Check that an adaptation of a source text stays faithful: verbatim quotes, no invented sentences or numbers, bounded framing, declared omissions.

How to install LLM Adaptation Fidelity Check

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

What LLM Adaptation Fidelity Check does

Check that an adaptation of a source text stays faithful: verbatim quotes, no invented sentences or numbers, bounded framing, declared omissions.

Alternatives in AI

README

llm-adaptation-fidelity-check

**Check that an adaptation of a source text stays faithful: verbatim quotes, no invented sentences or numbers, bounded framing, declared omissions.**

[![test](https://github.com/Kein-chronicle/llm-adaptation-fidelity-check/actions/workflows/test.yml/badge.svg)](https://github.com/Kein-chronicle/llm-adaptation-fidelity-check/actions/workflows/test.yml) ![license](https://img.shields.io/badge/license-MIT-blue.svg) ![dependencies](https://img.shields.io/badge/dependencies-none-brightgreen.svg)

Why

When an LLM rewrites a source, the failures are specific: a quote gets reworded, a number appears from nowhere, filler pads the length, a paragraph is dropped silently. These are checked with string and number comparison, not another model.

Install

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

git clone https://github.com/Kein-chronicle/llm-adaptation-fidelity-check.git ~/.claude/skills/source-fidelity-gates

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

**As plain scripts:**

git clone https://github.com/Kein-chronicle/llm-adaptation-fidelity-check.git
cd llm-adaptation-fidelity-check

**Requires:** Python 3.10+.

Quick start

Check a good and two bad adaptations:

$ bash examples/demo.sh
# A faithful adaptation of a source text
$ python3 scripts/check_fidelity.py tests/fixtures/good.json tests/fixtures/source.txt
[PASS] P1 paragraphs are verbatim from the source
[PASS] P2 quotes verbatim
[PASS] P3 no additions
[PASS] P4 every sentence maps to a paragraph
[PASS] P5 framing bounded
[PASS] P6 numbers exist in source
[PASS] P7 core kept
[PASS] P10 dropped == declared
[exit 0]

# A quote the adaptation altered, and a number it invented
$ python3 scripts/check_fidelity.py tests/fixtures/bad_quote.json tests/fixtures/source.txt
[PASS] P1 paragraphs are verbatim from the source
[