Install
$ agentstack add skill-graysurf-agent-kit-sql ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
SQL
Contract
Prereqs:
bashavailable onPATH.- Dialect client available on
PATH: postgres:psql(the runner tries Homebrewlibpq/binwhen available)mysql:mysql(the runner tries Homebrewmysql-client/binwhen available)mssql:sqlcmd(the runner tries Homebrewmssql-tools18/binwhen available)- Connection settings provided via exported env vars and/or an env file.
Inputs:
- Dialect subcommand:
postgres,mysql, ormssql. --prefix: env var prefix.--env-file: file tosourcefor env vars (use/dev/nullto rely on already-exported env vars).- One of:
--query ""--file--(pass-through to the selected client)
Outputs:
- Query results printed to stdout from the selected client; diagnostics to stderr.
Exit codes:
0: success2: wrapper usage error- non-zero: connection/auth/query error from the selected client or wrapper
Failure modes:
- Missing client binary, missing required prefixed env vars, or DB unreachable/auth failure.
Overview
Use this canonical SQL skill for all supported database clients. Pick the dialect with the first argument:
postgresusespsqland_PGHOST,_PGPORT,_PGUSER,_PGPASSWORD,
_PGDATABASE.
mysqlusesmysqland_MYSQL_HOST,_MYSQL_PORT,_MYSQL_USER,
_MYSQL_PASSWORD, _MYSQL_DB.
mssqlusessqlcmdand_MSSQL_HOST,_MSSQL_PORT,_MSSQL_USER,
_MSSQL_PASSWORD, _MSSQL_DB.
MSSQL optional extras:
_MSSQL_TRUST_CERT: set to1|true|yesto pass-Ctosqlcmd._MSSQL_SCHEMA: passed as-v schema=tosqlcmd.
Prefer read-only queries unless the user explicitly requests data changes.
Quick Start
Run PostgreSQL:
$AGENT_HOME/skills/tools/sql/sql/scripts/sql.sh \
postgres \
--prefix TEST \
--env-file /dev/null \
--query "select 1;"
Run MySQL:
$AGENT_HOME/skills/tools/sql/sql/scripts/sql.sh \
mysql \
--prefix TEST \
--env-file /dev/null \
--query "select 1;"
Run SQL Server:
$AGENT_HOME/skills/tools/sql/sql/scripts/sql.sh \
mssql \
--prefix TEST \
--env-file /dev/null \
--query "select 1;"
Safety Rules
Ask before running UPDATE, DELETE, INSERT, MERGE, TRUNCATE, or schema changes.
Output and Clarification Rules
- Follow the shared template at
$AGENT_HOME/skills/tools/sql/_shared/references/ASSISTANT_RESPONSE_TEMPLATE.md.
Scripts (only entrypoints)
$AGENT_HOME/skills/tools/sql/sql/scripts/sql.sh
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: graysurf
- Source: graysurf/agent-kit
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.