kevin-liu-01/agent-machines/db-write
Claude Code and agent skill by kevin-liu-01/agent-machines
- community
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-writeSKILL.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:
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
- 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."
- Confirm before executing on any remote environment (dev, preview). Show the SQL and
target environment, then ask the user to confirm.
- Default to
--env localunless the user specifies otherwise. - For DDL (CREATE, ALTER, DROP), prefer
pnpm db diff --executefor tracked migrations.
Only use raw DDL for local experimentation.
- 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
- SKILL.md in the repositoryCheckingknowledge/skills/db-write/SKILL.md
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
[](https://verified-skill.com/skills/kevin-liu-01/agent-machines/db-write)