---
title: template-definition-prompt-unmatched
description: Reports prompt Template Directive boundaries that do not form a matching pair.
---

[← All Rules](/rules/)

## What it does

Reports a `prompt-start` or `prompt-end` boundary without the matching opposite boundary and identifier.

## Why it matters

Matching boundaries identify one authoring instruction that must be resolved before the document is complete.

## Examples

### Non-passing

```md title="docs/decisions/TEMPLATE.md"
# {{title}}

<!-- presswork:prompt-start summary -->

Write the summary.
```

### Passing

```md title="docs/decisions/TEMPLATE.md"
# {{title}}

<!-- presswork:prompt-start summary -->

Write the summary.
<!-- presswork:prompt-end summary -->
```

## When it applies

This Rule belongs to the configurable `document-types` group. Prompt boundaries are matched in document order while the Template definition is compiled.

## References

See [Presswork Configuration](/configuration/#documenttypes) for Templates and [`src/template.ts`](https://github.com/evilkiwi/presswork/blob/main/src/template.ts) for prompt-boundary matching.
