CAIN-42 CAIN Studio

API reference · schema

CreateSkillRequest

17 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
namespace requiredstringmin length 2 · max length 64
name requiredstringmin length 1 · max length 255
skill_type requiredstringprocedural, tool_skill, workflow_skill, reasoning_skill, domain_skill, learned_skill, composite_skill, human_authored
descriptionstringdefault ""
content requiredstringmin length 1
inputsobject or nulldefault {}
outputsobject or nulldefault {}
required_toolsarray of string or nulldefault []
required_actionsarray of string or nulldefault []
required_resourcesarray of string or nulldefault []
required_identitiesarray of string or nulldefault []
risk_levelstringdefault "medium"
test_codestring or null
dependenciesarray of string or nulldefault []
provenanceobject or null
trace_idstring or null
trajectory_idstring or null

Smallest valid example

{
  "namespace": "namespace",
  "name": "name",
  "skill_type": "skill-type",
  "description": "",
  "content": "content",
  "inputs": {},
  "outputs": {},
  "required_tools": [],
  "required_actions": [],
  "required_resources": [],
  "required_identities": [],
  "risk_level": "medium",
  "dependencies": []
}

Used by 1 operation

POST/fabric/skillsCreate Skill

JSON Schema

Show the raw definition
{
  "properties": {
    "namespace": {
      "type": "string",
      "maxLength": 64,
      "minLength": 2,
      "title": "Namespace"
    },
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Name"
    },
    "skill_type": {
      "type": "string",
      "title": "Skill Type",
      "description": "procedural, tool_skill, workflow_skill, reasoning_skill, domain_skill, learned_skill, composite_skill, human_authored"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "default": ""
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "title": "Content"
    },
    "inputs": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Inputs",
      "default": {}
    },
    "outputs": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Outputs",
      "default": {}
    },
    "required_tools": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Required Tools",
      "default": []
    },
    "required_actions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Required Actions",
      "default": []
    },
    "required_resources": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Required Resources",
      "default": []
    },
    "required_identities": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Required Identities",
      "default": []
    },
    "risk_level": {
      "type": "string",
      "title": "Risk Level",
      "default": "medium"
    },
    "test_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Code"
    },
    "dependencies": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dependencies",
      "default": []
    },
    "provenance": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance"
    },
    "trace_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trace Id"
    },
    "trajectory_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trajectory Id"
    }
  },
  "type": "object",
  "required": [
    "namespace",
    "name",
    "skill_type",
    "content"
  ],
  "title": "CreateSkillRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem