# Scripts definition

<figure><img src="/files/phOqyIiKbklQTpQi6Q8A" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

Every script is taking a part of auto-generating data content on the website.

There are 3 rules:

1. `extract-*-tokens.js` scripts always goes first.
2. Order of other scripts when they fire don't matter after that step.
3. `clean-invalid-data-files.js` always goes last.

| script                        | description                                                                          |
| ----------------------------- | ------------------------------------------------------------------------------------ |
| `extract-*-tokens.js`         | Converts `.yml` token files to `.json` format                                        |
| `build-indexed-search.js`     | Refines extracted data to retain only what is necessary for the `search input`       |
| `build-paths.js`              | Refines extracted data to retain only what is necessary for the `sidebar navigation` |
| `clean-invalid-data-files.js` | Removes files that have had their `file name` updated                                |


---

# Agent Instructions: 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:

```
GET https://docs.exile.watch/projects/nucleus/contributing-scripts/scripts-definition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
