kevin-liu-01/agent-machines/db-write

Claude Code and agent skill by kevin-liu-01/agent-machines

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run mutating SQL (INSERT, UPDATE, DELETE, DDL) against Supabase databases. Requires explicit user invocation. Use for migrations, seed data, schema changes, or data fixes.

Install

npx vskill@latest install kevin-liu-01/agent-machines/db-write

SKILL.md

The same SKILL.md was published earlier as kevin-liu-01/agent-machines/db-write.

Context

  • Databases: !cat packages/python/cli/databases.yml
  • Local Supabase status: !pnpm db status 2>&1 | head -10

Query script

The query tool lives at ${CLAUDE_SKILL_DIR}/../db/scripts/query.ts. Run it with:

bash
node --experimental-strip-types ${CLAUDE_SKILL_DIR}/../db/scripts/query.ts [flags] "<sql>"

Flags:

  • --env local|dev|preview|prod (default: local)
  • --db core|admin (default: core)
  • --format table|json|csv (default: table)

Note: do NOT pass --readonly. This skill is for mutations.

Credentials

Same as /db. See that skill for credential resolution order and SSM instructions.

Schema reference

Generated Supabase types with full table schemas, enums, and function signatures:

  • Core DB: packages/typescript/databases/core/database.types.ts
  • Admin DB: packages/typescript/databases/admin/database.types.ts

Read the relevant file when you need column names, types, enums, or relationships.

Rules

  1. NEVER target prod. Refuse all prod mutations. Production changes go through migrations

deployed via the pipeline (dev -> preview -> prod). See AGENTS.md "Production is Sacred."

  1. Confirm before executing on any remote environment (dev, preview). Show the SQL and

target environment, then ask the user to confirm.

  1. Default to --env local unless the user specifies otherwise.
  2. For DDL (CREATE, ALTER, DROP), prefer pnpm db diff --execute for tracked migrations.

Only use raw DDL for local experimentation.

  1. Show the SQL you intend to run before running it.

Task

Run the user's mutation. Always show the SQL and target before executing. For remote envs, require explicit confirmation.

$ARGUMENTS

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
31
Repository forks
5
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. 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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kevin-liu-01/agent-machines/db-write/badge)](https://verified-skill.com/skills/kevin-liu-01/agent-machines/db-write)

Something wrong with this skill or its page? Tell us.