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

> Endpoint to validate skill content against the Agent Skills specification.

Args:
    content: The SKILL.md content to validate
    skill_name: Optional expected skill name for validation

Returns:
    SkillValidationResponse: Validation result with errors and warnings



## OpenAPI

````yaml post /api/skill/validate
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/validate:
    post:
      tags:
        - Skill
      summary: Skill Validate
      description: >-
        Endpoint to validate skill content against the Agent Skills
        specification.


        Args:
            content: The SKILL.md content to validate
            skill_name: Optional expected skill name for validation

        Returns:
            SkillValidationResponse: Validation result with errors and warnings
      operationId: skill_validate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_skill_validate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillValidationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    Body_skill_validate:
      properties:
        content:
          type: string
          title: Content
          description: SKILL.md content to validate
        skill_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Name
          description: Expected skill name
      type: object
      required:
        - content
      title: Body_skill_validate
    SkillValidationResponse:
      properties:
        is_valid:
          type: boolean
          title: Is Valid
          description: Whether the skill is valid
        errors:
          items:
            type: string
          type: array
          title: Errors
          description: List of validation errors
          default: []
        warnings:
          items:
            type: string
          type: array
          title: Warnings
          description: List of validation warnings
          default: []
      type: object
      required:
        - is_valid
      title: SkillValidationResponse
    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}'

````