SvelteKit 5 & Svelte 5 AGENTS.md Generator | Free & Offline

Production-grade architectural rulebook for SvelteKit 5 & Svelte 5. Engineered to eliminate LLM hallucinations, enforce strict deterministic conventions, and prevent architectural drift across Cursor IDE, Claude Code CLI, and autonomous multi-agent pipelines.

Target Path
AGENTS.md
Execution Scope
Multi-Agent Root Invariants
Specification Format
Agent Standard (.md)
AI Tool Support
Antigravity, Codex & Windsurf
02 / DRIFT ANALYSIS & VALUE PROPOSITION

Failure Patterns Prevented for SvelteKit 5 & Svelte 5

Without This Rule (Default LLM Behavior)Vulnerable

Svelte 5 completely overhauls reactivity using Runes (`$state`, `$derived`, `$props`). Models trained on Svelte 3/4 write outdated `let` reactive declarations and `$: ` statements.

Hallucination Symptoms
  • Invokes deprecated or removed APIs from older model training weights
  • Generates conflicting configuration files and invalid imports
  • Silently drops type-safety, boundaries, or transaction isolation
With This Rule (Guaranteed Invariants)Deterministic
Use Svelte 5 runes: `$state()`, `$derived()`, and `$props()`.
Never use obsolete Svelte 3/4 `export let` or `$: ` reactive labels.
Implement data loading in `+page.server.ts` load functions.
Handle data mutations via standard SvelteKit Form Actions with `enhance`.
04 / REPOSITORY PLACEMENT & INSTALLATION

Where to Save This Rule in Your Repository

Export the rules from the interactive editor above or download the full ZIP bundle. Ensure the file is placed at the exact path below relative to your project root so the AI engine automatically loads it:

AGENTS.md
05 / ROUTE DIRECTORY & CROSS-TOOLING
Format Pillar HubComprehensive Manual

AGENTS.md Multi-Agent System Protocol Directory

Inspect the complete specification manual, glob patterns, directory rules, and all available presets in our central directory.

/agents-md Directory
06 / FREQUENTLY ASKED QUESTIONS

Technical FAQ: SvelteKit 5 & Svelte 5 AI Rulebooks

Does this cover Svelte 5 runes?

Yes, it specifically enforces `$state` and `$derived` while banning legacy Svelte 4 syntax.