SvelteKit + Claude Code
CLAUDE.md, permissions, a format hook and MCP servers for your stack. This page shows exactly what pickstack adds to a SvelteKit project for Claude Code: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework sveltekit --modules claude-code --yesCustomize in the configurator
New files
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(npm install)",
"Bash(npm run build *)",
"Bash(npm run typecheck *)"
],
"ask": ["Bash(git push *)"],
"deny": ["Read(./.env)", "Read(./.env.local)", "Read(./.env.*.local)"]
}
}
{
"mcpServers": {
"svelte": {
"command": "npx",
"args": ["-y", "@sveltejs/mcp"]
}
}
}
# my-app
Stack: SvelteKit, Svelte 5, TypeScript.
## Commands
- `npm install`: install dependencies
- `npm run dev`: start the dev server
- `npm run build`: production build
- `npm run preview`: serve the production build
- `npm run typecheck`: type-check
## Project structure
- Routes are files in `src/routes/` (`+page.svelte`, `+layout.svelte`); shared code in `src/lib/`.
- Import from `src/lib` with the `#lib` alias (package.json `imports`).
## Conventions
- Svelte 5 runes (`$state`, `$derived`, `$props`).
- Pages are prerendered with adapter-static; keep routes static or change the adapter.
- TypeScript strict mode; avoid `any`.
## Before finishing a change
Run `npm run typecheck` and fix what they report.
@AGENTS.md
## Claude Code
- After a change, run `npm run typecheck` before reporting it done.
- MCP servers for this stack are in `.mcp.json` (svelte); prefer them over guessing APIs.
- Keep secrets in `.env.local`; Claude is not allowed to read `.env` files.
Changes to existing files
⋯ 1 unchanged lines dist .svelte-kit build+.claude/settings.local.json+CLAUDE.local.md .env .env.local .DS_Store⋯ 1 unchanged lines
Project files
.claude/settings.json.gitignore.mcp.jsonAGENTS.mdCLAUDE.mdREADME.mdpackage.jsonsrc/app.d.tssrc/app.htmlsrc/lib/Counter.sveltesrc/lib/index.tssrc/routes/+layout.sveltesrc/routes/+layout.tssrc/routes/+page.sveltesrc/routes/about/+page.sveltesrc/routes/layout.cssstatic/robots.txttsconfig.jsonvite.config.ts