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.
npx skills add AdamBien/airails --skill jdbc-persistencegit clone --depth 1 https://github.com/AdamBien/airailsWrote 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.
[](https://agentmods.dev/skills/adambien/airails/jdbc-persistence)<a href="https://agentmods.dev/skills/adambien/airails/jdbc-persistence"><img src="https://agentmods.dev/badge/skills/adambien/airails/jdbc-persistence/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.
<a href="https://agentmods.dev/skills/adambien/airails/jdbc-persistence"><img src="https://agentmods.dev/badge/skills/adambien/airails/jdbc-persistence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00103 | $0.03855 |
| Opus 5.5 | $0.00041 | $0.01542 |
| Sonnet 5.5 | $0.00021 | $0.00771 |
| Haiku 4.5 | $0.00010 | $0.00385 |
Grade A, and why
jdbc-persistence 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add JDBC persistence using $ARGUMENTS. Apply all rules below strictly; /bce, /java-conventions, and the stack skill hold wherever this skill is silent.
Principle
Data-Oriented Programming applied to the relational store: the record is the row shape, the sealed interface is the closed set of variants, and the control is a set of functions that move data between the two representations. Nothing is hidden — no proxies, no lazy loading, no dirty checking, no generated SQL. What the code reads is what the database executes.
- model the data, the whole data, nothing but the data — one record per row shape, one record per projection; no record carries columns a query does not return
- data is immutable and transparent — a change is a new record (
with-style copy through the canonical constructor), then anUPDATE - make illegal states unrepresentable — closed sets as sealed interfaces or enums; the compiler, not a
defaultbranch, proves the column mapping complete - separate operations from data — SQL and binding live in the control; records carry components, invariants, domain behavior, and their own creation from a row (
fromResultSet), the read-side twin oftoJSON();java.sqlenters a record only through that factory
Placement (BCE)
entity— the records and sealed interfaces; free of annotations and SQL strings; the onlyjava.sqltypes a record sees are theResultSetandSQLExceptionof itsfromResultSetfactorycontrol— classes named after their responsibilities (Customers,OrderReports), never*Repository,*Dao,*Mapper,*Store; a control holds the SQL, binding, and row collection for the queries it answers and may read or write several tables of its BC in one method; one table is written by exactly one controlboundary— owns the unit of work: one connection, one transaction, several control calls; never contains SQL/microprofile-server:@Transactionalon the boundary class, never on single methods, and@Injectof the control; the boundary never sees aDataSourceorConnection— the container opens the transaction, the control's connections enlist in it, the container commits. When the project defines a@Boundarystereotype (a CDI@Stereotypecarrying@ApplicationScopedand@Transactional), use it instead of an explicit@Transactional, likewise on the class; introduce the stereotype only when the project already has one or asks for it/java-cli-app: the boundary opens the connection (DriverManager.getConnection(url, user, password)or a driverDataSource), setssetAutoCommit(false), passes the connection to the controls, commits; a thrown exception rolls back in acatchand rethrows. A read-only query may run with auto-commit; a boundary method that writes never does
- connection coordinates come from configuration, never from literals:
quarkus.datasource.*/ MicroProfile Config on the server,/zcfgkeys (db.url,db.user,db.password) in a CLI; the password never lands in a source file - the schema belongs to the BC: each BC ships its own DDL; a table is owned by exactly one BC
- a reference to another BC is an
idcomponent in the referencing record, backed by a realFOREIGN KEY(see Schema); never a nested record of the other BC's entity; a join across BC boundaries is confined to read-only projections and is a coupling signal
What ships with it
1 file 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.
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.
- 3d ago Changed · +103 tokens per session a7bcf731d918
- 5d ago Changed · -41 lines · -255 tokens per session 3f6f0a8c680f
- 7d ago First seen · 164 lines · 255 tokens per session scan A f30e5bf72d87
jdbc-persistence is a skill published in the GitHub repository AdamBien/airails (62 stars, last pushed yesterday), licensed MIT. It adds 103 tokens to every session and 3,855 once invoked, about $0.0004 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-10-31.
jdbc-persistence compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jdbc-persistenceAdamBien/airails | Skill | 62 | yesterday | MIT | A | 103 | Claude Code |
| k2cloudflare/skills | Skill | 3.3k | yesterday | Apache-2.0 | A | 38 | Claude Code |
| authoring-java-sdk-tasksastronomer/agents | Skill | 458 | 4d ago | Apache-2.0 | A | 152 | Claude Code |
| database-patternsyonatangross/orchestkit | Skill | 299 | yesterday | MIT | A | 32 | Claude Code |
| reactive-sync-engine-expertroedyrustam/vibes-plug | Skill | 121 | yesterday | MIT | A | 38 | Cursor |
| search-engine-expertroedyrustam/vibes-plug | Skill | 121 | yesterday | MIT | A | 35 | Cursor |
| loom-searchcosmix/loom | Skill | 65 | 5d ago | MIT | A | 26 | Claude Code, Codex |