> ## 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.

# Create a skill

> Create a new skill by providing SKILL.md content.

The `name` and `description` are automatically parsed from the SKILL.md YAML frontmatter.

**Required frontmatter fields:**
- `name` — the skill name

**Optional frontmatter fields:**
- `description` — what the skill does
- Any additional fields are stored as `metadata`




## OpenAPI

````yaml /openapi.yaml post /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:
    post:
      tags:
        - Skills
      summary: Create a skill
      description: >
        Create a new skill by providing SKILL.md content.


        The `name` and `description` are automatically parsed from the SKILL.md
        YAML frontmatter.


        **Required frontmatter fields:**

        - `name` — the skill name


        **Optional frontmatter fields:**

        - `description` — what the skill does

        - Any additional fields are stored as `metadata`
      operationId: createSkill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - skillMdContent
              properties:
                skillMdContent:
                  type: string
                  description: Full SKILL.md content including YAML frontmatter. Max 100KB.
                  example: |-
                    ---
                    name: PDF Report Generator
                    description: Generate formatted PDF reports
                    ---

                    ## Instructions

                    When asked to generate a report...
            examples:
              basic:
                summary: Create a skill with SKILL.md
                value:
                  skillMdContent: >-
                    ---

                    name: PDF Report Generator

                    description: Generate formatted PDF reports from structured
                    data

                    ---


                    ## Instructions


                    1. Collect the data

                    2. Run scripts/generate_report.py

                    3. Return the PDF
      responses:
        '201':
          description: Skill created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  skill:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      description:
                        type: string
                        nullable: true
                      fileCount:
                        type: integer
        '400':
          description: Invalid SKILL.md content or missing name in frontmatter
        '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.

````