aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI…
Cloudflare Hyperdrive for Workers-to-database connections with pooling and caching. Use for PostgreSQL/MySQL, Drizzle/Prisma, or encountering pool errors, TLS issues, connection refused.
$ npx -y skills add secondsky/claude-skills --skill cloudflare-hyperdrive --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloudflare-hyperdriveContext preview
The summary Claude sees to decide when to auto-load this skill.
Cloudflare Hyperdrive for Workers-to-database connections with pooling and caching. Use for PostgreSQL/MySQL, Drizzle/Prisma, or encountering pool errors, TLS issues, connection refused.
name: cloudflare-hyperdrive
description: "Cloudflare Hyperdrive for Workers-to-database connections with pooling and caching. Use for PostgreSQL/MySQL, Drizzle/Prisma, or encountering pool errors, TLS issues, connection refused."
license: MIT
metadata:
version: "2.0.0"
last_verified: "2025-11-18"
production_tested: true
token_savings: "~58%"
errors_prevented: 6
templates_included: 0
references_included: 1
keywords:
- hyperdrive
- cloudflare hyperdrive
- workers hyperdrive
- postgres workers
- mysql workers
- connection pooling
- query caching
- node-postgres
- pg
- postgres.js
- mysql2
- drizzle hyperdrive
- prisma hyperdrive
- workers rds
- workers aurora
- workers neon
- workers supabase
- database acceleration
- hybrid architecture
- cloudflare tunnel database
- wrangler hyperdrive
- hyperdrive bindings
- local development hyperdrive**Status**: Production Ready ✅ | **Last Verified**: 2025-11-18
---
Connect Workers to existing PostgreSQL/MySQL databases:
---
bunx wrangler hyperdrive create my-db \ --connection-string="postgres://user:pass@host:5432/database"
Save the `id`!
{
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2024-09-23",
"compatibility_flags": ["nodejs_compat"], // REQUIRED!
"hyperdrive": [
{
"binding": "HYPERDRIVE",
"id": "<ID_FROM_STEP_1>"
}
]
}bun add pg # or postgres, or mysql2
import { Client } from 'pg';
export default {
async fetch(request, env, ctx) {
const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
const result = await client.query('SELECT * FROM users LIMIT 10');
await client.end();
return Response.json(result.rows);
}
};**Load `references/setup-guide.md` for complete walkthrough.**
---
1. **Enable nodejs_compat** flag (required!) 2. **Use env.HYPERDRIVE.connectionString** (not original DB string) 3. **Close connections** after queries 4. **Handle errors** explicitly 5. **Use connection pooling** (built-in) 6. **Test locally** with wrangler dev 7. **Monitor query performance** 8. **Use prepared statements** 9. **Enable query caching** (automatic) 10. **Secure connection strings** (use secrets)
1. **Never skip nodejs_compat** (drivers won't work) 2. **Never use original DB connection string** in Workers 3. **Never leave connections open** (pool exhaustion) 4. **Never skip error handling** (DB can fail) 5. **Never hardcode credentials** in code 6. **Never exceed connection limits** 7. **Never use eval/Function** (blocked in Workers) 8. **Never skip TLS** for production DBs 9. **Never use blocking queries** (Worker timeout) 10. **Never expose DB errors** to users
---
import { Client } from 'pg';
const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
const result = await client.query('SELECT * FROM users');
await client.end();import postgres from 'postgres'; const sql = postgres(env.HYPERDRIVE.connectionString); const users = await sql`SELECT * FROM users`;
import mysql from 'mysql2/promise';
const connection = await mysql.createConnection(env.HYPERDRIVE.connectionString);
const [rows] = await connection.execute('SELECT * FROM users');
await connection.end();---
import { drizzle } from 'drizzle-orm/node-postgres';
import { Client } from 'pg';
const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
const db = drizzle(client);
const users = await db.select().from(usersTable);
await client.end();---
export default {
async fetch(request, env, ctx) {
const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
const users = await client.query('SELECT * FROM users WHERE active = true');
await client.end();
return Response.json(users.rows);
}
};const userId = new URL(request.url).searchParams.get('id');
const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
const result = await client.query(
'SELECT * FROM users WHERE id = $1',
[userId]
);
await client.end();const client = new Client({ connectionString: env.HYPERDRIVE.connectionString });
await client.connect();
try {
await client.query('BEGIN');
await client.query('UPDATE accounts SET balance = balance - 100 WHERE id = $1', [1]);
await client.query('UPDATE accounts SET balance = balance + 100 WHERE id = $1', [2]);
await client.query('COMMIT');
} catch (e) {
await client.query('ROLLBACK');
throw e;
} finally {
await client.end();
}---
**PostgreSQL:**
**MySQL:**
---
---
**References
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
Repo: secondsky/claude-skills
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use when managing API versions,…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication,…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs,…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing…