coherence-review

coherence-review is a skill for Claude Code, Codex from tobyilee/course-builder. It costs 62 tokens per session (1,857 once invoked), scanned A, original, MIT.

A quality review for an online course that checks whether its slides, notes, scripts, and quizzes agree. It verifies structure, learning-objective coverage, question difficulty balance, timing cues, references, tone, and factual consistency.

In plain words
What is it for?
Reviewing generated course assets, checking required files, matching slide and transcript counts, validating references and quiz answers, and reporting dependent checks when an earlier test fails.
Why use it?
Problems often occur between course files rather than inside one file, such as a script referring to the wrong slide or a quiz contradicting the notes. Cross-checking catches these mismatches before release.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tobyilee/course-builder/coherence-review
Any agent
npx skills add tobyilee/course-builder --skill coherence-review
Clone the repo
git clone --depth 1 https://github.com/tobyilee/course-builder

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coherence-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/tobyilee/course-builder/coherence-review.svg)](https://agentmods.dev/skills/tobyilee/course-builder/coherence-review)
Your own site
<a href="https://agentmods.dev/skills/tobyilee/course-builder/coherence-review"><img src="https://agentmods.dev/badge/skills/tobyilee/course-builder/coherence-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.01857
Opus 5 $0.00031 $0.00928
Sonnet 5 $0.00012 $0.00371
Haiku 4.5 $0.00006 $0.00186

Measured 5d ago against content hash 3d8415d99baf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coherence-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/coherence-review/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coherence Review — Cross-Boundary QA

개별 자산 검증이 아니라 자산 간 경계면 검증이 핵심. "slide가 있는가" 보다 "slide와 transcript가 같은 이야기를 하는가"가 훨씬 중요하다.

검사 순서 (fail-fast)

중요도·실행비용 순으로 정렬. 상위 단계 실패 시 하위는 수행하되 리포트에 "의존 실패" 표시.

1. Structural presence

모든 예상 파일 존재 확인.

course/manifest.json OR _workspace/01_*
course/meta/learning_objectives.json
course/sections/<sec>/section.json
course/sections/<sec>/classes/<cls>/{slide.source.md,slide.html,note.md,transcript.txt}
course/sections/<sec>/quiz.json

2. LO Coverage (critical)

모든 LO는 다음 3개소에 ≥1 등장:

  • slide.source.md (footer or body)
  • note.md (blockquote 헤더 or 본문 언급)
  • quiz.json (lo_ids 필드)

측정: LO registry를 grep으로 전수 검사.

3. Bloom Balance

  • 섹션당 Bloom 레벨 ≥3
  • Course 전체 ≥4
  • Apply+Analyze quiz 합 ≥2 / 섹션

4. Slide ↔ Script 정합

  • slide.source.md--- 구분 슬라이드 수 N
  • transcript.txt[slide N] cue 최대값 M
  • N == M 필수

5. Note ↔ Slide 정합

  • note.md의 [slide K] 모든 K가 1~N 범위
  • note가 slide에 없는 새 개념 도입 시 warning (가능하지만 위험)

6. Tone 일관성

  • course_spec의 tone 파라미터와 실제 자산 톤 비교
  • 한 class 안에서 반말/존댓말 혼재 감지 (한국어)
  • 문체 급변 감지 (정규 ML 불필요, 단순 휴리스틱으로 충분)

7. Quiz 사실 검증

  • quiz 정답이 note/slide 내용과 모순되는지
  • distractor가 실제로 오답인지 (가끔 AI가 정답을 distractor에 넣음)

8. Transcript Speakability

  • raw code literal: `(backtick) 포함 여부
  • 긴 숫자: \d{4,} 정규식 — 단, 대괄호 디렉티브 [pause:N], [slide N], [emph]...[/emph] 내부 숫자는 제외 (TTS 후처리용 마커이지 발화 대상 아님). 구현: 먼저 \[(pause|slide|emph|/emph)[^\]]*\] 패턴을 공백으로 치환한 뒤 숫자 검사.
  • 생 URL: https?:// 검출
  • 문장 길이: 20 어절 초과 문장 비율

판정 로직

if (1) fails:
  overall = "revise"; 중단
if (2) 어떤 LO가 0회 등장:
  overall = "revise"
if (3) Bloom 부족:
  overall = "revise"
if (4) cue 수 불일치:
  overall = "revise"
if (5~8) any fail:
  overall = "revise"
else:
  overall = "pass"

리포트 포맷

원칙: atomic dual-write. JSON과 MD를 동일 라운드의 동일 verdict로 한 번에 기록. 중간 저장 후 한 쪽만 overwrite하면 machine gate(JSON)와 사람이 보는 리포트(MD)가 엇갈림 — 실제로 과거 run에서 JSON=pass / MD=REVISE 상태로 빌드가 "성공"한 사례 있음.

_workspace/99_coherence_report.json (machine contract)

{
  "overall": "revise" | "pass",
  "timestamp": "...",
  "course_level": {
    "lo_coverage_pct": 95,
    "bloom_levels": 4,
    "issues": [{"type":"bloom_gap","detail":"..."}]
  },
  "sections": [
    {"section_id":"S1","verdict":"pass","issues":[]}
  ],
  "classes": [
    {"class_id":"S1.C1","verdict":"revise",
     "issues":[
       {"type":"slide_script_mismatch",
        "detail":"slide has 5, script has [slide 6] cue",
        "fix_hint":"Remove [slide 6] from transcript or add slide",
        "route_to":"script-writer"}
     ]}
  ]
}

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 169 lines · 62 tokens per session scan A 3d8415d99baf

Subscribe to this mod's changes

coherence-review is a skill published in the GitHub repository tobyilee/course-builder (22 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 1,857 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

暖纸背景 + Playfair, 左侧学习目标常驻, 含 MCQ 自测页.

nexu-io/html-anything · 25 tokens

best-practices

Searchable knowledge base of 152+ programming best practices across 30+ languages and frameworks. BM25-powered search over curated resources from industry leaders (Google, Airbnb, Uber, Mozilla, Shopify, OWASP).

dereknguyen269/programing-best-practices · 0 tokens