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

# validate skill authoring content

> Requires the stagedAuthoring workspace capability. Reads require agents:read; lists also require agents:list; writes and validation require agents:read plus agents:write. Saving stages content; publication is a separate operation. Current permissions are checked again on every retry. Multi-resource operations are not atomic.



## OpenAPI

````yaml /openapi/public-api.yaml post /v1/public/authoring/skills/validate
openapi: 3.1.0
info:
  title: Erstan Public Agent API
  version: 1.4.0
  description: >-
    Start published Erstan agents from external systems and poll for results.
    API keys carry scopes (`agents:list`, `agents:read`, `agents:write`,
    `agents:run`, `runs:read`, `tasks:execute`, `documents:read`,
    `documents:write`, `files:read`, `files:write`). Agent access follows the
    key creator's current workspace and team permissions. Project and team
    allowlists (`allowedProjectIds`, `allowedTeamIds`) further restrict task and
    document and file access. Guarded Agent and Skill draft authoring is
    available under `/v1/public/authoring` when the workspace capability is
    enabled. The MCP server at `/v1/mcp` also exposes authoring and
    task/document/file tools.
servers:
  - url: https://api.erstan.com
    description: Public endpoint
security:
  - PublicApiKey: []
tags:
  - name: Authoring
    description: >-
      Capability-gated Agent and Skill drafts, history, validation and
      publication.
  - name: Agents
    description: >-
      Discover and run published agents available to the key creator under their
      current permissions.
  - name: Runs
    description: Read run status and results.
  - name: MCP
    description: >-
      Model Context Protocol server for external clients. Agent Builder tools
      use `agents:read`, `agents:write`, or both, plus the key creator's live
      Erstan permissions. Task and content tools also apply project/team
      allowlists.
paths:
  /v1/public/authoring/skills/validate:
    post:
      tags:
        - Authoring
      summary: validate skill authoring content
      description: >-
        Requires the stagedAuthoring workspace capability. Reads require
        agents:read; lists also require agents:list; writes and validation
        require agents:read plus agents:write. Saving stages content;
        publication is a separate operation. Current permissions are checked
        again on every retry. Multi-resource operations are not atomic.
      operationId: validateAuthoringSkill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthoringSkillUpdate'
      responses:
        '200':
          description: Success.
          headers:
            ETag:
              description: Strong current authoring revision. Preserve with its content.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthoringValidationResult'
        default:
          description: >-
            Public error envelope. Missing If-Match: 428; stale revision: 412;
            idempotency conflict, expired receipt or uncertain outcome: 409. Do
            not retry conflicts with new intent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AuthoringSkillUpdate:
      type: object
      required:
        - packageJson
      properties:
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        packageJson:
          $ref: '#/components/schemas/AuthoringSkillPackage'
      additionalProperties: false
    AuthoringValidationResult:
      type: object
      required:
        - valid
      properties:
        valid:
          type: boolean
        diagnostics:
          type: array
          items:
            type: object
            additionalProperties: true
        issues:
          type: array
          items:
            type: object
            additionalProperties: true
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: array
              items:
                $ref: '#/components/schemas/ErrorDetail'
            requestId:
              type: string
    AuthoringSkillPackage:
      type: object
      required:
        - version
        - entryPath
        - files
        - actions
      properties:
        version:
          type: integer
          const: 1
        entryPath:
          type: string
          const: SKILL.md
        files:
          type: array
          items:
            type: object
            required:
              - path
              - content
            properties:
              path:
                type: string
              content:
                type: string
              language:
                type:
                  - string
                  - 'null'
            additionalProperties: true
        actions:
          type: array
          items:
            type: object
            required:
              - key
              - title
              - runtime
              - entryPath
              - language
              - sideEffects
            properties:
              key:
                type: string
              title:
                type: string
              runtime:
                type: string
                enum:
                  - e2b
              entryPath:
                type: string
              language:
                type: string
                enum:
                  - javascript
                  - python
              sideEffects:
                type: string
                enum:
                  - none
                  - external
              description:
                type:
                  - string
                  - 'null'
              timeoutMs:
                type:
                  - integer
                  - 'null'
                minimum: 1
            additionalProperties: true
      additionalProperties: true
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        field:
          type: string
        code:
          type: string
        message:
          type: string
  securitySchemes:
    PublicApiKey:
      type: http
      scheme: bearer
      bearerFormat: ers_live API key
      description: >-
        Workspace API key created in Erstan Settings. Keys carry scopes
        (`agents:list`, `agents:read`, `agents:write`, `agents:run`,
        `runs:read`, `tasks:execute`, `documents:read`, `documents:write`,
        `files:read`, `files:write`). Agent access follows the key creator's
        current workspace, team, and agent permissions. Agent draft creation
        requires `agents:write`; update, validation, and publishing require both
        `agents:read` and `agents:write`; draft testing also requires
        `agents:run`. Keys with `tasks:execute` must include at least one
        allowed project or team (`allowedProjectIds` / `allowedTeamIds`); keys
        with document or file scopes must include at least one allowed team.
        Empty allowlists mean no access — the API fails closed.

````