Skip to content
Back to skills

Quickstart

ASecurity

- `q <resource> <action>` — Execute q commands - `q query file` — Run SQL query on a file - `q query stdin` — Run SQL query on stdin data - `q _ _` — Passthrough to q CLI

  • 58 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
toolsgobashsqlgitdatabase

Works with

  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

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

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-f2895ffc/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-f2895ffc)

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
# q - Text as Data

## Commands
- `q <resource> <action>` — Execute q commands
- `q query file` — Run SQL query on a file
- `q query stdin` — Run SQL query on stdin data
- `q _ _` — Passthrough to q CLI

## Overview
q is a CLI tool that treats ordinary files as database tables and allows you to run SQL queries directly on delimited files (CSV, TSV, etc.) and multi-file sqlite databases.

## Quick Start

### Run SQL query on a file
```bash
sc q query file "SELECT COUNT(*) FROM ./clicks_file.csv WHERE c3 > 32.3"
```

### Run SQL query on stdin
```bash
ps -ef | sc q query stdin "SELECT UID, COUNT(*) cnt FROM - GROUP BY UID ORDER BY cnt DESC LIMIT 3"
```

### Passthrough to q CLI
```bash
sc q _ <q-args>
```

## Key Features

- **SQL Support**: Full SQL support including WHERE, GROUP BY, JOINs, etc.
- **Automatic Detection**: Automatic column name and type detection
- **Multiple Formats**: Supports CSV, TSV, and other delimited formats
- **SQLite Support**: Query multi-file sqlite databases
- **Pipe Support**: Accept input from stdin for pipeline processing
- **Encoding Support**: Full support for multiple character encodings

## Installation

Visit https://harelba.github.io/q/ for installation instructions for your platform.

## Usage Examples

### Filter CSV file
```bash
q "SELECT * FROM data.csv WHERE column > 100"
```

### Aggregate data
```bash
q "SELECT category, COUNT(*) as count FROM sales.csv GROUP BY category"
```

### Join files
```bash
q "SELECT a.*, b.value FROM file1.csv a JOIN file2.csv b ON a.id = b.id"
```

### Process command output
```bash
ps -ef | q -H "SELECT UID, COUNT(*) FROM - GROUP BY UID"
```

## Notes

- Use `-H` flag to treat first row as headers
- Supports complex SQL queries with subqueries
- Can join multiple files and sqlite databases
- Output can be piped to other tools for further processing

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.

View all in tools →

Comments

Loading comments…

Newsletter

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