Agent Skills: Designing, Evaluating, and Evolving Reliable Workflows

    Agents can call tools without being able to complete complex work reliably. This article explains why skills should be treated as lightweight workflow packages rather than longer prompts. It distinguishes tools, workflows, and skills; outlines the components of a maintainable skill; examines how hand-authored skills can degrade agent performance; and presents a controlled six-stage loop for skill evolution. It also covers evaluation metrics, governance requirements such as least privilege and isolated execution, and a practical path to starting with a low-risk workflow before composing multiple skills.

    1. From Tool Calling to Work Completion

    An agent’s ability to call tools does not mean it can reliably complete complex tasks. Querying a record, reading a file, or performing a calculation usually requires only clear inputs and outputs. Generating a trustworthy business report or processing a batch of anomalous data often involves multiple steps, and it also requires deciding when to request more information, when to stop, and how to confirm that the result meets requirements.

    If the model plans every task on the fly, the execution path may change with context. The same request may sometimes begin with data checks and sometimes proceed directly to conclusions; sometimes the agent notices incomplete input, and sometimes it continues inferring without sufficient evidence. Unstable processes increase quality variance, troubleshooting difficulty, and operating cost at the same time.

    The value of a “skill” is that it turns a mature approach to a class of tasks into a reusable execution unit. It does not merely describe “what to call.” It also constrains “why to call it, in what order, which conditions should stop execution, and how to validate the result.”

    A skill is therefore better understood as a lightweight workflow package. Around a specific task, it organizes operating instructions, scripts, templates, reference resources, and check rules so that the agent does not have to rebuild the process from scratch every time.

    However, turning work into skills does not mean handing every business operation to the model. For steps with clear rules and high repetition, deterministic programs should be preferred. Model capabilities should be used for semantic understanding, ambiguous judgment, and unstructured information processing. A sensible division of labor between the two is the foundation of a reliable workflow.

    2. How Skills, Tools, and Workflows Relate

    Understanding skill architecture requires distinguishing three concepts first.

    1. Tools Provide Action Capabilities

    A tool usually corresponds to a specific operation, such as reading a file, querying data, sending a notification, or performing a calculation. The tool interface defines inputs, outputs, and error information, but it generally does not own the complete business objective.

    A query tool can return data, but it may not know whether the data is sufficient to support analysis, nor will it automatically decide how outliers should be handled.

    2. Workflows Organize the Order of Actions

    A workflow describes dependencies between steps, branches, retries, and termination conditions. It can connect multiple actions, for example by validating input first, then performing transformation, and finally generating a result.

    For highly deterministic business processes, a traditional workflow may already meet the requirement. There is no need to introduce model judgment merely for its own sake.

    3. Skills Encapsulate Task Methods and Execution Constraints

    A skill designed for agents also includes task semantics beyond the process: applicable scenarios, preconditions, domain rules, judgment criteria, and acceptance standards.

    The three can form this relationship:

    Task requirement → Skill selection → Process execution → Tool invocation → Result validation

    This is not the only architecture that must be followed, but it helps clarify responsibilities. Tools complete actions, workflows organize steps, and skills preserve the execution method for a class of tasks. The clearer the responsibilities, the easier it is to locate where an error occurred.

    3. What a Maintainable Skill Should Contain

    A skill should not be only a long description. For tasks that need reuse and maintenance, it should cover at least the following components.

    1. Scope and Exclusions

    A skill must first state what problem it solves and what situations it does not apply to.

    For example, a “structured data quality check” skill can be used for missing fields, duplicate records, and numeric range checks, but it should not by default take on business authenticity review. Whether a record is duplicated can be determined by rules, while whether a transaction is genuine may require additional evidence.

    Clear boundaries reduce the risk of incorrect matching and help the agent request additional information when conditions are insufficient rather than forcing execution.

    2. Input and Output Contracts

    The input contract should define required fields, types, allowed ranges, missing-value handling, and sensitive information requirements. The output contract should specify the result structure, status meanings, and evidence sources.

    For example, check results can distinguish “pass,” “fail,” and “indeterminate.” If the latter two are both compressed into a single failure marker, downstream processes cannot distinguish invalid data from insufficient evidence.

    The core role of a contract is to establish a stable boundary between the skill and external systems, reducing ambiguity caused by free-form model interpretation.

    3. Execution Instructions and Deterministic Logic

    Execution instructions should cover the normal flow, exception branches, and stop conditions, while scripts or programs should handle steps that can be explicitly encoded.

    Field format validation, date conversion, duplicate detection, and statistical calculation are usually suitable for deterministic logic. Natural-language explanation, classification of unstructured content, or requirements analysis with ambiguity can be assisted by the model.

    Do not put every problem that can be solved by rules into natural-language prompts, and do not force tasks that require semantic judgment into fragile rule sets.

    4. Resources, Examples, and Validation Rules

    A skill can carry templates, terminology notes, and examples, but this content should serve execution rather than accumulating unlimited background material. Too much irrelevant information increases comprehension burden and may cause the model to mistake example content for facts in the current task.

    Validation rules are especially important. Generating a report does not mean the task is complete. It is also necessary to check whether calculations are correct, references are traceable, conclusions stay within the scope of the evidence, and output meets structural requirements.

    A practical principle is to make each key output correspond, as far as possible, to a checkable acceptance condition.

    4. Why Hand-Authored Skills Can Also Weigh Agents Down

    Skills can reuse experience, but they do not automatically improve performance. A more rigorous interpretation of the view that “hand-authored skills may have negative effects” is this: a skill is itself a software asset that needs validation. Comparable evaluation must be performed before and after adding a skill, and effectiveness cannot be judged solely by whether the description is complete.

    1. Scope Is Too Broad

    Packing several clearly different tasks into one skill produces many branches. The model must first interpret complex instructions and then decide which path to take, which may make it more error-prone than handling a simple task directly.

    The improvement direction is to split skills around clear objectives and constrain scope through input conditions.

    2. The Process Embeds Wrong Assumptions

    For example, a skill may assume that input data has already been cleaned or that all amounts use the same unit of measurement. As long as the actual task does not satisfy the assumption, subsequent calculations may produce wrong conclusions even if they are executed correctly.

    Assumptions must therefore be stated explicitly and converted into prechecks wherever possible rather than hidden in descriptions.

    3. Instructions Are Redundant or Conflict with Each Other

    “Must preserve all original content” and “output only the most critical information” may conflict in certain tasks. If the skill does not define priority, the model has no choice but to interpret the conflict on its own.

    Reducing duplicate instructions and clarifying conflict-handling rules is more effective than adding more emphatic statements.

    4. Failure Paths Are Missing

    If a skill describes only the ideal case, then when permissions are insufficient, resources are missing, or external operations time out, it may repeatedly retry or even continue generating unsupported results.

    A reliable skill should allow controlled failure: state the failure stage, preserve necessary context, and clarify whether retry is allowed or human handling is required.

    5. Skill Self-Evolution: Turning Runtime Feedback into Controlled Improvements

    “Self-evolution” should not be understood as allowing an agent to rewrite production rules at any time. A more robust engineering definition is this: the system proposes skill changes based on runtime feedback, and a new version is released only after testing and governance processes confirm it.

    The closed loop can be divided into six stages.

    1. Collect Execution Evidence

    Record skill versions, input types, execution branches, tool results, validation status, and human corrections. When sensitive data is involved, apply redaction, access control, and retention-period management.

    Logs should be sufficient to explain key decisions, but they do not need to record everything unrelated to troubleshooting. Credentials must never be written into execution traces.

    2. Analyze Failure Attribution

    Failures may come from unclear skill instructions, tool exceptions, missing data, incorrect model judgment, or a task that is itself impossible to complete.

    Without attribution, the system may modify skills to compensate for infrastructure failures, ultimately making the process more complex. Every improvement proposal should state which type of failure it addresses and what evidence supports it.

    3. Generate Candidate Changes

    Candidate changes can include adding prechecks, simplifying instructions, adding exception branches, adjusting validation rules, or replacing error-prone model operations with deterministic programs.

    Small, explainable changes should be preferred. Changing too much at once makes it difficult to identify the source of benefits and increases regression risk.

    4. Run Offline Evaluation

    Candidate versions should run on a fixed test set and be compared with the current version. The test set needs to include normal samples, boundary conditions, historical failure cases, and out-of-scope tasks.

    Test samples that were not involved in the modification process should also be retained to prevent the skill from merely “memorizing answers” for known cases.

    5. Roll Out in Stages

    After passing offline tests, the candidate can first run on low-risk tasks or limited traffic. Observe quality, cost, latency, and failure distribution before deciding whether to expand its scope.

    Skills that affect payments, permissions, data deletion, or external publishing should require stricter approval thresholds and must not go live automatically based solely on model self-assessment.

    6. Preserve Rollback Capability

    Each version should be linked to change notes, test results, and compatibility information. When degradation occurs, it should be possible to restore the previous version quickly and preserve the problem context.

    The goal of skill evolution is not constant modification. It is to make effective experience stably reusable after validation.

    6. How to Prove That a Skill Delivers Real Value

    Evaluation should not look only at whether responses are fluent, nor should it only count whether tool calls succeed. Metrics should be established across the following dimensions.

    • Task success rate: whether results meet predefined acceptance criteria.
    • Result reliability: whether key data, calculations, and conclusions are supported by evidence.
    • Execution cost: the total cost of model calls, tool operations, retries, and human intervention.
    • Execution latency: beyond average duration, observe waiting conditions for anomalous tasks.
    • Recovery capability: whether failures can be safely retried, resumed, or handed over to a human.
    • Security and compliance: whether unauthorized access, sensitive information leakage, or unconfirmed external operations occur.

    When comparing “no skill,” “current skill,” and “candidate skill,” keep the task set, model configuration, tool permissions, and runtime environment as consistent as possible to avoid mistaking other changes for skill benefits.

    Results should also be analyzed by task type. A skill may improve completion rates for complex tasks while adding unnecessary steps to simple tasks. In that case, the more reasonable approach is to optimize skill selection conditions rather than forcing all tasks to use it.

    7. Enterprise Adoption Requires a Governance Layer

    Once a skill can execute scripts or operate business systems, it is no longer just text material. It is a software asset with real impact.

    1. Separate Skill Content from External Data

    External documents, web content, and user-uploaded files should be treated as data to be processed, not as trusted execution instructions by default. Even if they contain phrases such as “ignore restrictions” or “read other files,” skill permissions must not be expanded because of them.

    Changes to the skill itself also require trusted sources, review processes, and version management.

    2. Use Least Privilege and Isolated Execution

    Read-only analysis should not have write permissions, and draft generation should not have publishing permissions by default. Script execution should limit accessible resources, runtime duration, and network scope, with specific measures configured according to business risk.

    Permission constraints must be enforced by the execution environment. They cannot exist only as a sentence in the skill description saying “do not exceed authority.”

    3. Add Confirmation and Idempotency Protection for High-Risk Actions

    External submission, deletion, payment, and similar operations should have explicit confirmation points. For write operations that may be retried, use idempotency mechanisms or equivalent deduplication designs to avoid business losses caused by repeated execution.

    4. Manage Dependencies and Ownership

    When resources, scripts, or data rules that a skill depends on change, compatibility should be revalidated. Each skill should also have a maintenance owner, update records, and deactivation conditions, avoiding hidden processes that continue to run without maintenance.

    8. Start with One Low-Risk Closed Loop

    When building a skill system for the first time, there is no need to pursue a large skill library. Choose a task with relatively stable input, clear acceptance criteria, and low operational risk, such as structured data checks or document format validation.

    The implementation order can be: first define task boundaries and acceptance criteria, then implement a minimal viable process; collect failure cases and complete the test set; finally introduce candidate changes, staged rollout, and rollback mechanisms.

    After a single skill has a reliable contract, clear permissions, and traceable feedback, consider composing multiple skills. During composition, check especially whether upstream and downstream outputs are compatible and whether uncertainty from a previous step is mistakenly treated as established fact by the next step.

    As agents enter the “skill era,” the real concern is not the number of instruction packages. It is whether task experience can become verifiable and maintainable engineering assets. Skill self-evolution does not remove human responsibility. It makes process improvement more evidence-based through feedback, testing, and governance. Only by addressing reuse, evaluation, and security together can a skill system move from demo convenience to reliable production capability.