Skip to main content

Skills

List Skills

Returns the skills visible to the current workspace, ordered by creation time with the newest skill first. Use starting_after or ending_before to page through large collections.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.list()

    # Handle response
    print(res)

Create a Skill

Creates a reusable skill in the workspace. Skills store instructions, metadata, and an optional project location so teams can standardize repeatable AI workflows.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.create(display_name="Josefina_Conn")

    # Handle response
    print(res)

Retrieve a Skill

Retrieves an existing skill by skill ID. Display names are also accepted for compatibility because they are unique within a workspace.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.get(skill_id="<id>")

    # Handle response
    print(res)

Delete a Skill

Deletes a skill from the workspace. The response body is empty when the delete succeeds.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.delete(skill_id="<id>")

    # Handle response
    print(res)

Update a Skill

Updates mutable skill fields. Omitted optional fields keep their current values. Repeated fields such as tags replace the existing collection when provided.
from orq_ai_sdk import Orq
import os

with Orq(
    api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:

    res = orq.skills.update(skill_id="<value>")

    # Handle response
    print(res)