OpenWebUI Skills and the Lazy Loading Trap: What I Learned Building a Turn-Based AI Skill
09 Apr 2026I spent an afternoon building a multi-phase, conversational cover letter writing skill in OpenWebUI. The idea was straightforward: a skill that walks you through the writing process one step at a time, confirms its understanding of the job before drafting anything, asks about tone, presents paragraph options, and runs a validation checklist at the end. Seven phases, one question per turn, no jumping ahead.
It did not work the way I expected. And figuring out why taught me something worth writing down.
What OpenWebUI Skills Actually Are: How Agent Orchestrators Handle the Same Tradeoff Differently
Before I get to the problem, it helps to understand what an OpenWebUI Skill is, because the name is a little misleading.
A Skill in OpenWebUI is not executable code. It is a markdown file, a plain-text instruction set with a YAML frontmatter block that gives it a name and a description. You write your instructions in markdown, load it into the Skills workspace, and attach it to a model. The model then has access to those instructions when it needs them.
The operative phrase is “when it needs them.” And how that decision gets made is where the real story is.
Every agent orchestration system faces the same underlying constraint: context windows are finite, and instructions, tools, memory, conversation history, and retrieved documents all compete for the same space. No serious orchestration framework loads everything upfront. The question is who or what decides what gets loaded and when.
Framework-controlled retrieval is how most enterprise orchestrators handle it. LangChain, LlamaIndex, and Amazon Bedrock Agents all make retrieval decisions programmatically. The framework routes the request, determines which tools or documents are relevant, and injects them before the model ever sees the prompt. The model does not have to ask for anything. The orchestration layer handles it deterministically. You might retrieve the wrong context, but you do not get silent non-retrieval. AutoGen and CrewAI take a similar approach at the agent level. Each agent’s instructions are baked into its system prompt at initialization, so there is no mid-conversation lazy loading of instructions at all. The context management happens in the architecture, not at runtime.
Model-controlled retrieval is what OpenWebUI does. The model receives a manifest (just the skill name and description) and a built-in tool called view_skill. When the model determines it needs the full instructions, it calls that tool and loads them. The model is the decision-maker.
This is a meaningful architectural choice, not an oversight. It gives the model more autonomy and keeps the framework lightweight. On a capable model with reliable native function calling, it works exactly as designed. The model reads the manifest, recognizes when a skill is relevant, calls view_skill, and loads the instructions on demand.
The failure mode is specific: it breaks down when the model cannot reliably trigger function calls. Most people running OpenWebUI locally are using quantized models: 7B, 13B, 30B parameters, compressed to run on consumer hardware. Many of these models do not support native function calling reliably, and some do not support it at all. So the model sees the manifest, cannot call view_skill, and proceeds to invent behavior based on whatever the description implies.
This is not a problem shared equally across orchestrators. Frameworks that keep retrieval in the framework layer sidestep it entirely. The model’s function calling capability is irrelevant because the framework never asks the model to make that call. OpenWebUI’s design exposes the capability gap because it delegates the decision to the model.
The tradeoff is real in both directions. Framework-controlled retrieval is more reliable but requires more infrastructure and assumes you know in advance what context each request needs. Model-controlled retrieval is more flexible and keeps the framework simpler, but it only works as well as the model’s ability to recognize what it needs and ask for it. OpenWebUI made a bet on model autonomy. For users running capable models via API, that bet pays off. For users running small local models (which is most of OpenWebUI’s audience) it does not.
The Lazy Loading Design
When you attach a skill to a model in OpenWebUI, the full content of that skill is not injected into the context window by default. What gets injected is just the manifest: the skill’s name and its description. That is it. A few words, not the full document.
The model receives a built-in tool called view_skill. When it determines it needs the full instructions for a skill, it calls that tool, which loads the content on demand.
This design keeps the context window clean across a session. If you have several skills attached to a model, only the manifests are present by default. Full content loads only when the model signals it needs a particular skill. For users with multiple skills across different task types, this is a meaningful efficiency. The context stays focused on what is actually relevant to the current conversation rather than front-loading every instruction set regardless of whether they apply.
Two Tool Calling Modes: Why It Matters for Skills
Before getting to where things broke down in my specific case, it helps to understand that OpenWebUI offers two fundamentally different ways for models to interact with tools. This distinction turns out to be central to why skill lazy loading works or does not work.
Default Mode is the legacy approach. OpenWebUI manages tool selection itself by injecting a prompt template that guides the model to output a tool request as text. The model does not need native function calling support. It just needs to follow a prompt pattern. This means it works with practically any model, including older and smaller local models that have no function calling capability at all.
The cost of that compatibility is real. Because the injected prompt template changes every turn, Default Mode breaks the KV cache, the mechanism LLM inference engines use to reuse computed key-value pairs across turns. Every message in a conversation requires recomputing from scratch, which increases latency and token cost on every single turn. Default Mode also does not support built-in system tools. Memory, notes, knowledge base retrieval, chat history, and critically, view_skill. None of these are available. The model in Default Mode cannot call view_skill at all, regardless of whether skills are attached.
Native Mode, also called Agentic Mode, uses the model’s built-in function calling capability. Tool definitions are sent as structured parameters rather than injected into the prompt, which keeps the KV cache intact and reduces latency. It supports the full set of built-in system tools, including view_skill, which is how skill lazy loading is supposed to work. It also enables multi-step tool chaining, where the model can reason, call a tool, evaluate the result, and decide what to do next, a cycle OpenWebUI calls Interleaved Thinking.
The tradeoff table is worth stating plainly:
| Default Mode | Native Mode | |
|---|---|---|
| Model compatibility | Any model | Requires function calling support |
| KV cache | Breaks every turn | Cache-friendly |
| Latency | Higher | Lower |
Built-in system tools (including view_skill) |
Not available | Full access |
| Multi-step tool chaining | Limited | Supported |
| Reliability with small models | More consistent | Often unreliable |
This creates a compounding problem for skill lazy loading specifically. view_skill is a built-in system tool, which means it only exists in Native Mode. If you are running Default Mode (which is the default for backwards compatibility with smaller models) skill lazy loading is architecturally impossible. The tool does not exist. The model cannot call what it cannot see.
Switch to Native Mode, and view_skill becomes available. But now you need the model to reliably call it when appropriate, which requires the kind of structured function calling that small quantized models frequently get wrong. The docs are direct about this: small local models under 30B parameters often produce malformed JSON, fail to follow strict state management, or make poor tool selection decisions in Native Mode. The recommended models for reliable agentic behavior are frontier-class, GPT-4 class or equivalent.
So the full picture is this: skill lazy loading requires Native Mode, and Native Mode requires a capable model. For the typical OpenWebUI user running a quantized local model, both conditions are often unmet simultaneously.
Where It Breaks Down
What actually happens when both conditions fail is instructive. The model sees the skill manifest (just the name and description) and proceeds to invent behavior based on whatever the description implies. It never calls view_skill. The full instructions never load. In my case, the Turn Test skill description said it asks questions one at a time. The model read that, decided it was supposed to ask a question, and asked me about my favorite color. It was following the spirit of the description while completely ignoring the actual protocol I had written. The skill file was correct. The format was correct. But the model never read it.
The $ Mention: Per-Task Injection
OpenWebUI has a second way to inject skills: the $ mention. Type $ in the chat input, pick a skill from the picker, and the full content of that skill is injected directly into the system prompt for that message. No lazy loading, no view_skill, no function calling required.
I tested this and the model followed the turn-based protocol correctly when the skill was injected this way. It works on any model, regardless of function calling support.
The scope is per-message. The full instructions land in the context for that turn but do not persist as a standing system instruction. By the next turn the model is operating without them. For a single-turn task (format this output, follow these writing guidelines for this draft, run this analysis) the $ mention is the right tool. For a multi-turn protocol that needs to stay active across an entire session, it is the wrong one.
Matching Execution to Your Setup
The real lesson here is not “use the system prompt instead.” The real lesson is that the skill and tool architecture in OpenWebUI works. You just need to execute it in a way that matches what your hardware and model can actually do.
In my case, the fix was straightforward: switch to Native Mode and run a larger model. I have access to a 120B parameter model with a large enough context window to support reliable tool calling. Enabling Native Mode gave view_skill access, and the larger model had the function calling capability to use it correctly. The skill lazy loading worked as designed once those two conditions were met.
Not everyone has that option. Running a 120B model locally requires serious hardware. For users on consumer GPUs with smaller quantized models, Native Mode may be unreliable or impractical, and a different execution path makes more sense.
Three viable paths, depending on your setup:
Path 1: Native Mode with a capable model (recommended if you have the hardware)
Enable Native Mode in Admin Panel or per-chat settings. Run a model with reliable function calling, 70B or larger locally, or any frontier model via API. Skills lazy load correctly via view_skill. The full system tool set is available. This is the intended experience.
Path 2: System Prompt for persistent multi-turn protocols (works on any model) Paste the skill content directly into the System Prompt field on your model’s settings page. The instructions are injected at the start of every conversation and stay active for the entire session. No function calling required, no lazy loading involved. This is the right path for conversational protocols that need to govern every turn: cover letter builders, structured writing workflows, anything where the instructions need to be always on. The tradeoff is that the instructions consume context window space permanently, which matters more on smaller models.
Path 3: $ mention for single-turn or per-task injection (works on any model)
Type $ in the chat input to inject a skill’s full content into that specific message. No function calling required. Works immediately. The limitation is that the injection does not persist. By the next turn the model is operating without it. This is the right path for tasks that fit in a single response: format this output, follow these writing guidelines for this one draft, run this analysis.
The skill and tool functionality OpenWebUI offers is genuinely powerful regardless of which path you are on. The architecture is sound. What changes is how you wire it up based on what your model can reliably do. Knowing the difference between the three paths (and why each one exists) is what lets you build skills that actually work rather than skills that look correct but silently fail.
What This Means for Skill Design
The lazy loading architecture has a useful implication for how you write skills: your description field matters more than you might think.
For model-attached skills on capable models with function calling, the description is what the model uses to decide whether to load the full skill. A vague or generic description means the model may never load the instructions even when they are relevant. A precise, specific description that clearly signals when the skill applies increases the chances the model reaches for it correctly.
For smaller models without function calling, the description is effectively all the model ever sees. In that case, writing a tight description that captures the most critical behavioral instructions, not just what the skill is, but what the model should do. This gives you a partial fallback even when the full content never loads.
The Bigger Picture
What this whole experience revealed is a genuine tension in local AI tooling right now.
The features that make AI assistants most useful (persistent context, multi-turn protocols, complex instruction sets) are also the features that are most expensive in terms of context window space and most dependent on model capability. OpenWebUI’s lazy loading is an honest attempt to manage that tension. The skill architecture is well designed. The three execution paths exist because the user base spans a wide range of hardware and model capability, and no single approach works equally well across all of it.
The practical takeaway is not that one path is better than the others. It is that the right path depends on what your model can actually do. Native Mode with a capable model is the intended experience and delivers the full capability of the skill system. The system prompt approach works for persistent protocols on any model but trades context efficiency for reliability. The $ mention works for single-turn tasks on any model with no tradeoffs at all.
Build the skill right. Then wire it up to match the model.
This post came out of building a turn-based cover letter writing skill for my job search. The skill itself (a seven-phase conversational protocol that reads a job posting, confirms understanding, workshops paragraph options, and runs a validation checklist) works correctly once Native Mode is enabled and the model is capable enough to handle reliable function calling. The path to getting there taught me more about how OpenWebUI actually works than building the skill itself did.