All field notes

Writing SKILL.md: test selection and task behavior

Use clear skill metadata and real invocation traces to evaluate whether a skill helps.

Published Documentation reviewed Updated

skills, skill-authoring, activation-evals

A useful skill needs both appropriate selection and effective task execution. A model saying it would choose a skill is a proxy; observe whether your actual agent loads it and follows it on representative tasks.

Follow the format, then test the behavior

The Agent Skills specification defines the required name and description fields and describes progressive loading of metadata, instructions, and supporting resources. It recommends keeping the main file under 500 lines and moving detail into references. Client support for optional fields can vary.

Here is an example description to adapt:

name: review-api-change
description: >
  Review HTTP API changes for request validation, authorization,
  response compatibility, and missing tests. Use when reviewing
  a diff that changes an API handler or its schema.

Write the body around inputs, decisions, outputs, and checks. Include the repository context the agent should inspect and the conditions that need clarification. Avoid embedding credentials or assuming that a description creates permission to execute a tool.

Create two evaluation sets

Selection cases: include requests that should load the skill, nearby requests that should use another capability, and ambiguous requests. Inspect the invocation trace.

Task cases: check whether the selected skill produces correct findings, preserves the user’s constraints, and avoids invented evidence. Compare with the same agent without the skill on the same fixtures.

Record the model, agent version, installed skill revision, other installed skills, and test inputs. Repeat cases to see variability. Choose acceptable error rates for the actual product; there is no universal activation target that makes a skill reliable.

Keep evidence with claims

The previous article asserted a 15–25% activation improvement without a linked experiment. That claim has been removed. Publish such a number only with the dataset, baseline, configuration, and measurement method.

As an authoring exercise, change one description and inspect both selection errors and task outcomes. Better selection with worse execution is not an improvement for the user.

A skill contributes instructions to the agent harness. Permissions, cancellation, and execution limits remain runtime responsibilities.