Directory Compare FCRS-1.0 About /llms.txt

psql2csv

$ psql2csv Community Med Risk
fphilipe · Database & Data · MIT · macos / linux · Reviewed:

psql2csv (psql2csv) — Run a query in psql and output the result as CSV. Verified across Homebrew Core; included for structured shell automation under FCRS-1.0 baseline review.

FCRS-1.0 Score
65 /100
Usable w/ Caveats
Low Confidence
Zero-Friction Install
brew install psql2csv
CLI vs MCP Decision CLI Only

Pure CLI utility (psql2csv); directly invoked in shell workflows without an equivalent MCP server layer.

At a Glance

Command
$ psql2csv
FCRS-1.0 Score
65/100 (Usable w/ Caveats)
Evidence Tier
Low Confidence
CLI vs MCP
CLI Only
Reviewed Date

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Registry-verified CLI binary (psql2csv); inspect --help output before assuming structured JSON flags.

  • Indexed in Homebrew Core
Trust & Safety 16 / 25

Classified as medium risk based on database-data scope and upstream package metadata.

  • Install channel verified via brew install psql2csv
  • Declared license: MIT
Setup & Portability 11 / 15

Installable via brew install psql2csv across macos, linux.

  • Primary install: brew install psql2csv
Utility & Efficiency 10 / 15

Run a query in psql and output the result as CSV

  • Official homepage/source: https://github.com/fphilipe/psql2csv
Maintenance & Lineage 7 / 10

community lineage tool maintained by fphilipe.

  • Upstream repository: fphilipe/psql2csv
Docs & Verifiability 7 / 10

Upstream documentation linked at https://github.com/fphilipe/psql2csv; baseline FCRS cap applies until local probe runs.

  • https://github.com/fphilipe/psql2csv

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Local execution tool; typically requires no external credentials unless targeting remote endpoints.

Side Effects
Read-Only Local Write
Cost & Quotas

Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.

Copyable Guardrail for CLAUDE.md / AGENTS.md
When invoking `psql2csv`, verify flags with `psql2csv --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect available subcommands & flags
psql2csv --help

Discover supported flags and subcommands for psql2csv before constructing automated calls.

Verify binary version & availability
psql2csv --version

Confirm psql2csv is installed and executable in PATH with zero side effects.

Strengths for Agents

  • + Indexed in Homebrew Core with reproducible install via brew install psql2csv
  • + Standalone CLI binary (psql2csv) directly composable in shell pipelines

Caveats & Pitfalls

  • ! Low-confidence baseline review: not yet locally probed on this host; run psql2csv --help to verify flags before scripting

Tested Agent Hosts

Follow Ecosystem Links

Related CLIs in Database & Data

View category hub →
qdrant 65/100
$ qdrant

High-performance, massive-scale Vector Database for the next generation of AI

qo 65/100
$ qo

Interactive minimalist TUI to query JSON, CSV, and TSV using SQL

prestd 65/100
$ prestd

Simplify and accelerate development on any Postgres application, existing or new

rdb 65/100
$ rdb

Redis RDB parser

jq 97/100
$ jq

Essential JSON processor for slicing verbose CLI/API payloads down to minimal agent-ready fields.

$ duckdb

In-process SQL analytics CLI for querying CSV, Parquet, and JSON files locally with `-json` output and `-readonly`.