A structured markdown syntax for iterating on documents with Claude AI
Iteration markers (%% %%, •%%> <%%•, ==text(TOKEN)==) are meant for drafting - they shouldn’t end up in final documents. This section covers different approaches to catch and remove markers before they’re committed or published.
Manual cleanup works, but it’s easy to forget. Auto-cleanup provides safety nets:
Choose based on your workflow:
| Approach | When it runs | Requires Claude | Best for |
|---|---|---|---|
| Claude Check | Before commit (manual) | Yes | Claude Code users |
| Git Hooks | On git commit |
No | Solo developers |
| CI/CD Check | On push/PR | No | Teams |
| Editor Integration | While editing | No | Visual feedback |
| Lint Rules | On lint/save | No | Existing lint setup |
Using Claude Code? Start with Claude Check - it’s built into the skill workflow.
Working in a team? Add CI/CD Check as a backup - catches anything that slips through locally.
Want prevention over detection? Use Editor Integration to see markers visually while editing.
These aren’t mutually exclusive. A robust setup might use: