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

# Create skill

> Create a new user skill for the workspace (workspace owner only)



## OpenAPI

````yaml /api-reference/openapi.json post /api/agents/skills
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/agents/skills:
    post:
      tags:
        - Agents
      summary: Create skill
      description: Create a new user skill for the workspace (workspace owner only)
      operationId: AgentsController_createSkill
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSkillDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    CreateSkillDto:
      type: object
      properties:
        name:
          type: string
          example: web-research
        description:
          type: string
          example: Advanced web research techniques...
        content:
          type: string
          example: |-
            # Web Research

            ## When to use...
      required:
        - name
        - description
        - content
    SkillResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          example: web-research
        description:
          type: string
          example: Advanced web research techniques...
        content:
          type: string
          example: |-
            # Web Research

            ## When to use...
        isEnabled:
          type: boolean
          example: true
          default: true
        isBuiltin:
          type: boolean
          example: false
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        createdBy:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          nullable: true
      required:
        - id
        - name
        - description
        - content
        - isEnabled
        - isBuiltin
        - createdAt
        - updatedAt
        - createdBy

````