From airis-mcp-gateway
Guides safe database workflows: schema inspection before queries, read-before-write previews for mutations, user confirmations, and post-change verification.
How this skill is triggered — by the user, by Claude, or both
Slash command
/airis-mcp-gateway:mcp-databaseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this workflow when you need to query, investigate, or modify database state.
Use this workflow when you need to query, investigate, or modify database state.
Gateway instructions already tell you WHICH tools handle database operations. This skill teaches the safe workflow for using them.
Before writing any query:
Never write a query against a table you haven't inspected.
Always run a SELECT to understand current state before any mutation:
| Operation | Caution Level |
|---|---|
| SELECT | Auto-execute OK |
| INSERT (new data) | Confirm with user — describe what will be inserted |
| UPDATE | Confirm with user — show the SELECT of affected rows first |
| DELETE | Always confirm — show affected rows and ask explicitly |
| DDL (ALTER, DROP) | Always confirm — these are irreversible |
After any INSERT/UPDATE/DELETE:
| Situation | Action |
|---|---|
| Need to understand data model | List tables → describe relevant tables |
| Simple data lookup | SELECT directly (schema check optional for known tables) |
| Data modification needed | SELECT first → confirm with user → execute → verify |
| Debugging a data issue | Schema check → SELECT to inspect state → trace the problem |
| Need to check logs | Use the Gateway's log retrieval tools |
npx claudepluginhub agiletec-inc/airis-mcp-gateway --plugin airis-mcp-gatewayGenerates optimized SQL queries for PostgreSQL, MySQL, SQLite and NoSQL for MongoDB, DynamoDB, Redis; supports ORMs like Prisma. Explains plans, indexes, and performance optimizations.
Guides SQL database design, query optimization, and migration safety. Use when writing queries, designing schemas, or planning zero-downtime migrations.