The hsql Agent Skill
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.mdWhat 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.