Skills
A skill is a markdown package describing what an agent does. Frontmatter declares the contract (name, version, palette, required tools, budget, direct-secret requirements). Body is the prompt the agent reads. Skills are workspace-scoped and immutably versioned — each save creates a new SkillVersion.
Frontmatter shape
---
name: research-a-topic # required, lowercase + hyphens/dots/underscores
version: 0.3.1 # optional; auto-derived if omitted
description: One-line purpose
ui_palette: # OpenUI components allowed (Decision 0012)
- text
- card
- chart.line
output_modes: # ui (OpenUI) | markdown
- ui
- markdown
required_tools: # tool names this skill expects
- web_search
- github_pr_create
budget: # caps for runs of this skill
cost_usd: 1.50
tool_calls: 25
duration_s: 600
requires_direct_secrets: # Decision 0013 — opt-in escape from proxy mode
- name: KUBECONFIG
purpose: "kubectl auth"
rationale: "kubectl is shelled out; no MCP wrapper exists"
openui_version: "0.x.y" # OpenUI library version to render against
---
Body comes after the frontmatter and is plain markdown (any model-specific instructions, examples, references).
GET /api/v1/workspaces/{slug}/skills
List skills in a workspace. Returns the latest version of each.
curl https://platform.groupany.ai/api/v1/workspaces/groupany/skills \
-H "Cookie: $COOKIE"
Response 200:
{
"skills": [
{
"id": "cm...",
"name": "research-a-topic",
"description": "Researches a topic across the web.",
"created_at": "2026-05-29T09:00:00.000Z",
"version_count": 3,
"latest_version": "0.3.1"
}
]
}
POST /api/v1/workspaces/{slug}/skills
Create a new skill. Body is the full SKILL.md markdown including frontmatter.
curl -X POST https://platform.groupany.ai/api/v1/workspaces/groupany/skills \
-H "Cookie: $COOKIE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"source": "---\nname: research-a-topic\nversion: 0.1.0\ndescription: First skill\nui_palette: [text, card]\noutput_modes: [ui, markdown]\n---\n\n# research-a-topic\n\nYou research things."
}'
| Field | Type | Required | Notes |
|---|---|---|---|
source | string | yes | Full SKILL.md content (frontmatter + body). Min 20 chars. |
Response 201:
{
"skill": { "id": "cm...", "name": "research-a-topic", "latest_version": "0.1.0", ... },
"version": { "id": "cm...", "version": "0.1.0", "is_latest": true, "created_at": "..." },
"uri": "harmony://ws/groupany/skills/[email protected]"
}
Requires admin or owner role. Honours the Idempotency-Key header per the API overview.
Errors:
| Status | Code | When |
|---|---|---|
400 | validation_failed | Frontmatter or body invalid |
403 | forbidden | Member role insufficient |
409 | version_taken | Skill exists and the version is taken — bump or PATCH instead |
GET /api/v1/workspaces/{slug}/skills/{name}
Get a skill's identity plus all its versions.
curl https://platform.groupany.ai/api/v1/workspaces/groupany/skills/research-a-topic
Response 200:
{
"skill": {
"id": "cm...", "name": "research-a-topic",
"description": "Researches a topic across the web.",
"created_at": "...",
"version_count": 3,
"latest_version": "0.3.1"
},
"versions": [
{
"id": "cm...", "version": "0.3.1", "is_latest": true,
"content_ref": "inline:cm...",
"body": "# research-a-topic\n\n...",
"metadata": { ... },
"created_at": "..."
},
{ ... }
]
}
GET /api/v1/workspaces/{slug}/skills/{name}/versions
Same as the previous endpoint but versions only (no parent envelope). Useful for paginated UIs.
POST /api/v1/workspaces/{slug}/skills/{name}/versions
Create a new version of an existing skill.
curl -X POST https://platform.groupany.ai/api/v1/workspaces/groupany/skills/research-a-topic/versions \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"source": "---\nname: research-a-topic\ndescription: v2\n---\n\nUpdated body.",
"bump": "minor"
}'
| Field | Type | Required | Notes |
|---|---|---|---|
source | string | yes | Full SKILL.md. The frontmatter name must match the path. |
bump | "patch", "minor", "major" | no | If frontmatter omits version, auto-bumps from the current latest. Default patch. |
If frontmatter declares version: "0.4.0" explicitly, bump is ignored. If neither is provided, bump defaults to patch and Harmony increments from latest.
Response 201:
{
"version": { "id": "cm...", "version": "0.4.0", "is_latest": true, ... },
"uri": "harmony://ws/groupany/skills/[email protected]"
}
Errors:
| Status | Code | When |
|---|---|---|
404 | not_found | Skill name doesn't exist — create it via POST /skills first |
409 | version_taken | Computed version collides — bump further |
GET /api/v1/workspaces/{slug}/skills/{name}/versions/{version}
Fetch one specific version. {version} accepts a concrete version (e.g. 0.3.1) or the literal latest.
curl https://platform.groupany.ai/api/v1/workspaces/groupany/skills/research-a-topic/versions/latest
Response 200:
{
"version": {
"id": "cm...",
"version": "0.3.1",
"body": "# research-a-topic\n\n...",
"content_ref": "inline:cm...",
"metadata": { ... },
"is_latest": true,
"created_at": "...",
"skill_name": "research-a-topic"
},
"uri": "harmony://ws/groupany/skills/[email protected]"
}
Errors:
| Status | Code | When |
|---|---|---|
404 | version_not_found | Either the skill or that exact version doesn't exist |