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 usetheokit/theokit --skill theokit-databasegit clone --depth 1 https://github.com/usetheokit/theokitWrote 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/usetheokit/theokit/theokit-database)<a href="https://agentmods.dev/skills/usetheokit/theokit/theokit-database"><img src="https://agentmods.dev/badge/skills/usetheokit/theokit/theokit-database/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/usetheokit/theokit/theokit-database"><img src="https://agentmods.dev/badge/skills/usetheokit/theokit/theokit-database.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.00025 | $0.01388 |
| Opus 5.5 | $0.00010 | $0.00555 |
| Sonnet 5.5 | $0.00005 | $0.00278 |
| Haiku 4.5 | $0.00003 | $0.00139 |
Grade A, and why
theokit-database 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 1mo 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 — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TheoKit Database (Drizzle)
The examples below use SQLite (better-sqlite3), the zero-setup default. PostgreSQL works
differently in three places, covered in PostgreSQL: the column builders come from
drizzle-orm/pg-core, the connection comes from storage in theo.config.ts through
getStorageManager().usePostgres(...), and every query is awaited (the Postgres drivers have no
.all(), .get() or .run()).
Paths below are relative to serverDir in theo.config.ts (src/server in a scaffolded app).
Schema Definition
// src/server/db/schema.ts
import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core'
export const tasks = sqliteTable('tasks', {
id: integer('id').primaryKey({ autoIncrement: true }),
title: text('title').notNull(),
done: integer('done', { mode: 'boolean' }).notNull().default(false),
createdAt: text('created_at')
.notNull()
.default(sql`CURRENT_TIMESTAMP`),
})
export const users = sqliteTable('users', {
id: integer('id').primaryKey({ autoIncrement: true }),
email: text('email').notNull().unique(),
name: text('name').notNull(),
})
DB Connection
// src/server/db/index.ts
import { drizzle } from 'drizzle-orm/better-sqlite3'
import Database from 'better-sqlite3'
import * as schema from './schema.js'
const sqlite = new Database('data/dev.db')
export const db = drizzle(sqlite, { schema })
Common Queries
import { db } from '@/server/db'
import { tasks } from '@/server/db/schema'
import { eq } from 'drizzle-orm'
// Select all
db.select().from(tasks).all()
// Select by ID
db.select().from(tasks).where(eq(tasks.id, 1)).get()
// Insert + return
db.insert(tasks).values({ title: 'New task' }).returning().get()
// Update
db.update(tasks).set({ done: true }).where(eq(tasks.id, 1)).run()
// Delete
db.delete(tasks).where(eq(tasks.id, 1)).run()
Seeds
// src/server/db/seed.ts
import { db } from './index.js'
import { tasks } from './schema.js'
await db
.insert(tasks)
.values([
{ title: 'Learn TheoKit', done: false },
{ title: 'Build an agent', done: false },
])
.run()
console.log('Seeded database')
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.
- 1mo ago Changed · +54 lines · +3 tokens per session 1a22204efd28
- 3mo ago First seen · 118 lines · 22 tokens per session scan A 199ba88dec63
theokit-database is a skill published in the GitHub repository usetheokit/theokit (5 stars, last pushed 10d ago), licensed Apache-2.0. It adds 25 tokens to every session and 1,388 once invoked, about $0.0001 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.
theokit-database compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| theokit-databaseusetheokit/theokit | Skill | 5 | 10d ago | Apache-2.0 | A | 25 | Claude Code |
| continuum-memoryshyftlabs/continuum | Skill | 86 | 4d ago | Apache-2.0 | A | 107 | Claude Code |
| DataWarehouseArchitectvignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 48 | Claude Code, Codex |
| database-geniusvignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 68 | Claude Code, Codex |
| knowledge-graph-buildervignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 58 | Claude Code, Codex |
| sql-analyzervignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 79 | Claude Code, Codex |
| business-intelligence-provignesh2027/Claude-Agentic-Skills2.0-version | Skill | 4 | 3mo ago | MIT | A | 68 | Claude Code, Codex |