SkillSpec: Intent-Masked Specification Reasoning for Agent Skill Correctness

Yizhuo Zhang, Bo Kang, Yi Yang, Zhiyu Duan, Zhouteng Ye, Shunkun Yang

Beihang University

Published September 5, 2026 · on the feed September 22, 2026 · ▲ 8 · arXiv 2609.06052

The abstract

Autonomous agent systems increasingly depend on reusable skill abstractions for consolidating experiential knowledge and domain expertise. These artifacts typically bundle free-form instructions with heterogeneous resources. However, ensuring their correctness remains challenging. Their failure modes transcend conventional code defects to subtle semantic inconsistencies such as intent conflicts, which manifest as silent failures masked by the underlying model. Moreover, skill correctness must be grounded in intended task boundaries and generalizability. We propose SkillSpec, a Hoare-style framework that formulates skill correctness as a specification reasoning problem. It transforms a heterogeneous skill repository into a unified graph representation that aligns descriptions, instructions and code artifacts. For each node, SkillSpec derives an ExpectSpec from the surrounding declared intent, and infers FactSpecs from encoded behavior under partially disclosed intent. An intent mask regulates access to holistic, lineage, neighborhood, and local views to balance the bias introduced by excessive context against unsupported inference caused by insufficient context. SkillSpec jointly reasons over these views to flag candidate defects, and automatically validates them in an isolated sandbox. On 515 real-world skills from SkillsBench and widely downloaded repositories, SkillSpec identified 763 manually confirmed defects across 239 skills, achieving 61.2% precision. The node-level analysis across multiple model families shows that specification reasoning is consistently reliable for code nodes, whereas plain-text nodes remain a major bottleneck. Most defects arise at the boundaries between declared intent and implementation, demonstrating that explicit specifications provide a practical foundation for skill quality assurance in real-world agent ecosystems.

The Brief

3:11

A short podcast summary of the paper. Written and voiced by AI.

Transcript

SkillSpec. Intent-Masked Specification Reasoning for Agent Skill Correctness. By Yizhuo Zhang and five others, from Beihang University. Published on the fifth of September. Its code repository is worked out: about seventy source files, with a readme and a licence.

Autonomous agent systems lean more and more on reusable skills. A skill is an abstraction that consolidates experiential knowledge and domain expertise, and in practice it bundles free-form instructions together with heterogeneous resources. Making sure such a thing is correct turns out to be hard, and not for the usual reasons. The failures go beyond ordinary code defects. They include subtle semantic inconsistencies, such as intent conflicts, where one part of a skill wants something another part does not. Those show up as silent failures, because the underlying model papers over them. And correctness here is not an absolute property. A skill is correct relative to the task boundaries it was meant for, and relative to how far it is supposed to generalize. A checker has to be grounded in that intent, or it has nothing to check against.

SkillSpec treats skill correctness as a specification reasoning problem, in the Hoare style. The idea is to set what a piece of a skill is expected to do next to what it actually does, and to look for the places where the two disagree. The expectation comes from declared intent. The observed behavior comes from what is encoded. A defect is a gap between them.

The first step is structural. SkillSpec transforms a heterogeneous skill repository into one unified graph, in which descriptions, instructions and code artifacts are aligned with one another. Then, for each node in that graph, it derives two kinds of specification. An ExpectSpec is derived from the declared intent surrounding the node. FactSpecs are inferred from the behavior the node encodes, and they are inferred while the intent is only partially disclosed.

That partial disclosure is controlled by an intent mask. The mask regulates which views the reasoning can see: a holistic view, a lineage view, a neighborhood view, and a local view. The reason for rationing context is a balance between two failure modes. Too much context introduces bias, while too little leads to inference the evidence cannot support. SkillSpec reasons jointly over these views to flag candidate defects, and then validates each candidate automatically in an isolated sandbox.

The evaluation covers five hundred and fifteen real-world skills, drawn from SkillsBench and from widely downloaded repositories. On those, SkillSpec identified seven hundred and sixty-three defects that were manually confirmed, spread across two hundred and thirty-nine skills, at a precision of sixty-one point two percent.

A node-level analysis across multiple model families splits the picture by node type. For code nodes, specification reasoning is consistently reliable. Plain-text nodes remain a major bottleneck. And when the defects are located, most of them arise at the boundaries between declared intent and implementation.

Where the defects cluster brings the argument full circle: exactly where what a skill says it is for meets what it actually does, which is the seam an explicit specification is built to expose. The authors read this as evidence that explicit specifications offer a practical foundation for quality assurance of skills in real-world agent ecosystems, with prose instructions still the hardest part to reason about.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Agent skills are software now. Their bugs just don't announce themselves.

You maintain a library of agent skills: folders of free-form instructions with scripts and data that an AI agent follows. Some of them are broken, but nothing crashes.

The road ahead

  1. 1 · The problem ~6 min Agent skills can be broken without anything crashing, and whether they are broken depends on what each was meant to do.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min SkillSpec finds skill defects as gaps between what each part should do, from declared intent, and what it actually does.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min SkillSpec builds a graph, derives two specifications per node, reasons over views to flag defects, then validates each in a sandbox.
  6. 6 · The experiment ~6 min You’ll guess: Of the defects SkillSpec validated in its sandbox on real-world skills, what share were manually confirmed, its precision?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.