Install DB9 Skills
db9 onboard installs or updates the DB9 skill file into supported coding agents. The skill teaches agents how to use the db9 CLI and SQL for database management, queries, file operations, branching, and scheduling.
How It Works
Section titled “How It Works”- The CLI detects which agents are installed on your system
- It downloads the latest skill file from
https://db9.ai/skill.md(or uses an embedded fallback if the download fails) - It compares versions and writes
SKILL.mdto each agent’s skills directory - The agent reads the skill file as context on future sessions
The onboard command never sends tokens or credentials. It only writes a Markdown file to your local filesystem.
Quick Start
Section titled “Quick Start”# Interactive — auto-detects installed agents and promptsdb9 onboard
# Non-interactive, install for all detected agentsdb9 onboard --yes --all
# Install for specific agentsdb9 onboard --yes --agent claude --agent codexSupported Agents
Section titled “Supported Agents”| Agent | --agent value | User scope path | Project scope path | Supports --scope project? |
|---|---|---|---|---|
| Claude Code | claude | ~/.claude/skills/db9/SKILL.md | ./.claude/skills/db9/SKILL.md | Yes |
| OpenAI Codex | codex | ~/.codex/skills/db9/SKILL.md | — | No (user only) |
| OpenCode | opencode | ~/.config/opencode/skills/db9/SKILL.md | ./.opencode/skills/db9/SKILL.md | Yes |
| Generic agents | agents | ~/.agents/skills/db9/SKILL.md | ./.agents/skills/db9/SKILL.md | Yes |
- Codex respects the
CODEX_HOMEenvironment variable. If set, the skill installs to$CODEX_HOME/skills/db9/SKILL.mdinstead of~/.codex/.... - Generic agents (
--agent agents) targets a shared~/.agents/directory for agent frameworks that follow this convention.
The --scope flag controls where the skill file is written:
| Scope | Behavior |
|---|---|
--scope user (default) | Installs to the user’s home directory. Skill is available in all projects. |
--scope project | Installs relative to the current working directory. Skill is scoped to this project. |
--scope both | Installs to both locations (when supported by the agent). |
# User scope (default)db9 onboard --yes --agent claude
# Project scopedb9 onboard --yes --agent claude --scope project
# Both scopesdb9 onboard --yes --agent claude --scope bothCodex limitation: OpenAI Codex currently supports only
--scope user. Requesting--scope project --agent codexexplicitly will produce an error. When using--all --scope project, Codex is automatically skipped with a warning.
Auto-Detection
Section titled “Auto-Detection”When you run db9 onboard without --agent or --all, the CLI detects which agents are installed:
| Agent | Detection method |
|---|---|
| Claude Code | claude binary on PATH or ~/.claude/ directory exists |
| OpenAI Codex | codex binary on PATH, $CODEX_HOME exists, or ~/.codex/ exists |
| OpenCode | opencode binary on PATH or ~/.config/opencode/ exists |
| Generic agents | ~/.agents/ or ./.agents/ directory exists |
If no agents are detected, the CLI prints a tip suggesting explicit --agent flags.
Safety and Introspection
Section titled “Safety and Introspection”Dry run
Section titled “Dry run”Preview all actions without writing anything:
db9 onboard --dry-runOutput shows each target with its planned action (install, update, or skip) and the reason.
Print locations
Section titled “Print locations”Show resolved file paths without downloading or writing:
db9 onboard --print-locationsdb9 onboard --print-locations --agent claude --scope bothVersion comparison
Section titled “Version comparison”The skill file uses semantic versioning in its YAML frontmatter (version: 1.0.0). On update:
- If the local version matches the remote, the file is skipped (up-to-date)
- If the local version is older, the file is updated
- If the local version is newer (e.g., you customized it), the update is skipped — use
--forceto override
Backup
Section titled “Backup”When updating an existing skill file, the CLI creates a timestamped backup (e.g., SKILL.md.bak.1710000000000) before overwriting.
Atomic writes
Section titled “Atomic writes”File writes use a temporary file and atomic rename to prevent partial installs.
Update and Force
Section titled “Update and Force”# Update to the latest skill versiondb9 onboard --yes --all
# Force overwrite even if local version is newerdb9 onboard --yes --agent claude --forceCustom Skill Source
Section titled “Custom Skill Source”Point to a custom skill file instead of the default https://db9.ai/skill.md:
# From a URLdb9 onboard --agent claude --skill-url https://example.com/custom-skill.md
# From a local filedb9 onboard --agent claude --skill-path ./my-custom-skill.mdIf the remote URL download fails and the default URL was used, the CLI falls back to an embedded copy of the skill bundled into the binary.
All Flags Reference
Section titled “All Flags Reference”| Flag | Description |
|---|---|
--agent <AGENT> | Agent to install for (repeatable). Values: codex, claude, opencode, agents. |
--all | Install for all supported agents. |
--scope <SCOPE> | Install scope: user (default), project, or both. |
--yes / -y | Skip prompts and choose safe defaults. |
--dry-run | Print intended actions and make zero filesystem changes. |
--force | Overwrite existing skill even when local version is newer. |
--print-locations | Print resolved target locations without writing. |
--skill-url <URL> | Skill source URL (default: https://db9.ai/skill.md). |
--skill-path <PATH> | Install from a local skill file instead of downloading. |
Current Limitations
Section titled “Current Limitations”- Codex is user-scope only — project-scope support may be added in a future Codex release.
- No automatic updates — the skill file includes an instruction for agents to re-read from the URL periodically, but
db9 onboarditself must be re-run to update the on-disk file. - Agent-specific skill directories are a convention — if an agent framework changes its skills directory path,
db9 onboardneeds a CLI update to match.
Next Pages
Section titled “Next Pages”- DB9 with Claude Code — Claude Code-specific setup and example prompts
- DB9 with OpenAI Codex — Codex-specific setup and scope constraints
- Agent Workflows Overview — how DB9 fits into agent pipelines
- CLI Reference — complete command reference including
db9 onboard