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

# List skills or get a single skill

> Retrieve all skills for the authenticated user's organization.

Pass `?id={skillId}` to get a single skill with its files, SKILL.md content, and which agents use it.




## OpenAPI

````yaml /openapi.yaml get /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:
    get:
      tags:
        - Skills
      summary: List skills or get a single skill
      description: >
        Retrieve all skills for the authenticated user's organization.


        Pass `?id={skillId}` to get a single skill with its files, SKILL.md
        content, and which agents use it.
      operationId: listSkills
      parameters:
        - name: id
          in: query
          required: false
          schema:
            type: integer
          description: Optional skill ID to retrieve a single skill with full details
      responses:
        '200':
          description: Successfully retrieved skills
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                properties:
                  success:
                    type: boolean
                  skills:
                    type: array
                    description: Returned when listing all skills (no `id` param)
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
                        description:
                          type: string
                          nullable: true
                        metadata:
                          type: object
                          nullable: true
                        fileCount:
                          type: integer
                        createdAt:
                          type: string
                          format: date-time
                        updatedAt:
                          type: string
                          format: date-time
                  skill:
                    type: object
                    description: Returned when fetching a single skill (with `id` param)
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      description:
                        type: string
                        nullable: true
                      metadata:
                        type: object
                        nullable: true
                      files:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            fileId:
                              type: string
                              format: uuid
                            fileName:
                              type: string
                            contentType:
                              type: string
                            fileSize:
                              type: integer
                              nullable: true
                            createdAt:
                              type: string
                              format: date-time
                      agents:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            name:
                              type: string
                      skillMdContent:
                        type: string
                        nullable: true
              examples:
                listAll:
                  summary: List all skills
                  value:
                    success: true
                    skills:
                      - id: 1
                        name: PDF Report Generator
                        description: Generate formatted PDF reports from structured data
                        metadata: null
                        fileCount: 3
                        createdAt: '2026-03-10T10:00:00.000Z'
                        updatedAt: '2026-03-10T10:00:00.000Z'
                singleSkill:
                  summary: Get single skill with details
                  value:
                    success: true
                    skill:
                      id: 1
                      name: PDF Report Generator
                      description: Generate formatted PDF reports from structured data
                      files:
                        - id: 1
                          fileId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                          fileName: SKILL.md
                          contentType: text/markdown
                          fileSize: 1024
                        - id: 4
                          fileId: f6e5d4c3-b2a1-0987-fedc-ba0987654321
                          fileName: scripts/generate_report.py
                          contentType: text/x-python
                          fileSize: 2560
                      agents:
                        - id: 42
                          name: Report Assistant
                      skillMdContent: |-
                        ---
                        name: PDF Report Generator
                        ---

                        Instructions here...
        '404':
          description: Skill not found (when using `id` param)
        '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.

````