implement-udf

implement-udf is a skill for Claude Code, Codex from DataSQRL/sqrl. It costs 31 tokens per session (311 once invoked), scanned A, original, Apache-2.0.

A guide for creating Java user-defined functions for DataSQRL when SQL cannot express the required logic. These functions can calculate one value, aggregate values, or work with table data.

In plain words
What is it for?
Adding or editing Java functions in a DataSQRL project and importing them into SQRL scripts.
Why use it?
It gives a defined path for extending SQRL without duplicating functionality already available in SQL. It also includes a way to test each function from Java.

Skill for Claude CodeCodex

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

Good fit Adding or editing Java functions in a DataSQRL project and importing them into SQRL scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datasqrl/sqrl/implement-udf
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 DataSQRL/sqrl --skill implement-udf
Clone the repo
git clone --depth 1 https://github.com/DataSQRL/sqrl

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 implement-udf

README.md
[![agentmods](https://agentmods.dev/badge/skills/datasqrl/sqrl/implement-udf/github.svg)](https://agentmods.dev/skills/datasqrl/sqrl/implement-udf)
Your own site
<a href="https://agentmods.dev/skills/datasqrl/sqrl/implement-udf"><img src="https://agentmods.dev/badge/skills/datasqrl/sqrl/implement-udf/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 implement-udf

Your own site · 80×15
<a href="https://agentmods.dev/skills/datasqrl/sqrl/implement-udf"><img src="https://agentmods.dev/badge/skills/datasqrl/sqrl/implement-udf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 311 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.00031 $0.00311
Opus 5.5 $0.00012 $0.00124
Sonnet 5.5 $0.00006 $0.00062
Haiku 4.5 $0.00003 $0.00031

Measured 10d ago against content hash 34a01e15b068, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

implement-udf 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 10d 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.

agent/skills/implement-udf/SKILL.md · 24 lines

What it actually says

Implement User Defined Function

Implement New UDF

Only implement a UDF if the functionality cannot be implemented with existing Flink SQL or DataSQRL functions. Look up existing functions first.

Follow these steps:

  • From the project root directory, initialize function with /opt/agent/cmd.sh add-func <function-name> to create a scalar UDF. Append --aggregate to create an aggregate function.
  • New function implementation is added in the functions/ folder with the name <function-name>.java
  • Import into SQRL script with IMPORT functions.<function-name> or IMPORT functions.* for all functions. functions/ sits at the project root, so from a script in a subfolder use the reserved root prefix — IMPORT root.functions.<function-name> — since SQRL relative dot-paths cannot climb upward. (Inside an included project, keep the import relative so it travels with the copied files.)

Edit UDF

Follow these steps:

  • Edit the .java file in the functions/ folder
  • Try to use standard java libraries
  • Use JBANG //DEPS to include dependencies
  • Implement tests for the function in the main method
  • Execute the main method after each edit to ensure function compiles and works correctly
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. 10d ago First seen · 24 lines · 31 tokens per session scan A 34a01e15b068

Subscribe to this mod's changes

implement-udf is a skill published in the GitHub repository DataSQRL/sqrl (230 stars, last pushed today), licensed Apache-2.0. It adds 31 tokens to every session and 311 once invoked, about $0.0001 per session on Opus 5.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-09-30.

Related

Other skills, from other repositories

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

deploying-java-sdk-bundles

Builds and deploys compiled Airflow Java SDK bundles so workers can run them. Use when the user wants to package a JVM task bundle into a JAR, asks about the org.apache.airflow.sdk Gradle plugin, ./gradlew bundle, the Maven shade/BOM setup, fat vs thin JARs, the logging integration artifacts (JPL, SLF4J, Log4j 2…

astronomer/agents · 146 tokens

fastapi-patterns

FastAPI production patterns — routing, dependency injection, background tasks, streaming, error handling, and async. Use when building or reviewing a FastAPI service.

chandrudp29/skillhub · 36 tokens

java-data-engineering-and-integration-services

Guides agents through Java-based data engineering services and processors. Use when building connectors, ingestion services, stream processors, metadata services, JVM batch tools, or operational integrations in Java.

vaquarkhan/data-engineering-agent-skills · 45 tokens

api-data-fetcher

Generates rigorous, reproducible Python data-acquisition pipelines for economic APIs (FRED, World Bank, BLS, OECD SDMX, IMF, Eurostat, Yahoo Finance). Applies DIME Analytics conceptual conventions to Python: DataWork-style folders with immutable Raw/, master orchestration script with dynamic absolute paths via…

JonasWeinert/EconAgentSkills · 144 tokens