Skip to content
Navigation

Replace a skill’s files

A skill is instructions the agent reads on demand — it never executes, never dispatches and is never approval-gated (actions are the executable, gated layer). files replaces the whole map (same validation and caps as create) and bumps version. The slug IS the storage key, so this route never renames: a rename is a create plus a delete. scope/playbookId select which tier is edited (org by default); platform skills are code and cannot be edited here. Authorization: organization administrators only. Response { data: Skill }.

PATCH
https://api.cloudraker.com/skills/{slug}
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • slug
    string
    required

Request body JSON required

  • files
    map of
    string
    required

    Markdown files keyed by filename. SKILL.md is required and carries the frontmatter (name, description, optional requires: action slugs); siblings are progressive-disclosure references the agent reads on demand.

  • scope
    optional
    org
    or
    agent
  • playbookId
    optional
    string
    or null

Returns

200

The updated skill.

JSON
  • data
    object
    required
    • slug
      string
      required
    • name
      string
      required
    • description
      string
      required
    • version
      string
      required
    • tier
      platform
      or
      org
      or
      agent
      required

      Which tier won this slug. Higher tiers win the whole skill, reference files included.

    • files
      map of
      string
      required

      Markdown files keyed by filename. SKILL.md is required and carries the frontmatter (name, description, optional requires: action slugs); siblings are progressive-disclosure references the agent reads on demand.

    • requires
      optional
      object

      Action slugs the guidance assumes. Purely informational: a missing action adds a "not available here" banner to what the agent reads — it never gates the read.

      • actions
        array of
        string
        required

Type to search…

↑↓ navigate↵ selectEsc close