> For the complete documentation index, see [llms.txt](https://docs.kodesage.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kodesage.ai/key-features/automatic-documentation.md).

# Docs Studio

Documentation feature overview

Kodesage generates and updates comprehensive documentation across the codebase, significantly improving onboarding times and easing transitions between vendors.  As Kodesage is synced with the codebase, issues, wikis, and other sources in real time, documents will always be up to date as systems evolve.

We will provide various documentation templates that you can choose from, to ensure that your systems are documented in a consistent format, and that they also meet the relevant legal requirements. Documents will include diagrams to improve explanations, and describe system dependencies.&#x20;

One the first draft is generated, data sources can be fine tuned on a section level within each sub chapter.

**Getting started with Docs Studio**

**Step 1:** Select the documentation template

<figure><img src="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FJGNgF6vdP8uzFVkRbW01%2FDocs%20studio%201.png?alt=media&amp;token=ad6b51c0-2c5a-4f45-91d9-c22551d66712" alt="Kodesage docs studio - template selection"><figcaption></figcaption></figure>

**Step 2:** Select data sources

<figure><img src="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FYmQu1mOA8TOxVkNoh3K3%2FDocs%20studio%202.png?alt=media&amp;token=f7967786-2060-4f00-b9c4-589a9e16aef7" alt="Kodesage docs studio - data source selection"><figcaption><p>Select data sources for document generation</p></figcaption></figure>

**Step 3:** Create documentation

After you have selected the data sources, you can click on "Create", and Kodesage will generate the documents for you according to the selected template

**Step 4:** Review documentation

Once the documentation has been generated, you will be able to select it from the list of documentations to review the content by clicking on the relevant documentation name.

<figure><img src="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FQEmS95m1x947Urt5COJh%2FDocs%20studio%203.png?alt=media&amp;token=97c0dcd2-089a-4b4c-870d-e4e0bb19e990" alt="Kodesage docs studio - editing existing documents"><figcaption><p>Select the relevant documentation from the list</p></figcaption></figure>

Once you have selected the relevant document, you will be able to review, approve and modify the content.

<figure><img src="https://1498950825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8qhVWzMLXcYl3WBsXBHs%2Fuploads%2FNYuwqn2wcrP8aOVnYGdf%2FDocs%20studio%204.png?alt=media&amp;token=cf287a35-e25c-4354-b3a0-329669f81af7" alt="Kodesage docs studio - editing and approving documents"><figcaption><p>Review documentation</p></figcaption></figure>


---

# 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.kodesage.ai/key-features/automatic-documentation.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.
