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:
2026-10-16 01:26:10 +02:00
co-authored by Claude Opus 5.5
parent ab854ef37a
commit d3e5efb9f8
23 changed files with 571 additions and 83 deletions
+8 -3
View File
@@ -20,10 +20,15 @@ bez importu `next/server`.
| Narzędzie | Argumenty | Zwraca |
|-----------|-----------|--------|
| `get_site_info` | `locale?` | nazwa i opis strony (Site Settings), języki, URL strony głównej i sitemapy |
| `list_pages` | `locale?`, `limit?` (domyślnie 50, max 200) | wszystkie opublikowane strony: tytuł, URL, opis (spis treści) |
| `search_content` | `query` (wymagane), `locale?`, `limit?` (domyślnie 10, max 50) | lista stron: tytuł, URL, opis |
| `get_page` | `path` (np. `/pl/o-nas`) | strona jako czysty Markdown |
Oba **read-only** i tylko **opublikowane** treści (drafty i `meta.noindex`
**Publiczny celowo** — pokazuje dokładnie to, co publiczna strona, żeby asystenci AI
mogli ją przeglądać jak zwykły odwiedzający. Obowiązkowy w każdym projekcie (AGENT.md §0b).
Wszystkie **read-only** i tylko **opublikowane** treści (drafty i `meta.noindex`
odfiltrowane — ta sama zasada co sitemap/llms).
## Wpięcie
@@ -51,8 +56,8 @@ export const GET = mcp.GET // 405 — brak strumienia SSE (request/response
## Podłączenie w Claude
Dodaj jako custom connector wskazujący na `https://twoja-strona/api/mcp`. Claude
wykona `initialize` → `tools/list` → i będzie mógł wołać `search_content` /
`get_page`. Od tej chwili „zna" stronę bez scrapowania.
wykona `initialize` → `tools/list` → i będzie mógł wołać `get_site_info`,
`list_pages`, `search_content`, `get_page`. Od tej chwili „zna" stronę bez scrapowania.
## Opcje