Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

List all skills for the current project.

skills.list(**kwargs) -> CursorPage<Skill { id, created_at, default_version, 4 more } >
GET/skills

List all skills for the current project.

ParametersExpand Collapse
after: String

Identifier for the last item from the previous pagination request

limit: Integer

Number of items to retrieve

minimum0
maximum100
order: :asc | :desc

Sort order of results by timestamp. Use asc for ascending order or desc for descending order.

ReturnsExpand Collapse
class Skill { id, created_at, default_version, 4 more }
id: String

Unique identifier for the skill.

created_at: Integer

Unix timestamp (seconds) for when the skill was created.

formatunixtime
default_version: String

Default version for the skill.

description: String

Description of the skill.

latest_version: String

Latest version for the skill.

name: String

Name of the skill.

object: :skill

The object type, which is skill.

List all skills for the current project.

require "openai"

openai = OpenAI::Client.new(api_key: "My API Key")

page = openai.skills.list

puts(page)
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "default_version": "default_version",
      "description": "description",
      "latest_version": "latest_version",
      "name": "name",
      "object": "skill"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "list"
}
Returns Examples
{
  "data": [
    {
      "id": "id",
      "created_at": 0,
      "default_version": "default_version",
      "description": "description",
      "latest_version": "latest_version",
      "name": "name",
      "object": "skill"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "list"
}