Agent Skills: Turning AI from a New Hire into an Experienced Teammate

    This article explains how Agent Skills package a team's tacit knowledge into modular, versionable assets that AI agents can load on demand. It covers what a skill package is, how to structure it with progressive disclosure, how to write descriptions and steps that trigger reliably, common use cases, and the governance, evaluation, and security practices needed to maintain skills as code.

    1. The Problem: An Agent’s Limits Are About “Hands-On Experience,” Not Intelligence

    Coding assistants and desktop agents have improved quickly over the past year, yet many teams run into the same issue on real projects: the demo looks great, but the agent becomes hard to use once it meets your own codebase, conventions, and workflows. The cause is usually not weak reasoning. It is that the agent lacks two things: project context and executable operating conventions.

    An agent system can be understood as three layers:

    • The model is the brain, responsible for understanding intent, reasoning, and generation.
    • The agent runtime is the body, responsible for session management, tool calls, permissions, and execution.
    • Skills are the hands, turning “how to do this” into repeatable steps.

    An agent without skills behaves like a new hire: you keep explaining directory conventions, commit rules, test commands, and release procedures. An agent with skills behaves more like a colleague you have worked with for years: it is useful out of the box, knows where the boundaries are, and knows which logs to check first when something breaks. This article is not about a specific product. It is about an engineering practice that is becoming an industry-wide pattern: packaging a team’s tacit knowledge into skill packages an agent can load directly. The same approach applies in environments that provide model services, container platforms, log services, and monitoring and alerting, such as Baidu AI Cloud, and it is not tied to any particular vendor.

    2. What a Skill Package Actually Is

    A skill package is a modular way to package capabilities. It uses a conventionally named instruction file as the entry point, along with scripts, templates, and reference material, to tell the agent what scenario it applies to, what steps to follow, and which resources to use for a class of tasks.

    At its core, it is a bundle of three things:

    1. Trigger conditions (when to use it): a natural-language description of where it applies and where it does not, so the agent can decide when to invoke it.
    2. Execution flow (how to do it): the task broken into ordered steps, including checkpoints, fallback strategies, and definitions of the outputs.
    3. Domain knowledge (what to know): naming conventions, directory structure, interface habits, common pitfalls, and acceptance criteria.

    Compared with “writing a longer prompt,” the key difference is that a skill package is a file-based engineering asset: versionable, reusable, and testable. A prompt is often one-off and only valid within a given context. A skill package goes into the code repository, where it can be reviewed, rolled back, and checked by CI.

    3. Directory Structure and Progressive Disclosure

    A maintainable skill package usually looks like this:

    1. skills/
    2. release-hotfix/
    3. SKILL.md # Entry point: name, description, use cases, main flow
    4. steps/
    5. verify.md # Detailed steps, loaded on demand
    6. rollback.md # Fallback plan
    7. templates/
    8. changelog.md # Output template
    9. scripts/
    10. check.sh # Executable validation script
    11. references/
    12. conventions.md # Excerpts from team conventions

    The core design principle is progressive disclosure: at startup, the agent loads only each skill’s name and description (metadata). Once a task matches, it reads the body of SKILL.md, and only loads sub-documents and scripts when necessary. This has three benefits: it controls context usage, reduces false triggers, and lets a large knowledge base expand on demand. When the number of skills grows to dozens, this mechanism is almost mandatory.

    4. Writing Guidelines: The Key to Reliable Triggering

    Description quality determines the hit rate. A description should state both what the skill does and what it does not do, and avoid abbreviations that only make sense inside the team.

    1. ---
    2. name: api-add-endpoint
    3. description: Use when adding a read-only query endpoint to a business service; includes layered validation, unit tests, and documentation updates. Do not use for database schema changes or authorization model changes.
    4. ---
    5. ## Steps
    6. 1. Read references/conventions.md to confirm layering and naming conventions.
    7. 2. Define request/response models in the interface layer, keeping them backward compatible.
    8. 3. Implement the service-layer logic; accessing storage directly from the interface layer is prohibited.
    9. 4. Add unit tests covering two edge cases: empty results and out-of-range parameters.
    10. 5. Run scripts/check.sh, and commit only after everything passes.
    11. ## Acceptance
    12. - 100% test pass rate
    13. - Change notes written into templates/changelog.md

    A few practical points:

    • Single responsibility: one skill solves one class of task; avoid a “do-everything skill” that causes trigger confusion.
    • Verifiable steps: each step should produce a checkable output, not vague instructions like “optimize the code.”
    • Explicit boundaries: state prohibited actions and high-risk operations that require human confirmation.
    • Separate resources from logic: put long reference material in references and keep logic in SKILL.md.
    • Prefer scripts: if a check can be scripted, do not rely on natural-language description; the more deterministic, the more stable.

    5. Common Use Cases

    • Development workflows: adding endpoints, fixing defects, writing unit tests, code review checklists, release and rollback.
    • Data and operations: log search approaches, dashboard interpretation, initial alert triage, capacity assessment templates.
    • Knowledge capture: onboarding paths for new hires, glossaries, key takeaways from past incident reviews.
    • Content and analysis: report structure templates, data definition notes, conclusion validation checklists.

    To judge whether a scenario is worth turning into a skill package, use three criteria: it recurs, its steps are relatively stable, and it has clear acceptance criteria. The payoff is highest when all three are met.

    6. Governance, Evaluation, and Security

    Once a skill package enters the repository, it is a code asset and needs governance:

    • Versioning and review: changes go through the normal review process, with the ability to roll back.
    • Evaluation sets: prepare several typical requests and expected outputs for each skill, and regression-test hit rate and output quality.
    • Least privilege: grant scripts only the permissions they need, and force human confirmation for high-risk actions.
    • Sensitive data isolation: never put keys or connection strings in skill documents; reference configuration or key management capabilities instead.
    • Observability: combine log services with monitoring and alerting to track invocation counts, failure reasons, and average duration, and use that data for continuous improvement.

    7. Conclusion

    Moving from “knowing how to ask AI” to “knowing how to teach AI” is an upgrade in the user’s role. Skill packages turn a team’s repetitive work and tacit experience into reusable, testable, and iterable digital capabilities, gradually turning an agent from a new hire who needs coaching into a well-coordinated teammate. Getting started is simple: pick a task you do three times a week with stable steps, write its SKILL.md, run it through once, then gradually fill in scripts and reference material.