> 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/technical-reference/models-agents-and-skills/skill-validation-versions-and-rollback.md).

# Skill Validation, Versions, and Rollback

Skill versions preserve published instruction bundles. Validate changes before publication and use version history when restoring an earlier procedure.

{% 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 begin

Permission to update the skill and access to its current and historical versions.

## Key concepts

| Term            | Definition                                                                                                                                    |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Skill version   | A published version of a skill’s content. Review the selected version when instructions appear different from an earlier run.                 |
| Validation      | A check against supported structure and constraints. Passing validation does not prove that generated answers meet every quality requirement. |
| Skill rollback  | Restoration of an earlier skill’s content as a new latest version. History remains; the version counter does not move backward.               |
| Supporting file | A file included with a skill to provide related material. Preserve its path when instructions refer to that file.                             |

## Update or restore a skill version

1. Read the current skill and its files. Validate the proposed instructions or bundle.

![Import a supported skill bundle before reviewing its content and publishing a version.](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/ZRrhM7E9MqZV0tiBSDVx/assets/g018-g018-01-import-menu.png)

Import a supported skill bundle before reviewing its content and publishing a version.

2. Publish the update and retain the returned version number.
3. To restore earlier content, select that historical version and use rollback. Inspect the new latest version.

The intended instructions are published with a traceable version history.

## Behavior and limitations

Rollback creates a new latest version containing historical content; it does not erase history or decrement the version counter. Built-in skills are read-only. List Skill Versions returns history newest first. Validation checks the supported structure; it does not establish the quality of every future response.

## Related resources

[Import, export, and version skills](https://docs.stackai.com/guides-and-quickstarts/agent-builder-and-skills/import-export-and-version-skills.md)

[Model Settings and Supported Capabilities](https://docs.stackai.com/technical-reference/models-agents-and-skills/model-settings-and-supported-capabilities.md)


---

# 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/technical-reference/models-agents-and-skills/skill-validation-versions-and-rollback.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.
