/korean-humanities:hanmun-research-assistantfrom korean-humanities
Routes queries for premodern Korean literature (hanmun) research: source-grounded Q&A, digitization workflows, Obsidian knowledge management, and CJK text encoding/validation. Activates on hanmun research, classical Chinese queries, or CJK encoding issues.
Ships in korean-humanities. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
범위는 한문학(한국의 전근대 한문 기록 문학)이다. 아래 《CJK Text Handling Contract》의 CJK는 학문 범위가 아니라 문자 층위(유니코드 CJK Unified Ideographs·확장 평면)를 가리킨다.
Use this skill as the single router for the user research assistant. It does not replace specialist skills; it selects and coordinates them around a CJK humanities contract grounded in local sources, Obsidian structure, JSONL logs, and explicit claim verification.
한문·옛한글·구결을 다루는 모든 작업의 기반 계약이다. CJK 문자 파이프라인의 만성 사고를 규율이 아니라 기계 검사로 차단한다. 슈트의 모든 스킬·스크립트에 적용된다.
모든 텍스트 파일 I/O에 encoding="utf-8"을 명시한다. Windows에서 미명시 기본값은
locale(cp949)이라 한자·옛한글·구결 PUA가 예외 없이 조용히 깨진다. py -X utf8 /
PYTHONUTF8=1 실행은 권장 사항일 뿐 방어선이 아니다 — 코드가 그것에 의존하면 안 되고,
명시가 정본이다. (열려는 대상이 바이너리면 "rb"/"wb"로 그 사실을 드러낸다.)
1-b. 한글·한자를 출력하는 스크립트는 stdout/stderr도 UTF-8로 고정한다. 파일 I/O만
막고 표준 출력을 두면 같은 사고가 콘솔에서 난다 — Windows에서 python foo.py --help가
UnicodeEncodeError: 'cp949' codec can't encode character로 중단된다(2026-08-26 실측:
verify_manuscript_numbers.py --help가 argparse 도움말의 em dash에서 실패했다).
진입점 상단에 다음을 둔다:
for _s in (sys.stdout, sys.stderr):
if hasattr(_s, "reconfigure"):
_s.reconfigure(encoding="utf-8", errors="replace")
CJK 문자 클래스·프로퍼티 매칭은 stdlib re 금지, regex 모듈을 쓴다
(pip install regex 전제). re는 유니코드 프로퍼티를 지원하지 않아 [가-힣]·
[一-鿿] 하드코딩으로 흐르는데, 그 범위는 옛한글 첫가끝 자모(U+1100·U+A960·
U+D7B0), 한자 확장 B 이상(U+20000+), 한양 PUA 구결을 전부 놓친다. regex의
\p{Han}·\p{Hangul}을 쓴다. ASCII 구조 패턴(XML 태그·ID 형식·공백·파일명
새니타이즈)은 stdlib re로 충분하며 의존성 0을 유지한다.
한글 비교·검색 전 NFC 정규화. NFD 유입원(macOS 파일명·일부 PDF 추출기)이 섞이면
눈에 같은 문자열이 매칭에 실패한다. unicodedata.normalize("NFC", s)를 입구에서 한 번.
터미널·환경 기본값 고정. 코드의 encoding= 명시(§1)와 별개로, 환경 자체의 깨짐
뿌리 3곳을 사용자 수준에서 영구 차단한다 — tools/setup-terminal-utf8.ps1(idempotent, -Check 지원)이 실행체다: ① PYTHONUTF8=1 사용자 환경변수(파이썬 파일 I/O 기본값이
cp949→utf-8; §1의 대체가 아니라 이중 방어선) ② PowerShell 프로필(5.1·7)에 콘솔
입출력 UTF-8 + chcp 65001 ③ git core.quotepath=false(한글 파일명이 \354...
이스케이프로 깨지는 것 차단). 시스템 ACP(레지스트리 Beta UTF-8)는 의도적으로 건드리지
않는다 — HWP 등 구형 한국어 앱을 깨뜨릴 수 있다. 새 PC 셋업 시 이 스크립트를 돌린다.
서지 제목 동일성은 scripts/cjk_title_match.py로 판정한다. 색인 DB(KCI·CrossRef·
OpenAlex)의 제목과 우리 제목이 어긋나는 원인은 내용이 아니라 표기 잡음 — NFD 한글, 서명
부호 《》「」, 꼬리 。, 한자 사이 공백, 전각 구두점 — 이므로 그것만 제거하고 비교한다
(normalize_cjk_title·title_key·cjk_titles_match). §3의 NFC만 쓰고 NFKC·casefold 광역
정규화는 하지 않는다(「Ⅱ」≠「II」는 제목에서 내용 차이다). 양쪽 모두 CJK일 때만 판정하며
한쪽만 CJK면 「다르다」가 아니라 「판정 불가」(False)다 — 국문·영문 병기 제목은 DOI·연도·
저자로 따로 본다. --selftest가 회귀 케이스 11건. 개념 출처는 NOTICE §3(코드 미참조).
사용자에게 건네는 명령은 PowerShell 문법으로 적는다. §4가 환경을 고정한다면
이것은 명령을 건네는 쪽의 규약이다. 한국어 Windows 사용자는 대개 PowerShell에서
실행하며(Claude Code 데스크톱 앱의 Run 단추도 PowerShell이다), 거기서는
cmd < file이 《< 연산자는 나중에 사용하도록 예약되어 있습니다》로 시작조차 못 한다.
파일을 stdin으로 넘길 때는 Get-Content <파일> -Raw | <명령>. 같은 이유로
&&·||(5.1에 없음), 2>&1(네이티브 exe에서 $?를 거짓으로 만든다),
rm -rf·which·head·touch·mkdir -p도 그대로 주지 않는다.
에이전트가 자기 Bash 도구 안에서 쓰는 문법과 혼동하기 쉬운 자리다 — 그쪽은 Git Bash라
전부 된다. 갈리는 것은 문법이 아니라 누가 실행하느냐다.
HTML·artifact·다이어그램·문서 산출물의 폰트는 아래 역할 표를 따른다. 이 표가 SSOT다 — 바꾸고 싶으면 이 표를 고치면 슈트 전체가 따른다. 여기 없는 폰트를 산출물에 임의로 쓰지 않는다.
| 역할 | 1순위 | 대안 (다국어·미설치 폴백) | CSS 스택 |
|---|---|---|---|
| 세리프 (본문·인용·원문) | Noto Serif CJK KR | — | 'Noto Serif KR', 'Noto Serif CJK KR', serif |
| 산세리프 (UI·제목·표) | Pretendard GOV Variable | Spoqa Han Sans Neo · Noto Sans CJK KR (다국어) | 'Pretendard GOV Variable', 'Pretendard GOV', 'Spoqa Han Sans Neo', 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif |
| 고정폭 (코드·터미널·대조표) | Sarasa Fixed K | Jetendard | 'Sarasa Fixed K', 'Jetendard', monospace |
word-break·line-break)·overflow·세로쓰기기계 검사: tools/check_cjk_text_contract.py가 E1(open
인코딩)·E2(read_text/write_text 인코딩)·R1(CJK 패턴의 stdlib re 매칭)을 AST로 검사한다.
이 배포물은 빌드 시 이 검사 게이트를 통과했다.
수동 실행:
py -3 tools/check_cjk_text_contract.py skills/<skill>/scripts
적용 경계: 슈트(suite: korean-humanities) 소속 스킬. 슈트 밖 스킬(예: humanize-korean —
현대 한국어 산문 전용이라 [가-힣]이 정당)에는 강제하지 않는다.
모든 산출물은 세 계층 중 하나에 속하고, 승격은 한 방향(게이트 통과)만 가능하다. Layer 3는 답을 생성하는 에이전트의 컨텍스트에 절대 포함시키지 않는다(epistemological firewall). 이 모델은 ARS v3.3.2의 ground-truth isolation(Imbad0202/academic-research-skills, CC BY-NC 4.0; Anthropic automated-w2s-researcher 2026에서 유래)을 CJK 인문학으로 재구성한 것이다.
data_access_level | 계층 | CJK 인문학 대응 |
|---|---|---|
raw | Layer 1 (미검증) | 원문 스캔·미교정 OCR, 기계 국역 초벌, 웹·DB 검색 결과, 미검증 참고문헌 — 적대적·환각·오독 가정 |
redacted | 경계 1→2 | 정제됐으나 새 원자료 유입 없음 |
verified_only | Layer 2 (검증) | 원문 대조·표점·교감 확정, 출전 실재 확인 인용, 충실성 감사 통과 산출물 — 논증·초고에 잠정 신뢰 |
source-grounded-qa·deep search 같은 raw 소비 모드는 어떤 사실도 검증 없이 하류로 넘기지 않는다. primary_data/ 읽기 전용과 100건+ shard·checkpoint는 이 계층의 하위 규칙이다.Partner skills 열은 권장 조합이다 — 설치돼 있지 않으면 해당 역할을 수동으로 수행하거나 생략하면 되고, 이 스킬의 라우팅 자체는 단독으로 동작한다.
| User need | Primary mode | Partner skills |
|---|---|---|
| One assistant for CJK research | assistant-build | knowledge-memory-workflow, research-file-management |
| Compare or adopt a new AI research tool | tool-adoption-audit | url-triage, source-command-audit-config |
| Literature review or paper plan | delegate -> academic-research-workflow (literature-and-writing: 연구사·논문 기획은 ARW 산출물) | kci-korean-studies-trends, cross-validation |
| Citation or claim verification audit | delegate -> academic-research-workflow (source-fidelity-audit / 사료 충실성 감사) | cross-validation, knowledge-memory-workflow |
| Source-grounded Q&A over PDFs or vault notes | source-grounded-qa | vector index + graph 재랭킹 over vault 링크/MOC/태그 (graph-augmented retrieval), knowledge-memory-workflow |
| Classical text annotation, hanja, hanmun, old Hangul, gugyeol | hanmun-philology | gugyeol-decode, hwp, hwpx, 스캔본 고전 OCR은 classical-text-browser(ctb)의 NDL古典籍OCR Full |
| Tool portfolio refresh | benchmark-refresh | source-command-audit-config, observability-logging |
graph 재랭킹은 사람이 만든 링크 기반 (CJK-safe).
source-grounded-qa의 graph 신호(centrality/activation)는 사용자가 직접 작성한 vault 링크·MOC·태그(Shadow Graph)에서만 나온다. 한문 텍스트에 엔티티 추출(NER)을 하지 않으므로 약한 hanmun NER이 retrieval을 저하시키지 않는다. microsoft식 entity-GraphRAG(엔티티·커뮤니티 추출 인덱싱)는 도입하지 않는다 — graph는 추가 비용 없이 얻는 사용자 작성 링크만 사용한다.
Mark each input's evidence boundary (local source, local derived artifact, external authority, unverified).
Prefer the narrowest existing specialist skill or local script over a new tool.
When a new external tool is involved, read references/tool-benchmark.md and route through /audit-config.
When a reusable behavior emerges, update this skill or its references instead of adding scattered prompt text.
The default Claude Code harness is built for coding (Thariq, “A harness for every task: dynamic workflows in Claude Code,” 2026-06-02). Research work writes its own task-specific harness instead of forcing every task through one fixed loop.
Workflow tool.
cross-validation) to kill dead ends early (AutoScientists pattern)./goal or /loop; both stop when the session or PC closes. Work that must survive a closed session goes to cloud /schedule (or an OS scheduled task), resuming from the checkpoint. A passing happy path is not verification — completion needs a deterministic check (test, checker, full-coverage verify), not a reassuring summary.event so the next run can reuse or improve it.Use external tools as design evidence, not automatic dependencies.
For the current baseline, read references/tool-benchmark.md. For the assistant behavior contract, read references/assistant-contract.md.
Always report (대화형 첫 응답·온보딩에서는 mode·decision·next 3필드 요약으로 충분하다 — 전체 6필드는 산출물이 있는 턴에):
mode: selected mode.verified_inputs: what was read or checked.decision: keep, cherry-pick, install candidate, build connector, watchlist, or drop.artifact: file, note, table, log, or plan created.residual_risk: what remains unverified.next_audit_trigger: when to compare again.본문은 설치물 이름이 아니라 역할 이름으로 말한다. 이 스킬을 다른 환경에 이식할 때는 이 표만 바꾸면 된다.
| 역할 이름 (본문 용어) | 내 환경의 실물 (여기를 채운다) | 요구 조건 |
|---|---|---|
| vault | <your-obsidian-vault> | 사람이 링크·MOC·태그를 직접 관리하는 Obsidian vault |
| corpus pipeline | <corpus-pipeline> | 논문·코퍼스 수집/정제 산출물이 파일로 남는 파이프라인 |
| vector index | <vector-index> | vault·PDF를 임베딩해 벡터 검색을 제공하는 인덱스 |
| reference manager | <your-reference-manager> | KCI ID·서지 필드를 보존하는 서지 관리 저장소 |
바인딩이 비어 있으면(신규 설치): 있는 척하지 않는다. 각 모드는 축소 동작한다 —
source-grounded Q&A는 「매 질문마다 원문 직접 재독」의 저효율 경로로, 지식 축적·재랭킹은
불가로 명시하고, 부트스트랩 순서를 안내한다: ① 원자료를 읽기 전용 폴더로 ② 자료
인벤토리(스캔 vs 텍스트층) ③ 바인딩 4칸 채우기 — 도구 선정은 즉석 추천하지 않고
tool-adoption-audit 모드로 거친다. 위임 대상 스킬(예: academic-research-workflow)이
미설치면 대행하지 말고 설치를 안내한다.
references/ 두 문서(assistant-contract·tool-benchmark)는 이 바인딩이 채워진 로컬 인스턴스 기준으로 서술돼 있다 — 이식자는 자기 스택으로 대응 항목을 치환해 읽는다.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hw725/korean-humanities --plugin korean-humanities4 skills in this plugin
/academic-english-editing영문 초록·논문 영역·투고용 영문 윤문과 영문 학술 원고의 AI티 제거에 쓴다. 한국어 학술 원고를 영어 학술 산문으로 옮기며 논리 연결·문장 길이(10–30어)·hedging을 보정한다(비학술 영어는 stop-slop)./academic-research-workflow한문학·전근대 한국사 연구 산출물의 라우터 — 연구사 리뷰, 사료비평·교감 논증, 논증 기획·집필, 인문학 peer review·논문 심사·투고 수정, 인용 충실성·원고 수치·원고-데이터 정합 검증. Trigger: 연구사 정리, 논문 심사, 투고 수정, 인용 검증, 원고 수치 대조. 텍스트 산출·OCR·표점 적용·지식관리·도구 심사는 hanmun-research-assistant./paper-structure-analysis논문 PDF 한 편의 구조분석 노트를 만들 때 쓴다 — 본문 전문을 읽고 장절 트리(JSON, PDF 쪽)를 직접 만든 뒤 논증 지도·흐름도·근거 구성·결론의 빈틈·원문 인용을 담은 노트를 쓰고 검사기로 확인한다. 여러 편은 한 편당 에이전트 하나. Trigger: 구조분석, 논문 구조 분석, 논증 지도, 장절 트리. 논문 심사·연구사 리뷰는 academic-research-workflow.Other plugins' skills for the same job