Db query
AI-agent skills for software engineering — works with Claude Code, Codex, Cursor
npx -y skills add vaibhavsaxena022/skills --skill db-queryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Explore and query a database safely, especially in shared or production-like environments. Use when inspecting data or debugging via SQL through a DB tool or agent (TablePlus, psql, an MCP DB connection). Read-first, with destructive writes gated behind confirmation.
SKILL.md
1.4 KB, as published. Nobody here has run it
Safe DB Query
Treat every connection as if it might be production.
Do
- Confirm which environment/database you're connected to before running anything.
- Start read-only:
SELECTwith an explicitLIMITwhile exploring. - Inspect the schema first (columns, indexes, row counts) before writing queries.
- Scope every query with a precise
WHERE; parameterize inputs. - Wrap risky writes in a transaction — check the affected row count, then
COMMIT(orROLLBACK).
Don't
- Don't run
UPDATE/DELETEwithout aWHEREclause — ever. - Don't run destructive or schema-changing statements without explicit confirmation.
- Don't
SELECT *from large tables unbounded — useLIMITand filters. - Don't paste credentials or connection strings into shared output.
- Don't assume you're on a dev database — verify first.