Skip to content

Lifecycle and versions

A skill moves through five statuses. Only a published skill can be discovered, loaded and run by an agent:

draft ──validate──▶ validated ──publish──▶ published ──deprecate──▶ deprecated
│ ▲ │
└───────────────publish─────────────┘ └──archive──▶ archived (from any status)
Status Editable Discoverable and runnable over MCP Deletable
draft Yes No Yes
validated Yes No Yes
published Content no, governance yes Yes No (409)
deprecated Content no No (the MCP surface resolves published skills only) Yes
archived No, and enabled is set to false No Yes

In the Admin UI the lifecycle buttons sit in the skill panel’s header: Validate and Publish on a draft, Deprecate on a published skill, Archive on anything not yet archived, and Export (see Import, export and skill sources).

Terminal window
curl -s -X POST http://localhost:5050/v1/admin/agent-skills/$SKILL_ID/validate \
-H "Authorization: Bearer $ADMIN_TOKEN"
{
"skill_id": "skill-01M61N3A7RB6CWZ8CM8PCEP4SN",
"skill_name": "affordability-check",
"valid": true,
"errors": [],
"validated_at": "2026-10-28T16:22:09.607610+00:00"
}

Validation checks that the name, description, SKILL.md content and hash, and version are present, that the name follows the naming convention, and that allowed_tools and compatibility are lists of strings. On success a draft becomes validated. On failure the response is still 200 with "valid": false and the reasons in errors, and the same list is stored on the skill as validation_errors.

Validation does not run the scripts or check that the files SKILL.md links to exist. Check the manifest for that.

Terminal window
curl -s -X POST http://localhost:5050/v1/admin/agent-skills/$SKILL_ID/publish \
-H "Authorization: Bearer $ADMIN_TOKEN"
{
"skill": {
"id": "skill-01M61N3A7RB6CWZ8CM8PCEP4SN",
"name": "affordability-check",
"version": "1.0.0",
"status": "published",
"enabled": true,
"published_at": "2026-10-28T16:22:09.671487+00:00",
"published_by": "tenant-admin-70748b7520ed",
"group_ids": ["group-01M61N376V2RR6J2TV7Q7EVRET"]
}
}

Publishing works from draft or validated (you may skip the validate call); any other status returns 409. It sets enabled: true and makes the skill visible on the skills MCP server at once, to the groups it is assigned to.

Once published, the skill’s content cannot change. A PATCH /v1/admin/agent-skills/{id} that touches name, description, skill_md_content, version, metadata, disclosure_mode, enabled or the other content fields returns:

{"detail": "Cannot update published skill 'affordability-check' v1.0.0. Create a new version instead."}

with 409. The operational fields stay editable on a published skill, because they are governance, not content: allow_local_export, tenant_limits and tenant_governance, and the group assignments (/groups).

A version is a separate skill row with the same name and a new version. To change affordability-check:

  1. Create the new version with POST /v1/admin/agent-skills, the same name, "version": "1.1.0" and the new SKILL.md. It starts in draft.

  2. Attach its files: scripts, resources and assets belong to a skill row, so the new version needs its own.

  3. Validate, publish, assign the new version to the same groups.

  4. Deprecate the old version, with a reason:

    Terminal window
    curl -s -X POST http://localhost:5050/v1/admin/agent-skills/$OLD_SKILL_ID/deprecate \
    -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \
    -d '{"skill_id": "'$OLD_SKILL_ID'", "reason": "Superseded by 1.1.0 (policy 2026.11)"}'

When an agent addresses a skill by name, the gateway runs the most recently created published row with that name. Two published versions of one name both appear in discovery, so deprecate the old one as part of the release.

Action Endpoint Allowed from Effect
Deprecate POST /v1/admin/agent-skills/{id}/deprecate, body {"skill_id": "...", "reason": "..."} published only (else 409) Stops discovery and new runs over MCP; records deprecated_at and deprecation_reason
Archive POST /v1/admin/agent-skills/{id}/archive Any status Sets enabled: false; the row stays for the audit history
Delete DELETE /v1/admin/agent-skills/{id} Anything but published (else 409) 204. Removes the skill
Bulk delete POST /v1/admin/agent-skills/bulk-delete, body {"skill_ids": [...]} As delete Returns deleted, skipped (with a reason each), and the counts

Execution history stays readable after any of these: GET /v1/admin/agent-skills/{id}/executions lists the runs, and GET /v1/admin/agent-skills/executions/{execution_id} returns one in full.

{
"executions": [
{
"id": "01M61NSF2FXXSNPAHTVM6M9KKJ",
"skill_name": "affordability-check",
"skill_version": "1.0.0",
"execution_status": "completed",
"approval_status": "not_required",
"duration_ms": 65,
"error_type": null,
"started_at": "2026-10-28T16:34:15.247490+00:00",
"completed_at": "2026-10-28T16:34:15.322122+00:00"
}
],
"total": 1
}

Execution statuses are pending, running, completed, failed, cancelled and timed_out; approval statuses are not_required, pending, approved, rejected and expired. Every change on this page is also written to the admin audit log (agent_skill_create, agent_skill_validate, agent_skill_publish, agent_skill_deprecate, agent_skill_archive, …).