Running Agent Skills on Small Language Models: A POMDP-Based Engineering Guide for Local Agents
Agent Skills has become a popular pattern for extending AI agents, but it was largely designed and validated on massive closed-source models. This article walks through a formalization of Agent Skills as a Partially Observable Markov Decision Process (POMDP), summarizes empirical findings across open-source models from roughly 270M to 80B parameters, and distills practical guidelines for building local agents: model selection, skill descriptor design, budget-aware routing, and evaluation metrics. It concludes that a mid-size open-source model combined with disciplined skill engineering is a viable path for teams constrained by compliance and cost.
1. Background: Why Agent Skills Have Been Effectively Locked to Large Models
Agent Skills, a lightweight capability-extension framework, has become a mainstream paradigm in agent development in recent years: developers package domain knowledge into skill bundles with descriptions, and agents load them on demand at runtime—extending capability boundaries without retraining the model. On large closed-source API models, this mechanism works remarkably well because the models’ strong instruction-following and contextual understanding mask much of the framework’s engineering roughness.
But real-world industrial constraints quickly surface:
- Compliance and data isolation: Domains such as financial risk control, healthcare, and defense often require data to remain on-premises, making continuous calls to public APIs nearly impossible from an audit standpoint;
- Cost and latency: The expense and round-trip latency of high-frequency calls to large-parameter APIs scale exponentially along skill-invocation chains;
- Controllability: Behavioral drift in black-box APIs cannot be managed through versioning, making industrial-grade reproducibility hard to achieve.
This raises a natural core question: Can this skill framework, designed for giant models, be pushed down to locally deployed open-source small language models (SLMs) while delivering comparable performance? A research team from the University of Luxembourg and Princeton University set out to answer exactly this, producing an engineering-oriented formalization and empirical analysis.
2. Formal Foundations: Modeling Agent Skills as a POMDP
To evaluate whether small models “can work,” you first have to turn “can work” from vague intuition into measurable engineering metrics. The researchers abstract the entire Agent Skill system as a constrained controller performing information-seeking in a partially observable world, with the mathematical skeleton of a Partially Observable Markov Decision Process (POMDP).
2.1 Why a POMDP Rather Than an MDP
In a typical skill-invocation flow, the agent cannot directly observe the true “task state”—it cannot see the user’s full intent, the current stage of the task, or environmental facts that have not yet been retrieved. It can only maintain a belief state based on observed history and act accordingly. This “hidden state, limited observation” structure is precisely the standard domain of POMDPs.
The model also introduces explicit information-acquisition actions: the agent can proactively “pay” for better observations, at the cost of consuming a limited context window and attention resources. This turns what was previously implicit context management into a decision dimension that can be modeled, optimized, and evaluated.
2.2 The Triple Representation of a Skill
Each skill is formalized as an abstract triple:
- Textual descriptor: The skill’s name and natural-language description—the only entry point for the agent to decide whether to consult this skill;
- Internal policy: An option-level policy that unfolds over time once the skill is triggered, i.e., a sub-workflow that drives a sequence of consecutive actions;
- Reference mechanism: A Markov kernel that can reveal additional context, tools, and even pointers to other skills—which is the formal basis for skill composition and hierarchical routing.
2.3 The POMDP Five-Tuple State Space
- State S: The hidden task context, including user intent, task stage, and unretrieved environmental facts;
- Observation O: The current user message, available history, and loaded or revealed skills and resources;
- Action A: Four decision types—skill selection, paid context acquisition, skill execution, and environment/tool invocation (plus internal planning and reasoning);
- Belief state b: A Bayesian posterior estimate of the true state, based on observed history and actions.
The value of this modeling is that every skill load and every document expansion is an information-acquisition decision with a cost. Whether a small model is usable reduces to: can it still make sufficiently good information-acquisition and skill-scheduling decisions under limited belief-estimation accuracy?
3. Empirical Design: Stress Tests Across the Full Model Spectrum
To answer the selection question, the research team ran stress tests on real industrial datasets across the full spectrum of open-source models, from roughly 270M to 80B parameters. The elegance of this design lies in covering three key cross-cutting variables:
- Model scale: Parameter count sets the ceiling for belief estimation and instruction following, but does not linearly determine task success;
- Skill library size: More skills dilute descriptor discriminability, stressing the model’s retrieval and judgment;
- Context budget: When the allowance for paid information acquisition is limited, the model must learn to spend it where it matters most.
The measured results show a clear layered pattern: ultra-small models (hundreds of millions of parameters) suffer severe belief drift when skill descriptions are ambiguous, with skill mis-selection rates degrading rapidly as library size grows; mid-range models (a few billion to around ten billion parameters), paired with well-designed descriptors and routing strategies, can approach the task completion rates of large models; and 80B-class models show strong robustness to framework roughness—which, in turn, explains why framework design was neglected in the era of large models.
4. Engineering in Practice: Assembling a Local Agent Under a Limited Budget
Combining the POMDP perspective with the empirical findings, we can distill an actionable localization playbook:
4.1 Model Selection
- Start baseline validation in the 7B–14B range, which offers the best capability-to-VRAM ratio for local deployment;
- Don’t blindly trust parameter count: a mid-size model fine-tuned for skill-descriptor alignment often outperforms a larger unaligned model.
4.2 Descriptors Are the Retrieval Entry Point
Skill descriptors are the agent’s only channel for observing skills, so follow these rules:
- Keep each description focused on a single responsibility, avoiding polysemy and overlapping semantics;
- Explicitly state “when not to use this skill” in the description, reducing mis-triggering caused by belief drift;
- Keep skill reference relationships shallow, avoiding deep pointer chains that silently blow up the context budget.
4.3 Routing and Context Budget Control
By treating information acquisition as decision-making under a budget constraint, you can implement a simple two-level router:
def route(task, skills, budget):# Level 1: coarse filtering based on descriptors only, zero context costcandidates = embed_rank(task, [s.descriptor for s in skills], top_k=3)# Level 2: expand references on demand within budget, verify before executingfor skill in candidates:if budget.remaining < skill.reveal_cost:continuebudget.spend(skill.reveal_cost)skill.reveal() # Reveal referenced context and toolsif skill.confidence(task) > THRESHOLD:return skill.execute(task)return fallback_plan(task)
Key principle: coarse filtering costs nothing, expansion is priced, and belief confidence is verified before execution.
4.4 Evaluation and Monitoring
For local deployments, establish three groups of metrics for continuous observation: skill-selection accuracy, context-budget consumption distribution, and end-to-end task success rate. These correspond respectively to belief quality, information-acquisition strategy, and overall policy return in the POMDP framework, forming the basis for closed-loop tuning.
5. Conclusion
The greatest contribution of this research is not proving that “small models can work,” but providing a language for decomposing agent behavior into measurable decisions. Once skill selection, context acquisition, and execution scheduling are brought into a POMDP framework, “how big the model is” is no longer the only variable—descriptor quality, routing strategy, and budget control are equally engineerable levers. For teams constrained by both compliance and cost, a localization route built on a mid-size open-source model plus fine-grained skill engineering has been demonstrated to be viable, both mathematically and in practice.
