# Keep docs in sync with model changes

DinoAI can automatically flag documentation gaps whenever you modify a dbt model — no more silently outdated YAML files.

### How it works

When you add this rule to your [`.dinorules` ](/app-help/documentation/dino-ai/dino-rules.md)file, DinoAI will:

1. Detect that a `.sql` file has been modified
2. Check whether the corresponding YAML doc file needs updating
3. Ask you before making any changes

### Setup

Add the following to your[ `.dinorules` ](/app-help/documentation/dino-ai/dino-rules.md)file:

```
Documentation Review on Model Changes:
    - Whenever a dbt model (.sql file) is modified, always check if the corresponding YAML documentation file (e.g. _<model_name>.yml) needs to be updated
    - Review whether any of the following have changed and may require doc updates:
      - Column additions, removals, or renames
      - Changes to business logic or transformations
      - Changes to model description or purpose
      - Changes to materialization or config
    - If documentation updates are needed, ask the user: "The model has changed — would you like me to update the documentation (descriptions, column definitions, etc.) to reflect these changes?"
    - Do not silently skip documentation review; always surface it as a step when modifying models
```

### What DinoAI will check

| Change type             | Example                  | Doc update likely needed? |
| ----------------------- | ------------------------ | ------------------------- |
| Column added or removed | New `revenue_usd` column | ✅ Yes                     |
| Column renamed          | `rev` → `revenue_usd`    | ✅ Yes                     |
| Business logic changed  | Filter added to a metric | ✅ Yes                     |
| Materialization changed | `view` → `table`         | ✅ Yes                     |
| Minor formatting fix    | Whitespace cleanup       | ❌ Probably not            |

### Example interaction

You modify `orders.sql` to add a new column. DinoAI will respond:

> "The model has changed — would you like me to update the documentation (descriptions, column definitions, etc.) to reflect these changes?"

Reply **yes** and DinoAI will update `_orders.yml` to match. Reply **no** to skip and move on.

### Why this matters

Without this rule, documentation drifts silently — columns get added, descriptions go stale, and the YAML file stops reflecting reality. Rule 15 makes doc review a first-class step in every model edit, not an afterthought.


---

# 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.paradime.io/app-help/guides/paradime-101/getting-started-with-the-paradime-ide/dinoai-accelerating-your-analytics-engineering-workflow/dinoai-agent/keep-docs-in-sync-with-model-changes.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.
