Community코딩 & 개발github.com

문서 진화 추적기

여러 버전의 문서(타임스탬프 또는 순차적으로 명명된 파일) 간의 변경 사항을 추적하고, 단락/줄/문장의 추가, 제거, 수정 여부와 개념(또는 자동 감지된 제목)의 도입/유지/수정/제거 이력을 마크다운 + JSON 타임라인으로 제공합니다.

문서 진화 추적기란 무엇인가요?

이 스킬은 시간에 따라 변화하는 문서 버전 제품군(예: `v1.md`, `v2.md` 또는 타임스탬프 파일)을 분석하여 각 버전 간의 단락 수준 차이를 계산하고, 명명된 개념(또는 자동 감지된 제목)의 진화 과정(도입, 유지, 수정, 제거)을 추적합니다. CLI 도구(`src.cli`)를 통해 실행되며, 설정 파일(`JSON` 또는 `YAML`)을 읽어 버전 디렉토리와 명명 규칙을 지정할 수 있습니다. 결과물은 `./evolution/` 디렉토리에 마크다운(사람이 읽기 쉬운 타임라인)과 JSON(프로그래밍 처리를 위한 데이터) 형식으로 저장됩니다. `PyYAML`은 선택적 의존성이며, YAML 설정을 사용할 때만 필요합니다. Windows, macOS, Linux에서 모두 동작하며, Python 3.9 이상이 필요합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JiamingShi-JsPhys/agent-skills/tree/HEAD/skills/document-evolution-tracker

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

문서 진화 추적기은(는) 무엇을 하나요?

문서가 여러 버전을 거치며 어떻게 진화하는지 추적하는 자체 포함형 스킬입니다. 버전 제품군(v1.md, v2.md, ...` 또는 타임스탬프 파일이 있는 디렉토리)이 주어지면, 연속된 버전 간의 단락 수준 차이를 계산하고 개념 진화(도입/유지/수정/제거)를 추적합니다.

필수 워크플로우

종속성 부트스트랩 (첫 실행 시)

첫 실행 전에 이 스킬의 런타임 종속성을 확인합니다:

  • 핵심: 순수 표준 라이브러리 — 설치 불필요.
  • 선택 사항: PyYAML (설정이 .yaml인 경우에만 필요; JSON 설정은 표준 라이브러리만으로 동작).

PyYAML이 없고 설정이 YAML인 경우, 사용자에게 알리고 pip install pyyaml을 설치할지 물어보세요. 사용자가 확인한 후에만 설치하세요. 명시적 동의 없이 전역 환경에 절대 설치하지 마세요.

  1. 설정 로드 (config/examples/family.json 참조; YAML 설정도 PyYAML이 설치된 경우 지원).
  2. versions_dir에 최소 두 개의 버전 파일이 있는지 확인.
  3. python -m src.cli run --config <경로> [--concepts "A,B"] 실행.
  4. 전환 횟수를 보고하고 사용자에게 ./evolution/evolution_<추적ID>.{md,json} 파일을 안내.

사용 시기

  • 시간 순서 또는 순차적으로 명명된 문서 버전 제품군을 시간 경과에 따라 비교해야 할 때.
  • 사용자가 "문서 변경 추적", "버전 기록", "초안 간 변경 사항", "개념 계통"을 요청할 때.
  • 명명된 개념(용어, 제목, 정의 등)이 초안 간에 언제 도입, 수정, 또는 제거되었는지 추적해야 할 때.
  • 초안의 진화를 단일 종단 간 차이가 아닌 타임라인으로 보고해야 할 때.

사용 예시

# 설정을 검증하고 발견된 버전 파일을 확인
python -m src.cli validate --config config/examples/family.json
python -m src.cli versions --config config/examples/family.json

# 추적기 실행; 선택적으로 추적할 개념 이름 지정
python -m src.cli run --config config/examples/family.json --concepts "엔트로피,분배 함수"

보고서는 ./evolution/evolution_<추적ID>.{md,json}에 작성됩니다. 마크다운 타임라인은 사람이 읽기 위한 것이고, JSON은 프로그램 처리용입니다.

오류 처리

  • 설정이 유효하지 않음 (validate가 0이 아닌 종료 코드 반환) - 보고된 필드를 수정하고 재검증; 명명 규칙과 versions_dir이 일반적인 원인입니다.
  • 발견된 버전이 2개 미만 - 실행이 중단됩니다; version_naming 규칙을 실제 파일 이름과 비교하여 다시 시도하세요.
  • 개념이 전혀 나타나지 않음 - 모든 버전에서 부재로 보고됩니다. 이는 유효한 결과이며 오류가 아닙니다.
  • 예상치 못한 종료 코드 - 메시지를 그대로 보고하고, 수동으로 파일을 비교(diff)하지 마세요.

차이 분석 세분화

세분화분할 규칙
line비어 있지 않은 줄
paragraph (기본값)빈 줄로 구분된 블록
sentence구두점으로 구분된 문장

한계

  • 차이 분석은 구조적(difflib를 통한 블록 정렬)이며, 의미론적이지 않습니다. 개념은 해당 구절(대소문자 구분 없음)이 버전 텍스트에 정확히 나타날 때만 "존재"하는 것으로 간주합니다.
  • sequential / timestamp 이외의 사용자 정의 명명 규칙은 지원되지 않습니다.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

JiamingShi-JsPhys/agent-skills

Cross-document conflict detector. Use when the user has two or more documents, datasets, or extracted fact tables and wants to find contradictions between them. Triggers on "detect conflicts", "find contradictions", "do these documents agree", "cross-check claims", "inconsistency check", or when comparing a claim across multiple sources. Runs three detection levels: entity (numeric / boolean mismatch on the same key), clause (categorical mismatch), and argument (free-text disagreement). Emits a machine-readable conflict report in JSON / CSV / Markdown.

JiamingShi-JsPhys/agent-skills

Longitudinal statistical analysis pipeline. Use when the user has panel / repeated-measures data (one or more sessions per subject, with between-subject conditions) and wants to run a reproducible analysis: descriptive stats, a manipulation check, a linear mixed model, a lagged mediator, or a sensitivity analysis over random-effects / covariance structures. Triggers on any of the phrases "LMM", "mixed model", "repeated measures", "longitudinal analysis", "mediation over time", "lagged mediator", "sensitivity analysis of RE structure". When fired, load the YAML config that lists the enabled steps, run the pipeline, and report the per-step results plus the generated CSVs.

JiamingShi-JsPhys/agent-skills

State manager for multi-dimensional computational experiments. Iterate a parameter grid over many rounds, snapshot declared critical files each round, audit every round (params, hashes, timestamps, status), and roll back to any round non-destructively. Use it when a workflow runs hundreds of rounds across multiple parameter dimensions and needs per-round snapshots, full audit trail, and arbitrary rollback - e.g. longitudinal studies, parameter scans, or symbolic/ numerical sweeps calling external solvers (Mathematica, GAP, SymPy, custom scripts).

관련 스킬