Manuscript Offprint

arXiv:2610.05777

Mining Agent Skills from Production Traces

Yue Ran Kang, Colton Mikolajczyk, Chhaya Methani, Hazel Mak, Sahil Bhatnagar, Susheel Suresh, Alejandro Gutierrez Munoz

ABSTRACT

Agent skills that record procedural instructions are increasingly mined from execution traces rather than curated by hand. Skill-mining pipelines often use known task outcomes or feedback to guide skill construction. In production, reliable information on whether a run has succeeded may be unavailable. We study how the sampling of execution traces, access to success or failure information, and the form of the mined skills affect downstream task performance. Holding the mining pipeline fixed, we compare six combinations of mining evidence and skill forms. Mining evidence has three levels: successful trajectories only, successes and failures with their outcome labels, or the same mix with labels withheld. Skill form has two types: an ordered workflow plan, or a declarative ontology of entities, states, and policies. We evaluate the mined skills on two enterprise benchmarks, ThinkingBox-Bench and APEX-Agents. Analysis of task-level paired differences shows that the benefits of different configurations of mining evidence and skill forms depend on the enterprise domain. On ThinkingBox-Bench, paired differences show that workflows score better than ontology by 1.7 pp, Goldilocks beats success-only evidence type by 2.4 pp and Goldilocks blind simulating skills learnt without outcomes is worse by 3.1 pp. APEX-Agents shows a moderate preference for ontologies and no clear preference between evidence regimes. Within each domain, task structure related constraints drive uneven performance with mined skills. These findings motivate tailoring meta-skills to the demands of the target tasks rather than adopting a one-size-fits-all approach.

1 INTRODUCTION

In enterprise settings, agents often handle recurring business workflows such as returns, access requests, and account changes. Yet in a standard language model agent setup, a successful execution does not automatically become reusable guidance for later runs, making these recurring requests unnecessarily costly. For example, to resolve a customer's return request, an agent may need to explore unfamiliar tools and records, infer how requests are routed, determine which eligibility rules apply, and discover the required state transitions through trial and error. When the session ends, what the agent learned about the environment and procedure is not preserved as guidance for the next run. The next return request therefore requires the agent to rediscover and execute the procedure again.

Skills address this problem by turning procedural knowledge from prior executions into reusable artifacts for future runs. A skill is a versioned set of instructions loaded into the agent's context when relevant, without changing the model's parameters (Anthropic, 2025); this makes its influence inspectable, reversible, and suitable for enterprise deployment. A growing literature therefore studies how to mine skills directly from execution traces (Ni et al., 2026; Wang et al., 2025b).

A skill is only as good as the quality of procedure it describes. A mined skill is a set of reusable instructions curated by a separate skill-mining agent that reviews prior task-agent execution traces. Its content therefore depends on which traces the miner sees and whether the miner knows which traces succeeded. Mined skills can improve performance, but they can also cause regressions when they overfit to the source traces by encoding unnecessary steps or overgeneralizing rules (Li et al., 2026a; Dong et al., 2026). In addition, many trace-mining methods select source traces based on

∗^{*}Equal contribution.

whether prior runs succeeded or failed (Ni et al., 2026; Wang et al., 2026a). In realistic production settings, however, success and failure outcomes may be unavailable because user traces cannot always be inspected or graded at scale for privacy and compliance reasons. This constraint motivates studying how mined skills change when the same traces are provided without outcome labels.

In this paper, we study how three things affect downstream task performance: which execution traces the miner is shown, what it is told about their outcomes, and what form the mined skill takes. We hold the mining pipeline fixed and compare six combinations of mining evidence and skill form. Mining evidence has three levels: Success-only, which shows the miner successful trajectories alone; Goldilocks, which shows successes and failures together with their outcome labels; and Goldilocks-blind, which shows that same mixture as goldilocks with the labels withheld. Goldilocks-blind represents the production-relevant constraint that outcome labels may be unavailable. Because it uses the same traces as Goldilocks but withholds their labels, the comparison isolates the contribution of label access rather than the inclusion of failure traces. Skill form has two types: a workflow plan, an ordered sequence of steps, and an ontology, a declarative account of the domain's entities, states, and policies that describes the world the agent acts in without dictating an order through it (see Figure 2).

An additional constraint in production is the inability to tune the miner per domain or task family. Hence, we follow a minimal footprint approach to skill mining; the distillation instruction, or meta-skill, is authored once against a single agent's trajectories and then frozen. We apply this frozen meta-skill to traces from training tasks to produce skills, then evaluate those skills on test tasks (Figure 1). We evaluate these mined skills on two enterprise benchmarks, ThinkingBox-Bench (Li et al., 2026b) and APEX-Agents (Vidgen et al., 2026). We run each task with and without the mined skill, and measure the paired difference in task success.

Our experiments show that skill representation and evidence selection have context-dependent effects on task success. Workflow representations yield positive point estimates relative to ontology representations in ThinkingBox-Bench in 4 out of 5 domains (Table 4). The aggregate difference is 1.7 pp (Table 3). Variance analysis showed that tasks with multi-entity interactions resolved better with ontology. Goldilocks outperforms success-only selection in ThinkingBox-Bench by 2.4 pp suggesting that contrastive evidence may help resolve decision branches within tasks. Goldilocks-blind selection yields lower point estimates than Goldilocks across all reported settings (Table 4), with a matched regression of 3.1 pp in ThinkingBox-Bench and 0.3 pp in APEX-Agents ((Table 3)).

Exploratory task-level analysis suggests that these aggregate results may mask differences in task requirements: ordered execution may favor workflow representations, while entity and policy-rich tasks may favor ontology representations. Similarly, comparing successful and failed runs may reveal missing decision points or completion conditions, but may help less when a task requires only one precise update and no additional changes. These patterns motivate task-sensitive skill design rather than a single universally preferred configuration. A practical takeaway for industry practitioners is to match skill design with task constraints.

This paper makes three contributions.

  1. Controlled comparisons of skill form and mining evidence. We compare workflow- and ontology-based skill mining while varying the evidence available during mining, measuring their effects on downstream enterprise task success.

  2. Quantifying the effect of outcome-label access. Using matched trajectories for Goldilocks and outcome-blind generation, we isolate the effect of outcome-label visibility under a fixed experimental setup, examining a production-relevant information constraint. ((Zhang et al., 2026b; Xiong et al., 2026)).

  3. Characterizing task-dependent gains and regressions. We examine how outcomes vary across task families. The exploratory patterns suggest that effective skill design depends on task requirements, with no single configuration consistently performing best.

References (34)