Table of contents
Book a Maia Demo
Enjoy the freedom to do more with Maia on your side.
Written by
Matthew Scullion

Context Files With Maia | Smarter, Consistent Data Pipelines

November 3, 2025
Blog
5 min read

Harnessing Context Files with Maia to Elevate Data Pipelines

In today's data-driven world, managing and automating workflows is essential, not just for operational efficiency, but to reduce manual mistakes, improve consistency, and scale.

Consistent naming conventions and business rules are essential for reliable data pipelines, but embedding them in code leads to drift and duplication. Context files provide a single source of truth that the Maia Context Engine captures, enabling the Maia Team to enforce your standards across environments.

Maia is an AI Data Automation platform consisting of three tightly integrated components: the Maia Team (AI agents that handle operational data work), the Maia Context Engine (organizational intelligence that captures business rules and standards), and the Maia Foundation (enterprise infrastructure where files are stored and execution happens).

TL;DR: 

Context files are Markdown documents stored in .matillion/maia/rules/ within the Maia Foundation. The Maia Context Engine reads these files to capture your project standards, which the Maia Team then applies when building and modifying pipelines. This article explains what context files are, how to create them, and why they make your pipelines smarter.

What are Context Files?

A context file is a plain Markdown document that embeds reusable knowledge – naming conventions, schema rules, and project goals – that the Maia Context Engine captures and makes available to the Maia Team.

By storing these files in .matillion/maia/rules/ within the Maia Foundation, you establish consistent standards across your team. Using context files helps you avoid repeating the same instructions, standardize pipelines, and ensure naming and structure follow best practices.

The Maia Context Engine automatically reads all .md files in that folder and provides this organizational intelligence to the Maia Team, which applies these rules when building or modifying pipelines.

Read more about Maia and context files. 

Important notes:

  • The Maia Context Engine enforces a 12,000-character limit across all Markdown context files in .matillion/maia/rules/.
  • Files stored elsewhere are ignored and do not count toward this limit.
  • If you have additional documentation or complex logic, store it outside the rules directory and reference it from your context file.

Creating and Editing Context Files

You can manage context files directly in the Maia Foundation or via the Maia Team chat interface. Add a new Markdown file under .matillion/maia/rules/ using standard Markdown formatting, or update existing files as your project evolves. The Maia Context Engine will automatically detect and incorporate these changes. Headings, bullet lists, code blocks, and bold or italic text all work well.

How the Maia Team uses Context Files

With context files in place, the Maia Team can:

  • Interpret domain rules. The Maia Context Engine reads your context files to capture business constraints, naming standards, and data policies. The Maia Team uses this organizational intelligence when generating pipelines.
  • Generate and adapt logic. The Maia Team proposes transformations or configurations that align with the rules captured by the Maia Context Engine, ensuring that pipelines conform to your standards.
  • Ensure consistency across environments. Because the Maia Context Engine provides the same organizational intelligence in dev, staging, and production, behavior doesn't drift.
  • Simplify maintenance. When rules change, updating a context file updates the Maia Context Engine's knowledge, which the Maia Team then applies to downstream pipelines without touching code.

Benefits of using Context Files


BenefitWhy It Matters
Scalability and consistencyWorkflows reference the same rules, reducing drift.
Reduced technical debtChanging a rule requires updating one file, not dozens of scripts.
Onboarding and documentationNew team members can read the context file to understand domain rules.
Smarter automationThe Maia Team acts more intelligently when guided by a structured context.
Lower error rateFewer inconsistencies and manual edits mean fewer mistakes.

Getting Started with Context Files

  1. Identify your domain rules and logic. Audit existing pipelines to capture naming conventions, field constraints, default behaviors and exception handling.
  2. Define a file format. Use Markdown or YAML. Include sections such as “Field constraints,” “Default behaviors,” “Transformation recipes” and “Exception handling rules.”
  3. Add your files to .matillion/maia/rules/ in the Maia Foundation. The Maia Context Engine will automatically read and capture these rules, making them available to the Maia Team for every pipeline operation.
  4. Experiment on a small scale. Apply context-driven logic to a single pipeline and observe how the Maia Team interprets the organizational intelligence captured by the Maia Context Engine. Refine your rules accordingly.
  5. Iterate and expand. As your confidence grows, expand context files across more pipelines and teams. Keep files in version control and update them as your business logic evolves.
  6. Govern and maintain. Implement change‑management processes for context files. Ensure your team reviews updates to avoid unintended consequences.

Context Files = Smarter Data Pipelines

Context files make your data pipelines smarter, more consistent and easier to maintain. When combined with Maia – the industry's first AI Data Automation platform – they allow your team to focus on delivering business value while Maia enforces standards behind the scenes.
Matthew Scullion
CEO of Matillion
Matthew is founder and CEO of Matillion. He co-founded his first startup at age 18. Before starting Matillion in 2011, Matthew worked in commercial IT and software development for 15 years at a number of British and European systems integrators.

Maia changes the equation of data work

Enjoy the freedom to do more with Maia on your side.