Agent Capability Expansion: A Guide to the Thin Harness, Fat Skills Design Pattern

    This article explains the "Thin Harness, Fat Skills" principle for extending AI agent capabilities: keep the execution runtime lightweight and stable, and deliver domain expertise as modular, on-demand skill packages. It covers what a skill package is, how it differs from tool calls and subtasks, a three-layer progressive disclosure structure for controlling context usage, a step-by-step implementation walkthrough, and common anti-patterns with governance recommendations. Readers will learn how to lower context cost, clarify responsibility boundaries, and make capability iteration more controllable.

    Agent Capability Expansion: A Guide to the Thin Harness, Fat Skills Design Pattern

    1. The Problem: Why Agent Capability Expansion Needs a New Paradigm

    As LLM-powered agents move from demos into production, a shared problem has surfaced. Packing every capability into the system prompt makes the context balloon quickly. Turning every capability into an external tool forces the model to repeatedly trial-and-error its way through tool selection. The first approach drives up token cost and dilutes attention; the second produces long call chains and higher error rates.

    The industry has converged on a rule of thumb that has been validated repeatedly, summarized as “Thin Harness, Fat Skills”: keep the execution harness thin and stable, and attach domain capabilities as modular skill packages that load on demand. Here, the “harness” refers to the part of the agent runtime responsible for reasoning, orchestration, and context management. A “skill” is a reusable capability unit that bundles instructions, scripts, and resources. This article is not tied to any specific product. Instead, it abstracts the principle into a general engineering problem: what a capability package actually is, how it divides labor with tool calls and subtasks, and how to implement it in a maintainable way.

    2. What a Capability Package Really Is: Modular, Discoverable, Loaded on Demand

    The core of a capability package is not “a longer prompt” but a delivery unit with a directory structure and metadata. A typical layout looks like this:

    1. my-skill/
    2. ├── SKILL.md # Required: name, when-to-use description, core instructions
    3. ├── scripts/ # Optional: executable scripts for deterministic logic
    4. ├── references/ # Optional: long documents read only when needed
    5. └── assets/ # Optional: templates, styles, examples, and other resources

    It has three key properties:

    1. Modular: capability boundaries are clear, one package solves one class of problem, and packages avoid depending on each other into a “monolithic prompt.”
    2. Discoverable: the metadata states clearly “when to use me,” the runtime uses it to decide whether to load, and the user does not have to specify anything manually.
    3. Loaded on demand: full instructions are injected into the context only when the task intent matches; otherwise only a very lightweight description is retained.

    A common scenario shows the value of this mechanism. Suppose a team has fixed requirements for document quality: verify facts, remove boilerplate phrasing, split overly long sentences, control paragraph length, and limit the density of emphasis markers. Restating these rules in every conversation wastes context and makes omissions likely. Once the rules are captured in a “document review” capability package, the user only needs to express the intent to review, the runtime identifies and loads the matching rules automatically, and output consistency improves markedly.

    3. Progressive Disclosure: A Three-Layer Structure for Controlling Context

    The key engineering technique behind the thin harness is progressive disclosure, which layers information by “loading cost”:

    • Layer 1: Meta description. Always visible, containing only the name and applicable conditions. It consumes very little context and is used for routing decisions.
    • Layer 2: Core instructions. Loaded after a match, containing steps, constraints, and criteria. This is the body of the capability package.
    • Layer 3: Attached resources. Read on demand during execution, such as long specification documents, field dictionaries, and template files.

    This layering yields two direct benefits. First, context usage scales with task complexity rather than with the total number of capabilities. Second, when the number of capability packages grows to dozens or even hundreds, the routing layer stays lightweight and does not degrade into “more capabilities, slower responses.”

    4. Dividing Responsibilities with Tool Calls and Subtasks

    The three are often confused, but their responsibilities differ. One sentence captures the distinction: tools do the work, capability packages define how the work is done, and subtasks isolate the context in which work happens.

    Dimension Tool call Capability package Subtask
    Problem solved Interacting with external systems, executing deterministic actions Capturing methodology and domain constraints Context isolation and parallel progress
    Form Interface / function signature Instructions + scripts + resource directory Independent reasoning context
    Loading Registered in the tool list Progressively loaded by intent Spawned by the main flow
    Typical misuse Forcing prompt rules into tool descriptions Piling large-scale data into a capability package Using a subtask to replace rules that should be shared

    The practical recommendation: push deterministic, verifiable logic down into scripts or tools; write judgment-based, experience-based rules into capability packages; and introduce subtasks only when a subproblem generates a large amount of intermediate information that must be kept from polluting the main context. Combining the three rather than substituting one for another is what controls cost while preserving quality.

    5. Implementation: Building a Usable Capability Package from Scratch

    5.1 Write the Meta Description

    The meta description determines routing accuracy. State clearly “what it does” and “when to use it,” and avoid vague adjectives.

    1. ---
    2. name: doc-review
    3. description: Fact-checking and concise rewriting for Chinese technical documents; use when the user asks for review, polishing, or shortening.
    4. ---
    5. # Review workflow
    6. 1. Flag uncertain factual statements and list the items to verify one by one;
    7. 2. Remove boilerplate openings and vague summaries;
    8. 3. Split long sentences so that no single sentence has more than two clauses;
    9. 4. Output a change list and the full revised text.

    5.2 Put Deterministic Logic in Scripts

    Anything that can be decided by code should not be left to the model’s “feel.” For example, counting paragraph length or detecting emphasis marker density should be handled by a script that returns structured results, leaving the model to explain and decide:

    1. import re, sys
    2. def audit(text: str) -> dict:
    3. paras = [p for p in text.split("\n\n") if p.strip()]
    4. long_paras = [i for i, p in enumerate(paras) if len(p) > 220]
    5. bold_hits = len(re.findall(r"\*\*[^*]+\*\*", text))
    6. return {"paragraphs": len(paras), "long_paragraphs": long_paras, "bold_count": bold_hits}
    7. if __name__ == "__main__":
    8. print(audit(sys.stdin.read()))

    5.3 Externalize Resources and Templates

    Put long specifications, glossaries, and output templates in an attached directory and read them only when needed. This keeps the body of the capability package lean while supporting reuse of “one capability, multiple template sets.”

    5.4 Evaluation and Iteration

    Build a small regression set covering typical and edge-case tasks, and track three metrics: whether routing hits, whether the output satisfies hard constraints, and whether the context increment stays controlled. Re-run it after every change to the meta description or instructions to avoid “fixing one scenario and breaking three others.”

    6. Common Anti-Patterns and Governance Recommendations

    • Monolithic capability package: one package holds several unrelated domains, making the description blurry and routing inaccurate. Split by domain.
    • Description disconnected from implementation: the meta description promises capabilities that the actual instructions do not deliver, so the model loads it incorrectly and output drifts. Keep the two evolving in sync.
    • Treating data as a resource: placing large-scale data in the package directory makes read cost spiral. Data belongs in general-purpose infrastructure such as object storage, message queues, or databases, pulled on demand by scripts.
    • No version management: package changes cannot be traced. Keep packages in a code repository with semantic versioning and change records.
    • Blurred permission boundaries: when scripts can access external systems, define least privilege and audit logs, and use logging services plus monitoring alerts to make actions traceable.

    7. Conclusion

    “Thin Harness, Fat Skills” is not the exclusive design of any one product. It is a structural conclusion that emerges naturally as agent engineering matures: keep stability in the runtime, hand variability to capability packages, and hand determinism to code. For developers, this means lower context cost, clearer responsibility boundaries, and a more controllable iteration cadence. For enterprise users, it means domain experience can be captured, reused, and governed instead of scattered across one lengthy prompt after another. When building in the cloud, pairing capability packages with general-purpose infrastructure (container platforms, object storage, logging services, monitoring and alerting) forms a capability expansion system that can keep evolving.