skillfed

Dumping every skill into context scores worse than giving the agent none — SkillsInjector recovers it to 58.7%

Notes on SkillsInjector: Dynamic Skill Context Construction for LLM Agents (arXiv:2605.29794) — Yanchao Li, Wanhao Liu, Ben Gao, Jiaqing Xie, Zhehong Ai, Na Zou, Yuqiang Li, Tianfan Fu · 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 retrieval

Skill injection is usually treated as a retrieval problem: rank candidates, keep the top K, paste their descriptions in unchanged. That static treatment turns out to be the bottleneck, not the skills themselves. On one tau2-bench airline task with an 82-skill library, per-skill benefit over a no-skill baseline ranges from -0.20 to +0.40: an insurance-policy skill that shares surface keywords with the request actively hurts, while four unrelated policy-reference skills each help substantially. Feed the whole library in at once and pass rate collapses to 24.8% on average across benchmarks — worse than injecting nothing at all (40.2%).

SkillsInjector fixes this with two trained components instead of a fixed shortlist. A context planner — a small MLP scorer trained on execution-grounded benefit rather than semantic similarity — scores each candidate and admits everything clearing a per-domain threshold, so the injected set size floats task by task instead of being fixed in advance. A set-aware renderer then rewrites each selected description in light of its co-injected neighbors (appending lines like 'Not for: refund_policy_reference, compensation_eligibility_criteria' to disambiguate overlapping skills), distilled from a 235B-parameter teacher into an 8B model to keep rewriting cheap at inference. Across tau2-bench, SkillsBench, and ALFWorld, the combined method posts a 58.7% average pass rate versus 53.6% for the strongest baseline (Graph of Skills) — with the largest single-domain jump on ALFWorld, 82.7% vs. 75.4%.

Key numbers

Average pass rate, SkillsInjector vs. best baseline58.7% vs 53.6%
ALFWorld gain over strongest baseline+7.3 pts
Full-library injection average pass rate24.8% (vs. 40.2% no-skill)
Per-skill benefit spread on one 82-skill task-0.20 to +0.40
Removing the renderer (no rendering)+6 to +8 extra agent messages per task

Skills related to this research

idea-generator Idea Generator walks founders through structured discovery to uncover product concepts grounded in what they already know or do. It captures context through targeted questions, synthesizes patterns into candidate directions, scores each against five key axes, and writes a shareable product-idea.md document that feeds into downstream planning skills.★ 168 threejs-webgl threejs-webgl equips Claude Code with a comprehensive toolkit for creating immersive 3D graphics and WebGL-powered experiences. This skillstack integrates Three.js alongside complementary libraries like GSAP and Babylon.js, enabling developers to craft sophisticated animations and interactive visualizations for modern web applications.★ 618 Technical Diagram Skill Technical Diagram Skill renders system architectures, workflows, sequences, data pipelines, and state machines as self-contained HTML files with dark/light theming, native export to PNG/JPEG/WebP, and dual-theme SVG output. Choose from five diagram types—architecture, workflow, sequence, dataflow, and lifecycle—each with a JSON schema and renderer, or hand-place SVG when command execution is unavailable.★ 157 creating-mermaid-diagrams Create and validate Mermaid diagrams across multiple types—flowcharts for processes, sequence diagrams for system interactions, class and state diagrams for object models and lifecycles, ER diagrams for data relationships, and other specialized formats like Gantt charts. The skill preserves editable source while optionally rendering static SVG assets when needed for documents or slides.★ 8

Related notes

References

  1. SkillsInjector: Dynamic Skill Context Construction for LLM Agents (Li et al., 2026, arXiv:2605.29794)
  2. τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment (Barres et al., 2025, arXiv:2506.07982)
  3. SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks (Li et al., 2026, arXiv:2602.12670)
  4. Graph of Skills: Dependency-Aware Structural Retrieval for Massive Agent Skills (Liu et al., 2026, arXiv:2604.05333)
  5. Lost in the Middle: How Language Models Use Long Contexts (Liu et al., 2024, TACL)