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

# Install Skill

> Add a skill card to the user's library.

Mirrors the MCP install: user-level, no workspace involved. The
archive is not downloaded here — only the card's metadata is
recorded, and the files are fetched when the skill is actually put
into a workspace. So a hub that has since dropped the card fails
then rather than now.



## OpenAPI

````yaml /versions/2.0.6dev/en/deploy/openapi.json post /hub/skill/{hub_id}/cards/{card_id}/install
openapi: 3.1.0
info:
  title: AgentScope
  version: 2.0.5
servers: []
security: []
paths:
  /hub/skill/{hub_id}/cards/{card_id}/install:
    post:
      tags:
        - hub
      summary: Install Skill
      description: |-
        Add a skill card to the user's library.

        Mirrors the MCP install: user-level, no workspace involved. The
        archive is not downloaded here — only the card's metadata is
        recorded, and the files are fetched when the skill is actually put
        into a workspace. So a hub that has since dropped the card fails
        then rather than now.
      operationId: install_skill_hub_skill__hub_id__cards__card_id__install_post
      parameters:
        - name: hub_id
          in: path
          required: true
          schema:
            type: string
            title: Hub Id
        - name: card_id
          in: path
          required: true
          schema:
            type: string
            title: Card Id
        - name: name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Name
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            description: >-
              Caller's user ID. Temporary header-based identity; will be
              replaced by JWT auth.
            title: X-User-Id
          description: >-
            Caller's user ID. Temporary header-based identity; will be replaced
            by JWT auth.
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillView'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkillView:
      properties:
        id:
          type: string
          title: Id
          description: The installed-skill record id.
        name:
          type: string
          title: Name
          description: The skill name, unique for this user.
        enabled:
          type: boolean
          title: Enabled
          description: Whether the user has it turned on.
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
          description: The card's user-facing name at install time.
        description:
          type: string
          title: Description
          description: The card's description at install time.
          default: ''
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: The card's tags at install time.
        author:
          anyOf:
            - type: string
            - type: 'null'
          title: Author
          description: Who published the skill, at install time.
        icon_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Url
          description: The card's icon at install time.
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: The skill's page on the hub's website.
        hub_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Hub Id
          description: The hub it came from, or null when added by hand.
        card_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Card Id
          description: The card's id on that hub.
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
          description: The card version installed.
      type: object
      required:
        - id
        - name
        - enabled
      title: SkillView
      description: One installed skill, as shown in the user's library.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````