Skip to content
Back to skills

Squix Skill for AI Coding Agents

ASecurity

Squix is a CLI tool for managing and executing SQL queries across multiple databases (PostgreSQL, MySQL, SQLite, Oracle, SQL Server, ClickHouse, Firebird). It stores named queries in `~/.config/squix/config.yaml`.

  • 269 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 5, 2026
databasesgoshellbashsqldatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add eduardofuncao/squix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Squix Skill for AI Coding Agents?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Squix Skill for AI Coding Agents
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eduardofuncao-squix-skill-for-ai-coding-agents/badge)](https://www.skillsdirectory.com/skills/eduardofuncao-squix-skill-for-ai-coding-agents)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Squix Skill for AI Coding Agents

## What is Squix

Squix is a CLI tool for managing and executing SQL queries across multiple
databases (PostgreSQL, MySQL, SQLite, Oracle, SQL Server, ClickHouse, Firebird).
It stores named queries in `~/.config/squix/config.yaml`.

## Critical Rules

1. **Always use `-f` with `squix run` for SELECT queries** — without it, SELECT results open an interactive TUI; non-SELECT queries print a status message either way
2. **No inline connection flag** — must `squix switch <name>` before queries
3. **Check connection first** — run `squix status` to verify reachability

## Non-Interactive Output

```bash
squix run <query> -f json        # JSON array of objects
squix run <query> -f csv         # CSV with header row
squix run <query> -f tsv         # Tab-separated values
squix run <query> -f markdown    # Markdown table
squix run <query> -f html        # HTML table with styling
squix run <query> -f sql         # INSERT statements
squix run "SELECT 1" -f json     # Inline SQL works too
squix run --last -f csv          # Re-run last query
```

Output goes to stdout, errors to stderr. Exit code 1 on failure.
Pipe cleanly: `squix run list_users -f json > users.json`

Empty results: "No results found" on stderr, nothing on stdout.

## Setup Workflow

```bash
squix init mydb "postgresql://user:pass@localhost:5432/mydb"  # auto-infers DB type
squix switch mydb                                              # or: squix use mydb
squix add list_users "SELECT * FROM users"                     # SQL must be inline
squix run list_users -f json                                   # always use -f
```

## Explore Schema

```bash
squix explore              # List all tables (non-interactive, prints to stdout)
squix explain orders -d 2  # Show FK relationships as ASCII tree
```

## List Queries

```bash
squix list queries            # Format: ◆ <id>/<name> (<table>)
squix list queries --oneline  # Compact: <id> <name> <table>
squix list connections        # List all configured connections
```

## Parameterized Queries

Named params use `:name` syntax. Optional defaults with `:name|default`:

```bash
squix add user_by_id "SELECT * FROM users WHERE id = :user_id"
squix run user_by_id --user_id 42 -f csv    # named
squix run user_by_id 42 -f csv              # positional
```

## Status & Cleanup

```bash
squix status                 # Shows: ● postgres/mydb (schema: public) — reachable
squix remove list_users      # Delete query (no confirmation needed)
echo y | squix remove -c mydb  # Delete connection (needs confirmation)
```

## Commands to Avoid (Interactive)

- `squix run <query>` without `-f` on a SELECT — opens TUI
- `squix shell` — interactive REPL
- `squix edit` — opens `$EDITOR`
- `squix explore <table>` — opens TUI
- `squix info` — opens TUI
- `squix add <name>` without SQL — opens `$EDITOR`
- `squix run` with no args — opens `$EDITOR`

Files in this skill

  • CONTRIBUTING.md2 KB
  • Makefile416 B
  • SKILL.md2.9 KB
  • build-local.sh2.8 KB
  • docs/commands.md2.3 KB
  • docs/completion.md1.4 KB
  • docs/configuration.md2.1 KB
  • docs/databases.md2.2 KB
  • docs/features.md4.4 KB
  • docs/keybindings.md4.3 KB
  • flake.lock1.5 KB
  • flake.nix1.8 KB
  • go.mod6.6 KB
  • go.sum36.7 KB
  • shell.nix830 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.