Drop-in Next.js middleware that serves AI agents clean markdown instead of HTML. Zero dependencies, zero config. Detects Accept: text/markdown header, converts page content, strips navigation chrome. Includes security guidelines, privacy considerations for content signal headers, and input validation for page size limits.
Platform: cursor
Category: automation
Version: 1.0.0
Markdown:
[](https://www.scientiaexmachina.co/skills/eeb257a0-2135-47b0-8b7d-4f428a4c71c0)
HTML:
<a href="https://www.scientiaexmachina.co/skills/eeb257a0-2135-47b0-8b7d-4f428a4c71c0"><img src="https://www.scientiaexmachina.co/api/badge/eeb257a0-2135-47b0-8b7d-4f428a4c71c0" alt="SXM Certified"></a>