Executable skills beat prompted skills 51% to 20.5% on web search
Notes on Harnessing LLM Agents with Skill Programs (arXiv:2605.17734) — Hongjun Liu, Yifei Ming, Shafiq Joty, Chen Zhao · May 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 evolutionHASP turns each stored agent skill into a small executable module called a Program Function (PF): a should_activate() check that watches the agent's current state and proposed next action, paired with an intervene() step that either rewrites the action outright or injects corrective context back into the reasoning trace. An external agent harness wraps the base policy (Qwen2.5-7B-Instruct throughout), retrieves candidate PFs at every step, and lets them fire before the action executes — no fine-tuning required to see a benefit. The same interface does double duty: each firing logs the original action, the repair, and the downstream effect, which becomes training signal for post-training via SFT, rejection sampling, or on-policy distillation, and recurring failures get mined into new candidate PFs that must clear executable validation plus a teacher's review before joining the shared skill library.
On web-search reasoning (HotpotQA, 2Wiki, MuSiQue), PFs firing at inference time alone lift average accuracy to 51.0% — well above 20.5% for the identical skills expressed as prompt text and 31.2% for a multi-loop ReAct baseline. Adding an auxiliary teacher to help pick which PF fires brings it to 56.2%, a 25-point margin over that ReAct baseline. Training on PF-corrected traces plus controlled library evolution (HASP-Evolve + RS) pushes the web-search average to 60.3% — a 30.4-point gain over Search-R1 — and lifts math reasoning to 45.4% and coding to 69.9% pass@1. Skipping the validation gates when growing the library is not neutral: it collapses web-search accuracy from 60.3% back down to 36.3%. A mechanism analysis finds 65.1% of PF firings rewrite the action directly rather than just inject text. Behavior-correcting skills — read more evidence before answering, say — mostly go silent after training: two of them stop firing on 100% of their previously-triggered cases and a third on roughly 30-37%, while question-dependent skills like decomposing a multi-hop query stay active, going silent on just 3-12% of cases: training absorbs the habit-forming corrections but keeps leaning on the ones that depend on new input.
Key numbers
| Prompted-text skills, web-search avg | 20.5% |
| PF-only inference intervention, web-search avg | 51.0% |
| Trained + evolved (HASP-Evolve+RS) vs Search-R1's 29.9% | 60.3% |
| Unfiltered library evolution (down from 60.3%) | 36.3% |
| Action-rewrite vs context-injection firings | 65.1% vs 34.9% |
Skills related to this research
Related notes
- 26.1% of Community Skills Ship With a Vulnerability →
- Self-tested skill edits beat teacher-curated skill banks by up to 9.3 points →
- Skills Trained Into the Model Beat Runtime-Loaded Skills by Up to 10.1 Points →
- Curated Skills Lift Success Rates 16.2 Points — Self-Generated Ones Cost You 1.3 →
- Rubric-filtered training lifts a 9B model to 32% accuracy — outcome-only filtering caps out at 18% →
- Same skill, +22 points for Claude Sonnet, +5.5 for Nemotron Nano →
- Four-Way Attribution Gates Every Update to a Million-Scale Skill Corpus →
- Best skill-generation pipeline clears just 14% of code-repo tasks, 25% of document tasks →
- Three skill optimizers stall at zero on 4 of 6 tasks — Chebyshev scalarization unsticks them →
References
- Hongjun Liu, Yifei Ming, Shafiq Joty, Chen Zhao (2026). Harnessing LLM Agents with Skill Programs. arXiv:2605.17734
- B. Jin, H. Zeng, Z. Yue, J. Yoon, S. Arik, D. Wang, H. Zamani, J. Han (2025). Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning. arXiv:2503.09516
- Z. Li, H. Zhang, S. Han, S. Liu, J. Xie, Y. Zhang, Y. Choi, J. Zou, P. Lu (2025). In-the-Flow Agentic System Optimization for Effective Planning and Tool Use (AgentFlow). arXiv:2510.05592
- Z. Lu, Z. Yao, J. Wu, C. Han, Q. Gu, X. Cai, W. Lu, J. Xiao, Y. Zhuang, Y. Shen (2026). SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization. arXiv:2604.02268
- N. Shinn, F. Cassano, E. Berman, A. Gopinath, K. Narasimhan, S. Yao (2023). Reflexion: Language Agents with Verbal Reinforcement Learning. arXiv:2303.11366