Skip to content
SprecherEast
Issue 279

documentation: Guidelines that contradict the code (cache tags, Alert, tokens, sitemap notes)

Back to our plan
Open
documentationtoolingpriority: low

Problem

Found while fixing stale paths (#276, PR #278). Guidance that contradicts the code or other docs, so agents get mixed signals:

  • docs/guidelines/payload-cms.md and nextjs-tailwind.md say to use revalidatePath() / revalidateTag(); docs/project.md says to expire tags with expireCacheTag() (Next 16 needs a second argument).
  • The feedback-message snippet in components-and-content.md uses a raw div, though src/platform/ui/Alert.tsx exists (the docs' own "use the shared primitives" rule).
  • The design-token table in nextjs-tailwind.md hasn't been checked against src/app/(frontend)/globals.css.
  • docs/roles/seo-specialist.md's sitemap bullets (update-frequency hints, excluding sign-in) may not match the native sitemap (#267).

Proposed fix

Make each doc match the code and docs/project.md. Where the code is right, it's a fact fix; if a fix would change a rule, label that part needs owner and ask.

Acceptance criteria

  • Not done: Each item above matches the code or is filed as an owner question
  • Not done: Files under 250 lines; Prettier passes

Area

tooling

Priority

Low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab