swapnildahiphale/opensre/database-mysql

Claude Code and agent skill by swapnildahiphale/opensre

Trust tier 3
  • community
Source check pending

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

MySQL/MariaDB database inspection and queries. Use when investigating table schemas, running queries, checking processlist, replication status, InnoDB engine status, or lock contention.

Install

npx vskill@latest install swapnildahiphale/opensre/database-mysql

SKILL.md

The same SKILL.md was published earlier as swapnildahiphale/opensre/database-mysql.

MySQL Database

Authentication

IMPORTANT: Credentials are injected automatically by a proxy layer. Do NOT check for MYSQL_PASSWORD in environment variables - it won't be visible to you. Just run the scripts directly; authentication is handled transparently.

Configuration environment variables you CAN check (non-secret):

  • MYSQL_HOST - Database host
  • MYSQL_PORT - Database port (default: 3306)
  • MYSQL_DATABASE - Database name

MANDATORY: Schema-First Investigation

Understand the schema before running queries.

LIST TABLES → DESCRIBE TABLE → EXECUTE QUERY → CHECK HEALTH

Available Scripts

All scripts are in .claude/skills/database-mysql/scripts/

list_tables.py - List Tables (START HERE)
bash
python .claude/skills/database-mysql/scripts/list_tables.py [--database DB]
describe_table.py - Table Schema Details
bash
python .claude/skills/database-mysql/scripts/describe_table.py --table TABLE_NAME [--database DB]
execute_query.py - Run SQL Queries
bash
python .claude/skills/database-mysql/scripts/execute_query.py --query "SELECT * FROM users LIMIT 10" [--limit 100]
show_processlist.py - Active Connections
bash
python .claude/skills/database-mysql/scripts/show_processlist.py [--full]
show_replica_status.py - Replication Health
bash
python .claude/skills/database-mysql/scripts/show_replica_status.py
show_engine_status.py - InnoDB Engine Status
bash
python .claude/skills/database-mysql/scripts/show_engine_status.py [--engine innodb]
get_table_locks.py - Lock Contention
bash
python .claude/skills/database-mysql/scripts/get_table_locks.py

Investigation Workflow

Slow Query Investigation
1. show_processlist.py --full (find active/long queries)
2. show_engine_status.py (check InnoDB lock waits, deadlocks)
3. get_table_locks.py (find lock contention)
Replication Lag
1. show_replica_status.py (check Seconds_Behind_Master)
2. show_processlist.py (check for blocking queries)

Security

  • Security scanPassed, 95 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
70
Repository forks
18
7-day trend score
21

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/swapnildahiphale/opensre/database-mysql/badge)](https://verified-skill.com/skills/swapnildahiphale/opensre/database-mysql)

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