implement-udf

implement-udf is a skill for Claude Code, Codex from DataSQRL/sqrl. It costs 31 tokens per session (495 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 495 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.00495
Opus 5.5 $0.00012 $0.00198
Sonnet 5.5 $0.00006 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 3d ago against content hash 79da1e2c301b, 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 3d 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 · 26 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:

  • Initialize function with /opt/agent/cmd.sh add-func -r <project-root> <function-name> to create a scalar UDF. Append --aggregate to create an aggregate function. -r is the project root relative to /workspace, the same value you pass to compile and test, and not the current directory. It must stay inside /workspace: a root such as ../other is rejected with Project root must be inside the workspace. Without -r the project root is /workspace.
  • New function implementation is added in the project's functions/ folder with the name <function-name>.java
  • The generated file declares //DEPS org.apache.flink:flink-table-common:<version> with the compiler's Flink version. Keep this line: the UDF does not compile without it.
  • 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, next to the generated flink-table-common one
  • compile, test and run build the UDFs with JBang. A build failure stops the command with [FATAL] Failed to build JBang UDF(s) [...] followed by the javac output: fix the reported file and line before anything else
  • 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. 3d ago Changed 79da1e2c301b
  2. 17d ago Changed 30e93c624c16
  3. 1mo ago Changed · +2 lines eb4d2ce1b476
  4. 2mo 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 (237 stars, last pushed 2d ago), licensed Apache-2.0. It adds 31 tokens to every session and 495 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

implement-udf compared with skills from other repositories

implement-udf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
implement-udfDataSQRL/sqrlSkill2372d agoApache-2.0A31Claude Code, Codex
authoring-java-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A152Claude Code
configuring-airflow-language-sdksastronomer/agentsSkill4646d agoApache-2.0A155Claude Code
deploying-java-sdk-bundlesastronomer/agentsSkill4646d agoApache-2.0C146Claude Code
java-data-engineering-and-integration-servicesvaquarkhan/data-engineering-agent-skillsSkill695mo agoMITA45Claude Code, Codex
fastapi-patternschandrudp29/skillhubSkill145mo agoMITA36Claude Code, Codex
api-data-fetcherJonasWeinert/EconAgentSkillsSkill326mo agononeA144Claude Code, Codex