SKILL.md folder in your own Git repository, review
changes in pull requests, and let KAOP follow what is merged.
What can be managed this way
The calls and resources below apply to skills created in KAOP: from the console, the API, chat, or aSkill resource. A skill that ships inside an agent’s container image is reported by the agent
when it starts and changes only when you rebuild the image. To manage one in KAOP, claim it first;
see Claim a skill from an agent image.
Versions
Every change to a skill’s content publishes a new version, numbered 1, 2, 3 and so on.- A version holds the whole skill: the
SKILL.mdbody and every supporting file. - A version is never changed or deleted. To change a skill, publish a new version.
- Changing a skill’s name, description, tags or labels does not create a version.
- Each publish is recorded in the audit log as
skill.publish, with the version number and the person or API key that made it.
To publish a new version with two supporting files:
content or resources and the new version keeps that part from the latest one. Send
"resources": [] to remove every supporting file.
Roll back
A rollback publishes a new version with the content and files of an older one. No version is deleted or changed: with v7 as the latest, rolling back to v5 publishes v8 with the content of v5.- In the console, open the version in Version history, review its diff against the current version, and choose Roll back to vN.
- From the API, call
POST /api/v1/skills/{id}/versions/{version}/rollback.
skill.publish, with the version it was taken from.
Pin an agent to a version
Each attachment of a skill to an agent either tracks the latest version or is pinned to one version.- Latest: the agent gets each version you publish, rollbacks included.
- Pinned: the agent stays on that version until you change the pin.
From the skill’s side, set every attachment in one call. The list is the full set: an agent left out
is detached, and an empty list detaches every agent.
agent takes the Agent ID or the agt_… id.
agent.skill_attach, agent.skill_detach
and agent.skill_repin.
Keep skills in Git
You can keep skills in your own Git repository and have KAOP follow it, through a management cluster:- koperator runs its config module on a cluster you own, bound to your account. See Management cluster config.
- A GitOps tool such as Argo CD or Flux applies
Skillresources from your repository into the namespace the config module watches. - The config module creates or updates each skill in KAOP. A change to
contentorresourcespublishes a new version, and an unchanged resource publishes nothing. - On every resync, five minutes by default, it puts back any change made outside Git.
The Skill resource
A field you leave out stays as it is in KAOP. The result is on the resource’s
Synced condition,
with KAOP’s own message when it refuses a change:
Keep SKILL.md folders instead of YAML
To keep each skill as a folder with a real SKILL.md, a small Helm chart can read the folders and
build the Skill resources. Argo CD and Flux both render Helm charts from Git.
values.yaml:
templates/skills.yaml:
scripts/ as executable. Run
helm template kaop-skills ./kaop-skills to see the resources before you commit.
Point your GitOps tool at the chart, in the config module’s namespace. With Argo CD:
GitRepository for the repository and a HelmRelease whose chart points at
./kaop-skills in it, with targetNamespace set to the config module’s namespace.
A change, end to end
- A change to
skills/splunk-search/SKILL.mdis reviewed in a pull request and merged. - Argo CD or Flux applies the changed
Skillresource. - The config module publishes a new version in KAOP, for example v8.
- Agents that track latest use v8 from their next run. Agents pinned to an older version stay on it.
pinVersion in
values.yaml.
Editing a Git-managed skill in the console
A skill declared this way carries the Managed by cluster badge. Make changes in Git. Whether a console or API edit is refused, or saved and later put back, depends on your account’s ownership enforcement; see the Managed by cluster badge. Attachments and pins changed in the console or with the agent calls above are saved either way, and the config module puts back what Git says at the next change toagentBindings in Git.
Claim a skill from an agent image
A skill that ships in an agent’s container image is reported by the agent when it starts. To version and edit it in KAOP, claim it. Claiming makes a copy at version 1 that you can edit, version, pin and keep in Git like any other skill.- In the console, open Skills, choose the skill, and choose Claim as authored.
-
From the API:
GET /api/v1/skills?kind=discovered&agent_id=<agent id>lists the skills an agent reports.
skill.claim.
Permissions
Next steps
Skills
What a skill is, how it is approved, and how an agent finds it.
Declaring resources
Every kind a management cluster can declare, and how status and deletion work.