Skip to main content

sq

Use this skill when the user wants to query structured data with SQL — inspect CSV/JSON/Excel/Parquet files, run ad-hoc queries against databases, or pipe jq-style transformations on tabular data.

来源信息

仓库
javimosch/supercli
最近来源活动
2026年7月20日 19:45
检测到的 SKILL.md 语言
英语
星标
51
分支
7

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
sq
description
Use this skill when the user wants to query structured data with SQL — inspect CSV/JSON/Excel/Parquet files, run ad-hoc queries against databases, or pipe jq-style transformations on tabular data.
# sq Plugin SQL + jq for structured data. Query CSV, JSON, Excel, Parquet, Postgres, MySQL, SQLite, and more using familiar SQL syntax or jq-style expressions. ## Installation ```bash go install github.com/neilotoole/sq@latest # or brew install sq ``` ## Basic Usage ```bash # List available data sources sq ls # Query a CSV file sq '@file.csv' 'SELECT * FROM @file.csv LIMIT 10' # Query a JSON file sq '@data.json' 'SELECT name, age FROM @data.json WHERE age > 30' # Inspect a source's schema sq inspect @file.csv ``` ## Common Patterns ```bash # Add a database connection sq add postgres pg://user:pass@localhost/mydb # Query a connected database sq '@mydb' 'SELECT count(*) FROM users' # Export query results to CSV sq '@file.csv' 'SELECT * FROM @file.csv' --format csv > output.csv # Join two sources sq '@a.csv' 'SELECT a.id, b.name FROM @a.csv a JOIN @b.csv b ON a.id = b.id' ``` ## Usage Examples - "Query this CSV file with SQL" - "Show me the schema of this JSON dataset" - "Count rows where status is active in this Excel file" ## SuperCLI ```bash sc sq _ _ ls sc sq _ _ '@data.csv' 'SELECT * FROM @data.csv LIMIT 5' sc plugins learn sq ```
在 GitHub 查看