AI Coding Agents
Paste this into any coding agent, or open it in Cursor or in Claude Code for VS Code, which open it in the project you have open and send nothing until you do. It works in a new project and in one that already uses UQL.
Set up UQL (uql-orm) in this project.
1. If uql-orm (npm package) isn't installed, install it and the driver for this project's database. If you can't tell which database, ask me.2. Add this line to AGENTS.md: To know how UQL ORM works, read `node_modules/uql-orm/skills/uql-orm/SKILL.md`: it matches the installed uql-orm.3. Add https://uql-orm.dev/mcp as an MCP server named uql for this agent: HTTP transport, no key.4. If there's no uql.config.ts yet, read the skill and follow it to: - create uql.config.ts, reading the database credentials from environment variables - add one entity that fits this project - write one typed query that uses it5. Ask me before you change the database.6. Run the type checker, then tell me what you changed.It installs UQL if the project lacks it, and gives the agent two things: the UQL skill, which teaches it to write UQL, and the docs, which it looks up as it goes. It asks before it changes the database.
Or set it up yourself
Section titled “Or set it up yourself”The skill
Section titled “The skill”uql-orm ships an agent skill. It covers how a query is shaped, how entities are declared, the mistakes agents make most, and where each detail lives in these docs. The skill is inside the package, so each uql-orm upgrade brings the skill for that version.
Add this line to your project’s AGENTS.md, which Claude Code, Codex, Cursor, GitHub Copilot and most other agents read on their own:
To know how UQL ORM works, read `node_modules/uql-orm/skills/uql-orm/SKILL.md`: it matches the installed uql-orm.The docs over MCP
Section titled “The docs over MCP”The docs MCP server at https://uql-orm.dev/mcp adds search, so the agent finds the right page without knowing its URL. It needs no key, and its three tools are read-only:
| Tool | What it answers |
|---|---|
search_ |
The pages for a topic, most relevant first, with the passage that matched |
get_ |
One page as Markdown, by the path search_ gives or by its URL |
read_ |
The skill above, for a client that cannot install one |
Add it to your agent:
claude mcp add --transport http uql https://uql-orm.dev/mcpFor VS Code's own chat. Claude Code in VS Code takes the Claude Code command.
codex mcp add uql --url https://uql-orm.dev/mcpIn Customize, then Connectors, add a custom connector named uql with the URL https://uql-orm.dev/mcp. Claude Desktop uses the same connectors.
Add https://uql-orm.dev/mcp as an MCP server named uql: HTTP transport, no key.
The docs by URL, with nothing to set up
Section titled “The docs by URL, with nothing to set up”Every page here answers with Markdown when an agent asks for it, as Claude Code and Cursor do. Each page is also Markdown at its URL plus .md, such as /querying/relations.md, and /llms.txt indexes them all. An agent that can fetch URLs needs only that index:
To know how UQL ORM works, read https://uql-orm.dev/llms.txt and fetch the pages for the task.To load the whole site at once, /llms-full.txt is every page in one file.