bml-language

bml-language is a skill for Claude Code, Codex from vikram-vn/cpq-bml. It costs 32 tokens per session (829 once invoked), scanned A, original, MIT.

A reference for BML, the scripting language used in Oracle CPQ. It explains data types, arrays, operators, conditions, loops, built-in functions, database queries, system variables, and coding conventions.

In plain words
What is it for?
Writing and reviewing BML scripts that use values, collections, records, conditions, loops, arrays, and built-in operations.
Why use it?
It helps an AI agent write BML with the correct syntax and available language features, avoiding assumptions from other programming languages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Writing and reviewing BML scripts that use values, collections, records, conditions, loops, arrays, and built-in operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikram-vn/cpq-bml/bml-language
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.

Any agent
npx skills add vikram-vn/cpq-bml --skill bml-language
Clone the repo
git clone --depth 1 https://github.com/vikram-vn/cpq-bml

Made for: Claude Code, Codex.

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 bml-language

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikram-vn/cpq-bml/bml-language/github.svg)](https://agentmods.dev/skills/vikram-vn/cpq-bml/bml-language)
Your own site
<a href="https://agentmods.dev/skills/vikram-vn/cpq-bml/bml-language"><img src="https://agentmods.dev/badge/skills/vikram-vn/cpq-bml/bml-language/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bml-language

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikram-vn/cpq-bml/bml-language"><img src="https://agentmods.dev/badge/skills/vikram-vn/cpq-bml/bml-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 829 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00032 $0.00829
Opus 5 $0.00016 $0.00415
Sonnet 5 $0.00006 $0.00166
Haiku 4.5 $0.00003 $0.00083

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

Security

Grade A, and why

bml-language 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 8d 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.

app/ai/skills/bml-language/SKILL.md · 71 lines

How it starts

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

BML Language Core

Data Types

  • Scalars: String, Integer, Float, Boolean, Date
  • Collections: String[], Integer[], Float[], Boolean[], Date[], String[][], Integer[][]
  • Data Structures: dict(type), dict("anytype"), json(), jsonarray(), RecordSet

Operators

  • Logical: AND, OR, NOT(condition) (never use &&, ||, !)
  • Comparison: ==, <>, <=, >=, <, >
  • Arithmetic: +, -, *, /, %
  • Concatenation: +

Control Flow

// Conditionals
if (condition) {
    statement;
} elif (otherCondition) {
    statement;
} else {
    statement;
}

// For Loop (Iterating Arrays / RecordSets)
for item in itemArray {
    print item;
}

Array Literals, Sizing & Methods

// 1D Array Literal & Sized Declarations
colors = String[]{ "red", "green", "blue" };
buffer = String[10];

// 2D Array Literal & Sized Declarations
matrix = Integer[][]{ {1, 2}, {3, 4} };
grid = Float[5][5];

// Array Access (0-indexed)
firstColor = colors[0];
val = matrix[0][1];

// Common Array Functions
len = sizeofarray(colors);
idx = findinarray(colors, "green"); // returns -1 if not found
append(colors, "yellow");
remove(colors, 0); // removes element at index 0
sort(colors, "asc"); // "asc" or "desc"
reverse(colors);
intSeq = range(5); // [0, 1, 2, 3, 4]

Core Built-in Functions

  • String: len(s), substring(s, start, [end]), find(s, sub), replace(s, old, new), trim(s), lower(s), upper(s), split(s, delim), join(arr, delim), atof(s), atoi(s), string(val), startswith(s, sub), endswith(s, sub), formatascurrency(num).
  • Date: getdate([bool]), datetostr(d, [fmt], [tz]), strtojavadate(s, fmt, [tz]), adddays(d, n), addmonths(d, n), minusdays(d, n), comparedates(d1, d2), getdiffindays(d1, d2), isleap(d), isweekend(d), getcurrenttimeinmillis().
  • Math: sqrt(x), pow(x, y), round(x, dec), ceil(x), fabs(x), fmod(x, y), sin(x), cos(x), tan(x), asin(x), acos(x), atan(x), log(x), ln(x), exp(x), hypot(x, y).

Read the full file on GitHub · 71 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 71 lines · 32 tokens per session scan A e697e5cd97fb

Subscribe to this mod's changes

bml-language is a skill published in the GitHub repository vikram-vn/cpq-bml (0 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 829 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

sweetpad

Build, run, and test Xcode and Swift Package apps from the terminal with the sweetpad CLI ("xcodebuild for humans"). Use when the user wants to compile an iOS/macOS/Swift app, run it on a simulator or device, read build errors, run tests, or inspect resolved build settings from the command line — with agent-safe…

sweetpad-dev/sweetpad · 90 tokens

use-sdk

Install, configure, and use a TypeScript SDK generated with @ama-sdk. Use when user wants to call APIs, set up a client (fetch, Angular, beacon), or understand how to use an existing SDK package.

AmadeusITGroup/otter · 48 tokens

create-sdk

Create a new TypeScript SDK from an OpenAPI specification, either as a standalone project or inside an existing Angular/Nx monorepo. Use when user wants to scaffold, bootstrap, initialize, or generate an SDK.

AmadeusITGroup/otter · 47 tokens

create-spring-boot-project

Creates a new Spring Boot project by downloading it from start.spring.io using curl, then extracting it into the target directory. Use this when a user asks to create, generate, initialize, or scaffold a new Spring Boot project.

spring-projects/spring-tools · 52 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens