Logo : Canon Check

Canon Check

Communauté
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.

Présentation

ÉditeurMikefluff
Dépôtskills
Nom de la compétencecanon-check
Étoiles
26
Forks
2
Fichiers inclus
6
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 6

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par Mikefluff sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Canon Check dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Mikefluff/skills/tree/main/skills/canon-check
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet 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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Canon Check dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Canon Check dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Canon Check n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA 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.

Pourquoi utiliser Canon Check sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Canon Check se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Canon Check dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Mikefluff/skills/tree/main/skills/canon-check. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Canon Check ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Canon Check ?

Autant que vous le souhaitez. Vous pouvez utiliser Canon Check avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Canon Check est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Mikefluff sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇