con un clic
database-query
Query and manage databases on remote servers via NAVIG
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Query and manage databases on remote servers via NAVIG
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Essential file system operations.
Common Git version control operations.
Upload, download, and edit files on remote servers via NAVIG
Summarize web pages, articles, YouTube videos, and documents using AI
Check GitHub repos, CI status, PRs, and issues using the gh CLI
Safely restart Docker containers with mandatory confirmation and state checks.
| name | database-query |
| description | Query and manage databases on remote servers via NAVIG |
| user-invocable | true |
| navig-commands | ["navig db query \"{sql}\" -d {database}","navig db databases","navig db tables {database}","navig db dump {database}"] |
| examples | ["Show all databases","What tables are in myapp database?","Count users in the database","Backup the production database"] |
Query and manage MySQL/PostgreSQL/SQLite databases on remote servers using NAVIG.
User queries:
Command: navig db databases
Response format:
🗄️ Databases on {host}:
• myapp_prod (MySQL, 2.3GB)
• wordpress_db (MySQL, 456MB)
• analytics (PostgreSQL, 8.9GB)
• cache (Redis, 128MB)
User queries:
Command: navig db tables {database}
Response format:
📋 Tables in myapp_prod:
• users (1,234 rows)
• posts (5,678 rows)
• comments (12,345 rows)
• sessions (890 rows)
User queries:
Command: navig db query "SELECT COUNT(*) FROM users" -d myapp_prod
Response format:
📊 Query Result:
SELECT COUNT(*) FROM users
└─ 1,234 users
🕐 Executed in 0.03s
User queries:
Command: navig db dump {database} -o backup_{date}.sql.gz
Response format:
💾 Creating backup of {database}...
✅ Backup complete!
File: backup_2026-01-31.sql.gz
Size: 2.3GB
Location: /backups/
Want me to download it to your local machine?
If the server has Laravel installed (detected via templates/hestiacp or artisan), prefer Tinker:
User: "How many users?"
Command: navig run "php artisan tinker --execute='echo User::count();'"
User: "Show last 5 users" Command:
navig run "php artisan tinker --execute='User::latest()->take(5)->get()->each(fn(\$u) => print \$u->email . \"\n\");'"
User: "Is the site live?"
Command: navig run "php artisan env" && navig run "php artisan about"
User: "Show user registration trends by month" SQL:
SELECT
DATE_FORMAT(created_at, '%Y-%m') as month,
COUNT(*) as registrations
FROM users
GROUP BY month
ORDER BY month DESC
LIMIT 12
Response format:
📈 User Registration Trends:
2026-01: 234 registrations
2025-12: 198 registrations
2025-11: 156 registrations
...
User: "What's using the most database space?" Command:
SELECT
table_name,
ROUND(((data_length + index_length) / 1024 / 1024), 2) AS size_mb
FROM information_schema.TABLES
WHERE table_schema = '{database}'
ORDER BY size_mb DESC
LIMIT 10
SELECTSHOWDESCRIBEEXPLAININSERT - "⚠️ This will add {count} records. Confirm?"UPDATE - "⚠️ This will update {count} records. Confirm?"DELETE - "🚨 This will DELETE {count} records. Are you ABSOLUTELY sure?"DROP - "🚨 DANGER! This will permanently delete the {table/database}. Type 'YES DELETE' to confirm."TRUNCATE - "🚨 This will erase all data in {table}. Type 'YES ERASE' to confirm."BEGIN;
UPDATE users SET status = 'active' WHERE id = 123;
-- Show preview before commit
SELECT * FROM users WHERE id = 123;
-- Wait for user confirmation before:
COMMIT;
If server uses HestiaCP template, leverage built-in commands:
navig run "v-list-databases admin" # List all databases for user
navig run "v-backup-database admin myapp_prod" # Backup specific DB
Example 1: Quick Check
navig host use production && navig db query "SELECT COUNT(*) FROM users" -d myapp_prodExample 2: Laravel Tinker
navig run "php artisan tinker --execute='User::latest()->first();'"👤 Last registered user:
• Email: john@example.com
• Registered: 2026-01-31 10:23:45
• Status: active
Example 3: Backup Before Update
User: "Update all inactive users to deleted"
Response: "🚨 This is a destructive operation. Let me:
Proceed?"
Action:
navig db dump myapp_prod -o backup_before_delete.sql.gznavig db query "SELECT COUNT(*) FROM users WHERE status='inactive'" -d myapp_prod