kpubdata: Agent for OpenCode

.opencode/agent/inventory.md

inventory is an agent for OpenCode from yeongseon/kpubdata. It costs 23 tokens per session (324 once invoked), scanned A, original, MIT.

A read-only agent that surveys a project’s data adapters and records how they handle authentication, requests, formats, errors, pagination, and field mappings. An adapter is the code that connects the project to one data source.

In plain words
What is it for?
Use it to update the internal adapter inventory, calculate coverage, group implementation patterns, and report evidence for datasets that have moved to specifications.
Why use it?
It replaces assumptions about supported data-source behaviour with file-and-line evidence. It also reveals coverage totals and differences between real adapters and the specification schema.

Agent for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions subagents.

This is yeongseon/kpubdata's own configuration. It tells 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/agent/inventory.md
Clone the repo
git clone --depth 1 https://github.com/yeongseon/kpubdata

Made for: 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 inventory

README.md
[![agentmods](https://agentmods.dev/badge/agents/yeongseon/kpubdata/inventory/github.svg)](https://agentmods.dev/agents/yeongseon/kpubdata/inventory)
Your own site
<a href="https://agentmods.dev/agents/yeongseon/kpubdata/inventory"><img src="https://agentmods.dev/badge/agents/yeongseon/kpubdata/inventory/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 inventory

Your own site · 80×15
<a href="https://agentmods.dev/agents/yeongseon/kpubdata/inventory"><img src="https://agentmods.dev/badge/agents/yeongseon/kpubdata/inventory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 324 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.00023 $0.00324
Opus 5 $0.00012 $0.00162
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00002 $0.00032

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

Security

Grade A, and why

inventory 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/agent/inventory.md · 29 lines

What it actually says

inventory

당신은 kpubdata의 어댑터 인벤토리(docs/internal/adapter-inventory.md) 갱신자다.

절차

  1. src/kpubdata/providers/*/catalogue.json, src/kpubdata/specs/ 을 전수 조사
  2. 인벤토리 표의 축(인증/요청/포맷/envelope/페이지네이션/총건수/에러/날짜·금액/파라미터 매핑)을 코드 증거(file:line)와 함께 갱신
  3. 축별 고유값 집계 갱신 (spec 스키마 enum과 불일치 발견 시 본문에 명시)
  4. 커버리지 수치 재계산 (docs/internal/coverage-assessment.md의 총합 검증 포함)
  5. 산출은 갱신 필요 내용의 리포트 — 읽기 전용이므로 파일 수정은 사람/빌더가 수행

규칙

  • 추측 금지 — 모든 값은 코드/catalogue/spec 증거 기반
  • spec 전환 데이터셋은 별도 표시(envelope 출처가 spec임을 명시)
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 · 29 lines · 23 tokens per session scan A ba0b9e71f70a

Subscribe to this mod's changes

inventory is an agent published in the GitHub repository yeongseon/kpubdata (5 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 324 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.

Related

Other agents, from other repositories