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

# Create Skill

> Create a new logical skill and seed its draft.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json post /workspaces/{workspace_id}/agent/skills
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/skills:
    post:
      tags:
        - agent-skills
      summary: Create Skill
      description: Create a new logical skill and seed its draft.
      operationId: agent-skills-create_skill
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    SkillCreate:
      properties:
        name:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[a-z0-9-]+$
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 4000
            - type: 'null'
          title: Description
      type: object
      required:
        - name
      title: SkillCreate
      description: Payload for creating a new logical skill.
    SkillRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        current_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Current Version Id
        draft_revision:
          type: integer
          title: Draft Revision
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        deleted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deleted At
        current_version:
          anyOf:
            - $ref: '#/components/schemas/SkillVersionReadMinimal'
            - type: 'null'
        is_draft_publishable:
          type: boolean
          title: Is Draft Publishable
        draft_validation_errors:
          items:
            $ref: '#/components/schemas/SkillValidationErrorDetail'
          type: array
          title: Draft Validation Errors
        draft_file_count:
          type: integer
          title: Draft File Count
      type: object
      required:
        - id
        - workspace_id
        - name
        - slug
        - draft_revision
        - created_at
        - updated_at
        - is_draft_publishable
        - draft_file_count
      title: SkillRead
      description: Full response model for a workspace skill.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SkillVersionReadMinimal:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        skill_id:
          type: string
          format: uuid
          title: Skill Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        version:
          type: integer
          title: Version
        manifest_sha256:
          type: string
          title: Manifest Sha256
        file_count:
          type: integer
          title: File Count
        total_size_bytes:
          type: integer
          title: Total Size Bytes
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - skill_id
        - workspace_id
        - version
        - manifest_sha256
        - file_count
        - total_size_bytes
        - name
        - created_at
        - updated_at
      title: SkillVersionReadMinimal
      description: Summary response model for published skill versions in list endpoints.
    SkillValidationErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
      type: object
      required:
        - code
        - message
      title: SkillValidationErrorDetail
      description: Structured draft validation error.
    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:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````