> For the complete documentation index, see [llms.txt](https://archivedocs.stackstate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archivedocs.stackstate.com/5.1/develop/developer-guides/stackpack/develop_stackpacks.md).

# How to create a StackPack

## When to create a StackPack

As a rule of thumb each integration should have a StackPack. Without configuration StackState doesn't process incoming topology, telemetry or trace data. Such data will be accepted by StackState, but won't automatically reflect on the 4T data model. The best way to bundle configuration is through a StackPack. StackState can also be configured using the CLI, UI or directly via the API, but then your configuration won't be protected from user changes, can't easily be upgraded and can't easily be used for configuring multiple instances of an integration.

## How to create a StackPack

Refer to:

* [Prepare a StackPack package](/5.1/develop/developer-guides/stackpack/prepare_package.md)
* [How to customize a StackPack](/5.1/develop/developer-guides/stackpack/how_to_customize_a_stackpack.md)
* [How to get a template file](/5.1/develop/developer-guides/stackpack/how_to_get_a_template_file.md)
* [Prepare a StackPack provisioning script](/5.1/develop/developer-guides/stackpack/prepare_stackpack_provisioning_script.md)
* [How to pack and upload a StackPack](/5.1/develop/developer-guides/stackpack/how_to_pack_and_upload_stackpack.md)
* [How to make a multi-instance StackPack](/5.1/develop/developer-guides/stackpack/how_to_make_a_multi-instance_stackpack.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://archivedocs.stackstate.com/5.1/develop/developer-guides/stackpack/develop_stackpacks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
