tika-eval-h2-query

tika-eval-h2-query is a skill for Claude Code, Codex from apache/tika. It costs 51 tokens per session (2,189 once invoked), scanned A, original, Apache-2.0.

A guide for querying the H2 database used by tika-eval, a tool whose reports may not contain every count or comparison you need. H2 is a database that can be queried with SQL, a language for selecting and joining stored data.

In plain words
What is it for?
Use it for exact counts, custom joins, and comparisons that are missing from tika-eval's spreadsheet or summary reports. It also covers read-only access and timing queries around Compare, Profile, and Report runs.
Why use it?
It explains how to open the database safely and avoid common connection mistakes, such as using the wrong credentials, creating an empty database by typo, or querying while another process has it locked.

Skill for Claude CodeCodex

About the project

Apache Tika is a toolkit that reads many kinds of files and extracts their text and descriptive metadata, including from formats such as PDF, PowerPoint, and Excel. Applications and agent pipelines use it to turn documents into content they can process, search, or pass to language models. The catalogue skills provide reusable ways for coding agents to run Tika for file-to-Markdown extraction.

apache/tika · 4,028 stars · on GitHub

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/apache/tika/tika-eval-h2-query
Any agent
npx skills add apache/tika --skill tika-eval-h2-query
Clone the repo
git clone --depth 1 https://github.com/apache/tika

Made for: Claude Code, Codex.

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 tika-eval-h2-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/apache/tika/tika-eval-h2-query.svg)](https://agentmods.dev/skills/apache/tika/tika-eval-h2-query)
Your own site
<a href="https://agentmods.dev/skills/apache/tika/tika-eval-h2-query"><img src="https://agentmods.dev/badge/skills/apache/tika/tika-eval-h2-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,189 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.00051 $0.02189
Opus 5 $0.00026 $0.01094
Sonnet 5 $0.00010 $0.00438
Haiku 4.5 $0.00005 $0.00219

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

Security

Grade A, and why

tika-eval-h2-query 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 5d 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.

.skills/devs/tika-eval-h2-query/SKILL.md · 172 lines

How it starts

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

Local override: $TIKA_SKILLS_LOCAL/tika-eval-h2-query/LOCAL.md (default ~/.tika-skills), read after this file, wins on conflict.

Query the tika-eval H2 database directly

tika-eval (Compare / Profile / Report) stores everything in an H2 database — the -d <name> you pass to Compare produces <name>.mv.db. The xlsx/summary.md reports only surface pre-canned views; for anything else (exact counts, custom joins, "better vs worse" tallies the reports don't compute) connect to the H2 db and run SQL.

Connecting (the part that trips people up)

tika-eval creates the db with no username and no password (H2Util calls DriverManager.getConnection(url) with no creds). So:

  • URL: jdbc:h2:<absolute-path-without-the-.mv.db-suffix>
  • user / password: empty. -user sa (H2's old default) fails with "Wrong user name or password" — the db wasn't created with sa.
  • Add ;IFEXISTS=TRUE so a typo opens nothing instead of silently creating a new empty db, and ;ACCESS_MODE_DATA=r for a safe read-only open.
  • H2 is single-writer: don't query while a Compare/Profile/Report run has the db open (file lock). Query after the run finishes.

Use the h2-*.jar that ships with tika-eval-app (in its target/dependency/ or the unzipped runtime lib/).

Read the full file on GitHub · 172 lines

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. 5d ago First seen · 172 lines · 51 tokens per session scan A d776899279d8

Subscribe to this mod's changes

tika-eval-h2-query is a skill published in the GitHub repository apache/tika (4,028 stars, last pushed 2d ago), licensed Apache-2.0. It adds 51 tokens to every session and 2,189 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

anyline

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

anylineorg/anyline · 88 tokens

exasol-system-tables

Exasol system and statistics tables: what they contain, visibility prefixes (EXAALL, EXADBA, EXAUSER), and when to query them directly vs using MCP tools.

exasol/mcp-server · 47 tokens

inspect-textdb

Load, query, and verify text-based databases (JSON/YAML files scattered across a directory tree, plus time-validity files) with the dbetto Python API: TextDB, AttrsDict, Catalog, Props, and the time utilities. Use this whenever someone points at a folder of JSON/YAML data or config and wants to read a value, walk the…

gipert/dbetto · 192 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

connector-standards

Load all OpenMetadata connector development standards into context. Use before building or reviewing connectors to ensure consistent patterns.

open-metadata/OpenMetadata · 26 tokens