Build a focused skill

Lesson 25 of 35 · Working with AI coding agents

A skill is a packaged set of reusable guidance for a particular kind of task. Depending on the product, it may include a description used for discovery, instructions, reference files, templates or scripts. A skill can be loaded by the user or, in some systems, selected by the agent when a task matches. Names, locations, supported files and invocation behavior vary; consult the relevant documentation.

A useful skill answers four questions: when does it apply, what information does it need, what steps should be followed, and what should be reported or left for approval? Keep it narrow enough to be useful outside a single conversation. Link to detailed references instead of repeating a long document in every skill.

Example: checking release notes

A fictional skill might say: “Use when reviewing release notes. Compare each entry with the approved change record, flag unsupported claims, and report missing references. Do not publish.” Its supporting reference explains the project’s terminology. The agent can apply it to a release-notes draft and return specific discrepancies; the instruction to not publish still needs enforcement appropriate to the environment.

Inside an illustrative package

Imagine a release-note review skill represented by a short metadata section followed by instructions, with a separate terminology reference. This is an illustration of roles, not a file format or configuration to copy:

Metadata: name = release-note review
          description = use for checking claims in release notes
Instructions: compare claims to approved records; report discrepancies
Reference: project terminology and approved wording

The name identifies the package; the description can help a host or agent discover when it applies; the body describes the work and reporting boundary. Some hosts support other metadata, such as invocation or tool restrictions; others may not. Field names, frontmatter, file locations, loading and effective restrictions are product-dependent. Check the host’s documentation and loaded-skill display, if available. Metadata that says “do not publish” is guidance, not an access control.

Skills can be composed: a broader review might refer to a terminology check and a separate link check. State the order, required inputs and how failures affect the next step. Ensure that each referenced skill exists and is appropriate for this environment; avoid circular or conflicting instructions. A script bundled with a skill is executable code, not merely guidance. Review it and its dependencies before execution.

Loading a skill does not necessarily execute its scripts or grant every requested action. Equally, permission to load a skill does not prove its instructions or bundled code are safe. Check the actual product’s behavior and underlying tool permissions.