Shared guidance for AI coding agents working in the Røde Kors Design System repository.
- React component library built on top of Digdir Designsystemet.
- Storybook is the main documentation and publishing surface.
AI_DESIGN_SYSTEM_GUIDE.mdandmetadata.jsonare published artifacts used downstream by application templates and agent workflows.
- Keep the guide and metadata workflow usable for engineers who are not relying on agent tooling.
- Prefer additive changes to the AI context publishing pipeline over risky rewrites of the existing documentation flow.
- Surface terminology drift and policy conflicts instead of silently folding them into unrelated component work.
npm run generate-metadataregenerates component metadata.npm run update-ai-guide-componentsupdates the checked-in AI guide.npm run generate-ai-context-manifestemits machine-readable context for downstream refresh workflows.npm run build-storybookshould continue to publish the guide, metadata, and manifest together.
- Use
publish-rk-contextwhen updating the AI context outputs or checking whether the upstream guide flow still looks healthy after repository changes.