SvelteKit Cursor Rules Starter (Free)
Free SvelteKit Cursor rules in .mdc format, checked against current SvelteKit docs, plus a linter that shows why a rule isn't applying.
View SvelteKit Cursor Rules Starter (Free)
7 SvelteKit rules your agent actually follows: each one attaches only to the files it's about, states the version-specific behavior, and installs with one command.

7 Cursor project rules (.mdc) for SvelteKit, scoped so each loads only when relevant, with an installer that detects your stack, an AGENTS.md exporter (Claude Code, Codex) and a rules linter. Written against current docs (checked Nov 2026).
The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 8 tests OK on Python 3.13 and 3.10.

python3 tools/install_rules.py --detect /path/to/app # what it finds
python3 tools/install_rules.py /path/to/app --auto # install rules for detected stacks into .cursor/rules/
python3 tools/install_rules.py /path/to/app --all --agents-md # everything, plus AGENTS.md
python3 tools/lint_rules.py /path/to/app/.cursor/rules --project /path/to/appExisting files are never overwritten unless you pass --force; --dry-run previews. ./tools/demo.sh runs it on examples/sample-app; ./run_tests.sh runs the tests. As a Cursor plugin, the manifest is .cursor-plugin/plugin.json.
| Rule | Loads | First instruction |
|---|---|---|
| sveltekit-overview.mdc | always | Check @sveltejs/kit and svelte versions in package.json first |
| sveltekit-runes-components.mdc | by file (src//*.svelte, src//*.svelte.ts, src//*.svelte.js) | State: let count = $state(0) |
| sveltekit-load-data.mdc | by file (src/routes//+page.ts, src/routes//+page.server.ts, src/routes//+layout.ts, src/routes//+layout.server.ts, src//*.remote.ts) | +page.server.ts load runs only on the server (DB, secrets) |
| sveltekit-forms-actions.mdc | by file (src/routes//+page.server.ts, src/routes//+page.svelte) | Mutations use form actions in +page.server.ts (export const actions = { default: async ({ request, locals }) => |
| sveltekit-hooks-auth.mdc | by file (src/hooks.server.ts, src/hooks.ts, src/lib/server/) | Resolve the session once in handle (src/hooks.server.ts) and put it on event.locals |
| sveltekit-routing-state.mdc | by file (src/routes/, src/lib//*.ts) | Read page info from $app/state (page, navigating, updated), not $app/stores (removed in SvelteKit 3) |
| sveltekit-testing.mdc | by file (src//*.test.ts, src//*.spec.ts, tests/, e2e/, playwright.config.ts) | Unit/component tests with Vitest (and @testing-library/svelte or vitest-browser-svelte) |
Zip, 19 KB, v1.0, 28 files. You may use and modify this kit for your own work and for clients you serve, including paid client work. Not affiliated with or endorsed by Cursor (Anysphere) or Svelte or SvelteKit.
7 Cursor rules for SvelteKit, written against current docs. Installs in one command, exports AGENTS.md for Claude Code and Codex. $12 once.
Free SvelteKit Cursor rules in .mdc format, checked against current SvelteKit docs, plus a linter that shows why a rule isn't applying.
View SvelteKit Cursor Rules Starter (Free)6 Cursor rules for Expo, written against current docs. Installs in one command, exports AGENTS.md for Claude Code and Codex. $12 once.
View Cursor Rules for Expo (React Native)Free Expo Cursor rules in .mdc format, checked against current Expo docs, plus a linter that shows why a rule isn't applying.
View Expo Cursor Rules Starter (Free)