AlphaMoatによると、2026-10時点でMYSQL QUERYのダウンロード数は6,587、スター数は9で、累計ダウンロード数で今回のランキング対象AIスキル5,109件中2,012位、開発では560件中212位です。
一覧の初期表示は累計ダウンロード数順で、スター数順にも並べ替えできます。詳細ページの順位は累計ダウンロード数で計算しています。
| プラットフォーム | ダウンロード数 | スター数 | コメント |
|---|---|---|---|
| ClawHub ↗ | 4661 | 8 | - |
| SkillHub ↗ | 6587 | 9 | — |
プラットフォームごとに集計方法と集計時点が異なります。
Query project databases with automatic SSH tunnel management. Use when you need to execute SQL queries against configured databases, especially those accessi...
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-10 | 6587 | — | 9 |
| 2026-09 | 4822 | — | 9 |
| 2026-08 | 4385 | +2.8% | 9 |
| 2026-07 | 4267 | +6.7% | 9 |
| 2026-06 | 3998 | +4.3% | 8 |
| 2026-05 | 3835 | — | 9 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
--- name: db-query description: Query project databases with automatic SSH tunnel management. Use when you need to execute SQL queries against configured databases, especially those accessible only via SSH tunnels. Automatically manages SSH connection lifecycle (establishes tunnel before query, closes after). Supports multiple databases distinguished by description/name from config file. --- # Database Query ## Overview Query databases through a centralized configuration file with automatic SSH tunnel management. Handles connection details, SSH tunnel setup/teardown, and query execution.
## Security
**Passwords are never exposed in process lists.** The skill uses environment variables for credentials:
- `MYSQL_PWD` for database passwords (passed to mysql client)
- `SSHPASS` for SSH tunnel passwords (passed to sshpass)
**Recommended:** Store credentials in environment variables instead of the config file for better security.
## Configuration
### Setup
1. **Create config file** at `~/.config/clawdbot/db-config.json`:
```bash
mkdir -p ~/.config/clawdbot
# Copy example config and edit
cp /usr/lib/node_modules/clawdbot/skills/db-query/scripts/config.example.json ~/.config/clawdbot/db-config.json
```
2. **Add database entries** with these fields:
- `name`: Description used to find the database (required)
- `host`: Database host (required)
- `port`: Database port (default: 3306)
- `database`: Database name (required)
- `user`: Database user (required)
- `password`: Database password (optional, can use env var)
- `ssh_tunnel`: Optional SSH tunnel configuration
3. **SSH tunnel configuration** (if needed):
- `enabled`: true/false
- `ssh_host`: Remote SSH host
- `ssh_user`: SSH username
- `ssh_port`: SSH port (default: 22)
- `local_port`: Local port to forward (e.g., 3307)
- `remote_host`: Remote database host behind SSH (default: localhost)
- `remote_port`: Remote database port (default: 3306)
### Environment Variables (Recommended)
Instead of storing passwords in the config file, use environment variables:
```bash
# Format: DB_PASSWORD_<DATABASE_NAME> (spaces replaced with underscores, uppercase)
export DB_PASSWORD_PRODUCTION_USER_DB="your_db_password"
# Format: SSH_PASSWORD_<DATABASE_NAME> for SSH tunnel password
export SSH_PASSWORD_PRODUCTION_USER_DB="your_ssh_password"
```
### Example Config
```json
{
"databases": [
{
"name": "Production User DB",
"host": "localhost",
"port": 3306,
"database": "user_db",
"user": "db_user",
"password": "",
"ssh_tunnel": {
"enabled": true,
"ssh_host": "prod.example.com",
"ssh_user": "deploy",
"local_port": 3307
}
}
]
}
```
Set environment variables (recommended):
```bash
export DB_PASSWORD_PRODUCTION_USER_DB="your_db_password"
export SSH_PASSWORD_PRODUCTION_USER_DB="your_ssh_password"
```
## Usage
### List Databases
```bash
python3 /usr/lib/node_modules/clawdbot/skills/db-query/scripts/db_query.py --list
```
### Query a Database
```bash
python3 /usr/lib/node_modules/clawdbot/skills/db-query/scripts/db_query.py \
--database "Production User DB" \
--query "SELECT * FROM users LIMIT 10"
```
The script will:
1. Find database by matching description in config
2. Start SSH tunnel (if configured)
3. Execute query
4. **Automatically close SSH tunnel** (important for cleanup)
### With Custom Config Path
```bash
python3 /usr/lib/node_modules/clawdbot/skills/db-query/scripts/db_query.py \
--config /path/to/custom-config.json \
--database "test" \
--query "SHOW TABLES"
```
## Requirements
- MySQL client: `apt install mysql-client` or equivalent
- SSH client: usually pre-installed on Linux/Mac
- Python 3.6+
## Notes
- SSH tunnels are automatically closed after query execution
- Use `--list` to see all configured databases and their descriptions
- Database search is case-insensitive partial match on `name` field
- Local ports for SSH tunnels should be unique per database
gh コマンドラインで GitHub の PR チェック、ワークフロー実行、API 照会を扱うスキルです。
テキストの説明からMermaid図のコードを生成します。
16 の検索エンジンをまとめて使え、API キーが不要な検索スキルです。
ProcessOn Diagram Generator は自然言語から編集可能なオンライン図を作る手順を説明します。
コマンドラインから MCP サーバーとツールを一覧、設定、認証、呼び出しします。
管理された OAuth で YouTube Data API に接続し、動画検索とチャンネル管理を行います。
xdrop は Xdrop サーバーを介してターミナルからファイルを送受信し、ローカルファイルやディレクトリをアップロードしたり、暗号化された共有リンクをダウンロードしたりします。
管理された OAuth 接続で GitHub REST API にアクセスします。
データ月:2026-10 · ダウンロード数とスター数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。