Skills for coding agents¶
OliviaDB ships two skills, in the repository's skills/ directory:
| Skill | For |
|---|---|
oliviadb-develop |
running a server (container or binaries), connecting, databases and tenants, writing and changing .olv schemas and profiles, application code in Rust, Java, TypeScript and Python (tree reads, writes, transactions, lookups, idempotency, errors), typed clients, tests against a live server |
oliviadb-migrate |
moving a relational schema and its data (modelling tables as aggregates, loading, rewriting queries) and IMS DL/I applications (DBDs and PSBs, unloads, COBOL programs in process or through a server, coverage) |
Each is a SKILL.md file: a short description an agent uses to decide when it applies, then
the instructions, commands and code it follows. They carry what the Get started
path and the guides teach, in the form an agent works from.
Claude Code¶
Claude Code loads skills from ~/.claude/skills/<name>/SKILL.md (for you, in every project)
and from .claude/skills/<name>/SKILL.md in a project (for everyone working on it).
For you:
mkdir -p ~/.claude/skills && curl -fsSL https://github.com/OliviaDB/oliviadb/archive/refs/heads/main.tar.gz | tar -xz -C ~/.claude/skills --strip-components=2 oliviadb-main/skills
For a project (commit the files, so the whole team and CI agents have them):
mkdir -p .claude/skills && curl -fsSL https://github.com/OliviaDB/oliviadb/archive/refs/heads/main.tar.gz | tar -xz -C .claude/skills --strip-components=2 oliviadb-main/skills
Run the same command again to update them. Claude Code picks a skill by its description when a task matches ("write an OliviaDB schema for ...", "migrate this DDL to OliviaDB"); you can also name it: "Using the oliviadb-develop skill, ...".
Other coding agents¶
Agents that read AGENTS.md (Codex, Cursor, Gemini CLI, Jules, Aider and others) take
instructions from that file at the project's root. Put the skills next to it and point to
them:
mkdir -p docs/agents && curl -fsSL https://github.com/OliviaDB/oliviadb/archive/refs/heads/main.tar.gz | tar -xz -C docs/agents --strip-components=2 oliviadb-main/skills
cat >> AGENTS.md <<'EOF'
## OliviaDB
This project uses OliviaDB. Before working on its schema (`*.olv`), its data access code or a
migration to it, read and follow docs/agents/oliviadb-develop/SKILL.md; for migrations also
docs/agents/oliviadb-migrate/SKILL.md.
EOF
What to ask¶
Every Get started page ends with the request for its step. A few more:
- Using the oliviadb-develop skill, add an index on the customer's tax id to bank.olv, plan it against the deployed schema, deploy it, and add a lookup to our service with a test.
- Using the oliviadb-develop skill, give the support agent a profile that sees only its branch's customers with the tax id masked, and test that it cannot write.
- Using the oliviadb-migrate skill, propose aggregates for the tables in db/schema.sql and explain each boundary by the transactions in src/.
- Using the oliviadb-migrate skill, run the COBOL batch program PAYROLL against OliviaDB with the DBDs in ims/lib and the unload in ims/unload, and compare its report with the mainframe's.
Review what the agent produces as you would a colleague's change: the schema plan's output, the profile check, and tests that compare with an outside reference (the source database, the mainframe's report), not with OliviaDB's own output.