Agent skill
@exprtlabs/hyper-sql ships a built-in agent skill in skills/hyper-sql/ that gives AI coding agents accurate, up-to-date instructions and runnable examples for working in a hyper-sql codebase.
What the skill does
Without project-specific guidance, coding agents often treat .sql imports like an ORM or string builder—or try to silence tsc errors with type casts. Connecting the bundled skill teaches your agent how hyper-sql works:
- Follows the five-step loop: writes DDL in
schema.sql, adds plain.sqlqueries, runshyper-sql pulland commitssql.lock, imports the.sqlmodule, and checks withtsc --runExternalCode. - Fixes errors properly: reads
Problem<"...">diagnostics at the exact SQL line and applies the suggested annotation, rewrite, orhyper-sql pullinstead of silencing errors withas any, editing generated files, or building SQL strings manually. - Knows every feature and error: bundles the complete reference guides for annotations, dynamic SQL blocks (
/*if*/,/*on*///*off*/,/*sort*/), type mappings, lock-file workflows, and every mapper andpullerror message with its failing snippet and fix.
Connect it to your agent
After installing @exprtlabs/hyper-sql, link the bundled skills/hyper-sql directory into your agent's skills folder. Every link inside the skill is relative, so references and examples resolve cleanly through the symlink.
Claude Code
To enable the skill for all projects on your machine:
ln -s "$PWD/node_modules/@exprtlabs/hyper-sql/skills/hyper-sql" ~/.claude/skills/hyper-sqlOr scope it to a single repository:
mkdir -p .claude/skills
ln -s ../../node_modules/@exprtlabs/hyper-sql/skills/hyper-sql .claude/skills/hyper-sqlAntigravity
To enable the skill in Antigravity:
ln -s "$PWD/node_modules/@exprtlabs/hyper-sql/skills/hyper-sql" ~/.gemini/config/skills/hyper-sqlOther coding agents
Any agent that reads SKILL.md skill directories can use the same folder directly. Point it at node_modules/@exprtlabs/hyper-sql/skills/hyper-sql or symlink that path into the agent's skills directory.
What's included
The package ships the skill files alongside the runnable examples they reference:
| Path in package | What it covers | Docs page |
|---|---|---|
skills/hyper-sql/SKILL.md | The five-step workflow, core rules that prevent build failures, and a concise syntax quick reference | How hyper-sql works |
skills/hyper-sql/references/files.md | Query files, annotations, parameters, nested JSON rows, Postgres MERGE, dynamic blocks, and unchecked | Query files and annotations |
skills/hyper-sql/references/pull-and-lock.md | Running hyper-sql pull, committing sql.lock, STRICT tables, and pull --check in CI | The lock file and hyper-sql pull |
skills/hyper-sql/references/types-and-options.md | Default type mappings, tsconfig.json options, -- @type column overrides, and Postgres arrays | Types |
skills/hyper-sql/references/problems.md | Every mapper and pull error message, with failing code snippets, causes, and fixes | Errors |
examples/ | Small, self-contained SQLite and Postgres projects that build and run end to end | Examples · Playground |