> For the complete documentation index, see [llms.txt](https://docs.devhub.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.gg/skill-tree/skill-generator.md).

# Skill Generator

{% hint style="danger" %}
Make sure `devhub_skillTree_generator` is started and `Config.EnableGenerator` is set to <mark style="color:green;">**true**</mark>
{% endhint %}

{% stepper %}
{% step %}

#### Open Admin Panel

{% endstep %}

{% step %}

#### A new button will appear in the right top corner

{% endstep %}

{% step %}

#### Configure category settings

{% endstep %}

{% step %}

#### Create new skills by clicking at any box on the grid

{% endstep %}

{% step %}

#### Make sure that not errors are found

{% endstep %}

{% step %}

#### Confirm generation of file

Changes will be <mark style="color:$success;">automatically</mark> applied
{% endstep %}

{% step %}

#### Create your skill functionality using our export and listeners

{% endstep %}

{% step %}

#### Restart script

{% endstep %}
{% endstepper %}

***

### <mark style="color:yellow;">New in v3</mark>

The generator UI has been expanded with new editors for everything you previously had to hand-edit in config files:

* **Visibility handlers** — edit per-category visibility filters that get saved to `Config.CategoryVisibilityHandler`
* **Unlock handlers** — per-skill unlock conditions saved to `Config.UnlockHandlerForSkills`, with support for the new Helpers
* **Trigger on unlock** — auto-fire your own events when a skill is unlocked, saved to `Config.TriggerOnSkillUnlock`
* **Premium currency** — configure the global premium currency directly from the UI
* **Daily XP limits** — set per-category caps that write to `Config.DailyXpLimit.Limits`
* **Degradation overrides** — per-category overrides written to `Config.SkillDegradation.Categories`
* **Category groups & icons** — assign `group` and `icon` to organize categories in the menubar

***

### <mark style="color:yellow;">Automatic Config Backups</mark>

Every time you save from the generator, the affected config files (`sh.main.lua`, `sh.skills.lua`, `s.main.lua`) are backed up first. You can list, restore, or delete backups from the admin panel.

```lua
Config.MaxBackups = 5 -- int | Maximum backups to keep (0 = unlimited)
```

{% hint style="info" %}
Backups are stored on disk under the resource's `backups/` folder with a JSON index. Restoring a backup also creates a safety backup of the current state first.
{% endhint %}

***


---

# 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://docs.devhub.gg/skill-tree/skill-generator.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.
