> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getgaal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Schema overview

> The shape of gaal.yaml, key by key.

This tab is the formal reference for `gaal.yaml`. For prose explanations and design rationale, see [Concepts → The gaal.yaml file](https://docs.getgaal.com/concepts/gaal-yaml.md). For working examples, see the [Configure](https://docs.getgaal.com/configure/repositories.md) section.

## Top-level keys

| Key | Type | Required | Page |
| - | - | - | - |
| `schema` | integer | recommended | [Schema version](https://docs.getgaal.com/schema/schema-version.md) |
| `repositories` | map | no | [Repositories](https://docs.getgaal.com/schema/repositories.md) |
| `skills` | array | no | [Skills](https://docs.getgaal.com/schema/skills.md) |
| `content` | array | no | [Content](https://docs.getgaal.com/schema/content.md) |
| `mcps` | array | no | [MCPs](https://docs.getgaal.com/schema/mcps.md) |
| `tools` | array | no | [Tools](https://docs.getgaal.com/schema/tools.md) |
| `hooks` | object | no | [Hooks](https://docs.getgaal.com/schema/hooks.md) |
| `telemetry` | bool | no | [Telemetry](https://docs.getgaal.com/schema/telemetry.md) |

## Generating the JSON Schema

`gaal schema` writes the canonical JSON Schema (draft 2020-12) for `gaal.yaml`:

```bash theme={"theme":"nord"}
gaal schema -f schema.json
```

Drop the file into your editor's JSON-Schema mappings to get inline validation and auto-completion as you type. See [`gaal schema`](https://docs.getgaal.com/cli/schema) for IDE setup.

## Validation

Two ways to validate a `gaal.yaml`:

```bash theme={"theme":"nord"}
# In gaal itself
gaal doctor
```

```bash theme={"theme":"nord"}
# Against the schema with any JSON-Schema validator
gaal schema -f schema.json
ajv validate -s schema.json -d gaal.yaml
```

## Stability

The `schema` field is stable forever. gaal reads `schema: 1` files now and will continue to read them. When breaking changes happen they will use `schema: 2` with a documented migration path, older files will keep working.

## Related

> [card] [The gaal.yaml file](https://docs.getgaal.com/concepts/gaal-yaml.md)

> [card] [gaal schema](https://docs.getgaal.com/cli/schema.md)

> [card] [gaal doctor](https://docs.getgaal.com/cli/doctor.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.