Formal Skill: Programmable Runtime Skills for Efficient and Accurate LLM Agents

Xi Zhang, Meijun Gao, Yuntian Zhao, Xinyu Tan, Yilun Yao +4 more
5/19/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Large Language Model (LLM) agents increasingly act inside real workspaces, where tools and skills determine whether model reasoning becomes reliable action. Existing skills remain largely informal: Markdown skills and instruction packs encode procedures as long natural-language documents, while function calling, Model Context Protocol (MCP) servers, and framework tools structure individual actions but usually leave workflow state, policy enforcement, and completion discipline outside the skill itself.

Show full abstract

We introduce Formal Skill, a runtime-native abstraction that represents reusable capability with JSON metadata and action schemas, reliable Python executors, hook-governed control logic, Formal Skill routing, and skill-local runtime state. By moving reusable procedure from repeated prompt text into executable state machines and hook policies, Formal Skill gives agents a token-efficient and enforceable control surface. We implement the abstraction in FairyClaw, an open-source event-driven runtime for executable, observable, and composable Formal Skills. On Harness-Bench, FairyClaw obtains highly competitive average scores while using substantially fewer tokens, with especially strong results on tasks that expose the role of Formal Skill.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026formal,
  title  = {Formal Skill: Programmable Runtime Skills for Efficient and Accurate LLM Agents},
  author = {Xi Zhang and Meijun Gao and Yuntian Zhao and Xinyu Tan and Yilun Yao and Feiyu Wang and Yanshu Wang and Dingsiyi and Tong Yang},
  year   = {2026},
  eprint = {2605.19604},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.19604v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.19604.svg)](https://codeofpaper.com/paper/2605.19604)

Discussion