Configure coding agent
Now that you’ve walked through TypeDB by hand, set up your AI coding agent so it can write and verify TypeQL on your behalf. This step is optional - skip it if you’d rather keep writing TypeQL by hand.
Two pieces make vibe querying with TypeDB reliable:
-
typeql-check- a CLI that statically validates TypeQL syntax, so the agent can self-correct. -
typedb-skills/typeql.md- a skill file that teaches your coding agent the TypeQL language and TypeDB’s data model.
In our benchmarks, adding both raises Claude’s TypeQL pass rate from 23-43% (no tools) to 86-96% - the difference between AI-generated TypeQL being unreliable and being something you can build on.
Install typeql-check
See Install TypeQL Syntax Checker for install instructions across macOS, Linux, and Windows.
Add the TypeQL skill to your coding agent
The typedb-skills repository contains skill files that teach AI coding agents how to write TypeQL. The relevant file is typeql.md.
-
Clone the repository:
git clone https://github.com/typedb/typedb-skills.git -
Register
typedb-skills/typeql.mdwith your coding agent:-
Claude Code
-
Cursor
-
GitHub Copilot
-
Other agents
Copy
typeql.mdinto~/.claude/skills/typeql.md(user-level) or.claude/skills/typeql.mdinside your project (project-level). Claude Code will load it automatically the next time you start a session.Copy the contents of
typeql.mdinto.cursor/rules/typeql.mdcat the root of your project.Copy the contents of
typeql.mdinto.github/copilot-instructions.mdat the root of your project.Most coding agents accept a Markdown rules or instructions file. Point your agent at
typedb-skills/typeql.mdusing whatever mechanism it provides for custom instructions. -
With the skill loaded, your coding agent will know TypeQL syntax, the TypeDB data model, and that it can call typeql-check to validate the queries it writes.