Skills
List Skills
Returns the skills visible to the current workspace, ordered by creation time with the newest skill first. Usestarting_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)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.list();
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"limit": Optional[int],
"starting_after": Optional[str],
"ending_before": Optional[str],
"search": Optional[str],
"project_id": Optional[str],
"updated_by": Optional[str],
}
{
limit?: number;
startingAfter?: string;
endingBefore?: string;
search?: string;
projectId?: string;
updatedBy?: string;
}
Show Response
Show Response
{
"object": str,
"data": [{
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
}],
"has_more": bool,
}
{
object: string;
data: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
}[];
hasMore: boolean;
}
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="summarize_thread")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.create({
displayName: "summarize_thread",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"display_name": str, # required
"description": Optional[str],
"tags": List[str], # optional
"path": Optional[str],
"project_id": Optional[str],
"instructions": Optional[str],
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
}
{
displayName: string; // required
description?: string;
tags?: string[];
path?: string;
projectId?: string;
instructions?: string;
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Import Bundle
Uploads a zip archive containing a SKILL.md file and optional supporting files. Creates a new file-bearing skill. An existing display name returns AlreadyExists. Operating-system archive metadata is ignored:__MACOSX entries, AppleDouble sidecars (._*), and per-directory metadata such as .DS_Store, Thumbs.db, and desktop.ini are dropped and do not count toward the per-skill file limit.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.import_bundle(bundle="<value>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.importBundle({
bundle: "<value>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"bundle": str, # required
"project_id": Optional[str],
"path": Optional[str],
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
}
{
projectId?: string;
path?: string;
bundle: string; // required
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Import From Repository
Creates an editable skill snapshot from a repository directory using a workspace source control connection. The source commit is retained; subsequent repository changes are not synchronized.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.import_from_repository()
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.importFromRepository({});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"project_id": Optional[str],
"path": Optional[str],
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
}
{
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
projectId?: string;
path?: string;
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
}
Show Response
Show Response
{
"skill": { # optional
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill?: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
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)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.get({
skillId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"factory_id": Optional[str],
}
{
skillId: string; // required
factoryId?: string;
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
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)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.delete({
skillId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
}
{
skillId: string; // required
}
Update a Skill
Updates mutable skill fields. Omitted fields keep their current values. Whentags is provided it replaces the existing tags; send an empty array to clear them.
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>", display_name="<value>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.update({
skillId: "<id>",
updateSkillRequest: {
displayName: "<value>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"display_name": Optional[str],
"description": Optional[str],
"tags": List[str], # optional
"path": Optional[str],
"instructions": Optional[str],
"project_id": Optional[str],
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
}
{
skillId: string; // required
updateSkillRequest: { // required
displayName?: string;
description?: string;
tags?: string[];
path?: string;
instructions?: string;
projectId?: string;
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Replace Bundle
Replace a skill bundlefrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.replace_bundle(skill_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.replaceBundle({
skillId: "<id>",
replaceSkillBundleRequest: {
bundle: "<value>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"bundle": Optional[str],
}
{
skillId: string; // required
replaceSkillBundleRequest: { // required
bundle?: string;
};
}
Show Response
Show Response
{
"skill": { # optional
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill?: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Put File
Uploads a single file to a skill’s bundle. If the path already exists the file is replaced; otherwise it is added to the manifest.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.put_file(skill_id="<id>", path="/usr/libexec", content="<value>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.putFile({
skillId: "<id>",
putSkillFileRequest: {
path: "/usr/libexec",
content: "<value>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"path": str, # required
"content": str, # required
}
{
skillId: string; // required
putSkillFileRequest: { // required
path: string; // required
content: string; // required
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Rename File
Changes a file’s path within a skill’s bundle. The file content is unchanged. SKILL.md cannot be renamed.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.rename_file(skill_id="<id>", old_path="<value>", new_path="<value>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.renameFile({
skillId: "<id>",
renameSkillFileRequest: {
oldPath: "<value>",
newPath: "<value>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"old_path": str, # required
"new_path": str, # required
}
{
skillId: string; // required
renameSkillFileRequest: { // required
oldPath: string; // required
newPath: string; // required
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Save Files
Saves file drafts and optional skill metadata as one version.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.save_files(skill_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.saveFiles({
skillId: "<id>",
saveSkillFilesRequest: {
displayName: "<value>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"files": [{ # optional
"path": Optional[str],
"content": Optional[str],
}],
"display_name": Optional[str],
"description": Optional[str],
"instructions": Optional[str],
}
{
skillId: string; // required
saveSkillFilesRequest: { // required
files?: {
path?: string;
content?: string;
}[];
displayName?: string;
description?: string;
instructions?: string;
};
}
Show Response
Show Response
{
"skill": { # optional
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill?: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
List Versions
List skill versionsfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.list_versions(skill_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.listVersions({
skillId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"limit": Optional[int],
"starting_after": Optional[str],
"ending_before": Optional[str],
}
{
skillId: string; // required
limit?: number;
startingAfter?: string;
endingBefore?: string;
}
Show Response
Show Response
{
"object": Optional[str],
"data": [{ # optional
"version_id": Optional[str],
"version": Optional[str],
"created_at": str, # optional
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
}],
"has_more": Optional[bool],
}
{
object?: string;
data?: {
versionId?: string;
version?: string;
createdAt?: Date;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
}[];
hasMore?: boolean;
}
Export Bundle
Downloads the skill as a zip archive containing the SKILL.md file and all files in the manifest. Basic Skills receive a synthesized SKILL.md.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.export_bundle(skill_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.exportBundle({
skillId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
}
{
skillId: string; // required
}
Show Response
Show Response
{
"bundle": Optional[str],
"content_type": Optional[str],
"filename": Optional[str],
}
{
bundle?: string;
contentType?: string;
filename?: string;
}
Restore Version
Restores a skill to a previous version recorded in the activity log. The restored state becomes a new version.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.restore_version(skill_id="<id>", version_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.restoreVersion({
skillId: "<id>",
restoreSkillVersionRequest: {
versionId: "<id>",
},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"version_id": str, # required
}
{
skillId: string; // required
restoreSkillVersionRequest: { // required
versionId: string; // required
};
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Delete File
Removes a file from a skill’s bundle by its relative path. SKILL.md cannot be deleted.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.delete_file(skill_id="<id>", path="/usr/include")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.deleteFile({
skillId: "<id>",
path: "/usr/include",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"path": str, # required
}
{
skillId: string; // required
path: string; // required
}
Show Response
Show Response
{
"skill": {
"skill_id": str,
"display_name": str,
"description": str,
"tags": List[str],
"project_id": str,
"path": str,
"created_at": str,
"updated_at": str,
"created_by_id": str,
"updated_by_id": str,
"instructions": str,
"version": str,
"files": [{ # optional
"path": str,
"size_bytes": str,
"sha256": str,
"content_type": str,
}],
"has_files": Optional[bool],
"repository_source": { # optional
"connection_id": Optional[str],
"repository_url": Optional[str],
"ref": Optional[str],
"subdirectory": Optional[str],
"commit_sha": Optional[str],
},
"sharing": { # optional
"all_projects": Dict[str, Any], # optional
"selected": { # optional
"project_ids": List[str], # optional
},
"allow_version_pin": Optional[bool],
"allow_fork": Optional[bool],
"auto_grant_new_projects": Optional[bool],
},
},
}
{
skill: {
skillId: string;
displayName: string;
description: string;
tags: string[];
projectId: string;
path: string;
createdAt: Date;
updatedAt: Date;
createdById: string;
updatedById: string;
instructions: string;
version: string;
files?: {
path: string;
sizeBytes: string;
sha256: string;
contentType: string;
}[];
hasFiles?: boolean;
repositorySource?: {
connectionId?: string;
repositoryUrl?: string;
ref?: string;
subdirectory?: string;
commitSha?: string;
};
sharing?: {
allProjects?: Record<string, unknown>;
selected?: {
projectIds?: string[];
};
allowVersionPin?: boolean;
allowFork?: boolean;
autoGrantNewProjects?: boolean;
};
};
}
Get File Content
Returns a time-limited presigned URL that can be used to download the raw content of a file in the skill bundle.from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.skills.get_file_content(skill_id="<id>", path="/usr/src")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.skills.getFileContent({
skillId: "<id>",
path: "/usr/src",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"skill_id": str, # required
"path": str, # required
}
{
skillId: string; // required
path: string; // required
}
Show Response
Show Response
{
"download_url": str,
}
{
downloadUrl: string;
}