Back to Skills

sql

Run SQL queries against the WordPress development database. Use when querying database tables, inspecting Simple History events, checking WordPress data, debugging database issues, or when the user says "run query" or "check database".

314stars75forksUpdated 2/18/2026

Security Assessment

Safe(100/100)
Security Score100/100

About sql

The 'sql' skill enables users to execute SQL queries on a WordPress development database. It is particularly useful for inspecting tables, retrieving recent events from the Simple History plugin, checking various WordPress data, and assisting with debugging tasks. By interacting with the WordPress database, this skill helps developers and administrators access valuable insights, monitor activity, and perform troubleshooting actions that would otherwise require complex querying or direct access to the database.

Main features of this skill include running SQL queries, viewing table structures, and extracting historical event data. It supports a set of predefined common queries, such as displaying all tables, retrieving recent events from the Simple History plugin, and describing the structure of tables. The skill supports interaction with multiple types of WordPress installations, such as the main installation, nightly builds, and multisite setups, making it versatile for different environments.

This skill is ideal for WordPress developers, system administrators, and support teams who need to access and manipulate database information quickly and securely. It can assist in debugging, managing database records, and ensuring that data queries are executed properly in development environments. Its main target users are those who are actively working with WordPress development databases, especially in environments where frequent querying and debugging are required.

FAQ

What type of database does this skill work with?

This skill works with the WordPress development database, specifically with MariaDB instances used in development environments.

What should I do before running an UPDATE or DELETE query?

Before running any UPDATE or DELETE query, always confirm with the user to ensure that the changes are intentional and accurate.

Where can I find the database credentials?

Database credentials are stored in the 'CLAUDE.local.md' file under the section 'Database Access'.

Is this skill compatible with WordPress multisite installations?

Yes, this skill supports multisite WordPress installations and can be used to query tables specific to such setups.

What are the main types of WordPress installations supported by this skill?

This skill supports three types of WordPress installations: the main install ('wp_'), nightly builds ('wp_nightly_'), and multisite installations ('wp_multisite_').

Install sql

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill