What Are Agent Skills? A Practical Guide for AI Agent Engineering

    Agent Skills have quickly become one of the most discussed concepts in agent engineering. This article explains what they are, how they relate to tool calling and context protocols, and why they are not a replacement for either. It walks through a minimal skill directory structure with progressive loading, practical guidelines for writing high-quality skills, and the engineering work needed to turn skills from personal tips into team assets, including distribution, evaluation, observability, and governance. It also covers common misconceptions and the boundaries of what skills can solve.

    1. Why “Skills” Became a Hot Topic

    Agent Skills have become one of the most discussed concepts in agent engineering. The reason behind their sudden popularity is not mysterious: LLM-driven agents already have basic planning and execution capabilities, but when tasks move into specific industries and specific workflows, general-purpose assistants often behave inconsistently. The problem is usually not that they cannot do the work, but that they do not know “how this should be done at this company, in this system.”

    The industry is undergoing a shift in focus: away from “stacking more powerful models” and toward “feeding domain knowledge, workflows, and best practices to agents in a structured way.” Agent Skills are the key mechanism supporting this shift. In their open form, they are a set of conventions: using the file system as the carrier, they package “how to do the work well” into resources that agents can discover automatically, combining readable instructions with executable scripts and reference material.

    2. What Skills Actually Are: Breaking Down the Definition

    A widely used definition is that Agent Skills are folders containing instructions, scripts, and resources that agents can discover and load at runtime, enabling them to complete tasks more accurately and efficiently.

    Three easily overlooked points are hidden in this sentence.

    First, the carrier is a folder, not an interface. The core is usually an entry instruction file (commonly named SKILL.md in industry practice) that uses natural language to describe applicable scenarios, constraints, and steps. Scripts, templates, and reference material can sit alongside it.

    Second, it is knowledge, not capability. Skills tell the model “how to do it,” but they are not responsible for providing the primitives that actually do it. Real file reads and writes, network access, and command execution are still handled by the tool layer.

    Third, it is discoverable. An agent does not need to load everything at startup. It first sees a minimal list, decides what is relevant, then expands into details, and only reads attachments when necessary. This design directly addresses the scarcity of the context window.

    3. How Skills Relate to Tool Calling and Context Protocols

    A common misconception is that “Skills will replace the tool calling protocol.” A more accurate view is layering: tools and protocols solve “whether it can be done,” while Skills solve “whether it is done correctly and reliably.”

    To use an analogy, tools and protocols are like the computer, access badge, and various system accounts a new hire receives on day one. They are the prerequisite for doing anything. Skills are like the employee handbook, standard operating procedures, and notes from experienced colleagues. They determine the quality of the output. With accounts but no training, a person still would not know where to start; with a handbook but no accounts, they are equally stuck.

    An open-source community offered a fitting analogy in a discussion: saying Skills replace the tool protocol is like saying pipeline orchestration tools replace the command line. The commands are still what actually execute; orchestration just describes the workflow more clearly. In the same way, Skills are a layer of process and knowledge encapsulation added on top of existing capabilities. The two are complementary, not substitutes.

    From an engineering perspective, this layering brings three direct benefits:

    • Separation of concerns: capability integration is handled by the tool layer, and business standards are handled by Skills, so each can evolve independently.
    • Better reusability: the same set of tools can be reused by different Skills, and the same Skill can migrate across multiple models and host environments.
    • Improved auditability: processes are captured as text, making review, diffs, rollbacks, and ownership clearer.

    4. Directory Structure and Progressive Loading: A Minimal Example

    The physical form of Skills determines their engineering habits. A typical directory can be just a few dozen lines:

    1. my-skill/
    2. ├── SKILL.md # Entry point: name, use cases, steps, constraints
    3. ├── scripts/ # Optional: deterministic logic handled by code, not the model
    4. │ └── check.py
    5. ├── references/ # Optional: specs, field dictionaries, historical cases
    6. └── assets/ # Optional: templates, sample files

    The entry file should contain only “what you must know,” with long content kept external:

    1. ---
    2. name: release-checklist
    3. description: Pre-release checklist for service launches and configuration changes
    4. ---
    5. ## When to use
    6. When the task involves production releases, configuration changes, or rollbacks.
    7. ## Steps
    8. 1. Run scripts/check.py for static validation
    9. 2. Check approval and canary requirements against references/policy.md
    10. 3. Output a change summary and rollback plan
    11. ## Prohibited actions
    12. - Do not skip canary and go straight to full rollout
    13. - Do not execute changes without a rollback plan

    Progressive loading usually happens in three layers: the first layer is the name and description, which stays in context at very low cost; the second layer is the entry body, loaded once the scenario matches; the third layer is scripts and reference material, read on demand. Pushing deterministic logic down into scripts is a key way to control uncertainty. What can be guaranteed by code should not be left to the model to improvise.

    5. Best Practices for Writing High-Quality Skills

    • The description determines the hit rate. Write clearly “when to use it and when not to.” This is the only basis for routing; a vague description is as good as no description.
    • Steps must be executable. Start with verbs and number them in order. Avoid unverifiable phrasing like “try to” or “depending on the situation.”
    • State negative constraints explicitly. Telling the model “what not to do” often reduces incidents more than telling it “what to do.”
    • Define input and output contracts. Specify which parameters are needed and what format the output should take, so upstream workflows can consume it.
    • Keep it small and orthogonal. One Skill should solve one class of problem. Combining multiple Skills is better than one giant Skill.
    • Version it and keep a change log. Skills are assets that will be reviewed, so they should have version numbers and change notes.
    • Apply least privilege. Grant only the credentials, directories, and network scope a script needs. Avoid opening everything by default.

    6. Engineering Adoption: From Local Directory to Team Asset

    When Skills go from personal tips to team assets, four things need to be in place.

    First, distribution. Package-management-style distribution of Skills has recently emerged in the industry, with an install-and-share experience close to dependency package management. This is seen as a signal that Skills are moving from a specification toward a production ecosystem. For a self-built system, you can use an artifact repository or object storage to hold versioned artifacts, and use a manifest file to pin versions so environments are reproducible.

    Second, evaluation. Prepare a set of regression cases for each Skill, covering the normal path, edge cases, and prohibited actions. Turn “whether it was triggered,” “whether steps were followed,” and “whether the output is compliant” into quantifiable metrics and plug them into continuous integration.

    Third, observability. Record which Skill and which version was loaded, at which step it was triggered, and the result and duration. Combined with logging services and monitoring alerts, this helps locate problems, and rollbacks can be done quickly by version when a regression appears.

    Fourth, governance. Establish review, ownership, expiry, and retirement mechanisms to prevent Skills from proliferating into new technical debt. Permissions and keys should be issued through unified key management and least-privilege policies, and never written into the repository.

    In engineering practice related to Baidu AI Cloud, these capabilities are typically used together with general cloud product categories such as container platforms, object storage, message queues, logging services, and monitoring alerts, forming a complete chain of “knowledge assets + runtime foundation + observability loop.”

    7. Common Misconceptions and Boundaries

    • Misconception 1: Skills are the same as prompt templates. Templates are static text, while Skills also include executable scripts and resources, and can be discovered and composed.
    • Misconception 2: With Skills, you no longer need tools. Without tools, the steps in a Skill cannot be carried out.
    • Misconception 3: More is better. Semantic overlap between Skills interferes with each other and actually lowers the hit rate.
    • Boundary: Skills do not solve the model’s capability ceiling, nor do they replace permission and compliance controls. High-risk actions still require human confirmation and auditing.

    8. Conclusion

    The value of Agent Skills lies not in a new term, but in turning “expert experience” into engineering assets that can be versioned, reviewed, and distributed. By understanding the division of labor with the tool layer, mastering the directory conventions and progressive loading, and adding evaluation, observability, and governance, teams can turn scattered individual experience into stable, reusable organizational capability, taking agents from “being able to do the work” to truly “doing the work well.”