> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cominty.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a skill

> Create a custom skill from a zip archive of at most 30 MB, sent as multipart/form-data with display_name (1 to 100 characters), scope and file. SKILL.md opens with YAML frontmatter that follows https://agentskills.io/specification. The zip has SKILL.md at its root, or one top-level folder that holds SKILL.md and nothing else at the root. Any other layout returns 422 with a detail that starts with Invalid zip structure. A bad frontmatter returns 422 with the reason. Success is 201.



## OpenAPI

````yaml /openapi.json post /skills
openapi: 3.1.0
info:
  title: Cominty API
  description: >-
    The HTTP API behind the Cominty Python SDK: chat and threads, memory, MCP
    integrations, agents, skills, document sources, and documents. Send your API
    key in the x-cominty-token header.
  version: main.5359267
servers:
  - url: https://ds.cominty.com
security:
  - comintyToken: []
paths:
  /skills:
    post:
      tags:
        - agents
        - skills
      summary: Create a skill
      description: >-
        Create a custom skill from a zip archive of at most 30 MB, sent as
        multipart/form-data with display_name (1 to 100 characters), scope and
        file. SKILL.md opens with YAML frontmatter that follows
        https://agentskills.io/specification. The zip has SKILL.md at its root,
        or one top-level folder that holds SKILL.md and nothing else at the
        root. Any other layout returns 422 with a detail that starts with
        Invalid zip structure. A bad frontmatter returns 422 with the reason.
        Success is 201.
      operationId: add_skill_skills_post
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_add_skill_skills_post'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_add_skill_skills_post:
      properties:
        display_name:
          type: string
          maxLength: 100
          title: Display Name
          description: Name shown in lists. 1 to 100 characters.
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
          description: >-
            Zip archive of at most 30 MB. SKILL.md at the root, or inside one
            top-level folder.
        scope:
          anyOf:
            - $ref: '#/components/schemas/Scope'
            - type: 'null'
          default: private
          description: private (the key's user only) or organization. Defaults to private.
      type: object
      required:
        - display_name
        - file
      title: Body_add_skill_skills_post
    SkillOut:
      properties:
        id:
          type: string
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the default version was uploaded.
        display_name:
          type: string
          title: Display Name
        active:
          type: boolean
          title: Active
        scope:
          anyOf:
            - $ref: '#/components/schemas/Scope'
            - type: 'null'
          description: null for a built-in skill.
        frontmatter:
          $ref: '#/components/schemas/SkillFrontmatter'
        source:
          $ref: '#/components/schemas/SkillSource'
          readOnly: true
          description: >-
            cominty for a built-in, read-only skill. custom for one you
            uploaded.
      additionalProperties: false
      type: object
      required:
        - id
        - created_at
        - updated_at
        - display_name
        - active
        - scope
        - frontmatter
        - source
      title: SkillOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Scope:
      type: string
      enum:
        - organization
        - private
      title: Scope
    SkillFrontmatter:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        license:
          anyOf:
            - type: string
            - type: 'null'
          title: License
        compatibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Compatibility
        metadata:
          additionalProperties:
            type: string
          type: object
          title: Metadata
        allowed_tools:
          items:
            type: string
          type: array
          title: Allowed Tools
      additionalProperties: false
      type: object
      required:
        - name
        - description
        - license
        - compatibility
        - metadata
        - allowed_tools
      title: SkillFrontmatter
    SkillSource:
      type: string
      enum:
        - cominty
        - custom
      title: SkillSource
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    comintyToken:
      type: apiKey
      in: header
      name: x-cominty-token
      description: >-
        A Cominty Platform API secret. A key created now starts with sk-cmt-.
        Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix.
        A key created before the prefix existed has no sk-cmt- and still works.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.