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

# Skills

> Skills are reusable, instruction-driven capabilities in Orq.ai. Define a task once and plug it into any agent, prompt, or Jinja template that needs it.

Skills are reusable, instruction-driven capabilities that tell an **Agent** how to perform a specific task reliably, using the right context, tools, steps, and output format. Attach a Skill to an Agent so it can invoke it on demand when relevant, or reference it statically inside agent instructions, [**Prompts**](https://docs.orq.ai/ai-studio/prompts/prompts.md), and Jinja templates using `{{skill.key}}`. Any update to a Skill propagates automatically to every reference.

## Use Cases

> [accordion] Modular agent capabilities
>
> Build agents that invoke specialized Skills on demand: a support agent that draws on a "summarize thread" Skill only when the conversation warrants it, or a research agent that invokes an "extract key claims" Skill selectively.

> [accordion] Shared tone and brand voice
>
> Package your brand guidelines, writing style, or response format rules into a Skill and embed it across every agent and prompt that needs it. Update once and the change propagates everywhere.

> [accordion] Reusable domain expertise
>
> Encode compliance rules, classification criteria, or structured output schemas as Skills. Any team building on top of the same agents or prompts shares the same versioned definition without duplication.

## Using Skills with Agents

Open the **Skills** section in the agent configuration, click <kbd> Skills</kbd>, and search for the Skill to attach it. Once attached, the agent can invoke it when relevant, without the Skill being present in the instructions at all times. Use this for capabilities the agent should draw on selectively depending on the conversation, for example a "summarize thread" Skill invoked only when the user asks for a summary.

![Agent configuration panel with a Skill attached for on-demand invocation.](https://mintcdn.com/orqai/OX21UynKQhDoBJpH/images/add-skill-agent.png?fit=max\&auto=format\&n=OX21UynKQhDoBJpH\&q=85\&s=a62e91ec42d2e3fe4f8b813372f56bee)

Attaching a Skill to an agent for on-demand invocation.

Any update to a Skill propagates automatically to every agent that has it attached.

## Creating a Skill

> [tab] AI Studio
>
> Open **Skills** in the **Managed Agents** section, then click <kbd> Skill</kbd>.
>
> Fill in a key that will be used to reference the Skill and configure the content.
>
> ![Creating a Skill in AI Studio.](https://mintcdn.com/orqai/Kigzl_vPd2sIGwOq/images/skill.png?fit=max\&auto=format\&n=Kigzl_vPd2sIGwOq\&q=85\&s=da0137524993bdf006c694bdc7e972e1)
>
> Creating a Skill in AI Studio.

> [tab] API & SDK
>
> ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -X POST https://my.orq.ai/v2/skills \
>   -H "Authorization: Bearer $ORQ_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "display_name": "summarize_thread",
>     "description": "Summarizes a support conversation in 3 bullet points",
>     "instructions": "Summarize the conversation in exactly 3 bullet points. Be concise.",
>     "tags": ["support", "summarization"],
>     "path": "Default/Skills"
>   }'
> ```
>
> ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> from orq_ai_sdk import Orq
> import os
>
> orq = Orq(api_key=os.environ["ORQ_API_KEY"])
>
> result = orq.skills.create(
>     request={
>         "display_name": "summarize_thread",
>         "description": "Summarizes a support conversation in 3 bullet points",
>         "instructions": "Summarize the conversation in exactly 3 bullet points. Be concise.",
>         "tags": ["support", "summarization"],
>         "path": "Default/Skills",
>     }
> )
> print(result.skill.skill_id)
> ```
>
> ```typescript Node theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import { Orq } from "@orq-ai/node";
>
> const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "" });
>
> const result = await orq.skills.create({
>   displayName: "summarize_thread",
>   description: "Summarizes a support conversation in 3 bullet points",
>   instructions: "Summarize the conversation in exactly 3 bullet points. Be concise.",
>   tags: ["support", "summarization"],
>   path: "Default/Skills",
> });
> console.log(result.skill?.skillId);
> ```
>
> > [!TIP]
> >
> > See the full [Create Skill API reference](https://docs.orq.ai/reference/skills/create-a-new-skill.md).

> [tab] MCP
>
> ```prompt wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> Create a skill called "summarize_thread" that summarizes a support conversation in 3 bullet points
> ```
>
> The assistant uses `create_skill` with the display name, instructions, and any tags.

> [tab] CLI
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> orq skills create \
>   --display-name summarize_thread \
>   --description "Summarizes a support conversation in 3 bullet points" \
>   --instructions "Summarize the conversation in exactly 3 bullet points. Be concise." \
>   --tags support --tags summarization \
>   --path Default/Skills
> ```
>
> > [!TIP]
> >
> > See [install and setup](https://docs.orq.ai/reference/cli.md) to get started with the CLI. Run `orq skills create --help` for the full flag reference.

## Versions

Saving a Skill in AI Studio creates a new version. The **Versions** tab shows the full history, and clicking the compare icon on any version opens the **Compare Changes** view for a side-by-side diff against another version.

### Restoring a Version

In **Compare Changes** (see above), click <kbd>Restore</kbd> next to an older version to load it into the current working draft.

Restore does not save automatically: the Skill is loaded into the draft as unsaved changes on the **Settings** tab, and <kbd>Save</kbd> still needs to be clicked for it to become a real version. Earlier versions are never deleted, so restoring is always reversible.

> [!NOTE]
>
> If there are unsaved changes already, a confirmation dialog asks for confirmation before overwriting them.

## Managing Skills

### List

> [tab] API & SDK
>
> ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl https://my.orq.ai/v2/skills \
>   -H "Authorization: Bearer $ORQ_API_KEY"
> ```
>
> ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> from orq_ai_sdk import Orq
> import os
>
> orq = Orq(api_key=os.environ["ORQ_API_KEY"])
>
> result = orq.skills.list()
> for skill in result.data:
>     print(skill.skill_id, skill.display_name)
> ```
>
> ```typescript Node theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import { Orq } from "@orq-ai/node";
>
> const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "" });
>
> const result = await orq.skills.list();
> for (const skill of result.data) {
>   console.log(skill.skillId, skill.displayName);
> }
> ```
>
> > [!TIP]
> >
> > See the full [List Skills API reference](https://docs.orq.ai/reference/skills/list-all-skills.md).

> [tab] MCP
>
> ```prompt wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> List all skills in my workspace
> ```
>
> The assistant uses `list_skills` and returns all skills with their keys and descriptions.

> [tab] CLI
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> orq skills list
> ```
>
> > [!TIP]
> >
> > See [install and setup](https://docs.orq.ai/reference/cli.md) to get started with the CLI. Run `orq skills list --help` for the full flag reference.

### Get

> [tab] API & SDK
>
> The `skill_id` parameter accepts either the generated skill ID (e.g. `skill_01H...`) or the display name.
>
> ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl https://my.orq.ai/v2/skills/summarize_thread \
>   -H "Authorization: Bearer $ORQ_API_KEY"
> ```
>
> ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> from orq_ai_sdk import Orq
> import os
>
> orq = Orq(api_key=os.environ["ORQ_API_KEY"])
>
> result = orq.skills.get(skill_id="summarize_thread")
> print(result.skill.display_name)
> ```
>
> ```typescript Node theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import { Orq } from "@orq-ai/node";
>
> const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "" });
>
> const result = await orq.skills.get({ skillId: "summarize_thread" });
> console.log(result.skill?.displayName);
> ```
>
> > [!TIP]
> >
> > See the full [Get Skill API reference](https://docs.orq.ai/reference/skills/retrieve-a-skill.md).

> [tab] MCP
>
> ```prompt wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> Get the details of skill "summarize_thread"
> ```
>
> The assistant uses `get_skill` with the skill key and returns the full skill configuration.

> [tab] CLI
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> orq skills get summarize_thread
> ```
>
> > [!TIP]
> >
> > See [install and setup](https://docs.orq.ai/reference/cli.md) to get started with the CLI. Run `orq skills get --help` for the full flag reference.

### Update

> [tab] AI Studio
>
> Open the Skill in **AI Studio**, edit the content or settings, and save to publish the update. All references update automatically.

> [tab] API & SDK
>
> The `skill_id` parameter accepts either the generated skill ID (e.g. `skill_01H...`) or the display name.
>
> ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -X PATCH https://my.orq.ai/v2/skills/summarize_thread \
>   -H "Authorization: Bearer $ORQ_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "instructions": "Summarize in 3 bullet points. Include a confidence score."
>   }'
> ```
>
> ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> from orq_ai_sdk import Orq
> import os
>
> orq = Orq(api_key=os.environ["ORQ_API_KEY"])
>
> result = orq.skills.update(
>     skill_id="summarize_thread",
>     instructions="Summarize in 3 bullet points. Include a confidence score.",
> )
> print(result.skill.skill_id)
> ```
>
> ```typescript Node theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import { Orq } from "@orq-ai/node";
>
> const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "" });
>
> const result = await orq.skills.update({
>   skillId: "summarize_thread",
>   updateSkillRequest: {
>     instructions: "Summarize in 3 bullet points. Include a confidence score.",
>   },
> });
> console.log(result.skill?.skillId);
> ```
>
> > [!TIP]
> >
> > See the full [Update Skill API reference](https://docs.orq.ai/reference/skills/update-a-skill.md).

> [tab] MCP
>
> ```prompt wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> Update skill "summarize_thread" with revised instructions that include a confidence score
> ```
>
> The assistant uses `update_skill` with the skill key and new content.

> [tab] CLI
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> orq skills update summarize_thread \
>   --instructions "Summarize in 3 bullet points. Include a confidence score."
> ```
>
> > [!TIP]
> >
> > See [install and setup](https://docs.orq.ai/reference/cli.md) to get started with the CLI. Run `orq skills update --help` for the full flag reference.

### Delete

> [tab] AI Studio
>
> Open the Skill in **AI Studio**, open the context menu, and select **Delete**.

> [tab] API & SDK
>
> The `skill_id` parameter accepts either the generated skill ID (e.g. `skill_01H...`) or the display name.
>
> ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
> curl -X DELETE https://my.orq.ai/v2/skills/summarize_thread \
>   -H "Authorization: Bearer $ORQ_API_KEY"
> ```
>
> ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
> from orq_ai_sdk import Orq
> import os
>
> orq = Orq(api_key=os.environ["ORQ_API_KEY"])
>
> orq.skills.delete(skill_id="summarize_thread")
> ```
>
> ```typescript Node theme={"theme":{"light":"github-light","dark":"github-dark"}}
> import { Orq } from "@orq-ai/node";
>
> const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "" });
>
> await orq.skills.delete({ skillId: "summarize_thread" });
> ```
>
> > [!TIP]
> >
> > See the full [Delete Skill API reference](https://docs.orq.ai/reference/skills/delete-a-skill.md).

> [tab] MCP
>
> ```prompt wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
> Delete skill "summarize_thread"
> ```
>
> The assistant uses `delete_skill` with the skill key.

> [tab] CLI
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> orq skills delete summarize_thread
> ```
>
> > [!TIP]
> >
> > See [install and setup](https://docs.orq.ai/reference/cli.md) to get started with the CLI. Run `orq skills delete --help` for the full flag reference.

## Static references with `{{skill.key}}`

> [!NOTE]
>
> Prompt Snippets are now Skills. The `{{snippet.key}}` syntax is replaced by `{{skill.key}}`.

Reference a Skill using `{{skill.key}}`, where `key` is the key you set when creating the Skill. The Skill content is injected at that position every time it is rendered, and any update to the Skill is automatically reflected in every reference.

A Skill key must start with a letter and may contain letters, numbers, dashes, and underscores. Separators cannot lead, trail, or repeat, so `weekly-report` and `weekly_report_v2` are valid while `-weekly`, `weekly-`, and `weekly--report` are rejected. Dots are not allowed because a dot separates the `skill` prefix from the key.

The `{{skill.key}}` form works the same way in every template engine, including keys that contain a dash. A prompt keeps working when it switches between the Text, Mustache, and Jinja engines.

This works in:

* **Agent instructions**: inject content that should always be present on every run, such as a company policy block or a standard output format. See [AI Studio](https://docs.orq.ai/ai-studio/ai-engineering/build-agents.md#configure-instructions) for more on writing instructions.
* **[Prompts](https://docs.orq.ai/ai-studio/prompts/prompts.md)**: compose prompts from reusable blocks instead of duplicating text.
* **Jinja templates**: combine `{{skill.key}}` references with Jinja expressions to compose dynamic, structured prompts from reusable blocks deterministically.

![Using a Skill to enrich a configured prompt.](https://mintcdn.com/orqai/x_6IXnot9ETOc_0g/images/docs/7374b405d08210a64a932ad62b8c2a5bb54b6ace9b694fd1d9d81912c3bfae79-Screenshot_2024-10-11_at_16.15.21.png?fit=max\&auto=format\&n=x_6IXnot9ETOc_0g\&q=85\&s=98b70193724c820a01edc9a45cd7bf4f)

Using a Skill to enrich a configured prompt.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.