Extending LLM External Capabilities: Designing Skill Packs and Tool Protocols
Large language models often require access to external systems and internal knowledge to handle complex, multi-step tasks. This article explores two primary approaches to LLM external capability expansion: tool calling protocols and modular skill packs. We differentiate their abstraction levels, detail the file system design and runtime mechanism for skill packs, and outline key engineering practices regarding permissions, versioning, observability, and testing. By treating tools as execution primitives and skill packs as process organizers, developers can build a controlled, layered system that efficiently manages context budgets while scaling LLM capabilities from proof-of-concept demonstrations to stable production environments.
Extending LLM External Capabilities: Designing Skill Packs and Tool Protocols
1. Problem Background: Why LLMs Need “Plug-ins”
Large language models exhibit strong language understanding and generation capabilities, but they encounter three main boundaries in real-world business scenarios: they cannot directly access external systems; they lack knowledge of internal organizational processes, standards, and private data; and they struggle to reliably execute complex, multi-step tasks that require resource referencing and result validation through single-prompt interactions.
To overcome these boundaries, engineering practices typically rely on “external capability expansion.” There are two common paths: tool calling protocols, which abstract external actions into functions or interfaces that the model can select; and modular skill packs, which bundle the instructions, scripts, templates, schemas, and reference materials needed for a specific task into a dynamically loadable directory. Both approaches aim to grant models external capabilities within a controlled scope, but they differ in abstraction level, context consumption, and governance focus.
2. Conceptual Boundaries: Tool Protocols vs. Skill Packs
A tool calling protocol is closer to an “action registry.” Each tool is typically defined by a name, description, parameter schema, and execution endpoint. The model selects a tool, generates parameters, and the runtime executes the tool and returns the result. It answers the question: “What actions can the model call?”
A skill pack is closer to a “task capability pack.” In addition to executable scripts, it may include process instructions, output templates, validation rules, reference documents, and examples. It answers the question: “How does the model complete a category of tasks in a repeatable manner?” A single skill can invoke multiple tools, or it may not invoke any tools at all, relying solely on instructions and templates.
A simple rule of thumb to distinguish them: if a capability is an atomic, clearly bounded, and parameterized action, it is suitable for encapsulation as a tool; if a capability is a composite task requiring process constraints, template outputs, or resource referencing, it is suitable for a skill pack. The two are not mutually exclusive but rather layered: tools provide execution primitives, while skill packs organize task workflows.
| Dimension | Tool Calling Protocol | Modular Skill Pack |
|---|---|---|
| Abstraction Level | Single action, function-level | Task-level, process-level |
| Context Consumption | Tool descriptions resident or injected on-demand | Lightweight metadata preloaded, full content read on-demand |
| Reusability Granularity | Parameterized calls | Holistic reuse of instructions, scripts, templates, resources |
| Governance Focus | Parameter validation, permissions, timeouts | Versioning, resources, script security, process correctness |
| Relationship to the Other | Can be called by skills | Can orchestrate multiple tools |
3. Skill Pack File System Design
The core concept of a skill pack is “using directories to carry capabilities.” Taking a document understanding and editing skill as an example, the directory can be structured as follows:
document-skill/skill.mdscripts/extract.pyedit.pytemplates/report.mdschemas/output.jsonreferences/style-guide.md
Here, skill.md is the skill manifest file, typically starting with a YAML frontmatter to declare necessary metadata. For example:
---name: document_processingdescription: Use when reading, extracting, or editing documents is required; supports templated output and format validation.version: 1.2.0entry: scripts/run.pyresources:- templates/report.md- schemas/output.jsonpermissions:filesystem: read-writenetwork: none---
The above code is a design illustration, not a fixed interface for a specific platform. The key points are: name and description are used for capability discovery, version for governance, entry points to the execution entry point, resources declares optional assets, and permissions expresses the minimum privilege boundary.
Metadata should be concise and accurate. At startup, the runtime can preload only the names and descriptions of all installed skills into the system prompt, letting the know “what capabilities exist and when to use them.” The actual instructions, scripts, and templates are loaded only after a task is matched. This progressive disclosure approach significantly reduces resident context overhead, allowing the system to host numerous skills without loading all content at once.
4. Runtime Mechanism: Discovery, Matching, Loading, Execution, Recycling
A practical skill runtime typically involves five phases:
- Discovery: Scan installed skill directories, read metadata, and build a capability index.
- Matching: Determine whether to load a skill based on the user’s task and metadata description. Matching can be performed by the model, or assisted by rules or retrieval.
- Loading: Load only the instruction body and necessary resources for the selected skill, preventing irrelevant content from entering the context.
- Execution: Follow skill instructions to invoke scripts or tools, pass parameters, collect results, and validate against the output schema.
- Recycling: After task completion, release temporary resources, record logs and metrics, and cache reusable results if necessary.
The emphasis here is not simply “dynamic loading” but context budget management. As skill packs grow larger, it becomes critical to layer metadata, instructions, reference materials, and execution scripts. Metadata handles discovery, instructions handle the process, resources provide details, and scripts ensure deterministic execution. The model only sees the necessary layer when needed.
5. Engineering Implementation Essentials
1. Permissions and Security
Skill packs may contain scripts and resources, so they must default to least privilege. Capabilities such as file read/write, network access, and command execution should be explicitly declared in the metadata and strictly enforced by the runtime. Third-party skill packs should undergo signing, auditing, and supply chain verification. Script execution should utilize sandboxes, timeouts, and resource limits. Because descriptions may enter the system prompt, it is also necessary to prevent metadata injection and resource whitelist bypasses.
2. Versioning and Composability
Skill packs should use semantic versioning, paired with lock files to pin dependencies. Skills should compose through stable interfaces to avoid implicit coupling. Upgrades should preserve rollback capabilities, and any changes to metadata descriptions should trigger a re-evaluation of matching accuracy.
3. Observability
It is recommended to log structured data across the discovery, matching, loading, execution, and validation phases. This includes which resources were loaded, which tools were called, execution time, error codes, and output validation results. This ensures you can pinpoint whether a failure was due to a mismatch, over-loading, or execution error.
4. Testing and Evaluation
Skill packs should have offline test cases: input fixtures, expected outputs, failure cases, and regression tests. Evaluation metrics may include task success rate, context consumption, execution time, number of tool calls, and output compliance rate. For process-driven skills, exception branches and degradation paths should also be tested.
6. Common Pitfalls and Best Practices
Common pitfalls include: simply wrapping all tools as skills, leading to abstraction layer confusion; writing overly verbose metadata descriptions that increase context burden; dynamic loading without caching or whitelists; overly broad skill permissions; and outputs lacking schema validation. Better practices include: keeping atomic actions at the tool layer and encapsulating only composite tasks as skills; keeping metadata short and precise; loading resources on-demand; strictly validating execution results; and ensuring skill entry points are idempotent and support failure degradation.
7. Conclusion
Tool calling protocols and modular skill packs solve two distinct problems: executable actions and reusable task processes. The former provides execution primitives, while the latter organizes instructions, scripts, and resources, controlling context costs through progressive loading. In engineering practice, the two should be treated as a layered system: use tools to guarantee execution boundaries, use skill packs to ensure process repeatability, and secure long-term maintainability through permissions, versioning, observability, and testing systems. Through this approach, LLM external capability expansion can transition from proof-of-concept demos to stable production.
