> ## Documentation Index
> Fetch the complete documentation index at: https://allhandsai-chore-regenerate-agent-sdk-openapi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Skills

> Load and merge skills from all configured sources.

Skills are loaded from multiple sources and merged with the following
precedence (later overrides earlier for duplicate names):
1. Sandbox skills (lowest) - Exposed URLs from sandbox
2. Public skills - From GitHub OpenHands/extensions repository
3. User skills - From ~/.openhands/skills/
4. Organization skills - From {org}/.openhands or equivalent
5. Project skills (highest) - From {workspace}/.openhands/skills/

Args:
    request: SkillsRequest containing configuration for which sources to load.

Returns:
    SkillsResponse containing merged skills and source counts.



## OpenAPI

````yaml /openapi/agent-sdk.json post /api/skills
openapi: 3.1.0
info:
  description: OpenHands Agent Server - REST/WebSocket interface for OpenHands AI Agent
  title: OpenHands Agent Server
  version: 1.52.0
servers: []
security: []
paths:
  /api/skills:
    post:
      tags:
        - Skills
      summary: Get Skills
      description: |-
        Load and merge skills from all configured sources.

        Skills are loaded from multiple sources and merged with the following
        precedence (later overrides earlier for duplicate names):
        1. Sandbox skills (lowest) - Exposed URLs from sandbox
        2. Public skills - From GitHub OpenHands/extensions repository
        3. User skills - From ~/.openhands/skills/
        4. Organization skills - From {org}/.openhands or equivalent
        5. Project skills (highest) - From {workspace}/.openhands/skills/

        Args:
            request: SkillsRequest containing configuration for which sources to load.

        Returns:
            SkillsResponse containing merged skills and source counts.
      operationId: get_skills_api_skills_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillsResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
components:
  schemas:
    SkillsRequest:
      description: Request body for loading skills.
      properties:
        load_org:
          default: true
          description: Load organization-level skills
          title: Load Org
          type: boolean
        load_project:
          default: true
          description: Load project skills from workspace
          title: Load Project
          type: boolean
        load_public:
          default: true
          description: Load public skills from OpenHands/extensions repo
          title: Load Public
          type: boolean
        load_user:
          default: true
          description: Load user skills from ~/.openhands/skills/
          title: Load User
          type: boolean
        marketplace_path:
          anyOf:
            - type: string
            - type: 'null'
          default: marketplaces/default.json
          description: >-
            Relative marketplace JSON path for public skills. Set to null to
            load all public skills.
          title: Marketplace Path
        org_configs:
          anyOf:
            - items:
                $ref: '#/components/schemas/OrgConfig'
              type: array
            - type: 'null'
          description: Organization/user skill repositories to load concurrently
          title: Org Configs
        project_dir:
          anyOf:
            - type: string
            - type: 'null'
          description: Workspace directory path for project skills
          title: Project Dir
        registered_marketplaces:
          description: >-
            Marketplace registrations for plugin-based skill loading.
            Registrations with auto_load=True or a list of plugin names add
            their skills to the public skills.
          items:
            $ref: '#/components/schemas/MarketplaceRegistration'
          title: Registered Marketplaces
          type: array
        sandbox_config:
          anyOf:
            - $ref: '#/components/schemas/SandboxConfig'
            - type: 'null'
          description: Sandbox skills configuration
      title: SkillsRequest
      type: object
    SkillsResponse:
      description: Response containing all available skills.
      properties:
        skills:
          items:
            $ref: '#/components/schemas/SkillInfo'
          title: Skills
          type: array
        sources:
          additionalProperties:
            type: integer
          description: Count of skills loaded from each source
          title: Sources
          type: object
      required:
        - skills
      title: SkillsResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    OrgConfig:
      description: Configuration for loading organization-level skills.
      properties:
        org_name:
          description: Organization name
          title: Org Name
          type: string
        org_repo_url:
          description: >-
            Pre-authenticated Git URL for the organization repository. Contains
            sensitive credentials - handle with care and avoid logging.
          title: Org Repo Url
          type: string
        provider:
          description: 'Git provider type: github, gitlab, azure, bitbucket'
          title: Provider
          type: string
        repository:
          description: Selected repository (e.g., 'owner/repo')
          title: Repository
          type: string
      required:
        - repository
        - provider
        - org_repo_url
        - org_name
      title: OrgConfig
      type: object
    MarketplaceRegistration:
      description: Registration for a marketplace source used for plugin resolution.
      properties:
        auto_load:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
          default: false
          description: >-
            Whether to load marketplace plugins and standalone skills at
            conversation start. Use True for all, False or [] for none, or a
            list of plugin/skill names for selective loading.
          title: Auto Load
        name:
          description: Identifier for this marketplace registration
          title: Name
          type: string
        ref:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional branch, tag, or commit for git sources
          title: Ref
        repo_path:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Subdirectory path within the git repository containing the
            marketplace. Only relevant for git sources.
          title: Repo Path
        source:
          description: 'Marketplace source: ''github:owner/repo'', git URL, or local path'
          title: Source
          type: string
      required:
        - name
        - source
      title: MarketplaceRegistration
      type: object
    SandboxConfig:
      description: Configuration for loading sandbox-specific skills.
      properties:
        exposed_urls:
          description: List of exposed URLs from the sandbox
          items:
            $ref: '#/components/schemas/ExposedUrl'
          title: Exposed Urls
          type: array
      title: SandboxConfig
      type: object
    SkillInfo:
      description: >-
        Lightweight representation of a skill's essential information.


        This class provides a standardized, serializable format for skill
        metadata

        that can be used across different components of the system.
      properties:
        content:
          title: Content
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        disable_model_invocation:
          default: false
          title: Disable Model Invocation
          type: boolean
        is_agentskills_format:
          default: false
          title: Is Agentskills Format
          type: boolean
        name:
          title: Name
          type: string
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        triggers:
          items:
            type: string
          title: Triggers
          type: array
        type:
          enum:
            - repo
            - knowledge
            - agentskills
          title: Type
          type: string
      required:
        - name
        - type
        - content
      title: SkillInfo
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    ExposedUrl:
      description: Represents an exposed URL from the sandbox.
      properties:
        name:
          title: Name
          type: string
        port:
          title: Port
          type: integer
        url:
          title: Url
          type: string
      required:
        - name
        - url
        - port
      title: ExposedUrl
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-Session-API-Key
      type: apiKey

````

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