oxy:build

oxy:build is a command for coding agents from oxy-hq/skills. It costs 12 tokens per session (520 once invoked), scanned A, original, MIT.

A command guide for building an Oxy semantic layer, the data description that connects database structures with business terms and natural-language questions.

In plain words
What is it for?
Use it after creating semantic-layer files to compile them, prepare semantic search, and check queries in the development semantic engine.
Why use it?
It compiles view and topic definitions and creates vector embeddings, which are searchable numeric representations used to find relevant meaning in text. It also distinguishes this step from general configuration validation.

Command

Part of the oxy-skills plugin — 8 skills, 6 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/oxy-hq/skills/build
Clone the repo
git clone --depth 1 https://github.com/oxy-hq/skills

Or install oxy-skills, the plugin that ships this one along with the rest of its 8 skills, 6 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oxy:build

README.md
[![agentmods](https://agentmods.dev/badge/commands/oxy-hq/skills/build.svg)](https://agentmods.dev/commands/oxy-hq/skills/build)
Your own site
<a href="https://agentmods.dev/commands/oxy-hq/skills/build"><img src="https://agentmods.dev/badge/commands/oxy-hq/skills/build.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00520
Opus 5 $0.00006 $0.00260
Sonnet 5 $0.00002 $0.00104
Haiku 4.5 $0.00001 $0.00052

Measured 4d ago against content hash d3d1b8ff0fcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

oxy:build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/build.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build Oxy Semantic Layer

Compile the semantic layer definitions into Cube.js schema and build vector embeddings for semantic search.

Pre-Build Steps

  1. Check for Oxy installation

    • Run oxy --version to verify Oxy CLI is installed
    • If not found, inform the user they need to install Oxy first
  2. Check for semantic layer files

    • Verify that semantics/views/ and semantics/topics/ directories exist and have files
    • If missing, inform the user they need to create view and topic files first
    • Note: oxy validate does NOT validate semantic layer files — oxy build is the correct command for this

Build Process

  1. Execute build command

    • Run oxy build
    • This compiles semantic layer definitions to Cube.js schema
    • Builds vector embeddings for semantic search
  2. Monitor output

    • Show build progress to the user
    • Report any errors or warnings that occur during build

Success Actions

When build completes successfully:

  1. Report success with summary:

    ✅ Oxy build completed successfully!
    
    - Semantic layer compiled to Cube.js schema
    - Vector embeddings created
    
    Next steps:
    - Run `oxy semantic-engine --dev-mode` to test queries
    - Or use the semantic layer in your agents/workflows
    
  2. Offer next step

    • Ask user if they want to start the semantic engine for testing
    • If yes, inform them to run oxy semantic-engine --dev-mode in their terminal

Error Handling

If build fails:

  • Show the full error message
  • Identify which semantic layer file caused the error (if applicable)
  • Suggest common fixes:
    • Check entity key references match dimension names
    • Verify all view names referenced in topics exist
    • Ensure SQL expressions in dimensions/measures are valid
    • Run oxy sync if database schema has changed

Notes

  • Build should be run after defining or modifying semantic layer files
  • Requires a semantics/ directory with view and topic files
  • Database connections must be configured in config.yml
  • Run oxy sync first if working with database schemas

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 76 lines · 12 tokens per session scan A d3d1b8ff0fcc

Subscribe to this mod's changes

oxy:build is a command published in the GitHub repository oxy-hq/skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 520 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.