haops_create_skill
Create a new agent skill (system or project-scoped) with required fields; returns the skill row or 409 on duplicate name.
Instructions
Create a new agent skill (system or project-scoped). Inserts version=1 with isCurrent=true. Admin-only on the server, gated by ENABLE_COMPOSED_PROTOCOLS. Returns the new skill row on success; 409 if a skill with the same name already exists in the target scope (use haops_update_skill to publish a new version instead).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scope": "<scope>",
"name": "<name>",
"description": "<description>",
"content": "<content>",
"category": "<category>",
"applicableRoles": "<applicableRoles>"
},
"name": "haops_create_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Kebab-case skill name (1..100 chars, starts with a letter, e.g. "out-of-scope-findings"). | |
| scope | Yes | Scope of the new skill. "system" omits projectSlug; "project" requires it. | |
| content | Yes | Full markdown body of the skill (admin-trusted; no sanitization applied server-side). | |
| verbose | No | If true, return the full API response instead of the compact summary (default: false) | |
| category | Yes | Skill category for grouping in the catalogue. | |
| description | Yes | Short one-line description of what the skill teaches (shown in list views and template pickers). | |
| projectSlug | No | Project slug — REQUIRED when scope="project"; MUST be omitted when scope="system". | |
| applicableRoles | Yes | Roles the skill applies to. Non-empty array of {architect, dev, qa, devops} or the wildcard ["*"]. |