Fix: Bare CLI User-Agent receives the markdown twin
Web-audit fix skill for the
markdown-cli-uacheck (Content for agents, MAY).
Goal
Serve the markdown twin to shell HTTP clients that state no content-type preference.
Fix
Sniff the request User-Agent and serve the markdown twin to bare shell clients (curl, wget, and language HTTP libraries) that send Accept: */* or no Accept at all. A scripted curl https://your.site/ should get the raw markdown source, not the HTML shell, so pipelines parse content instead of scraping chrome. Return the same twin you already expose to Accept: text/markdown, keyed on the User-Agent this time.
Resources
Copy-paste prompt
Paste this into your coding agent. Your audit adds what it observed for this check:
Verify
Re-run the audit at https://anc.dev/audit or call the audit_website MCP tool; the markdown-cli-ua check should report pass.