hummbl-io/agent-skills/workers-d1
Claude Code and agent skill by hummbl-io/agent-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Manage Cloudflare D1 SQLite databases — schema, migrations, queries, and bindings from Workers
Install
npx vskill@latest install hummbl-io/agent-skills/workers-d1SKILL.md
The same SKILL.md was published earlier as hummbl-io/agent-skills/workers-d1.
workers-d1 | Cloudflare D1 SQLite Database Management
When to Use
- Provisioning a D1 database for a Cloudflare Worker
- Applying schema migrations at the edge
- Inspecting or querying a D1 database without external tooling
- Creating backups before destructive migrations
Execution
1. Parse Arguments
--db <name>: D1 database name (required for all actions)--action schema|migrate|query|backup: operation to perform- If no action given, list databases via
wrangler d1 list
2. schema — Inspect or Generate Schema
- Run
npx wrangler d1 execute <db> --command ".schema" - Parse table definitions, indexes, and foreign keys
- If generating, produce SQL DDL from a model description
3. migrate — Apply Migrations
- Locate migration files in
migrations/directory - Apply in order with
npx wrangler d1 migrations apply <db> - Record applied migrations in
d1_migrationstable - Roll back on failure if down-migration exists
4. query — Execute SQL
- Validate SQL is read-only unless
--writeflag is set - Run
npx wrangler d1 execute <db> --command "<sql>" - Format results as a table; warn on full-table scans
5. backup — Export Database
- Run
npx wrangler d1 export <db> --output backup.sql - Verify row counts match live database
- Store backup in
_state/backups/d1_<db>_<date>.sql
6. Verify Binding
- Confirm
[[d1_databases]]block inwrangler.toml - Check
binding,database_name, anddatabase_idare set
Output Format
Skill Chains
- After schema inspection ->
[cloudflare]to verify Worker integration - After backup ->
[sqlite-inspect]to validate exported SQL - Before deployment ->
[deploy-checklist]to confirm prerequisites
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/workers-d1/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hummbl-io/agent-skills/workers-d1)