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

# Update a skill

> Update a skill's SKILL.md content and/or metadata.

If `skillMdContent` is provided, the name and description are re-parsed from frontmatter
and the SKILL.md file in R2 is replaced.

If only `name` or `description` are provided (without `skillMdContent`), only the
metadata fields are updated.




## OpenAPI

````yaml /openapi.yaml put /skills/manage
openapi: 3.1.0
info:
  title: AsterAgents API
  version: 1.0.0
  description: >
    API for AsterAgents platform operations.


    - **Admin endpoints** (`/admin/*`) require organization admin privileges
    (`org:admin` role)

    - **Agent endpoints** (`/agents`) require agent management permissions or
    `org:admin` role

    - **Knowledge base endpoints** (`/kb/*`) require standard authentication

    - **Skills endpoints** (`/skills/*`) require standard authentication

    - **File endpoints** (`/upload/*`, `/kb/files`, `/skills/files`) require
    standard authentication
  contact:
    name: AsterAgents Support
    url: https://asteragents.com/support
servers:
  - url: https://asteragents.com/api
    description: Production
  - url: http://localhost:3000/api
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Users
    description: Manage active organization users
  - name: Invitations
    description: Manage organization invitations
  - name: Files
    description: Upload and manage files
  - name: Knowledge Bases
    description: Manage knowledge bases and their files
  - name: Knowledge Base Management
    description: Create, update, and delete knowledge bases
  - name: Agents
    description: Create, update, and delete agents
  - name: Agent Tags
    description: Organize agents with tags
  - name: Tools
    description: Discover the tool catalog available to your organization
  - name: Skills
    description: Manage agent skills
  - name: Skill Files
    description: Manage bundled files for skills
  - name: Conversations
    description: Invoke agents and retrieve conversation history and messages
  - name: Scheduled Tasks
    description: Schedule agents to run automatically on a cron schedule
paths:
  /skills/manage:
    put:
      tags:
        - Skills
      summary: Update a skill
      description: >
        Update a skill's SKILL.md content and/or metadata.


        If `skillMdContent` is provided, the name and description are re-parsed
        from frontmatter

        and the SKILL.md file in R2 is replaced.


        If only `name` or `description` are provided (without `skillMdContent`),
        only the

        metadata fields are updated.
      operationId: updateSkill
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: integer
          description: The skill ID to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                skillMdContent:
                  type: string
                  description: >-
                    Updated SKILL.md content (max 100KB). If provided,
                    name/description are re-parsed from frontmatter.
                name:
                  type: string
                  description: >-
                    Update name directly (only used if skillMdContent is not
                    provided)
                description:
                  type: string
                  nullable: true
                  description: >-
                    Update description directly (only used if skillMdContent is
                    not provided)
      responses:
        '200':
          description: Skill updated successfully
        '400':
          description: Invalid SKILL.md content or missing name
        '404':
          description: Skill not found
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal Server Error
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Bad Request
        details:
          type: array
          items:
            type: object
            additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        JWT token from Clerk authentication.

        Must be from a user with `org:admin` role.

````