kpubdata: Command for Claude Code

.opencode/command/migrate-dataset.md

migrate-dataset is a command for Claude Code, OpenCode from yeongseon/kpubdata. It costs 14 tokens per session (154 once invoked), scanned A, original, MIT.

A command for moving an existing catalogue dataset into a YAML specification file. It also checks compatibility with existing test data and writes an example script.

In plain words
What is it for?
Use it to migrate a named dataset from catalogue.json into the project’s spec format, record a compatible fixture, run verification, and prepare the related example.
Why use it?
It avoids manually translating dataset metadata and helps preserve existing behaviour during the move. The old catalogue entry remains until a separate change removes it.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: mentions subagents.

This is yeongseon/kpubdata's own configuration. It tells Claude Code and OpenCode how to work on kpubdata itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kpubdata configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yeongseon/kpubdata. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yeongseon/kpubdata/main/.opencode/command/migrate-dataset.md
Clone the repo
git clone --depth 1 https://github.com/yeongseon/kpubdata

Made for: Claude Code, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-dataset

README.md
[![agentmods](https://agentmods.dev/badge/commands/yeongseon/kpubdata/migrate-dataset/github.svg)](https://agentmods.dev/commands/yeongseon/kpubdata/migrate-dataset)
Your own site
<a href="https://agentmods.dev/commands/yeongseon/kpubdata/migrate-dataset"><img src="https://agentmods.dev/badge/commands/yeongseon/kpubdata/migrate-dataset/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-dataset

Your own site · 80×15
<a href="https://agentmods.dev/commands/yeongseon/kpubdata/migrate-dataset"><img src="https://agentmods.dev/badge/commands/yeongseon/kpubdata/migrate-dataset.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00154
Opus 5 $0.00007 $0.00077
Sonnet 5 $0.00003 $0.00031
Haiku 4.5 $0.00001 $0.00015

Measured today against content hash 54c1230daae7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

migrate-dataset scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/command/migrate-dataset.md · 12 lines

What it actually says

데이터셋 $ARGUMENTS 를 카탈로그에서 spec으로 전환한다.

  1. src/kpubdata/providers/{provider}/catalogue.json의 해당 항목을 spec YAML로 이식 (raw_metadata의 base_url/operation/service_key_param/format_param 등을 스키마 필드로)
  2. make record DATASET=<id> — 기존 fixture 호환 여부 확인
  3. 예제 스크립트 작성, make verify 통과
  4. 카탈로그 항목 제거는 별도 PR에서 (컷오버는 관련 contract 테스트와 합의 후)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 12 lines · 14 tokens per session scan A 54c1230daae7

Subscribe to this mod's changes

migrate-dataset is a command published in the GitHub repository yeongseon/kpubdata (5 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 154 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.