$npx skillfedfor your agent

Splitting SKILL.md into three layers lifts retrieval 12%, risk detection 24%

Notes on From Skill Text to Skill Structure: The Scheduling-Structural-Logical Representation for Agent Skills (arXiv:2604.24026) — Qiliang Liang, Hansi Wang, Zhongzhi Liang, Yang Liu · April 2026

Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made

AI-assisted notes · reviewed by SkillFed Skill retrieval Bridge: retrieval × security

LLM agent skills today live almost entirely as prose — SKILL.md-style files that bundle a skill's invocation rules, execution phases, and side effects into a single block of natural-language text. The Scheduling-Structural-Logical (SSL) representation pulls that block apart into three typed layers: a scheduling record for when and how a skill gets invoked, a structural graph of execution scenes (prepare, acquire, act, verify, and so on), and a logical graph of atomic actions with explicit resource boundaries. The three-way split borrows directly from Schank and Abelson's cognitive-linguistics work — Memory Organization Packets, Script Theory, Conceptual Dependency. An LLM normalizer (DeepSeek-V3.2) converts raw SKILL.md text into SSL's JSON schema; a 100-skill human audit found 83% of the normalized fields faithfully grounded in the source document.

Structure pays off on two concrete tasks, tested across a 6,184-skill corpus. On skill discovery, pairing a short description with rich SSL fields (skill identifier, scene types, dependencies, expected inputs/outputs) lifts retrieval MRR@50 from 0.649 — the best any text-only baseline reaches across 431 intent-level queries — to 0.729. That beats even embedding the complete SKILL.md verbatim (0.645), which means the gain comes from disentangling signal, not from adding more words. On risk assessment, across 252 skills labeled on six threat dimensions, giving an LLM judge both the full SKILL.md and its SSL representation raises macro F1 from 0.409 to 0.509 over source text alone. SSL by itself barely edges past the text-only baseline — it works as an evidence layer laid over the source document, not a replacement for it.

Key numbers

Skill Discovery MRR@50 (best SSL view vs. best text-only)0.729 vs 0.649
Risk Assessment macro F1 (SKILL.md+SSL vs. SKILL.md alone)0.509 vs 0.409
Covert-execution F1, best combined view0.264
Normalizer fidelity (100-skill human audit)83%
Benchmark scale6,184 skills / 431 queries / 252 risk-labeled

Skills related to this research

Related notes

References

  1. Liang, Q., Wang, H., Liang, Z., & Liu, Y. (2026). From Skill Text to Skill Structure: The Scheduling-Structural-Logical Representation for Agent Skills. arXiv:2604.24026.
  2. Schank, R. C. (1972). Conceptual Dependency: A Theory of Natural Language Understanding.
  3. Schank, R. C., & Abelson, R. P. (1977). Scripts, Plans, Goals, and Understanding.
  4. Schank, R. C. (1980). Language and Memory. Cognitive Science.
  5. Wang, G. et al. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models.