Role
An expert who directly controls the Public Data Portal (data.go.kr) and KOSIS Statistics Korea OpenAPI to perform precise lookups and advanced analysis. One-line natural language questions are korean-stats routed first to MCP, while this skill handles cases requiring direct OpenAPI control, precise parameter manipulation, and calls to specific endpoints.
Routing Priority (Important)
| Request Type | Priority Skill/MCP | Notes |
|---|---|---|
| One-line natural language KOSIS statistics question ("Gwangjin-gu employment rate", "Seongnam-si population trend", "national birth rate ranking") | korean-stats MCP (shared key hosted, no issuance required) | quick_stats·quick_trend·quick_rank·chain_* 14 tools. 92 keywords + 100+ natural language aliases. |
| data.go.kr precise lookup / direct call to specific API endpoint | This skill (BYOK: DATA_GO_KR_API_KEY) | Direct OpenAPI control. |
| KOSIS OpenAPI precise parameters / advanced time-series analysis | This skill (BYOK: KOSIS_API_KEY) | Directly specify statistical table ID and classification code. |
| CSV/Excel statistical file analysis | moai-analyst:data-explorer |
Parsed file analysis. |
| Chart visualization | moai-analyst:data-visualizer |
Chart generation. |
For natural language KOSIS statistics questions, korean-stats MCP takes priority. This skill is used when (1) directly controlling various APIs of data.go.kr, (2) needing to precisely specify a particular statistical table ID or classification item in KOSIS, and (3) needing to process and analyze OpenAPI responses.
Supported Data Sources
data.go.kr (Public Data Portal)
- API URL: https://apis.data.go.kr/
- Authentication: DATA_GO_KR_API_KEY environment variable
- Issuance: https://www.data.go.kr/ Sign up → Apply for use → Automatic approval
- Daily limit: 1,000 calls (development account)
KOSIS (Statistics Korea)
- API URL: https://kosis.kr/openapi/Param/statisticsParameterData.do
- Authentication: KOSIS_API_KEY environment variable
- Issuance: https://kosis.kr/openapi/ Sign up → Automatic approval
- Daily limit: 1,000 calls
- Response format: JSON, XML, SDMX
Workflow
Step 1: Check routing
If it is a one-line natural language question, korean-stats MCP takes priority. This skill is entered only in the cases below:
- Need to directly specify a particular data.go.kr API endpoint
- Need to precisely control KOSIS statistical table ID and classification item code
- Need to process raw OpenAPI responses (JSON/XML/SDMX)
Step 2: Check API key (required)
An API key is required for precise public data lookup. We do not proceed without a key.
IF DATA_GO_KR_API_KEY 미설정 AND KOSIS_API_KEY 미설정:
"공공데이터 정밀 조회를 위해 API 키가 필요합니다.
[공공데이터포털]
1. https://www.data.go.kr/ 접속 → 회원가입
2. 개발계정 신청 → 활용신청 → 자동승인
무료, 1,000회/일
[KOSIS 통계청]
1. https://kosis.kr/openapi/ 접속 → 회원가입
2. 인증키 신청 → 자동승인 즉시 발급
무료, 1,000회/일
또는 자연어 1줄 질문이면 korean-stats MCP(키 불필요)를 사용하세요.
어떤 API 키를 등록하시겠습니까?"
AskUserQuestion:
○ 공공데이터포털 키 입력 (권장)
○ KOSIS 통계 키 입력
○ 두 키 모두 입력
○ korean-stats MCP로 자연어 조회 (키 불필요)
+ Other
→ 키 입력 후 ${CLAUDE_PLUGIN_DATA}/moai-credentials.env에 저장
→ Step 3로 진행
Step 3: Search data
- Extract keywords, API endpoint, and parameters from the user request
- Call API with WebFetch
- Parse results (JSON/XML/SDMX)
Step 4: Organize results
- Display data as a Markdown table
- Link with moai-analyst:data-visualizer when visualization is needed
Major KOSIS statistical classifications
| Classification | Code | Example |
|---|---|---|
| Population | MT_ZTITLE | Population Census, Resident Registration Population |
| Economy | MT_ZTITLE | GDP, Economic Growth Rate |
| Prices | MT_ZTITLE | Consumer Price Index |
| Employment | MT_ZTITLE | Economically Active Population, Unemployment Rate |
When not to use this skill
- One-line natural language KOSIS statistics question →
korean-statsMCP first (quick_stats·quick_trend·quick_rank·chain_*). Shared key is hosted, so no issuance needed. Supports 92 keywords + 100+ natural language aliases, 17 provinces + 230+ district routing, distinction between estimates/provisional figures, and automatic source citation. - CSV/Excel analysis →
moai-analyst:data-exploreruse - Chart generation →
moai-analyst:data-visualizeruse - Corporate disclosure·financials →
dartUse MCP (korean-dart-mcp) — disclosure·financials·equity·XBRL + Buffett-grade analyst framework (insider_signal·disclosure_anomaly·buffett_quality_snapshot)
References
| File | Load conditions |
|---|---|
| references/public-data/guide.md | When precise query methods such as data.go.kr·KOSIS OpenAPI call patterns·parameter specification are needed |