All guides

Tutorial

Define a Skill on an Agent Card

A Skill Is a Promise About Input and Output

A skill is how an agent declares one thing it can do. It is the unit a caller matches work against, and it is the part of a card a model reads most carefully.

Getting it right is mostly about being specific. A skill that says the agent "handles travel" invites a caller to delegate anything travel-shaped, and half of those delegations will fail.

Write a skill as a promise: given this input, you get this output, for this kind of request.

The Fields That Carry Meaning

Identifier. Stable, lowercase, and never changed once published. It is what callers reference, so a rename is a breaking change for every integration.

Name. A short human label. It is displayed, not matched, so it can change without breaking anyone.

Description. The field that does the real work. It is read by models deciding whether to delegate, so it must state the task, the input it needs, the output it produces, and what it does not handle.

Tags. Coarse categories, useful for filtering a long list of skills. They are not a substitute for a precise description.

Examples. Sample requests. The strongest signal of intended use, and the field most often left empty.

Input and output modes. The media types the skill accepts and returns: text, structured data, a file. A mismatch here is a delegation that fails at the first call.

A Worked Skill

An itinerary checker at a travel agent.

The identifier is something like check-itinerary, fixed for the life of the agent. The name is "Itinerary check".

The description says what the skill does and, in the same paragraph, what it does not: it validates a proposed multi-leg itinerary against schedule and connection rules and returns a report; it does not book, price or change anything.

The examples carry two requests. One with a two-leg itinerary in structured form. One with a single-leg itinerary and a note that the traveller cannot walk long distances. The second example does more for delegation accuracy than any amount of description, because it shows the shape of a real request.

Input mode is structured data plus optional free text for constraints. Output mode is a document, since the report is something a person will read.

Too Broad and Too Narrow

Both failures are common, and they fail differently.

Too broad produces delegations the agent cannot satisfy. A skill named "travel support" will attract cancellation requests, refund questions and visa enquiries, each of which becomes a failed task that looks like a bug.

Too narrow produces agents nobody delegates to. Twelve skills that each cover one field of a form leave a caller with no way to describe its actual intent, and the caller ends up bypassing the protocol entirely.

The useful test is the example set. If two examples for one skill would be answered by different parts of your system, it is two skills. If two skills would be answered by the same code path with the same inputs, they are one.

Descriptions Written for a Model

A model reads the description to decide, so write it the way you would brief a competent colleague who has never seen your system.

State the input concretely: what fields, which are required, what format dates arrive in. State the output: what the caller receives and whether it is a document or a record. State the boundary: what the skill will refuse, and what it will do instead.

Avoid adjectives. "Fast" and "accurate" carry nothing a model can act on. "Returns within thirty seconds for itineraries of up to six legs" carries something it can.

Versioning a Skill

Three changes are safe and three are not.

Safe: adding an optional input field, improving the description, adding examples, adding a tag.

Not safe: renaming the identifier, making an optional field required, changing the output mode. Each of those breaks a caller that already integrated, and the first is the one people do casually.

When a skill's behaviour changes materially, publish a new identifier and keep the old one until callers move. Two skills that overlap are a smaller problem than one skill that quietly does something different.

Reviewing Your Own Card

Four questions, each answerable in a minute.

Could a competent stranger describe what this skill accepts after reading it once? Do the examples cover the two most common real requests? Does the description say what the skill refuses? And would a caller know which skill to use when two of them are plausible?

A no to the last one is the most damaging, because it produces delegations that succeed and return the wrong thing.

The Description Is a Prompt

Treat the description as text a model will read while deciding, because that is what it is.

That changes how you write it. The first sentence should name the task in the words a caller would use for it, since that is what the model matches against. The second should name the input. The third should name the output.

Anything after that is qualification: what the skill refuses, what it assumes, what it does when the input is ambiguous. A description that opens with company history wastes the part of the text that gets read most carefully.

Next step

Read discovering a partner for the caller's side, or contact us to review a card before publishing it to partners.

FAQ

Question: How many examples should a skill have?

Two is the minimum and three is usually enough. They should differ in shape rather than in wording, so that one shows a simple case and one shows a realistic one.

Question: Should a skill cover a multi-step workflow?

Only if the whole workflow is one deliverable. A skill that books, confirms and notifies is three outcomes with three failure modes, and a caller cannot act on the middle one.

Question: Can one agent publish skills it does not implement?

No. A skill is a promise the agent will accept that task. A skill that returns a failure for every request trains callers to ignore the card entirely.

Next step

Talk to us about the work.

Tell us what you want an agent to run. We come back with a scope, not a slide deck.