skillfed

A skill-specific LoRA beats prompting the full SKILL.md by 5.2 points and cuts token cost 6.6%

Notes on Skill-to-LoRA: From Using Skills to Learning Behaviors for Token-Efficient LLM Agents (arXiv:2606.16769) — Tianyi Zhang, Zhong-Kuo Qi · June 2026

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

AI-assisted notes · reviewed by SkillFed Frontier & other

Skill-to-LoRA (S2L) treats a SKILL.md file as training data, not runtime cargo. Offline, a teacher model reads the full skill document and generates synthetic task-response pairs that demonstrate the behavior it describes; those pairs train a small LoRA adapter for that one skill, with the base model frozen the whole time. At inference, the adapter loads and the SKILL.md text disappears from the prompt entirely — what's left is a lightweight skill-id tag, and the model acts on a learned behavioral prior instead of re-reading procedure on every step.

The setup: Qwen3.6-27B on a 21-skill, 210-task slice of SWE-Skills-Bench. S2L passed 65/210 tasks against 59/210 for no-skill prompting and 54/210 for stuffing the full skill text into context — a 2.9-point gain over the baseline and 5.2 points over full-text prompting. Token cost moved the same direction: S2L ran 4.89% below the no-skill baseline while full-text prompting added 13.39%, leaving S2L's per-step cost 6.6% below full-text prompting's in absolute terms. Per-skill, S2L matched or beat full-text prompting on 18 of 21 skills and the no-skill baseline on 15 of 21 skills. The controls rule out a generic fine-tuning explanation: loading the wrong skill's adapter, or one adapter shared across all skills, both hurt performance relative to S2L's skill-specific adapters. Retrieval mismatch is where the method's edge shows most: full-text prompting collapsed from 35.6% to 27.8% pass rate when the wrong skill got retrieved, while the LoRA adapters degraded more gracefully, from 46.7% to 35.6%. A configuration sweep settled on a 64-example, rank-16 adapter (about 6.03M parameters) that matched larger, higher-rank variants.

Key numbers

S2L pass rate vs. Full Skill Text65/210 vs. 54/210 (+5.2 pp)
S2L pass rate vs. no-skill baseline65/210 vs. 59/210 (+2.9 pp)
Token cost vs. Full Skill Text prompting-6.6% per step
Skills where wrong/shared adapters hurt performanceboth controls degrade vs. S2L
Selected adapter sizerank-16, ~6.03M params (~0.022% of base model)

Skills related to this research

Related notes

References

  1. Zhang, T. & Qi, Z. (2026). Skill-to-LoRA: From Using Skills to Learning Behaviors for Token-Efficient LLM Agents. arXiv:2606.16769.
  2. Han, T. et al. (2026). SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering? arXiv:2603.15401.
  3. Hu, E. J. et al. (2022). LoRA: Low-Rank Adaptation of Large Language Models. ICLR 2022.
  4. Dettmers, T. et al. (2023). QLoRA: Efficient Finetuning of Quantized LLMs. NeurIPS 2023.
  5. Charakorn, R. et al. (2025). Text-to-LoRA: Instant Transformer Adaption. ICML 2025.