Build and deploy Apache Flink user-defined functions (UDFs) in Java for stream processing over Kafka. Use this skill when users want to create scalar UDFs, user-defined table functions (UDTFs), or process table functions (PTFs) in Java, deploy them to Confluent Cloud or local Docker environments, and invoke them from Flink SQL or the Table API. Trigger on: Flink UDF, custom Flink function, process table function, PTF, UDTF, Flink user defined, extend Flink SQL, stateful stream processing with Flink. Do NOT trigger for: Kafka Streams UDFs (use kafka-streams-programming skill), general Flink job development without custom functions, CDC streaming data piplines that include Flink (prefer the confluent-cloud-cdc-tableflow skill), Flink connector setup, or Kafka producer/consumer code.
77
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Build and deploy custom functions in Java for Apache Flink to extend SQL and Table API capabilities with custom logic.
Before proceeding, identify which type of function the user needs:
Ask the user these questions to determine the implementation path (if not already clear from context):
Based on the answers above, read the appropriate reference file:
references/udf-udtf-java-confluent-cloud.mdreferences/ptf-java-confluent-cloud.mdIf infrastructure setup is needed, also read references/confluent-cloud-setup.md first.
references/udf-udtf-java-local.mdreferences/ptf-java-local.mdIf infrastructure setup is needed, also read references/local-docker-setup.md first.
After reading the appropriate reference:
confluent flink artifact create, docker cp into a running container, CREATE FUNCTION, etc.), present the plan and wait for explicit approval. Show:
Keep code scaffolding concise and focused on the user's specific requirements. Avoid over-engineering.
db79f9e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.