ax-java-gen

Generates Java AxGen structured workflow code using dev.axllm:ax package API.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-java-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-java-gen
Source: https://github.com/ax-llm/ax/tree/main/website/static/java/.well-known/agent-skills/ax-java-gen
Command: npx skills add https://github.com/ax-llm/ax --skill ax-java-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write correct Java code for Ax structured generation workflows without guessing the package API or native call shapes. It is designed for developers who need typed generation, tool use, and runtime integrations that match the generated Java library.

Core Features & Use Cases

  • Structured Generation: Create AxGen programs from signatures for forward calls and typed outputs.
  • Tools and MCP: Attach Java tools or MCP-derived tools to generation calls when the workflow needs external actions.
  • Tracing and Output Handling: Work with streaming, assertions, traces, usage, and output parsing using the generated package surface.
  • Use Case: A Java engineer can turn a schema-backed prompt into a typed program that calls a tool, streams partial results, and returns a validated answer.

Quick Start

Use the ax-java-gen skill to generate a Java AxGen program for my signature, include any needed tools or MCP client wiring, and return code that follows the dev.axllm:ax package API.

Frequently Asked Questions about ax-java-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Java code for structured generation workflows?

To generate Java structured generation workflows, you define a signature and use the generation Skill to create typed AxGen programs. This produces code matching the dev.axllm:ax package API for forward calls, tool use, and output parsing.

How do I attach external tools to Java streaming generation calls?

You can attach external tools to Java streaming generation calls by wiring Java tools or MCP-derived tools into your AxGen program. This enables the workflow to execute external actions while streaming partial results.

What is the best way to parse typed outputs from AxGen programs in Java?

The best way to parse typed outputs from AxGen programs in Java is using the generated package surface for output parsing. This ensures your schema-backed prompts return validated answers that align with native Java syntax.

Does the dev.axllm:ax package support tracing and usage tracking for Java programs?

Yes, the dev.axllm:ax package supports tracing and usage tracking for Java programs. You can work with streaming, assertions, traces, and usage tracking using the generated package API surface.

Can I use MCP client wiring with Java AxGen programs?

Yes, you can use MCP client wiring with Java AxGen programs. The Skill generates code that includes necessary MCP client wiring to attach MCP-derived tools to your structured generation calls.

Why does my generated Java AxGen code not match the expected package API?

Generated Java AxGen code may not match the expected package API if the runtime profiles and AxIR capability metadata are misaligned. The generated code requires these to stay aligned with native Java syntax and supported transport options.