inspect-textdb

inspect-textdb is a skill for Claude Code, Codex from gipert/dbetto. It costs 192 tokens per session (2,620 once invoked), scanned A, original, MIT.

A guide for treating a directory of JSON and YAML files as a database using the dbetto Python library. It explains how to read nested data, access values with names or dot notation, and query data that changes over time.

In plain words
What is it for?
Inspecting folders of structured data, reading TextDB, AttrsDict, Catalog, and Props values, following inner record IDs, and checking time-valid data.
Why use it?
It helps developers choose the right dbetto interface without guessing from the file layout or manually handling many configuration files.

Skill for Claude CodeCodex

Part of the inspect-textdb plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gipert/dbetto/inspect-textdb
Any agent
npx skills add gipert/dbetto --skill inspect-textdb
Clone the repo
git clone --depth 1 https://github.com/gipert/dbetto

Made for: Claude Code, Codex.

Or install inspect-textdb, the plugin that ships this one along with the rest of its 1 skill.

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 inspect-textdb

README.md
[![agentmods](https://agentmods.dev/badge/skills/gipert/dbetto/inspect-textdb.svg)](https://agentmods.dev/skills/gipert/dbetto/inspect-textdb)
Your own site
<a href="https://agentmods.dev/skills/gipert/dbetto/inspect-textdb"><img src="https://agentmods.dev/badge/skills/gipert/dbetto/inspect-textdb.svg" alt="Measured on agentmods" height="20"></a>
Per session 192 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00192 $0.02620
Opus 5 $0.00096 $0.01310
Sonnet 5 $0.00038 $0.00524
Haiku 4.5 $0.00019 $0.00262

Measured 4d ago against content hash cf27c5b1a83b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

inspect-textdb 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 4d ago.

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.

.claude/skills/inspect-textdb/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Inspecting a dbetto text database

dbetto treats a directory of JSON/YAML files as a database. Directories, files, and the keys inside a file all sit at the same semantic level, so you can walk from the top folder down to a leaf value with one uniform syntax. In memory every mapping becomes an AttrsDict (a dict you can also access with dot notation). This skill is the map of what the API can do and which entry point fits each question, including how to check that a change to the data behaves.

Orient first

Before writing code, look at the data. The right API call depends on the shape on disk, so check it:

  • find <dir> -maxdepth 2 -name '*.json' -o -name '*.yaml' -o -name '*.yml' to see the file layout.
  • Look for a validity.yaml / validity.json / validity.jsonl in a directory: its presence means the data is time-versioned and you should query it with .on(timestamp) rather than reading a fixed file.
  • Peek at one file to learn whether the top level is a mapping ({...}) or a list ([...]), and whether entries carry an inner id worth remapping on (e.g. daq.rawid, name).

Everything is importable from the top package:

from dbetto import TextDB, AttrsDict, Props, load_dict, load_attrs_dict, str_to_datetime

Load a database

from dbetto import TextDB

db = TextDB("/path/to/data")  # scans the tree immediately
  • lazy=True skips the initial filesystem scan and caches files as you touch them. Cheap for huge trees, but .map(), .group(), iteration, and .keys() need a populated store, so call db.scan() first if you use them. lazy="auto" is lazy except in an interactive session.
  • hidden=True includes dot-files/dot-dirs (ignored by default).
  • To read a single file without a whole database: load_dict(path) returns a plain dict/list; load_attrs_dict(path) returns an AttrsDict. Both infer JSON vs YAML from the extension.

Access files and values

Directories resolve to nested TextDB objects; files resolve to AttrsDict (or a list). The extension is optional and path-style keys work:

Read the full file on GitHub · 215 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 215 lines · 192 tokens per session scan A cf27c5b1a83b

Subscribe to this mod's changes

inspect-textdb is a skill published in the GitHub repository gipert/dbetto (2 stars, last pushed 3d ago), licensed MIT. It adds 192 tokens to every session and 2,620 once invoked, about $0.0010 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-08-31.

Related

Other skills, from other repositories

tika-eval-h2-query

Query the tika-eval H2 database directly for counts and joins the canned reports do not compute — connection gotchas, key tables, example queries. Use when the xlsx/summary.md reports are not enough.

apache/tika · 51 tokens

adding-personhog-rpc

Guide for adding a new RPC to personhog-replica and personhog-router. Covers eligibility checks, proto definition, code generation for Python and Node.js clients, Rust implementation (storage trait, postgres queries, service handler, router wiring), and index compatibility validation. Use when adding a new gRPC…

PostHog/posthog · 88 tokens

django-models

Design Django ORM models for Sentry following architectural conventions for silos, replication, relocation, and foreign keys. Use when adding a new Django model, designing a model for a feature, deciding where data should live, picking a foreign key type, or refactoring an existing model's silo placement. Trigger on…

getsentry/sentry · 141 tokens

anyline

AnyLine数据库操作开发规范,涵盖动态数据源注册切换注销、DDL动态建表改表、DML增删改与事务管理、DQL动态查询与聚合统计、元数据管理、查询结果集的聚合、过滤、格式转换等数学计算,AnyLine方法内部会自动适配100+数据库方言,调用方法时忽略不同数据库差异。.

anylineorg/anyline · 88 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service...

benjaminasterA/antigravity-awesome-skills · 42 tokens

azure-cosmos-py

Client library for Azure Cosmos DB NoSQL API — globally distributed, multi-model database.

benjaminasterA/antigravity-awesome-skills · 7 tokens