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

# Overview

> Create the perfect context for your analytics agent

## Why a Context Builder?

The Context Builder helps you build a file-system for your agent. This way you can have a full transparent view on the context your agent has access to, and engineer the right way to:

1. **Make it reliable for users** - Ensure consistent, accurate responses
2. **Make it optimized** - Reduce costs, tokens usage, and improve speed

Context is built with nao using a CLI. The CLI will initialize your context repository and sync your context within this repo.

## How It Works

nao uses a file-system approach to organize context:

```
your-project/
├── nao_config.yaml                    # Main configuration
├── RULES.md                           # Agent behavior rules
├── agent/                             # Agent tools and integrations
│   ├── mcps/                          # Model Context Protocols (MCP servers)
│   ├── skills/                        # Reusable skills workflows
│   └── tools/                         # Custom tools
├── databases/                         # Database context
├── docs/                              # Documentation files (including synced Notion pages)
├── repos/                             # Cloned repositories
└── semantics/                         # Semantic context
```

## Build Your Context

Learn how to add different types of context:

> [card] [Databases](https://docs.getnao.io/nao-agent/context-builder/databases.md)
>
> Connect databases and sync schemas

> [card] [Repositories](https://docs.getnao.io/nao-agent/context-builder/repos.md)
>
> Add dbt projects and documentation

> [card] [Rules](https://docs.getnao.io/nao-agent/context-builder/rules-context.md)
>
> Define how your agent should behave

## Next Steps

> [card] [Context Configuration](https://docs.getnao.io/nao-agent/context-builder/configuration.md)
>
> Learn how to initialize and configure your nao project

> [card] [Context Principles](https://docs.getnao.io/nao-agent/context-engineering/principles.md)
>
> Core principles for optimizing your agent's performance

> [card] [Context Engineering Playbook](https://docs.getnao.io/nao-agent/context-engineering/playbook.md)
>
> Step-by-step guide to building effective context for your analytics agent

> [card] [Evaluation](https://docs.getnao.io/nao-agent/context-engineering/evaluation.md)
>
> Test and evaluate your agent with unit tests


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