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

# Skill Get

> Endpoint to retrieve a skill by its unique ID.

Args:
    skill_id: The ID of the skill to retrieve.
    include_optional_files: If true (default), include scripts, references, and assets.
        Set to false for a lighter response when only SKILL.md metadata/content is needed.

Returns:
    Skill: A Skill model instance representing the requested skill.

Raises:
    HTTPException 400: If input validation fails
    HTTPException 404: If the skill with the specified ID does not exist.
    HTTPException 500: If database operation fails



## OpenAPI

````yaml get /api/skill/{skill_id}
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/skill/{skill_id}:
    get:
      tags:
        - Skill
      summary: Skill Get
      description: |-
        Endpoint to retrieve a skill by its unique ID.

        Args:
            skill_id: The ID of the skill to retrieve.
            include_optional_files: If true (default), include scripts, references, and assets.
                Set to false for a lighter response when only SKILL.md metadata/content is needed.

        Returns:
            Skill: A Skill model instance representing the requested skill.

        Raises:
            HTTPException 400: If input validation fails
            HTTPException 404: If the skill with the specified ID does not exist.
            HTTPException 500: If database operation fails
      operationId: skill_get
      parameters:
        - name: skill_id
          in: path
          required: true
          schema:
            type: string
            title: Skill Id
        - name: include_optional_files
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              If false, omit scripts, references, and assets for a smaller
              response.
            default: false
            title: Include Optional Files
          description: >-
            If false, omit scripts, references, and assets for a smaller
            response.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Skill'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    Skill:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the skill
        name:
          type: string
          title: Name
          description: Name of the skill
        description:
          type: string
          title: Description
          description: Description of the skill
        content:
          type: string
          title: Content
          description: Full SKILL.md content
        license:
          type: string
          title: License
          description: License field
          default: ''
        compatibility:
          type: string
          title: Compatibility
          description: Compatibility field
          default: ''
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          description: Metadata dict
          default: {}
        allowed_tools:
          type: string
          title: Allowed Tools
          description: Allowed-tools field
          default: ''
        status:
          type: string
          title: Status
          description: 'Status of the skill: active or disabled'
          default: active
        scripts:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Scripts
          description: Optional scripts/ files (path -> content)
        references:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: References
          description: Optional references/ files (path -> content)
        assets:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Assets
          description: Optional assets/ files (path -> content)
        created_by:
          type: string
          title: Created By
          description: User who created the skill
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The date and time when the skill was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: The date and time when the skill was last updated.
      type: object
      required:
        - id
        - name
        - description
        - content
        - created_by
        - created_at
        - updated_at
      title: Skill
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````