Skip to main content
Version: 4.0

3.3.3 Skills

A skill is a set of reusable instructions that an agent loads only when it needs them, for example how to trace the impact of a change. Skills keep an agent's own instructions short: the agent sees each attached skill's name and description, and loads the full instructions when a task calls for them.

Open M4AI › Library › Skills. The list shows each skill's name and slug, When to use (its description), Versions, Size, and how many agents use it.

A published skill: its slug, version, actions and Markdown instructions with the size meter

Create a skill​

  1. Choose New skill.
  2. Enter a name and, under When should an agent use this skill?, a description. Agents use the description to decide when to load the skill, so make it specific.
  3. Check the Slug. It is derived from the name and identifies the skill to agents: up to 128 lower-case letters, digits and hyphens, starting with a letter. The name and slug cannot be changed later.
  4. Write the Instructions (Markdown). Use Preview to check how they render.
  5. Choose Create draft. The skill is created as draft v1.

The instructions of one version can be up to 64 KB.

Optimize for memory​

Optimize for memory lets AI write the instructions for you, based on a published memory. You find it in the Actions of a draft, so for a new skill, create it first. Pick the memory, optionally add Your instructions (for example what the skill should help with), and choose Generate suggestion. Review the Suggested skill, choose Regenerate suggestion for another attempt, or Apply to draft to take it over. Nothing changes until you apply it.

Optimize for memory: the published memory Test Data - Order Insights selected, with instructions on what the skill should help with

Versions​

Skills have draft and published versions:

  • Publish version locks the draft so agents can use it.
  • To change a published skill, choose New draft version, edit it, and publish again. A skill has at most one draft at a time.
  • Discard draft deletes the draft. Published versions, and the agents pinned to them, are not affected. If the draft is the skill's only version, the whole skill is deleted.

Attach a skill to an agent​

Only published skill versions can be attached. You attach them in the agent's Skills capability; the agent keeps that exact version. To use a newer version, detach the skill and attach it again.

Delete a skill​

Choose Delete skill to permanently delete the skill with all its versions.