> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/attach-skills-and-their-tools-to-an-agent.md).

# Attach skills and their tools to an agent

Attach a skill to give an agent reusable instructions for a task. Configure any tools the skill needs so the agent can follow those instructions.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FGL7vPJyIsxdkP71T65Q3%2FG019.mp4?alt=media&token=7a9b22fa-6ba5-4b93-87b9-0cd97da83abe>" %}

## Before you start

This guide uses the **AI Agent node in Workflow Builder**. Open a workflow containing that node and have a skill available in the Skills catalog. If you are starting with the simplified Agent Builder, use [Upgrade an agent to a workflow](https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/upgrade-an-agent-to-a-workflow.md) to access the node-based workflow; review its irreversible-conversion warning before proceeding. To create the reusable instructions first, follow [Create reusable skills](https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/create-reusable-skills.md).

## Select the skill

Open the **AI Agent** node. Find **Skills** below **Instructions**.

![Skills below the AI Agent node instructions](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/pqDGlpPhryKH1NJ6o7Jf/assets/g019-g019-01-prompt-editor.png)

Choose the skill you want to attach.

![Skill selection control](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/auiocziYm8FLHeIs3j6m/assets/g019-g019-02-skill-picker.png)

## Configure required tools

Review **Tools added with this Skill**. Supply any required connections. File-backed skills can require Terminal to read supporting files.

![Tools added with the selected skill](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/h2YWyjCxfOSpK7unzF1G/assets/g019-g019-03-tools-added.png)

## Review attached skills

Open the control for managing the agent’s skills. Review its selected skills, instructions, files, and integrations.

![Attached skill management and details](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/bzHf9fKy8cRu0DrLH5K7/assets/g019-g019-04-manage-skill.png)

## Use the skill

Run a request that the skill is designed to handle. Check the response against the skill’s instructions.

![Request handled using the attached skill](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/QI63ATtlm6PrgirdFFJE/assets/g019-g019-05-execution-result.png)

Expand tool activity when you need to see which tools ran and what they returned.

![Expanded supporting-file tool activity](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/oHbPpvm9ysKRkkJsaPCK/assets/g019-g019-06-file-read.png)

## Remove a required tool

Read the dependency notice before removing a tool. Cancel the change if the agent still needs the skill that depends on it.

![Required-tool removal dependency notice](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/4v40oxDudXo6eJf2Zv1J/assets/g019-g019-07-removal-warning.png)

## Important behavior

Removing a required tool can also remove a dependent skill from the agent. Keep required tool connections available while the skill is in use.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/attach-skills-and-their-tools-to-an-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
