npx skills add ...
npx skills add confluentinc/agent-skills --skill flink-udf
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.
npx skills add confluentinc/agent-skills --skill flink-udf
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.