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 secondsky/claude-skills --skill drizzle-orm-d1git clone --depth 1 https://github.com/secondsky/claude-skillsWrote 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/secondsky/claude-skills/drizzle-orm-d1)<a href="https://agentmods.dev/skills/secondsky/claude-skills/drizzle-orm-d1"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/drizzle-orm-d1/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/secondsky/claude-skills/drizzle-orm-d1"><img src="https://agentmods.dev/badge/skills/secondsky/claude-skills/drizzle-orm-d1.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.00076 | $0.02445 |
| Opus 5.5 | $0.00030 | $0.00978 |
| Sonnet 5.5 | $0.00015 | $0.00489 |
| Haiku 4.5 | $0.00008 | $0.00245 |
Grade A, and why
drizzle-orm-d1 scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async fetch(request: Request, env: { DB: D1Database }): Promise<Response> { How it starts
The opening of the file, as written. The whole thing — 295 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Drizzle ORM for Cloudflare D1
Status: Production Ready ✅ Last Updated: 2025-12-14 Latest Version: [email protected], [email protected] Dependencies: cloudflare-d1, cloudflare-worker-base
Quick Start (10 Minutes)
1. Install Drizzle
bun add drizzle-orm drizzle-kit
2. Configure Drizzle Kit
Create drizzle.config.ts:
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
schema: './src/db/schema.ts',
out: './migrations',
dialect: 'sqlite', // MANDATORY since drizzle-kit 0.21 (D1 = sqlite)
driver: 'd1-http', // D1 HTTP driver for remote migrations/Studio
dbCredentials: { // MANDATORY: drizzle-kit 0.30+ tightened zod validation
accountId: process.env.CLOUDFLARE_ACCOUNT_ID!,
databaseId: process.env.CLOUDFLARE_DATABASE_ID!,
token: process.env.CLOUDFLARE_D1_TOKEN!,
},
});
drizzle-kit 0.30/0.31 note:
dialectanddbCredentialsare now strictly validated. A config that omitsdialector uses the oldconnectionString/urikeys will fail validation. For D1 usedialect: 'sqlite'+driver: 'd1-http'withaccountId/databaseId/token(or wrangler-based credentials). The runtimemigrate()signature indrizzle-orm/<driver>/migratoris unchanged from 0.36 → 0.45 (it changes only in 1.0-beta, which is out of scope for^0.45).
3. Define Schema
Create src/db/schema.ts:
import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core';
import { relations } from 'drizzle-orm';
export const users = sqliteTable('users', {
id: integer('id').primaryKey({ autoIncrement: true }),
email: text('email').notNull().unique(),
name: text('name').notNull(),
createdAt: integer('created_at', { mode: 'timestamp' }).$defaultFn(() => new Date()),
});
export const posts = sqliteTable('posts', {
id: integer('id').primaryKey({ autoIncrement: true }),
title: text('title').notNull(),
content: text('content').notNull(),
authorId: integer('author_id')
.notNull()
.references(() => users.id, { onDelete: 'cascade' }),
});
export const usersRelations = relations(users, ({ many }) => ({
posts: many(posts),
}));
What ships with it
19 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.
- references/common-errors.md 5.3 KB
- references/error-catalog.md 7.9 KB
- references/links-to-official-docs.md 1.8 KB
- references/migration-workflow.md 2.7 KB
- references/query-builder-api.md 3.9 KB
- references/schema-patterns.md 3.4 KB
- references/wrangler-setup.md 2.7 KB
- scripts/check-versions.sh 1017 B runs code
- templates/basic-queries.ts 7.5 KB runs code
- templates/basic-schema.ts 2.9 KB runs code
- templates/client.ts 2.2 KB runs code
- templates/cloudflare-worker-integration.ts 7.7 KB runs code
- templates/drizzle.config.ts 2.2 KB runs code
- templates/migrations/0001_example.sql 2.1 KB
- templates/package.json 1.1 KB
- templates/prepared-statements.ts 7.3 KB runs code
- templates/relations-queries.ts 6.8 KB runs code
- templates/schema.ts 6.5 KB runs code
- templates/transactions.ts 6.8 KB runs code
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.
- 8d ago First seen · 295 lines · 76 tokens per session scan A 28ee02bf0f09
drizzle-orm-d1 is a skill published in the GitHub repository secondsky/claude-skills (257 stars, last pushed 8d ago), licensed MIT. It adds 76 tokens to every session and 2,445 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.
drizzle-orm-d1 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| drizzle-orm-d1secondsky/claude-skills | Skill | 257 | 8d ago | MIT | A | 76 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |