sql-cli
CommunityToken-efficient DB queries with SQL-CLI
AuthorInterstellar-code
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill eliminates the overhead of heavy ORM contexts by enabling direct SQL execution against MySQL and PostgreSQL databases from the command line, delivering faster results with fewer tokens.
Core Features & Use Cases
- Direct SQL execution: run ad-hoc queries without loading ORM context to obtain quick insights.
- Cross-database support: works with MySQL and PostgreSQL across Windows, macOS, and Linux environments.
- Auto-credentials: reads connection details from the project .env to simplify setup.
- UX enhancements: optional mycli for auto-completion and bat for syntax-highlighted output.
- Use Case: quickly count users, inspect table schemas, and export query results to CSV.
Quick Start
- Install required CLI tools (MySQL client; optional: mycli and bat).
- From your project root, run: sql-cli.sh interactive
- Or run a test query: sql-cli.sh query "SELECT COUNT(*) FROM users WHERE status='active'"
Dependency Matrix
Required Modules
mysqlmyclibat
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sql-cli Download link: https://github.com/Interstellar-code/claud-skills/archive/main.zip#sql-cli Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.