Logo vun Canon Check

Canon Check

Communautéit
Mikefluff
canon-check

Read-only story-bible auditor for fiction series with a documented canon. Cross-references character / artifact / location mentions in chapters against the bible and flags drift. Produces a drift report — never edits files. Use before opening or committing a chapter, or when reintroducing an established entity.

Iwwersiicht

EditeurMikefluff
Repositoryskills
Skill-Nummcanon-check
Stären
26
Forks
2
Matgeliwwert Fichieren
6
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Mikefluff op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Canon Check an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Mikefluff/skills/tree/main/skills/canon-check
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mikefluff/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/canon-check .claude/skills/canon-check
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Canon Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Canon Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Canon Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Why this skill exists. The same canon-break patterns recur across long-form fiction projects: a character's documented physical invariant gets accidentally inverted in a later chapter; an artifact moves room without explanation; a recurring character appears under a generic descriptor when an established proper name already exists; a count or age stated in the bible doesn't match what the text actually shows. Each break is cheap to catch at lint time and expensive to catch in print.

Use cases:

  • before opening a new chapter — confirm the names / artifacts / locations you're about to establish don't duplicate something already established;
  • before git commit — staged diff vs canon;
  • when mentioning a known character in a new scene — gather all their prior appearances + their bible entry;
  • read-only audit of the bible itself (what gets mentioned in the text but never canonized).

What the skill needs to know about your project:

  • where your chapter files live (any of .md / .tex / .txt / .rst)
  • where your story bible lives (typically a single document per book — <book>/notes/story-bible.{md,tex,txt} or similar)
  • which books are in the same series (so the skill can cross-reference inherited canon)

If the project follows the conventional layout (<book>/{lang}/chapters/* for chapters, <book>/notes/story-bible.* for the bible), the default routing works out of the box. Otherwise, override the routing patterns in references/routing.md.

ROLE

Story-bible auditor. NOT a continuity editor. The skill only signals discrepancies between:

  • (a) the current draft,
  • (b) the story bible,
  • (c) other published chapters of the same book.

The user decides. The skill does not edit the chapter or the bible.

CORE PRINCIPLE — TRUST THE TEXT, NOT MEMORY

When a contradiction appears between "what the current chapter says", "what the bible says", and "what the model 'remembers'" — the resolution priority is:

  1. Published chapters of the same book = ground truth. Anything recorded in <book>/<lang>/chapters/* is canon, even if the bible is silent.
  2. The story bible = next canon tier. If a chapter and the bible disagree — this is material for the user to decide, not for auto-fix.
  3. Model memory / claims about prior text = LEAST trusted source. If you "remember" otherwise, you are wrong. Grep and re-read.

Never cite prior text from memory. Always grep + Read before stating "in chapter X it was Y".

ROUTING

The skill picks the bible to apply based on file path. Full table — in references/routing.md. Briefly (illustrative defaults; adapt to your project):

<book>/{ru,en,pt-br,...}/chapters/*.{md,tex,txt,rst}  → <book>/notes/story-bible.{md,tex,txt}
sequel-book/<lang>/chapters/*                         → sequel-book/notes/story-bible.* + parent-book/notes/story-bible.*
                                                       (for inherited-canon sections)
any other path                                        → SKIP silently

MODES

chapter <book> <chN> — full canon scan of a chapter

bash
# Example:
canon-check chapter your-book ch07
# → scans <book>/<lang>/chapters/ch07.{md,tex,...}
#   (plus other-language siblings if present — but the bible is one)

Full pass over the file: extract entities → cross-reference the bible → collect other appearances.

staged — staged diff

bash
git diff --cached --name-only
# for each known-book chapter file — pass over added/changed lines

entity <book> <name> — all appearances of an entity

bash
canon-check entity your-book "Character A"
# → bible entry + list of every file and line where it appears

Useful before writing a new scene with an already-established character.

audit-bible <book> — structural bible audit

Find entities mentioned in chapters/* ≥ N times but with no bible entry (WARNING — "silent canon"). Does not edit the bible — just lists.

PIPELINE (short version; full version — in references/workflow.md)

Step 1. Extract entities from the text under review.

  • Characters: capitalized words (any script) + cross-reference with the established-name list from the bible (Characters / Main characters / Supporting characters sections).
  • Artifacts: dictionary built from the bible's Physical invariants / Artifacts sections. Each book maintains its own dictionary.
  • Locations: toponyms from the bible's Locations / Locations of weight section.

Step 2. For each entity — gather context.

bash
# bible entry:
grep -n -A 5 "<entity>" <book>/notes/story-bible.*

# other appearances in chapters:
grep -rn "<entity>" <book>/<lang>/chapters/

Read everything. Don't quote from memory.

Step 3. Compare with the current text.

Look for contradictions:

  • attribute (age, profession, location, colour) diverges from the bible or from another chapter
  • gesture / physical invariant (handedness, lag, count) altered
  • anchor quote paraphrased
  • artifact changed location / owner / grammatical gender
  • character appears without a name, even though the bible already locks them under a proper name

Step 4. If a new entity — flag for the user.

If a clearly new entity appears in the text (proper noun, artifact) that has no bible entry — WARNING, not auto-add. The skill does not edit the bible. The user decides: canonize or remove.

Full list of detection classes and pattern-detection recipes — in references/known-incidents.md.

SEVERITY LEVELS

  • BLOCKING — text contradicts a concrete bible entry (example: bible "Character A is right-handed, grip = thumb+index on top"; text "took it left-handed"). Or: text contradicts another published chapter of the same book.
  • WARNING (silent canon) — entity appears in the text ≥ 2 times (in this chapter or others), but has no bible entry. Should be added.
  • WARNING (cross-chapter drift) — bible silent, but two chapters give different attributes for the same entity.
  • INFO (canon expansion) — a new detail introduced about an already-canonized entity (not a contradiction — an expansion). Optionally add to the bible.

EXIT CODE (if invoked as a pre-commit hook)

  • 0 — only INFO. Commit allowed.
  • 1 — WARNING (silent canon / cross-chapter drift). Ask the user.
  • 2 — BLOCKING (clear contradiction). Abort the commit.

In normal calls the exit code is not used — only the report.

INTEGRATION

The skill does not install the hook itself. If the user asks — the standard pattern from style-check: .git/hooks/pre-commit calls a Claude Code wrapper with /canon-check staged. The skill does not edit .git/hooks/ itself.

OUTPUT FORMAT

Structured report with three sections (by severity) + SUMMARY with bible coverage. Reference template — in examples/sample-report.md.

WHAT NOT TO DO

  • Does not edit chapters. Reports only. Edits — via prose-edit or by hand.
  • Does not edit the story bible. The user updates the bible after deciding which version is canonical.
  • Does not trust its own memory about prior chapters — always grep + Read. If you "remember" it differently from what the text says — the text wins.
  • Does not auto-canonize. A new entity → WARNING for the user, not a silent bible append.
  • Does not spawn sub-agents. Read-only, everything via Read + Grep + Bash.
  • Does not touch code. .py, .js, .ts, .go — skip.
  • Does not run inside /loop or /schedule. This is an interactive audit, not a cron job.

REFERENCES (load on demand)

FileWhen to load
references/workflow.mdNeed exact grep commands for entity extraction and canon cross-reference. 3-step protocol with examples.
references/bible-format.mdNeed the typical structure of a story bible — what sections to expect, where new entries go.
references/known-incidents.mdNeed calibration on the general classes of canon break this skill is designed to catch (with detection recipes).
references/routing.mdDeciding which bible to apply to a given file path.
examples/sample-report.mdNeed tone/detail calibration for the report.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Canon Check?

Read-only story-bible auditor for fiction series with a documented canon. Cross-references character / artifact / location mentions in chapters against the bible and flags drift. Produces a drift report — never edits files. Use before opening or committing a chapter, or when reintroducing an established entity.

Firwat Canon Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Canon Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Canon Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Mikefluff/skills/tree/main/skills/canon-check an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Canon Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Canon Check benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Canon Check domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Canon Check gratis?

Jo. De Skill gëtt vum Mikefluff ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇