agentsclimarketplace

Markdown negotiation

Skill whiteknightonhorse/aipush-agent-skills/skills/markdown-negotiation

Free, open, security-verified agent skills for AEO (Answer Engine Optimization) — make any site ready for AI agents. Live: aipush.appFrom the repository description

Install
npx -y skills add whiteknightonhorse/aipush-agent-skills --skill markdown-negotiation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.5 KB, 374 tokens by cl100k_base, as published. Nobody here has run it

Serve Markdown to agents on request

AIPUSH agent skill · Category: Agent Interfaces · Slug: markdown-negotiation

Agents parse Markdown far more reliably than HTML, with fewer tokens and fewer extraction errors. Content-negotiating Markdown gives agents a clean read while browsers still get HTML.

Why it matters

Agents parse Markdown far more reliably than HTML, with fewer tokens and fewer extraction errors. Content-negotiating Markdown gives agents a clean read while browsers still get HTML.

How to detect

Send Accept: text/markdown to a page URL; a compliant site responds 200 with Content-Type: text/markdown.

How to implement

Content-negotiate on the Accept header. When it includes text/markdown, return a Markdown rendering of the same content:

app.get('/*', (req, res, next) => {
  if ((req.headers.accept || '').includes('text/markdown')) {
    const md = renderMarkdownFor(req.path); // your HTML->MD or source MD
    res.type('text/markdown; charset=utf-8').send(md);
    return;
  }
  next(); // default HTML for browsers
});

Keep HTML the default. Optionally add an x-markdown-tokens header with the token count.

How to verify

curl -s -H 'Accept: text/markdown' https://YOURDOMAIN/ -o /dev/null -w '%{content_type}\n' prints text/markdown.

References


Part of the AIPUSH agent skills catalog. Scan your site free at https://aipush.app.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,499. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.