Records sync

From jurisupport/jurisupport-plugins · View interactive version

Records sync is an AI agent skill from the GitHub repository jurisupport/jurisupport-plugins. 사건기록 폴더와 작성서류 폴더를 함께 읽어 case-records DB에 동기화한다. 사건번호 기준으로 두 저장소를 묶고, 기본값으로 주장서면과 신청서면만 파싱해 의견서·준비서면 작성 때 과거 기록을 참고할 수 있게 한다.

How to use this skill

Skill file

Records Sync

먼저 공통 실행 규칙을 읽고 현재 호스트에서 사용 가능한 기능으로 수행한다.

사건기록 폴더(받은 자료)와 작성서류 폴더(우리 서면)를 case-records 로컬 DB에 함께 인덱싱한다.

시작할 때 ~/.jurisupport/playbook.md(Windows %USERPROFILE%\.jurisupport\playbook.md)를 읽는다. 없으면 공통 실행 규칙에 따라 필요한 설정만 확인하거나 cold-start-interview를 수행한다.

원칙

실행

  1. ~/case-records/scripts/sync_records.sh 존재를 확인한다. 없으면 설치 안내에 따라 전체 저장소의 toolkit/case-records/install.sh --host codex 또는 --host claude로 필요한 프로그램을 설치하도록 안내한다. 플러그인 캐시나 현재 작업 폴더에 toolkit이 있다고 가정하지 않는다.
  2. 경로는 플레이북 §5의 사건기록 디렉토리와 작성문서 디렉토리를 우선 사용한다.
  3. 경로가 없으면 사용자에게 두 경로만 짧게 물어본다.
  4. 실행:
~/case-records/scripts/sync_records.sh \
  --record-root "<사건기록 디렉토리>" \
  --draft-root "<작성서류 디렉토리>"

전체 문서를 넣어야 할 때만:

~/case-records/scripts/sync_records.sh \
  --record-root "<사건기록 디렉토리>" \
  --draft-root "<작성서류 디렉토리>" \
  --doc-scope all

확인

curl -s http://localhost:8767/health
~/case-records/scripts/search_case_records.py "소멸시효" --top-k 3 --doc-category argument

포맷

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.