Case records

From jurisupport/jurisupport-plugins · View interactive version

Case records is an AI agent skill from the GitHub repository jurisupport/jurisupport-plugins. 사무소 과거 사건기록과 작성서류를 로컬 FTS로 검색. 명시적으로 외부 임베딩을 허용한 환경에서는 하이브리드 검색도 가능. 주장서면·신청서면 위주로 "비슷한 사건이 있었나, 우리가 어떻게 주장했나, 어떤 신청을 했나"에 답한다. 사건 0건일 때는 검색 시도하지 말고 사용자에게 추가 안내.

How to use this skill

Skill file

사건기록 검색 스킬 (case-records)

When to use

legal-books와의 차이

저장·인덱싱 전략

파싱 범위

사전 확인

curl -s http://localhost:8767/health

검색 API

~/case-records/scripts/search_case_records.py "검색어" --top-k 5 --doc-category argument

응답:

{
  "query": "...",
  "results": [
    {
      "chunk_id": "2018가단11111_007_0023",
      "case_id": "2018가단11111",
      "case_name": "홍○○ 대여금",
      "doc_type": "준비서면",
      "doc_category": "argument",
      "source_kind": "draft",
      "doc_date": "2018-09-20",
      "author_role": "피고 대리인",
      "source_file": "/Users/me/작성문서/2018가단11111_홍○○_대여금/020_준비서면.docx",
      "chunk_text": "...",
      "score": 0.84
    }
  ]
}

인용 규칙

답변에 사용할 때:

  1. 사건번호 + 사건명 + 문서종류 + 일자 표기
  2. 직접인용("...")은 chunk_text와 글자 단위 일치 확인
  3. 인용 후 "그러나 현재 사건의 사실관계가 다를 수 있으니 직접 검토 필요" 안내
  4. "판례" 표현 금지 → "판결" 또는 "판단"

개인정보 보호

사건이 없을 때

현재 사건기록 DB가 비어 있습니다.

~/jurisupport-plugins/guides/03_case_records.md를 참조하여 과거 사건을 인덱싱해 주세요.

5~10건 정도 추가하면 검색 결과가 의미 있어집니다.

추가 도구

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.