axyra · Dec 4, 2026

What We Learned Developing and Testing the Axyra Agent Skill

James Chu
Developer, Keikai.

What We Learned Developing and Testing the Axyra Agent Skill

When a developer starts using a new spreadsheet API, a task such as exporting a workbook can involve more than finding a save method. The program may run and produce a file, yet a formula or another workbook feature may be missing when someone opens it. We wanted developers using AI coding agents to get help with those decisions and checks while writing Java code with Axyra Sheets, our library for reading, writing, and processing Excel files.

We already had documentation and examples, but an agent still needed to find the relevant guidance for a particular task. We considered a Model Context Protocol (MCP) server and an agent skill, then built the Axyra Agent Skill to guide that search inside the coding workflow. Its SKILL.md entry point directs the agent to focused references, including examples and checks for the output it produces.

The first version did not always help. Some tasks took longer and consumed more tokens, and additional API descriptions did not reliably prevent incorrect assumptions. We tested the generated programs and their outputs to find out why. The failures led us to revise the skill and, in one case, the library itself. This post covers two cases, the evaluation results, and how we now maintain the guidance.

TL;DR

Checking generated output exposed incorrect guidance in the skill and a problem in the library's file export. In two Claude evaluations, agents using the skill passed more tasks and used 20–28% fewer tokens and 22–26% less time. Most of the additional passes came from correctly identifying library limitations and offering alternatives. These evaluations compared workflows with and without the skill; they did not isolate the effect of skill revisions over time.

Table of Contents

  1. What the skill needed to teach
  2. Two cases that changed the skill and the API
  3. How we tested the skill
  4. How the skill performed with different models
  5. How we maintain the Axyra Agent Skill
  6. Try the skill with your own workbook

What the skill needed to teach

The skill's references cover API examples, format limitations, and troubleshooting notes. The agent can consult the parts relevant to the task it is working on.

A spreadsheet API lets developers create and modify workbooks containing worksheets, values, and formulas. Common tasks include writing data, calculating formulas, and exporting files. Goal Seek is a more advanced operation that adjusts an input until a formula reaches a specified result.

Basic tasks often worked without the skill. Harder tasks depended on behavior that method names alone did not explain. A calculation could return an incorrect result because of the workbook's calculation mode, or an export could display the expected values while losing its formulas. Compiling and running the code was therefore only the first check.

We revised the skill to explain which reference to read, which conditions to check, and how to verify the output. Export guidance, for example, needed to explain how to check that formulas survived, as well as how to call the export method.

Two cases that changed the skill and the API

Correcting advice about Goal Seek

Suppose A1 starts at 5 and A2 contains =A1*3. Asking Goal Seek to make A2 equal 30 should change A1 to 10.

Our skill originally advised agents to call recalculate() before goalSeek() when the workbook used manual calculation mode. In this mode, changing an input does not automatically update formulas that depend on it. We expected that recalculating first would give Goal Seek up-to-date values. However, testing showed that Goal Seek still returned NaN, indicating failure, and left A1 unchanged. Switching to automatic calculation mode produced the expected result. See how manual calculation mode works.

Goal Seek changes A1 repeatedly and checks the new result in A2. In the affected build, manual mode kept returning the previous result. Recalculating before starting Goal Seek did not help, because each new input value required another calculation.

In a separate check with Claude Opus 5.5, we generated five programs for this task. Two followed our original advice and failed. The other three switched to automatic mode and passed. We updated the skill to switch to automatic mode for Goal Seek and restore the original setting afterward.

The library was later fixed to support this operation in manual mode, and all five programs passed when rerun against the fixed build. Two new programs using the updated skill also passed. Both the library and the skill had changed, so those runs could not show how much each change contributed. The workaround is needed only for affected older releases.

This case showed why we needed to test the advice in the skill. Incorrect instructions could lead agents to repeat the same error.

Discovering an API problem in ODS export

Another task asked the agent to convert a budget workbook to ODS while keeping formulas live, so changing an input would still update the totals. In the tested library build, export silently replaced formulas with their calculated values, even when the code explicitly requested preservation through FormulaPolicy.KEEP. The file looked correct, but the totals would no longer update.

Without the skill, agents could incorrectly claim that the formulas still worked. The skill directed them to explain the limitation and offer XLSX instead. Opus gave the correct explanation and alternative in three of three runs, compared with zero of three without the skill. These passes meant that the agent handled the limitation correctly; it had not completed the requested ODS conversion.

The same test exposed a problem for developers using the API directly. They could explicitly request formula preservation and receive static values without a warning. Later builds added support for formulas that can be translated to OpenFormula, the formula language used by ODS. In the later builds described by our test notes, an explicit FormulaPolicy.KEEP request rejects a save when a formula cannot be translated. The results above reflect the earlier build. Check the behavior of the Axyra version you use before relying on formula preservation in ODS. See the supported formats.

The lesson was to check whether the API needed fixing before adding more instructions to the skill. To verify formula preservation, reopen the exported file, check that the formula is present, then change an input and check the recalculated result.

How we tested the skill

We compared each model completing tasks with and without the skill. We measured three things:

  • Correctness: Did the generated program produce the required output? For tasks involving a library limitation, did the agent correctly explain the limitation and provide the required alternative?
  • Token use: How many input and output tokens did the agent consume, including cache reads and writes and the cost of reading the skill and its references?
  • Completion time: How long did the agent take to finish, including tool calls? This measured the coding workflow, rather than just the runtime of the generated Java program.

Each trial started in a fresh workspace and conversation. Within each model evaluation, both conditions received the same prompts and settings. We repeated each task three times per condition. Generated programs were rebuilt and run separately, and we checked workbook structures, formula results, or rendered output against the task requirements.

We distinguished ordinary tasks from diagnostic tasks. Ordinary tasks required the program to produce the correct output. Diagnostic tasks tested whether the agent could handle a library constraint. If the requested output was impossible in the tested build, the agent could pass by explaining the limitation accurately, avoiding a false claim of success, and providing the required alternative. The ODS example was one such task. For ordinary tasks, problems in the explanation and unsupported claims that checks had been performed were recorded separately from program failures.

For resource use, we took the median token use and completion time from each task's three runs, then added those medians separately for each condition. The reported pass count is the average number of tasks passed across the three repetitions.

Without the skill, agents mainly inspected the library JAR using javap, a Java class inspection tool. With it, they also received references and links to documentation and examples. The results measure the combined effect of instructions and access to references; they cannot separate the contribution of each.

How the skill performed with different models

We evaluated two Claude models: Opus, designed for more demanding reasoning tasks, and Sonnet, which balances capability, speed, and cost. Each evaluation compared the model with and without the skill. The task sets and agent setups differed between the two evaluations, so the results should not be used to rank the models.

Model Passed without skill Passed with skill Token change Time change
Claude Opus 5.5 · 48 tasks 44.7 / 48 (93.1%) 46.7 / 48 (97.2%) −28% −26%
Claude Sonnet 5.5 · 51 tasks 45.7 / 51 (89.5%) 48.3 / 51 (94.8%) −20% −22%

Pass counts are averages across three repetitions, and percentages use the unrounded counts. Token and time changes are relative to the same model without the skill. These figures describe the observed runs; three repetitions per task do not establish statistical significance.

The 48 Opus tasks and 51 Sonnet tasks each included eight diagnostic tasks. Each diagnostic task was run three times, giving 24 runs per model in each condition. Opus passed 19 of these runs without the skill and all 24 with it; Sonnet passed 21 without the skill and all 24 with it. Most of the overall improvement came from these diagnostic tasks. As the ODS example shows, passing could mean correctly explaining a limitation and offering an alternative.

Many ordinary tasks already passed without the skill. All ten basic tasks in the Opus evaluation passed in both conditions. Larger efficiency improvements appeared in tasks involving format limitations, formula chains, chart reconstruction, template grouping, and migration differences. Relevant guidance could save the agent from inspecting many methods or running experiments to discover a constraint.

How we maintain the Axyra Agent Skill

The tests led us to make output checks part of how we develop and maintain the skill:

Testing workflow from defining success criteria to reproducing failures, fixing their causes, and retesting

  • Define the expected output. We check the result a developer would actually use. For an export, this includes reopening the file and checking that its formulas still work after an input changes.
  • Investigate the cause of a failure. We reproduce the problem with a small example before deciding whether to change the instructions, the API, or both. The Goal Seek and ODS cases required changes to both.
  • Direct agents to relevant references. The entry point points to examples and troubleshooting notes for the task. Export examples include format limitations and verification steps, so the agent can find them together.
  • Retest after changes. We run affected tasks in fresh sessions and check related tasks for regressions. We inspect the generated files as well as the agent's explanation.
  • Track correctness and resource use. We measure pass rates, tokens, and completion time separately. This helps us assess whether the skill improves results and reduces the work needed to complete a task.
  • Update guidance when the API changes. We identify which releases need a workaround and keep that advice separate from instructions for newer releases where it is no longer necessary.

These tests helped us improve both the Axyra Agent Skill and the API. We corrected misleading instructions, added checks for generated files, and fixed library behavior that could produce unexpected results. We will continue testing the skill as Axyra and coding models evolve.

Try the skill with your own workbook

After installing the skill and setting up Axyra using the developer guide, try the following prompt. The agent will create a small workbook, modify it, and check that its formula still works after saving and reopening. No input file is required.

Use the Axyra Agent Skill and the Axyra version in this project.

Create a workbook with a sheet named Budget.
Set B2:B9 to 100 each, and set B10 to =SUM(B2:B9).
Save it as budget.xlsx.

Reopen budget.xlsx, change B2 to 1200, and save a separate copy
as budget-updated.xlsx. Preserve the formula in B10.

Build and run the Java program. Reopen budget-updated.xlsx and
verify that B10 still contains the formula and calculates to 1900.

Then change B2 to 1300 in memory, recalculate, and verify that
B10 becomes 2000.

Report the checks and their results. Clearly state any check
you could not run.