# Adaptive Skill Granularity for Coding Agents: Runtime Routing and Macro-to-Micro Recovery

arXiv: https://arxiv.org/abs/2610.31461 · HTML: https://mlsanity.com/paper/2610.31461/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Placed in Agent skill learning and evolution, one of 16 directions in LLM agents and tool use.
- Builds on 21 of its 27 references that are in the map.
- Submitted 22 Oct 2026.

## Placed in

- LLM agents and tool use / [Agent skill learning and evolution](https://mlsanity.com/agents/agent-skill-learning-and-evolution/)

## Builds on (most cited first, 21 of 21)

- [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://mlsanity.com/paper/2310.06770/) (2023)
- [EvoSkill: Automated Skill Discovery for Multi-Agent Systems](https://mlsanity.com/paper/2603.02766/) (2026)
- [Agent Skills for Large Language Models: Architecture, Acquisition, Security, and the Path Forward](https://mlsanity.com/paper/2602.12430/) (2026)
- [SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering?](https://mlsanity.com/paper/2603.15401/) (2026)
- [SkillRouter: Skill Routing for LLM Agents at Scale](https://mlsanity.com/paper/2603.22455/) (2026)
- [Graph-of-Skills: Dependency-Aware Structural Retrieval for Massive Agent Skills](https://mlsanity.com/paper/2604.05333/) (2026)
- [SkillCraft: Can LLM Agents Learn to Use Tools Skillfully?](https://mlsanity.com/paper/2603.00718/) (2026)
- [A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications](https://mlsanity.com/paper/2605.07358/) (2026)
- [CODESKILL: Learning Self-Evolving Skills for Coding Agents](https://mlsanity.com/paper/2605.25430/) (2026)
- [HiMAC: Hierarchical Macro-Micro Learning for Long-Horizon LLM Agents](https://mlsanity.com/paper/2603.00977/) (2026)
- [Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills](https://mlsanity.com/paper/2606.07412/) (2026)
- [Compositional Skill Routing for LLM Agents: Decompose, Retrieve, and Compose](https://mlsanity.com/paper/2606.18051/) (2026)
- [SkillComposer: Learning to Evolve Agent Skills for Specification and Generalization](https://mlsanity.com/paper/2606.06079/) (2026)
- [Formal Skill: Programmable Runtime Skills for Efficient and Accurate LLM Agents](https://mlsanity.com/paper/2605.19604/) (2026)
- [AgentBeats: Agentifying Agent Assessment for Openness, Standardization, and Reproducibility](https://mlsanity.com/paper/2606.13608/) (2026)
- [Automating SKILL.md Generation for Computer-Using Agents via Interaction Trajectory Mining](https://mlsanity.com/paper/2606.20363/) (2026)
- [SkillAudit: From Fixed-Suite Benchmarking to Skill-Centered Assessment](https://mlsanity.com/paper/2606.22613/) (2026)
- [RigorBench: Benchmarking Engineering Process Discipline in Autonomous AI Coding Agents](https://mlsanity.com/paper/2606.22678/) (2026)
- [From Coarse to Fine: Self-Adaptive Hierarchical Planning for LLM Agents](https://mlsanity.com/paper/2604.23194/) (2026)
- [Diagnosing LLM Arbitration Behavior over Pre-evidence Epistemic States in RAG-based Fact-Checking](https://mlsanity.com/paper/2606.01120/) (2026)
- [Attributing Structured-Output Gains in Function Calling: Interface Alignment versus Procedural Transfer](https://mlsanity.com/paper/2607.02595/) (2026)

## Abstract (arXiv)

Reusable skills allow large language model agents to package task-specific procedures, tool affordances, and execution guidance into modular units. Prior work has largely studied how agents retrieve, compose, or synthesize skills before execution. In coding agents, however, execution poses an additional runtime control problem: the same task may be solved through primitive tool calls, macro skills, or hybrid execution that starts with a macro and falls back to micro-level recovery. We introduce Adaptive Skill Granularity, a framework that treats skill granularity as an action-abstraction policy conditioned on task structure, execution state, and macro-skill failures. The system combines a feature-based granularity controller and a finite-state recovery executor. We evaluate the framework with a deterministic coding-agent protocol using verifier-defined success, total cost, and process metrics such as macro adoption, failure recovery, route match, and transition correctness. Results show that fixed macro execution is efficient when applicable but brittle under mismatch, while runtime routing and explicit macro-to-micro recovery improve robustness and recover controlled macro failures that fixed-granularity execution leaves unresolved. Our findings suggest that skill libraries for coding agents should be treated not only as retrievable resources, but also as controllable, verifiable, and recoverable execution abstractions.
