Skip to main content

sql

Runs SQL queries against the WordPress development database. Use when inspecting tables, checking event data, or debugging database issues.

소스 정보

저장소
bonny/WordPress-Simple-History
최근 소스 활동
2026년 8월 29일 19:37
감지된 SKILL.md 언어
영어
스타
317
포크
74

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sql
description
Runs SQL queries against the WordPress development database. Use when inspecting tables, checking event data, or debugging database issues.
disable-model-invocation
false
allowed-tools
Read, Bash
# Run SQL Queries Run SQL queries against the WordPress development database. **Security:** Development database only. Always confirm UPDATE/DELETE with user first. ## Command Pattern ```bash docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "YOUR_SQL_HERE" ``` Credentials are in `CLAUDE.local.md` under "Database Access". ## Common Queries ```bash # Show all tables docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SHOW TABLES;" # Recent Simple History events docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "SELECT * FROM wp_simple_history ORDER BY id DESC LIMIT 10;" # Describe table structure docker compose exec mariadb mysql -u<USER> -p<PASSWORD> <DATABASE> -e "DESCRIBE wp_simple_history;" ``` ## Table Prefixes | Prefix | Installation | | --------------- | ------------- | | `wp_` | Main install | | `wp_nightly_` | Nightly build | | `wp_multisite_` | Multisite | ## Simple History Tables - `wp_simple_history` - Main events table - `wp_simple_history_contexts` - Event context/metadata ## Workflow 1. Read credentials from `CLAUDE.local.md` 2. Ask user for query (if not specified) 3. Run query and display results 4. **For UPDATE/DELETE:** Always confirm with user first
GitHub에서 보기