Thin Harness, Fat Skills: A Design Principle for Building Scalable AI Agents

    This article explains the "Thin Harness, Fat Skills" design principle for AI agent systems: keeping the runtime framework (harness) minimal and stable while encapsulating domain knowledge and capabilities in modular, automatically loaded skill packages. It covers what a thin harness and fat skills each mean, how they collaborate through an article-editing example, why automatic skill loading matters, and practical tips and common pitfalls for real-world implementation.

    1. The Problem: Why a Clear Design Principle Is Needed

    In the early days of building agentic applications, developers often crammed business rules, domain knowledge, and execution details into a single prompt or a massive amount of framework code. As features multiplied, this “stuff everything in” approach quickly became unmaintainable: changing one rule could ripple across the entire system, adding a new capability required modifying core logic, the context window got crowded out by irrelevant information, and both reasoning quality and response cost degraded simultaneously.

    “Thin Harness, Fat Skills” is a design principle proposed precisely to address this pain point. Its core claim: the framework responsible for orchestration should be as “thin” as possible, while the components carrying domain capabilities should be as “thick” as possible—organized in a modular, composable way. Understanding this principle is a key step toward building scalable agent systems.

    2. What Is a Thin Harness

    The harness is the runtime structure wrapped around the large language model that drives its operation. A “thin” harness takes on only the minimal but necessary responsibilities:

    • Core loop scheduling: Maintains the main loop of “perceive input — decide — call tools — observe results,” without making business judgments.
    • Context management: Assembles and trims the information sent to the model, ensuring relevance.
    • Tool and skill routing: Decides which capability to load based on task intent.
    • Execution and result collection: Invokes scripts or external resources and feeds results back to the model.

    The value of a thin harness lies in stability and generality. It doesn’t care whether you’re doing article editing, data processing, or code generation—it only ensures that “the right capability is delivered to the model at the right time.” This way, the framework itself can remain stable over the long term without frequent changes driven by business needs.

    3. What Are Fat Skills

    Skills are modular capability packages that bundle instructions, scripts, and resources together, allowing an agent to automatically load and use them when needed. A typical skill directory structure looks like this:

    1. my-skill/
    2. ├── SKILL.md # Core instructions (required)
    3. ├── scripts/ # Executable scripts (optional)
    4. ├── references/ # Reference documents (optional)
    5. └── assets/ # Templates and static resources (optional)

    Here, SKILL.md is the entry point, describing in natural language what the skill does, when to use it, and how; scripts/ holds reusable deterministic logic; references/ contains lengthy background material; and assets/ provides templates, samples, and other static assets.

    The “fat” part means this: domain knowledge, judgment criteria, and execution steps—the genuinely complex parts—all live inside the skill rather than being scattered across the framework. Skills therefore become highly cohesive, loosely coupled, independent units that can be written, tested, reused, and replaced individually.

    4. How They Work Together: A Concrete Example

    Imagine you repeatedly need to apply a set of article-editing rules: verify facts, remove clichéd expressions, split overly long sentences, control paragraph length, limit bold-text density, and so on. Restating these rules manually every time is both verbose and a waste of context.

    After packaging these rules into an “article editing” skill, the interaction becomes dramatically simpler:

    1. # Before: a verbose prompt (illustrative)
    2. Please check factual accuracy, remove clichéd expressions,
    3. split long sentences, keep paragraphs to 3–5 lines on a
    4. mobile screen, and use no more than 1–2 bold spans per
    5. 200–300 words...
    6. # After: a concise invocation
    7. Edit this article for me

    At this point, the thin harness recognizes the “editing” intent, automatically routes to the corresponding skill, loads its complete rule set, and executes it. Users don’t need to memorize the details, and the framework doesn’t need any built-in editing knowledge—this is exactly the payoff of separation of responsibilities.

    5. Why Automatic Loading Matters

    The key phrase is “automatically loaded.” Users don’t have to explicitly declare “enable skill X now”—the system determines which skill to use based on the task description itself. This delivers three benefits:

    1. Context economy: Only the skills relevant to the current task are loaded, preventing irrelevant information from crowding the window and reducing token consumption.
    2. Extensible capabilities: Adding a new capability requires only adding a new skill directory—no changes to the core loop—in line with the open-closed principle.
    3. Behavioral consistency: The same skill executes to a uniform standard across repeated invocations, reducing variance from ad hoc human descriptions.

    6. Implementation Practices and Common Pitfalls

    To put this principle into practice in real engineering, consider these guidelines:

    • Single responsibility: Each skill should solve one category of problems; avoid “do-everything” skills that regress into monoliths.
    • Thin entry, thick references: Keep SKILL.md lean, and push long documents down into references/ to be read on demand.
    • Push determinism down: Logic that scripts can handle reliably should not be left to the model’s improvisation—this improves reproducibility.
    • Composable design: Enable multiple skills to chain together to handle complex multi-step tasks.

    Common pitfalls include: stuffing business rules back into the framework, making the harness “thick” again; skill granularity that is too coarse or too fine, undermining reusability; and neglecting skill testing and version management, which makes capabilities hard to evolve.

    7. Summary

    “Thin Harness, Fat Skills” is, at its core, an engineering principle about responsibility boundaries and modularity: keep the framework generic and stable, and let capabilities evolve independently as thick, self-contained skill packages. By mastering this principle, developers can extend capabilities at low cost and load them on demand while keeping the system maintainable—ultimately building agent systems that are both flexible and reliable.