krlawcli

Search and retrieve Korean statutes and articles from law.go.kr as JSON.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/returnet/krlawcli --skill krlawcli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: krlawcli
Source: https://github.com/returnet/krlawcli/tree/main
Command: npx skills add https://github.com/returnet/krlawcli --skill krlawcli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Law researchers and automated workflows need reliable access to Korean statutes and their articles without relying on public APIs. This skill provides a CLI-driven interface to fetch laws, their articles, and annexes from law.go.kr, returning structured data suitable for downstream tooling and LLM agents.

Core Features & Use Cases

  • Retrieve law names, article listings, full text, and annexes from law.go.kr for quick research and compliance checks.
  • Produce JSON-ready outputs for integration with LLM agents, automation pipelines, and other tools.
  • Handles session initialization, caching, retries, and robust error handling to ensure stable, repeatable automation.

Quick Start

Use the krlawcli skill to fetch 형법 제1조 with --json

Frequently Asked Questions about krlawcli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve Korean statutes and articles from law.go.kr without a public API?

Korean law lookup without a public API is handled by scraping law.go.kr through a CLI interface that fetches statutes, articles, and annexes, returning structured data for automation pipelines.

Can I get JSON output from Korean legal research scraping for LLM agent integration?

Yes, JSON output for LLM agent integration is supported via the --json flag, which formats scraped Korean law texts and annexes into structured data ready for automation pipelines.

Does the Korean law CLI skill handle session management and retries for stable automation?

Yes, stable automation is ensured through built-in session initialization, caching, retry logic, and robust error handling designed for repeatable web-scraping of Korean statutes.

What's the best way to search for a specific article like 형법 제1조 using a law.go.kr scraper?

The best way to search for a specific article like 형법 제1조 is using the CLI's precise name and article search functionality to retrieve the full text directly from law.go.kr.

Are there limitations to scraping Korean law data without an API?

Limitations of scraping Korean law data without an API include potential instability from source website changes, which this skill mitigates with caching and retry logic to maintain reliable access to statutes.