Skip to content

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 .sql queries, runs hyper-sql pull and commits sql.lock, imports the .sql module, and checks with tsc --runExternalCode.
  • Fixes errors properly: reads Problem<"..."> diagnostics at the exact SQL line and applies the suggested annotation, rewrite, or hyper-sql pull instead of silencing errors with as 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 and pull error 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:

sh
ln -s "$PWD/node_modules/@exprtlabs/hyper-sql/skills/hyper-sql" ~/.claude/skills/hyper-sql

Or scope it to a single repository:

sh
mkdir -p .claude/skills
ln -s ../../node_modules/@exprtlabs/hyper-sql/skills/hyper-sql .claude/skills/hyper-sql

Antigravity ​

To enable the skill in Antigravity:

sh
ln -s "$PWD/node_modules/@exprtlabs/hyper-sql/skills/hyper-sql" ~/.gemini/config/skills/hyper-sql

Other 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 packageWhat it coversDocs page
skills/hyper-sql/SKILL.mdThe five-step workflow, core rules that prevent build failures, and a concise syntax quick referenceHow hyper-sql works
skills/hyper-sql/references/files.mdQuery files, annotations, parameters, nested JSON rows, Postgres MERGE, dynamic blocks, and uncheckedQuery files and annotations
skills/hyper-sql/references/pull-and-lock.mdRunning hyper-sql pull, committing sql.lock, STRICT tables, and pull --check in CIThe lock file and hyper-sql pull
skills/hyper-sql/references/types-and-options.mdDefault type mappings, tsconfig.json options, -- @type column overrides, and Postgres arraysTypes
skills/hyper-sql/references/problems.mdEvery mapper and pull error message, with failing code snippets, causes, and fixesErrors
examples/Small, self-contained SQLite and Postgres projects that build and run end to endExamples · Playground