arXiv:2611.12041cs.CLNov 2026

Manuscript Offprint

arXiv:2611.12041

SMO: Compiling Natural Language Skills into Graphs of Reusable State-Move-Outcome Bricks

Chao Chen, Jiashuo Zhang, Yunhang Shen, Liangyu Lian, Rongrong Ji

Abstract

Large language model agents increasingly rely on reusable natural-language skills, yet growing skill collections remain accumulations of isolated text artifacts that are difficult to compare, deduplicate, and compose. We argue that the reusable content of a skill lies not in its surface wording but in its procedural transitions: which operation to execute under a given state and which observable outcome to produce. Based on this observation, we propose State–Move–Outcome (SMO), a compilation-like framework that decomposes raw skills into reusable procedural bricks and organizes admitted bricks as an externalized symbolic structure. When compiling a skill, SMO first retrieves and composes existing bricks, dynamically connects them through Outcome-to-State conditions, and creates a candidate brick only for an uncovered procedure; the candidate becomes reusable only after validation and admission. Experiments on SkillsBench v1.1 demonstrate that SMO represents 232 rawSkills from 87 underlying tasks with 95 shared bricks, reducing the corresponding skill representations from 366,472 to 149,154 tokens—a 59.3% reduction and 2.46×2.46\times compression. Across 232 skill-conditioned evaluation instances, SMO raises the average task score from 0.6379 to 0.7478 and increases 5/5 Pass instances from 138 to 164, while matching or outperforming rawSkill on 208 of 232 instances. It also reduces average runtime token consumption by 38.38%. These results show that compiling natural-language skills into shared procedural units can jointly improve skill reuse, representation efficiency, and downstream execution.

Introduction

Large language model (LLM) agents increasingly rely on procedural knowledge stored outside model parameters. Prior work has shown that external language structures can be treated not merely as static prompts, but as programs that can be compiled and optimized against downstream objectives (Khattab et al. 2023). Recent agent systems further induce reusable workflows from interaction histories, distill reasoning strategies from successful and failed trajectories, dynamically organize linked memories, and manage growing skill ecosystems (Wang et al. 2024; Ouyang et al. 2025; Xu et al. 2026; Li et al. 2026a). Benchmarks have accordingly begun to evaluate skills as first-class agent artifacts rather than incidental prompts (Li et al. 2026b). Agent skills are therefore becoming persistent procedural infrastructure that must be represented and maintained at corpus scale.

Most of this infrastructure is still authored and distributed as natural-language instructions or semi-structured SKILL.md packages. SkillsBench, for example, defines a skill package around a natural-language SKILL.md file and associated resources; SkillOpt treats such a document as trainable external state; and AgentSkillOS studies ecosystems containing up to hundreds of thousands of complete skills (Li et al. 2026b; Yang et al. 2026; Li et al. 2026a). This document-centric representation is convenient for authors, but it obscures reusable procedures. As illustrated in Figure 1, several rawSkills may express the same operation in substantially different prose, requiring the agent to interpret redundant content repeatedly. A single document may also mix reusable operations with task-specific entities, paths, formats, and explanations. The resulting corpus is difficult to compare, deduplicate, compose, and update systematically.

Existing approaches address adjacent aspects of this problem rather than the corpus-level problem as a whole. (i) Experience-learning methods distill workflows, rules, memories, or hierarchical skills from agent trajectories (Zhao et al. 2024; Peng et al. 2024; Wang et al. 2024; Chen et al. 2024; Ouyang et al. 2025; Xu et al. 2026; Xia et al. 2026; Ding et al. 2026). (ii) Compilation and automated-design methods optimize declarative LM programs, function-call plans, agent modules, workflows, or individual skills (Khattab et al. 2023; Kim et al. 2023; Hu, Lu, and Clune 2025; Zhang et al. 2025; Shang et al. 2025; Yang et al. 2026; Liang et al. 2026; Chen et al. 2026). (iii) Ecosystem-level systems retrieve and orchestrate complete skills, while graph-based tool selectors structure transitions among predefined tools (Li et al. 2026a; Jia and Li 2026). These directions improve acquisition, optimization, discovery, or runtime execution, but they do not establish a shared procedural basis that can reconstruct many independently authored skill documents.

Challenge 1: discovering reusable procedures across heterogeneous descriptions. Surface similarity is insufficient because distinct wording may implement the same transition, while similar wording may hide different preconditions, operations, or outcomes. A corpus-level representation must therefore identify equivalence at the level of executable State–Move–Outcome behavior, while separating task-specific values from genuinely new operations.

∗^{*}Corresponding author.

Figure

Figure 1: One procedure, many descriptions. Multiple rawSkills may encode the same operation using different natural-language expressions, causing repeated interpretation. SMO compiles them into smoSkills that reference one shared admitted brick, reducing duplicated procedural context while retaining task-specific composition.

Challenge 2: reconstructing skills through valid composition. Decomposition alone does not guarantee that the resulting units can be reassembled. A reusable unit must expose when it applies, what it does, and what it establishes; adjacent units can be connected only when the preceding Outcome satisfies the successor State. Small residual differences must remain bounded, and uncovered procedures must not be silently approximated by incompatible units.

Challenge 3: reducing redundancy without sacrificing utility. Shorter text is not necessarily a better skill representation. Corpus compression must preserve the procedures required for downstream tasks, prevent unvalidated units from contaminating the shared basis, and reduce the context repeatedly loaded during execution. Representation size, task utility, and runtime cost must consequently be evaluated together.

We address these challenges with State-Move-Outcome (SMO), a compilation-like framework for natural-language skill corpora. SMO atomizes each rawSkill into procedural requirements, reconstructs them through L1 brick matching, L2 instance binding, and L3 bounded-delta patching, and assembles the matched bricks into a graph through Outcome-to-State gates. Compilation gaps are classified as bindings, bounded deltas, new-brick candidates, or out-of-family cases; admitted candidates and retained deltas are incorporated into the next frozen symbolic-basis snapshot. On 232 SkillsBench v1.1 skill-task instances, SMO achieves 2.46×2.46 \times representation compression, raises the average task score from 0.63790.6379 to 0.74780.7478, and reduces average runtime token consumption by 38.38%38.38\%.

Our contributions are:

  1. We introduce a State-Move-Outcome representation

that separates reusable procedural transitions from task-specific bindings and bounded differences.

  1. We present a corpus-level compilation procedure that prioritizes brick reuse, constructs skill graphs through Outcome-to-State gates, and admits uncovered procedures only through controlled basis evolution.

  2. We demonstrate that shared procedural compilation can improve downstream task utility while reducing both skill-representation size and runtime token consumption.

References (23)