---
title: template-directive-unresolved
description: Reports a presswork Template Directive left in a completed typed document.
---

[← All Rules](/rules/)

## What it does

Reports any HTML comment containing a `presswork:` Template Directive in a completed typed document.

## Why it matters

Template Directives are authoring instructions or optional boundaries, not completed document content.

## Examples

### Non-passing

```md title="docs/decisions/0001-choice.md"
# Choice

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

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

### Passing

```md title="docs/decisions/0001-choice.md"
# Choice

We will use the selected approach.
```

## When it applies

This Rule belongs to the configurable `document-types` group. It checks recognized documents that match a loaded Document Type; Template support files keep their directives.

## References

See [Create a Document Draft](/create-a-document/) for draft completion and [`src/template.ts`](https://github.com/evilkiwi/presswork/blob/main/src/template.ts) for completed-document evaluation.
