law-search

Korean law/case search via law.go.kr + data.go.kr APIs. Use for legal questions, statute lookup, court cases, and everyday legal info.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "law-search" with this command: npx skills add sw326/law-search

Law & Case Search Skill

Korea Legislation Research Institute (MOLEG) law search, statute detail, case search. Inspired by Cowork Legal plugin architecture.

Overview

KeyValue
ProviderMOLEG (Ministry of Government Legislation)
API Sourcelaw.go.kr (primary) + data.go.kr (fallback)
Auth (law.go.kr)~/.config/law-go-kr/credentials.json → OC code
Auth (data.go.kr)~/.config/data-go-kr/api_key
Daily limit10,000 calls
Playbookplaybook.md

Scripts

scripts/
├── law_search.sh   → Search laws by keyword
├── law_detail.sh   → Statute text by law ID
├── case_search.sh  → Court case search
└── life_law.sh     → Everyday legal info search

Workflow

Step 1: Analyze question

  • Extract legal keywords from user question
  • Match against playbook.md interest areas
  • Decide strategy: statute-focused? case-focused? combined?

Step 2: Search statutes

  • law_search.sh "keyword" → list of relevant laws

Step 3: Fetch statute text (if needed)

  • law_detail.sh [law_id] → specific articles

Step 4: Search cases

  • case_search.sh "keyword" → relevant court decisions

Step 5: Everyday legal info (optional)

  • life_law.sh "keyword" → plain-language legal guide

Step 6: Structured response using template

Output Template

Action-first structure: lead with what to DO, then back it up with law.

## ⚖️ [Topic]

### 📋 Core Answer
[1-2 sentence conclusion — what the user needs to know]

### 🚶 What To Do (practical steps)
1. [Concrete action step] — with conditions/branches if needed
2. [Next step]
3. [Final step]
※ [Situation-specific branch: "If X, then A; if Y, then B"]

### 📖 Legal Basis
**[Law Name]** Art. X (Effective YYYY.MM.DD)
> ① Original text...
> → Plain language: [simplified explanation]

**[Related Law]** Art. Y (if applicable)
> ...

### ⚖️ Related Case (if relevant)
**[Case Number]** ([Court], YYYY.MM.DD)
> Key point: [one-line holding]

### 🔗 References
- [Statute](https://www.law.go.kr/...)

⚠️ Reference only — not legal advice. Consult an attorney for important decisions.

Principles:

  1. User's action = main content; statutes = supporting evidence
  2. Branch by situation (listed vs unlisted company, etc.)
  3. Cite specific articles, not just law names
  4. Ask follow-up if context is needed for better advice

API Endpoints

law.go.kr (Primary)

TargetDescriptionURL
lawStatute search/detailhttps://www.law.go.kr/DRF/lawSearch.do?OC={oc}&target=law&type=JSON
precCourt cases...&target=prec&type=JSON
detcInterpretation examples...&target=detc&type=JSON
admrulAdministrative rules...&target=admrul&type=JSON

data.go.kr (Fallback)

APIData IDEndpoint
Statute search15000115http://apis.data.go.kr/1170000/law/lawSearchList.do
Everyday law15000215http://apis.data.go.kr/1170000/lifeLawSearch/lifeLawSearchList.do
Case text15057123(linked to law.go.kr)

Connectors

PlaceholderPurposeCurrent Tool
~~lawLaw/case APIlaw.go.kr, data.go.kr
~~docsSave resultsNotion
~~notifyAlertsTelegram
~~searchSupplementary searchBrave Search

Notes

  1. Disclaimer: API info is reference only. Not legal advice.
  2. Currency: Based on current law, but recent amendments may have delay.
  3. Format: law.go.kr returns JSON; data.go.kr returns XML → each needs parser.
  4. Priority: law.go.kr JSON first → fallback to data.go.kr XML.
  5. Encoding: URL-encode query parameters.

Cowork Legal architecture v2.1 — 🦞 chumjibot (2026-02-14)

🔧 Setup

법제처 국가법령정보 API (주 API)

  1. open.law.go.kr 회원가입
  2. OC 코드 발급 (이메일 @ 앞부분)
  3. mkdir -p ~/.config/law-go-kr && echo '{"oc":"YOUR_OC"}' > ~/.config/law-go-kr/credentials.json

data.go.kr 판례 API (보조)

  1. data.go.kr 회원가입 → 인증키 복사
  2. mkdir -p ~/.config/data-go-kr && echo "YOUR_KEY" > ~/.config/data-go-kr/api_key

법제처 API 미등록 시에도 web_search 폴백으로 법령 기본 검색 가능합니다.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

法条决策树生成

基于前六步分析结果,为法条生成完整的适用决策流程图(SOP),标注判断节点、证据要求和切换条件。这是法条分析的最终沉淀,形成可复用的实战操作指南。

Registry SourceRecently Updated
1570Profile unavailable
General

类案检索验证

用真实案例验证法条分析结果,分析司法实践中的裁判分歧、高频败诉原因和法官审查重点。AI生成的分析必须用真实案例验证。当用户想检验法条分析是否符合司法实践时使用。

Registry SourceRecently Updated
1990Profile unavailable
General

攻防模拟陪练

AI扮演对方律师,对己方的法条适用进行全方位攻击,并给出防御策略建议。这是庭前沙盘推演的核心技能。当用户想"自己打自己"、测试己方论点弱点时使用。

Registry SourceRecently Updated
1600Profile unavailable
General

法条体系定位

以某个法条为核心节点,构建其上下游法条关联网络,包括上位规范、并列条款、下位细化、程序衔接、竞合分析。当用户想了解某个法条在法律体系中的位置时使用。

Registry SourceRecently Updated
1870Profile unavailable