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

# Create Skill Version

> Create a new pending version of an existing skill.

Used by the NPX CLI update flow (metadata PATCH, then this, then upload).
Same rules as a version-carrying PATCH: author only, one pending version
per skill (409 SKILL_VERSION_PENDING), an explicit version must be valid
semver greater than the current one (422). Defaults to a patch bump.
Upload the package next with ``POST /v1/skills/{slug}/upload``.



## OpenAPI

````yaml /openapi.json post /v1/skills/{slug}/versions
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/skills/{slug}/versions:
    post:
      tags:
        - skills
      summary: Create Skill Version
      description: >-
        Create a new pending version of an existing skill.


        Used by the NPX CLI update flow (metadata PATCH, then this, then
        upload).

        Same rules as a version-carrying PATCH: author only, one pending version

        per skill (409 SKILL_VERSION_PENDING), an explicit version must be valid

        semver greater than the current one (422). Defaults to a patch bump.

        Upload the package next with ``POST /v1/skills/{slug}/upload``.
      operationId: create_skill_version_v1_skills__slug__versions_post
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            title: Slug
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillVersionCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillUpdateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkillVersionCreateRequest:
      properties:
        bump:
          anyOf:
            - type: string
              pattern: ^(patch|minor|major)$
            - type: 'null'
          title: Bump
        version:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Version
        changelog:
          anyOf:
            - type: string
            - type: 'null'
          title: Changelog
      type: object
      title: SkillVersionCreateRequest
      description: |-
        Body of ``POST /v1/skills/{slug}/versions`` (the NPX CLI update flow).

        Creates a pending version only. Listing metadata sent here is ignored;
        use ``PATCH /v1/skills/{slug}``. With neither ``bump`` nor ``version``
        the version is bumped by patch.
    SkillUpdateResponse:
      properties:
        slug:
          type: string
          title: Slug
        previous_version:
          type: string
          title: Previous Version
        new_version:
          type: string
          title: New Version
        version_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Version Id
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
      type: object
      required:
        - slug
        - previous_version
        - new_version
        - status
        - message
      title: SkillUpdateResponse
    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

````