Agent instructions: mandatory feature set (SEO, GEO, R2, Turnstile, forms) enforced by audits
- AGENT.md §0b: one table of everything every site must have (SEO meta/maps,
JSON-LD, llms.txt + llms-full, Markdown, MCP, AI bots, R2, panel forms,
Turnstile, consent, security, ops, system pages, zero hardcodes), the
forbidden replacements (own forms, nodemailer, reCAPTCHA, hand-written
JSON-LD, static SEO files, raw S3) and an `ipal-audit-skip:` escape hatch that
needs a recorded client decision.
- ipal-audit: "missing: …" errors for every mandatory item and for plugin
replacements; ipal-seo-check: runtime GEO checks (llms, Markdown, MCP,
JSON-LD, AI bots, health). Both verified on bare and complete fixtures.
- Skills (setup, site, form, upgrade, audit, seo-check) and PROGRAMISTA.md
wire the full set from step one; GEO is no longer "optional".
- Fix: createProxy({ markdown: true }) lets /md/... through — multilingual
sites redirected /md/pl/x to /pl/md/pl/x, so the documented Markdown route
never worked — and handles Accept: text/markdown.
- createContentHelpers({ markdownAlternate: true }) adds the text/markdown
alternate link in generatePageMetadata.
- JSDoc/docs JSON-LD examples use JsonLdGraph; docs/CHANGELOG.md for 1.9.0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+10
-1
@@ -278,7 +278,16 @@ return { ...meta, alternates: { ...meta.alternates, types: { 'text/markdown': ma
|
||||
// → <link rel="alternate" type="text/markdown" href="/md/pl/o-nas">
|
||||
```
|
||||
|
||||
Opcjonalnie: ten sam URL serwuje Markdown przy negocjacji nagłówkiem `Accept`
|
||||
Najprościej: `createContentHelpers({ …, markdownAlternate: true })` — wtedy
|
||||
`generatePageMetadata` dokłada ten link sam (tylko strony indeksowalne; prefiks:
|
||||
`markdownAlternate: '/ai'`).
|
||||
|
||||
**Proxy (obowiązkowe, AGENT.md §0b):** `createProxy(i18nConfig, { NextResponse, markdown: true })`.
|
||||
Bez tego na stronie wielojęzycznej proxy przekierowuje `/md/pl/o-nas` na
|
||||
`/pl/md/pl/o-nas` (traktuje `md` jak ścieżkę bez języka), więc trasa Markdown nie
|
||||
działa. Opcja przepuszcza ścieżki `/md/…` i robi negocjację `Accept` poniżej.
|
||||
|
||||
Ręcznie (gdy masz własny proxy): ten sam URL serwuje Markdown przy negocjacji nagłówkiem `Accept`
|
||||
(rewrite w proxy):
|
||||
|
||||
```ts
|
||||
|
||||
Reference in New Issue
Block a user