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

# Skill abrufen

> Ruft einen einzelnen Skill anhand seines Slugs ab. Standardmäßig wird die neueste genehmigte Version zurückgegeben, sofern eine vorhanden ist. Über den Query-Parameter version kann eine bestimmte Version angefordert werden. Versionsinhalte sind nur enthalten, wenn die ausgewählte Version genehmigt ist.



## OpenAPI

````yaml /de/api-reference/openapi.json get /skills/{slug}
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /skills/{slug}:
    get:
      tags:
        - Skills
      summary: Skill abrufen
      description: >-
        Ruft einen einzelnen Skill anhand seines Slugs ab. Standardmäßig wird
        die neueste genehmigte Version zurückgegeben, sofern eine vorhanden ist.
        Über den Query-Parameter version kann eine bestimmte Version angefordert
        werden. Versionsinhalte sind nur enthalten, wenn die ausgewählte Version
        genehmigt ist.
      operationId: getSkill
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
          description: Slug des Skills
        - name: version
          in: query
          required: false
          schema:
            type: string
          description: Abzurufende Version des Skills
      responses:
        '200':
          description: Skill erfolgreich abgerufen
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  skill:
                    $ref: '#/components/schemas/Skill'
                  version:
                    nullable: true
                    allOf:
                      - $ref: '#/components/schemas/SkillVersion'
              examples:
                approved:
                  summary: Genehmigte Skill-Version
                  value:
                    status: ok
                    skill:
                      id: 550e8400-e29b-41d4-a716-446655440000
                      name: secure-review
                      slug: secure-review
                      description: Code auf Security-Issues prüfen.
                      status: approved
                      is_installable: true
                      latest_version: 1.0.0
                      latest_approved_version: 1.0.0
                      created_at: '2026-06-11T12:00:00+00:00'
                      updated_at: '2026-06-11T12:00:00+00:00'
                    version:
                      id: 8c23448e-f629-47c5-9f56-9f26f7ad3d01
                      version: 1.0.0
                      status: approved
                      is_installable: true
                      security_concerns: ''
                      created_at: '2026-06-11T12:00:00+00:00'
                      content: |-
                        ---
                        name: secure-review
                        description: Review code for security issues.
                        ---

                        # Instructions
                pending:
                  summary: Skill-Version mit ausstehender Prüfung
                  value:
                    status: ok
                    skill:
                      id: 550e8400-e29b-41d4-a716-446655440000
                      name: secure-review
                      slug: secure-review
                      description: Code auf Security-Issues prüfen.
                      status: pending_review
                      is_installable: false
                      latest_version: 1.0.1
                      latest_approved_version: null
                      created_at: '2026-06-11T12:00:00+00:00'
                      updated_at: '2026-06-11T12:05:00+00:00'
                    version:
                      id: 8c23448e-f629-47c5-9f56-9f26f7ad3d01
                      version: 1.0.1
                      status: pending_review
                      is_installable: false
                      security_concerns: ''
                      created_at: '2026-06-11T12:05:00+00:00'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
        '404':
          description: Skill oder Version nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: not_found
                  error:
                    type: string
                    example: No skill named 'secure-review' found
components:
  schemas:
    Skill:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          example: secure-review
        slug:
          type: string
          example: secure-review
        description:
          type: string
          example: Review code for security issues.
        status:
          type: string
          nullable: true
          enum:
            - pending_review
            - approved
            - rejected
            - failed
        is_installable:
          type: boolean
          description: >-
            Gibt an, ob der Skill über eine genehmigte installierbare Version
            verfügt
        latest_version:
          type: string
          nullable: true
          example: 1.0.1
        latest_approved_version:
          type: string
          nullable: true
          example: 1.0.0
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    SkillVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        version:
          type: string
          example: 1.0.0
        status:
          type: string
          enum:
            - pending_review
            - approved
            - rejected
            - failed
        is_installable:
          type: boolean
        security_concerns:
          type: string
          description: Bei Ablehnung einer Version festgestelltes Review-Problem
        created_at:
          type: string
          format: date-time
        content:
          type: string
          description: >-
            Inhalt von SKILL.md. Nur enthalten, wenn die ausgewählte Version
            genehmigt ist.
  responses:
    Unauthorized:
      description: Ungültiges oder fehlendes Token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````