USE THIS SKILL for card content validation — fact-checking, freshness, similarity,
context consistency, or anything about duplicate detection and card quality.
Triggers: "팩트 체크 결과가", "유사한 카드 찾아줘", "문맥 검증",
"검증 캐시", "최신성 검사", "중복 카드", "검증 상태 아이콘",
"validate/all", "Jaccard", "임베딩 유사도", "중복 판정",
"useValidateCard", "useBatchValidate", "검증 4종", "일괄 검증",
"context-checker", "fact-checker", "freshness-checker", "similarity-checker",
"findSimilarGroups", "analyzeCardGroup", "검증 폴백".
Covers the 4 validation types: fact-check, freshness, similarity, context.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
USE THIS SKILL for card content validation — fact-checking, freshness, similarity,
context consistency, or anything about duplicate detection and card quality.
Triggers: "팩트 체크 결과가", "유사한 카드 찾아줘", "문맥 검증",
"검증 캐시", "최신성 검사", "중복 카드", "검증 상태 아이콘",
"validate/all", "Jaccard", "임베딩 유사도", "중복 판정",
"useValidateCard", "useBatchValidate", "검증 4종", "일괄 검증",
"context-checker", "fact-checker", "freshness-checker", "similarity-checker",
"findSimilarGroups", "analyzeCardGroup", "검증 폴백".
Covers the 4 validation types: fact-check, freshness, similarity, context.
카드 검증
검증 4종 개요
검증
파일
API
방식
팩트 체크
fact-checker.ts
POST /api/clinic/fact-check
LLM 기반 (Gemini/OpenAI)
최신성
freshness-checker.ts
POST /api/clinic/freshness
LLM 기반 (Gemini/OpenAI)
유사성
similarity-checker.ts
POST /api/clinic/similarity
Jaccard 또는 임베딩
문맥 일관성
context-checker.ts
POST /api/clinic/context
LLM 기반 (Gemini/OpenAI, nid 링크 그룹)
전체 검증: POST /api/clinic/all — 모든 검사를 병렬 실행
모델 선택 (LLM 기반 검증만 해당): 팩트 체크, 최신성, 문맥 일관성 API에 provider/model 파라미터 지정 가능 (미지정 시 서버 기본값, resolveModelId() 참조). 유사성 검사는 LLM을 사용하지 않으므로 provider/model 파라미터가 없다.
유사성 검사: Jaccard vs 임베딩
비교
Jaccard
임베딩
방식
단어 집합 + 2-gram
OpenAI 의미 벡터 (text-embedding-3-large, 3072차원)
속도
빠름 (로컬)
느림 (API 호출)
정확도
표면적 유사도
의미적 유사도
기본 threshold
70%
85%
중복 판정 임계값
90% 이상
95% 이상
useEmbedding: true 옵션으로 임베딩 모드 활성화 — managing-embeddings 스킬 참조
임베딩 실패 시 자동으로 Jaccard 폴백 (에러 로그 출력 후 Jaccard로 재시도)
clinic/all은 항상 Jaccard만 사용 (기본값 useEmbedding: false로 호출)
임베딩 모드는 /api/clinic/similarity에서 명시적으로 useEmbedding: true 요청할 때만 활성화
덱 전체 유사 카드 그룹 탐지
// Jaccard 기반 그룹 탐지 (임베딩 미사용)const groups = awaitfindSimilarGroups(cards, { threshold: 70 });
// Map<number, number[]> — noteId → 유사한 noteId 배열
문맥 일관성 검사
nid 링크로 연결된 카드 그룹 분석
역방향 링크 검색 (다른 카드가 이 카드를 참조하는 경우)
LLM 기반 논리적 연결 확인 (Gemini/OpenAI)
analyzeCardGroup(cards, options) — 카드 그룹 전체의 일관성 분석 (각 카드별 checkContext 순차 실행, 전체 일관성 점수 합산)