dbetto: Skill for Claude Code

.claude/skills/inspect-textdb/SKILL.md

inspect-textdb is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/.

This is gipert/dbetto's own configuration. It tells Claude Code how to work on dbetto 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 dbetto configures →

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

Reuse

Borrowing it

Nothing to install: this file belongs to gipert/dbetto. 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/gipert/dbetto/main/.claude/skills/inspect-textdb/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gipert/dbetto

Made for: Claude Code.

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/github.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/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 inspect-textdb

Your own site · 80×15
<a href="https://agentmods.dev/skills/gipert/dbetto/inspect-textdb"><img src="https://agentmods.dev/badge/skills/gipert/dbetto/inspect-textdb.svg" alt="Reviewed on agentmods" width="80" 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. 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.00192 $0.02620
Opus 5.5 $0.00077 $0.01048
Sonnet 5.5 $0.00038 $0.00524
Haiku 4.5 $0.00019 $0.00262

Measured 3mo ago against content hash cf27c5b1a83b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 29d ago), licensed MIT. It adds 192 tokens to every session and 2,620 once invoked, about $0.0008 per session on Opus 5.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

inspect-textdb compared with skills from other repositories

inspect-textdb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inspect-textdbgipert/dbettoSkill229d agoMITA192Claude Code
flaskbobmatnyc/claude-mpm-skillsSkill794mo agoMITA25Claude Code
flaskbobmatnyc/claude-mpmSkill1603mo agononeA25Claude Code
psycopgmanutej/luxor-claude-marketplaceSkill645mo agononeA22Claude Code
fastapi-patternsaffaan-m/ECCSkill313k7d agoMITA35Claude Code, Kiro
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
azure-messaging-webpubsubservice-pymicrosoft/skillsSkill3.3k3d agoMITA64Claude Code