> 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/import-export-and-version-skills.md).

# Import, export, and version skills

Import and export skills to move their instructions and files as a bundle. Use version history to review earlier content or restore it when a change needs to be reversed.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FRcMq46X3m1aw4ChsCERt%2FG018.mp4?alt=media&token=b03f8567-ff7a-4803-b121-6987551d7a8a>" %}

## Before you start

An imported skill bundle must include SKILL.md with a name and description. Use a unique skill name to avoid conflicts.

## Import a skill

Select **Import**, then choose **Upload .zip** or **Upload folder**. Select a bundle containing SKILL.md and its supporting files.

![Skill import file and folder options](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/ZRrhM7E9MqZV0tiBSDVx/assets/g018-g018-01-import-menu.png)

## Export a skill

Open a custom skill and select **More Options → Export skill**. The browser downloads the skill bundle.

![Export skill menu action](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/G3Pr9jqkho8AsAnnFvDH/assets/g018-g018-02-export-menu.png)

## Save a new version

Select **Edit**, change the instructions or files, and select **Save**. The saved change creates a new version.

![Skill instructions and file editing](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/LVh3LzGiOHrSw3b4kFlb/assets/g018-g018-03-edit-skill.png)

## Restore earlier content

Open **Version History** and select the version you want to inspect. Select **Use this version** to load its content into the editor.

![Earlier skill version in Version History](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/PwRAdgz5THBU2PVdJsvp/assets/g018-g018-04-earlier-version.png)

Review the loaded content. Select **Save** to make it current, or **Cancel** to keep the current content.

![Earlier content loaded before saving restoration](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/Mq3X85pfHLy5Huagn3uC/assets/g018-g018-05-staged-restoration.png)

The restoration appears as a new version in the history.

![Restoration recorded as a new skill version](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/TOHW3qRyflb2fvU7P3WP/assets/g018-g018-06-version-history.png)

## Important behavior

Viewing an earlier version does not change the current skill. A restoration takes effect when you save it.

## Use the saved skill

Follow [Attach skills and their tools to an agent](https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/attach-skills-and-their-tools-to-an-agent.md) to attach the skill and test a request against its instructions. After restoring a version, repeat that check before relying on the restored behavior.


---

# 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/import-export-and-version-skills.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.
