hsql ships an Agent Skill: a markdown file an agent loads when the work involves a database, and keeps in context for the rest of the session.
hsql --skill -o ~/.claude/skills/hsql/
note: wrote 5 files to /home/user/.claude/skills/hsql: SKILL.md, references/config.md, references/queries.md, references/scripting.md, references/troubleshooting.md
What It Says
Nine short sections of standing guidance:
- Ask before you assume —
hsql --infofor versions, config files and capabilities;hsql --help -a NAMEfor one adapter's options. - Keep credentials off the command line — a
profile and
-P, with an environment variable for the secret. - Read the catalog before writing SQL —
--catalog,--path,--catalog-search, and thequery_namecolumn rather than an identifier quoted by hand. - Run it —
-cand-f,--result,--on-error. - Pick a format on purpose —
-tAcfor one value,--csvfor a pipe,--markdownfor a reply, parquet for anything large. - The row limit is real — 500 by default; read
--stats, and do not use2>/dev/null. - Branch on the exit code —
2is the caller's,1is the SQL's,3is the environment's. - Ask before you write — prefer
--read-only, and say what a DDL or DML statement will change first. - Know when to hand off — anything destructive, or anything a human will
want to iterate on:
harlequin -P <profile>.
Four reference files sit beside it, read when the job calls for one:
queries.md, config.md, scripting.md and troubleshooting.md.
allowed-tools pre-approves the read-only modes only — hsql --info,
--spec, --catalog and --catalog-search — so orienting costs no permission
prompt. Running a query is still a decision somebody makes.
Installing It
From the hsql You Have
hsql --skill -o ~/.claude/skills/hsql/ # for you, in every project
hsql --skill -o .claude/skills/hsql/ # for this repo, committed with it
No network, and the skill matches the hsql on that machine. It works in any
harness that reads a skills directory. With no -o, hsql --skill writes
SKILL.md to stdout.
As a Claude Code Plugin
The same skill is a plugin in Harlequin's repository:
/plugin marketplace add tconbeer/harlequin
/plugin install hsql@harlequin
The marketplace is added once. After that, updates come with the repository rather than with your Python environment.
From This Site
harlequin.sh/artifacts/SKILL.md is the copy vendored
from the latest release, with its reference files beside it at
/artifacts/references/queries.md and its siblings. Useful when hsql is not
installed on the machine doing the reading. When it is installed, prefer
hsql --skill: that copy cannot describe a different version than the one it
is driving.
The skill covers habits rather than options. For a flag it does not mention,
the CLI reference is one page, and hsql --spec is the
same thing as JSON.