---
title: mattpocock-context-structure-invalid
description: Reports a root CONTEXT.md that does not match the Matt Pocock Profile's context-language structure.
---

[← All Rules](/rules/)

## What it does

Requires exactly one H1, an immediate one-to-two sentence description, exactly one `## Language` section, and at least one term definition with authored prose. An `_Avoid_:` line is optional, but cannot be empty when present.

## Why it matters

The structure gives agents one stable place to learn the repository's domain terms and discouraged alternatives.

## Examples

### Non-passing

```md title="CONTEXT.md"
# Example

One valid sentence.

## Language

**Repository Root**:
_Avoid_:
```

### Passing

```md title="CONTEXT.md"
# Example

Example defines the language used by this repository.

## Language

**Repository Root**:
The nearest ancestor that contains a `.git` file or directory.
_Avoid_: Project folder
```

## When it applies

This is a declarative requirement of the `mattpocock@1` Profile. Selecting that Profile applies it when the optional root `CONTEXT.md` exists; it is not selected through the `rules` array.

## References

See [Presswork Configuration](/configuration/#mattpocock1) for the Profile contract and [`src/profile-requirements.ts`](https://github.com/evilkiwi/presswork/blob/main/src/profile-requirements.ts) for term-definition evaluation.
