{"owner":"sveltejs","repo":"kit","hasSkills":true,"totalSkillsCount":17,"totalTokensCount":3204,"categories":["copilot-instructions","root-instruction","claude-rule","plugin-manifest","cursor-rule"],"hasMcp":false,"mcpConfig":null,"found":[".github/copilot-instructions.md","AGENTS.md","CLAUDE.md","packages/adapter-auto/README.md","packages/adapter-bun/README.md","packages/adapter-cloudflare/README.md","packages/adapter-netlify/README.md","packages/adapter-node/README.md","packages/adapter-static/README.md","packages/adapter-vercel/README.md","packages/enhanced-img/README.md","packages/kit/README.md","packages/kit/test/apps/async/README.md","packages/kit/test/apps/options-2/README.md","packages/kit/test/apps/prerendered-app-error-pages/README.md","packages/package/README.md",".cursorrules (pandas-scikit-learn-guide-cursorrules-prompt-file.mdc)"],"skills":{".github/copilot-instructions.md":"../AGENTS.md","AGENTS.md":"# SvelteKit Coding Agent Guide\n\nThis guide is for AI coding agents working in the SvelteKit monorepo.\n\n**Important:** Read and follow [`CONTRIBUTING.md`](./CONTRIBUTING.md) as well - it contains essential information about testing, code structure, and contribution guidelines that applies here.\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# Initial setup (takes 3-4 minutes, set 10+ min timeout)\npnpm install --frozen-lockfile\n\n# Format code (~15 seconds)\npnpm run format\n\n# Lint (takes 2-3 minutes, set 5+ min timeout)\npnpm run lint\n\n# Type checking (takes 3-4 minutes, set 8+ min timeout)\npnpm run check\n```\n\n### Testing Commands\n\n```bash\n# Unit tests only (fastest - ~6 seconds)\npnpm -F @sveltejs/kit test:unit\n\n# Run a single unit test file\npnpm vitest run path/to/test.spec.js\n\n# Integration tests (10-30 minutes, set 60+ min timeout)\npnpm test:kit\n\n# A single integration test suite (name of suite found in packages/kit/test/apps/*/package.json)\npnpm -F {name-of-suite} test\n\n# Run single Playwright test (must use workdir - no pnpm -F shorthand)\ncd packages/kit/test/apps/basics && npx playwright test --grep \"test name\"\n\n# Other package tests (5-15 minutes, set 30+ min timeout)\npnpm test:others\n```\n\n### Pre-submission Checklist\n\nBefore opening a PR, **all of these must pass** (see also the [PR template](./.github/PULL_REQUEST_TEMPLATE.md)):\n\n1. `pnpm run format` - Auto-format code\n2. `pnpm run lint` - Check code style (don't cancel early)\n3. `pnpm run check` - Type checking (don't cancel early)\n4. `pnpm -F @sveltejs/kit test:unit` - Run unit tests\n5. For @sveltejs/kit changes: `pnpm -F @sveltejs/kit prepublishOnly` - Generate types\n6. Run `pnpm changeset` to document changes (prefix with `fix`, `feat`, `breaking`, or `chore`)\n\n## Code Style Examples\n\nThe coding style guidelines are in `CONTRIBUTING.md`. Here are additional examples:\n\n### Imports\n\n```javascript\n// JSDoc type imports at the top\n/** @import { Handle, RequestEvent } from '@sveltejs/kit' */\n\n// Named imports (no default exports)\nimport { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n```\n\n### Functions\n\n```javascript\n// Exported named functions (no default exports)\nexport function coalesce_to_error(err) {\n\t// Implementation\n}\n\n// JSDoc for all parameters and return types\n/**\n * @param {unknown} error\n * @returns {Error}\n */\nexport function coalesce_to_error(error) {\n\t// Implementation\n}\n\n// Use arrow functions for callbacks\nconst handler = (event) => {\n\t/* ... */\n};\n```\n\n### Error Handling\n\n```javascript\n// Type checking with instanceof\nif (error instanceof HttpError || error instanceof SvelteKitError) {\n\t// Handle\n}\n\n// Graceful fallbacks\nconst status = error?.status ?? 500;\n\n// Optional chaining and nullish coalescing\nconst content_type = request.headers.get('content-type')?.split(';', 1)[0];\n```\n\n### TypeScript/JSDoc\n\n- Use JSDoc annotations for all function parameters and return types\n- Complex types: `/** @type {Array<{ type: string, subtype: string }>} */`\n- Type casting when needed: `/** @type {Error} */ (err)`\n- Enable strict mode: `checkJs: true`, `strict: true` in tsconfig.json\n\n### Formatting (via oxfmt)\n\n- **Tabs for indentation** (not spaces)\n- **Single quotes** for strings\n- **No trailing commas**\n- **100 character line width**\n- Files are auto-formatted by `pnpm run format`\n\n### Comments\n\n````javascript\n// JSDoc with usage examples for public APIs\n/**\n * Sequence multiple handle functions\n *\n * @example\n * ```js\n * export const handle = sequence(first, second);\n * ```\n *\n * @param {...Handle} handlers\n * @returns {Handle}\n */\n\n// Inline comments for clarifications\n// no match equals invalid header — ignore\n````\n\n## Key Packages\n\n- `@sveltejs/kit` - Main framework (`packages/kit/`)\n- `adapter-*` - Platform adapters (node, cloudflare, netlify, vercel, static, auto)\n- `@sveltejs/package` - Package building utilities\n- `@sveltejs/enhanced-img` - Enhanced image component\n\n## Troubleshooting\n\n- **Browser tests fail**: `pnpm playwright install chromium`\n- **Build failures**: Ensure `pnpm install --frozen-lockfile` completed\n- **Type errors**: Run `pnpm -F @sveltejs/kit prepublishOnly`\n- **Lint issues**: Run `pnpm run format` first\n","CLAUDE.md":"AGENTS.md","packages/adapter-auto/README.md":"# adapter-auto\n\nAutomatically chooses the SvelteKit adapter for your current environment, if possible.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-auto)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md).\n","packages/adapter-bun/README.md":"# @sveltejs/adapter-bun\n\nSvelteKit adapter that builds a standalone server for the [Bun](https://bun.com/) runtime.\n\n```sh\nbun add -D @sveltejs/adapter-bun\n```\n\n```js\nimport adapter from '@sveltejs/adapter-bun';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport { defineConfig } from 'vite';\n\nexport default defineConfig({\n  plugins: [sveltekit({ adapter: adapter() })]\n});\n```\n\nBuild with `bun run --bun build`, then run the default output with `bun ./build`.\n\nSee the [adapter-bun documentation](https://svelte.dev/docs/kit/adapter-bun) for configuration,\nenvironment variables, compiled executables, proxy setup, and the Bun-specific platform API.\n\n## Changelog\n\n[View the package changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-bun/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-cloudflare/README.md":"# adapter-cloudflare\n\n[Adapter](https://svelte.dev/docs/kit/building-your-app) for building SvelteKit applications on [Cloudflare Workers](https://developers.cloudflare.com/workers/) with [static assets](https://developers.cloudflare.com/workers/static-assets/) or [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/functions/).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-cloudflare)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-cloudflare/CHANGELOG.md).\n","packages/adapter-netlify/README.md":"# adapter-netlify\n\nA SvelteKit adapter that creates a Netlify app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-netlify)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-netlify/CHANGELOG.md).\n","packages/adapter-node/README.md":"# @sveltejs/adapter-node\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-node)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-static/README.md":"# @sveltejs/adapter-static\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-static)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-vercel/README.md":"# adapter-vercel\n\nA SvelteKit adapter that creates a Vercel app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-vercel)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-vercel/CHANGELOG.md).\n","packages/enhanced-img/README.md":"# `@sveltejs/enhanced-img`\n\nA Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time.\n\n**WARNING**: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/images)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/enhanced-img/CHANGELOG.md).\n\n## Acknowledgements\n\nWe'd like to thank the author of `svelte-preprocess-import-assets`, which this code is partially based off of. We'd also like to thank the authors of `vite-imagetools` which is used in `@sveltejs/enhanced-img`.\n","packages/kit/README.md":"# The fastest way to build Svelte apps\n\nThis is the [SvelteKit](https://svelte.dev/docs/kit) framework and CLI.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md).\n","packages/kit/test/apps/async/README.md":"# sv\n\nEverything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```sh\n# create a new project in the current directory\nnpx sv create\n\n# create a new project in my-app\nnpx sv create my-app\n```\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```sh\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```sh\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.\n","packages/kit/test/apps/options-2/README.md":"This app exists to test options that are equivalent with the ones specified in the other `options` test app.\n","packages/kit/test/apps/prerendered-app-error-pages/README.md":"Please do not edit this app unless you're absolutely sure it's not going to affect the tests.\n","packages/package/README.md":"# The fastest way to build Svelte packages\n\n[Build Svelte packages](https://svelte.dev/docs/kit/packaging) in correctly packaged format.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit/packaging) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/package/CHANGELOG.md).\n",".cursorrules (pandas-scikit-learn-guide-cursorrules-prompt-file.mdc)":"---\ndescription: \"Cursor rules for Pandas development with scikit-learn guide integration.\"\nglobs: **/*\nalwaysApply: false\n---\nYou are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.\n\nKey Principles:\n- Write concise, technical responses with accurate Python examples.\n- Prioritize readability and reproducibility in data analysis workflows.\n- Use functional programming where appropriate; avoid unnecessary classes.\n- Prefer vectorized operations over explicit loops for better performance.\n- Use descriptive variable names that reflect the data they contain.\n- Follow PEP 8 style guidelines for Python code.\n\nData Analysis and Manipulation:\n- Use pandas for data manipulation and analysis.\n- Prefer method chaining for data transformations when possible.\n- Use loc and iloc for explicit data selection.\n- Utilize groupby operations for efficient data aggregation.\n\nVisualization:\n- Use matplotlib for low-level plotting control and customization.\n- Use seaborn for statistical visualizations and aesthetically pleasing defaults.\n- Create informative and visually appealing plots with proper labels, titles, and legends.\n- Use appropriate color schemes and consider color-blindness accessibility.\n\nJupyter Notebook Best Practices:\n- Structure notebooks with clear sections using markdown cells.\n- Use meaningful cell execution order to ensure reproducibility.\n- Include explanatory text in markdown cells to document analysis steps.\n- Keep code cells focused and modular for easier understanding and debugging.\n- Use magic commands like %matplotlib inline for inline plotting.\n\nError Handling and Data Validation:\n- Implement data quality checks at the beginning of analysis.\n- Handle missing data appropriately (imputation, removal, or flagging).\n- Use try-except blocks for error-prone operations, especially when reading external data.\n- Validate data types and ranges to ensure data integrity.\n\nPerformance Optimization:\n- Use vectorized operations in pandas and numpy for improved performance.\n- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns).\n- Consider using dask for larger-than-memory datasets.\n- Profile code to identify and optimize bottlenecks.\n\nDependencies:\n- pandas\n- numpy\n- matplotlib\n- seaborn\n- jupyter\n- scikit-learn (for machine learning tasks)\n\nKey Conventions:\n1. Begin analysis with data exploration and summary statistics.\n2. Create reusable plotting functions for consistent visualizations.\n3. Document data sources, assumptions, and methodologies clearly.\n4. Use version control (e.g., git) for tracking changes in notebooks and scripts.\n\nRefer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs.\n"},"files":{".github/copilot-instructions.md":"../AGENTS.md","AGENTS.md":"# SvelteKit Coding Agent Guide\n\nThis guide is for AI coding agents working in the SvelteKit monorepo.\n\n**Important:** Read and follow [`CONTRIBUTING.md`](./CONTRIBUTING.md) as well - it contains essential information about testing, code structure, and contribution guidelines that applies here.\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# Initial setup (takes 3-4 minutes, set 10+ min timeout)\npnpm install --frozen-lockfile\n\n# Format code (~15 seconds)\npnpm run format\n\n# Lint (takes 2-3 minutes, set 5+ min timeout)\npnpm run lint\n\n# Type checking (takes 3-4 minutes, set 8+ min timeout)\npnpm run check\n```\n\n### Testing Commands\n\n```bash\n# Unit tests only (fastest - ~6 seconds)\npnpm -F @sveltejs/kit test:unit\n\n# Run a single unit test file\npnpm vitest run path/to/test.spec.js\n\n# Integration tests (10-30 minutes, set 60+ min timeout)\npnpm test:kit\n\n# A single integration test suite (name of suite found in packages/kit/test/apps/*/package.json)\npnpm -F {name-of-suite} test\n\n# Run single Playwright test (must use workdir - no pnpm -F shorthand)\ncd packages/kit/test/apps/basics && npx playwright test --grep \"test name\"\n\n# Other package tests (5-15 minutes, set 30+ min timeout)\npnpm test:others\n```\n\n### Pre-submission Checklist\n\nBefore opening a PR, **all of these must pass** (see also the [PR template](./.github/PULL_REQUEST_TEMPLATE.md)):\n\n1. `pnpm run format` - Auto-format code\n2. `pnpm run lint` - Check code style (don't cancel early)\n3. `pnpm run check` - Type checking (don't cancel early)\n4. `pnpm -F @sveltejs/kit test:unit` - Run unit tests\n5. For @sveltejs/kit changes: `pnpm -F @sveltejs/kit prepublishOnly` - Generate types\n6. Run `pnpm changeset` to document changes (prefix with `fix`, `feat`, `breaking`, or `chore`)\n\n## Code Style Examples\n\nThe coding style guidelines are in `CONTRIBUTING.md`. Here are additional examples:\n\n### Imports\n\n```javascript\n// JSDoc type imports at the top\n/** @import { Handle, RequestEvent } from '@sveltejs/kit' */\n\n// Named imports (no default exports)\nimport { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n```\n\n### Functions\n\n```javascript\n// Exported named functions (no default exports)\nexport function coalesce_to_error(err) {\n\t// Implementation\n}\n\n// JSDoc for all parameters and return types\n/**\n * @param {unknown} error\n * @returns {Error}\n */\nexport function coalesce_to_error(error) {\n\t// Implementation\n}\n\n// Use arrow functions for callbacks\nconst handler = (event) => {\n\t/* ... */\n};\n```\n\n### Error Handling\n\n```javascript\n// Type checking with instanceof\nif (error instanceof HttpError || error instanceof SvelteKitError) {\n\t// Handle\n}\n\n// Graceful fallbacks\nconst status = error?.status ?? 500;\n\n// Optional chaining and nullish coalescing\nconst content_type = request.headers.get('content-type')?.split(';', 1)[0];\n```\n\n### TypeScript/JSDoc\n\n- Use JSDoc annotations for all function parameters and return types\n- Complex types: `/** @type {Array<{ type: string, subtype: string }>} */`\n- Type casting when needed: `/** @type {Error} */ (err)`\n- Enable strict mode: `checkJs: true`, `strict: true` in tsconfig.json\n\n### Formatting (via oxfmt)\n\n- **Tabs for indentation** (not spaces)\n- **Single quotes** for strings\n- **No trailing commas**\n- **100 character line width**\n- Files are auto-formatted by `pnpm run format`\n\n### Comments\n\n````javascript\n// JSDoc with usage examples for public APIs\n/**\n * Sequence multiple handle functions\n *\n * @example\n * ```js\n * export const handle = sequence(first, second);\n * ```\n *\n * @param {...Handle} handlers\n * @returns {Handle}\n */\n\n// Inline comments for clarifications\n// no match equals invalid header — ignore\n````\n\n## Key Packages\n\n- `@sveltejs/kit` - Main framework (`packages/kit/`)\n- `adapter-*` - Platform adapters (node, cloudflare, netlify, vercel, static, auto)\n- `@sveltejs/package` - Package building utilities\n- `@sveltejs/enhanced-img` - Enhanced image component\n\n## Troubleshooting\n\n- **Browser tests fail**: `pnpm playwright install chromium`\n- **Build failures**: Ensure `pnpm install --frozen-lockfile` completed\n- **Type errors**: Run `pnpm -F @sveltejs/kit prepublishOnly`\n- **Lint issues**: Run `pnpm run format` first\n","CLAUDE.md":"AGENTS.md","packages/adapter-auto/README.md":"# adapter-auto\n\nAutomatically chooses the SvelteKit adapter for your current environment, if possible.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-auto)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md).\n","packages/adapter-bun/README.md":"# @sveltejs/adapter-bun\n\nSvelteKit adapter that builds a standalone server for the [Bun](https://bun.com/) runtime.\n\n```sh\nbun add -D @sveltejs/adapter-bun\n```\n\n```js\nimport adapter from '@sveltejs/adapter-bun';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport { defineConfig } from 'vite';\n\nexport default defineConfig({\n  plugins: [sveltekit({ adapter: adapter() })]\n});\n```\n\nBuild with `bun run --bun build`, then run the default output with `bun ./build`.\n\nSee the [adapter-bun documentation](https://svelte.dev/docs/kit/adapter-bun) for configuration,\nenvironment variables, compiled executables, proxy setup, and the Bun-specific platform API.\n\n## Changelog\n\n[View the package changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-bun/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-cloudflare/README.md":"# adapter-cloudflare\n\n[Adapter](https://svelte.dev/docs/kit/building-your-app) for building SvelteKit applications on [Cloudflare Workers](https://developers.cloudflare.com/workers/) with [static assets](https://developers.cloudflare.com/workers/static-assets/) or [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/functions/).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-cloudflare)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-cloudflare/CHANGELOG.md).\n","packages/adapter-netlify/README.md":"# adapter-netlify\n\nA SvelteKit adapter that creates a Netlify app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-netlify)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-netlify/CHANGELOG.md).\n","packages/adapter-node/README.md":"# @sveltejs/adapter-node\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-node)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-static/README.md":"# @sveltejs/adapter-static\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-static)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","packages/adapter-vercel/README.md":"# adapter-vercel\n\nA SvelteKit adapter that creates a Vercel app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-vercel)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-vercel/CHANGELOG.md).\n","packages/enhanced-img/README.md":"# `@sveltejs/enhanced-img`\n\nA Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time.\n\n**WARNING**: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/images)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/enhanced-img/CHANGELOG.md).\n\n## Acknowledgements\n\nWe'd like to thank the author of `svelte-preprocess-import-assets`, which this code is partially based off of. We'd also like to thank the authors of `vite-imagetools` which is used in `@sveltejs/enhanced-img`.\n","packages/kit/README.md":"# The fastest way to build Svelte apps\n\nThis is the [SvelteKit](https://svelte.dev/docs/kit) framework and CLI.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md).\n","packages/kit/test/apps/async/README.md":"# sv\n\nEverything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```sh\n# create a new project in the current directory\nnpx sv create\n\n# create a new project in my-app\nnpx sv create my-app\n```\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```sh\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```sh\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.\n","packages/kit/test/apps/options-2/README.md":"This app exists to test options that are equivalent with the ones specified in the other `options` test app.\n","packages/kit/test/apps/prerendered-app-error-pages/README.md":"Please do not edit this app unless you're absolutely sure it's not going to affect the tests.\n","packages/package/README.md":"# The fastest way to build Svelte packages\n\n[Build Svelte packages](https://svelte.dev/docs/kit/packaging) in correctly packaged format.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit/packaging) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/package/CHANGELOG.md).\n",".cursorrules (pandas-scikit-learn-guide-cursorrules-prompt-file.mdc)":"---\ndescription: \"Cursor rules for Pandas development with scikit-learn guide integration.\"\nglobs: **/*\nalwaysApply: false\n---\nYou are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.\n\nKey Principles:\n- Write concise, technical responses with accurate Python examples.\n- Prioritize readability and reproducibility in data analysis workflows.\n- Use functional programming where appropriate; avoid unnecessary classes.\n- Prefer vectorized operations over explicit loops for better performance.\n- Use descriptive variable names that reflect the data they contain.\n- Follow PEP 8 style guidelines for Python code.\n\nData Analysis and Manipulation:\n- Use pandas for data manipulation and analysis.\n- Prefer method chaining for data transformations when possible.\n- Use loc and iloc for explicit data selection.\n- Utilize groupby operations for efficient data aggregation.\n\nVisualization:\n- Use matplotlib for low-level plotting control and customization.\n- Use seaborn for statistical visualizations and aesthetically pleasing defaults.\n- Create informative and visually appealing plots with proper labels, titles, and legends.\n- Use appropriate color schemes and consider color-blindness accessibility.\n\nJupyter Notebook Best Practices:\n- Structure notebooks with clear sections using markdown cells.\n- Use meaningful cell execution order to ensure reproducibility.\n- Include explanatory text in markdown cells to document analysis steps.\n- Keep code cells focused and modular for easier understanding and debugging.\n- Use magic commands like %matplotlib inline for inline plotting.\n\nError Handling and Data Validation:\n- Implement data quality checks at the beginning of analysis.\n- Handle missing data appropriately (imputation, removal, or flagging).\n- Use try-except blocks for error-prone operations, especially when reading external data.\n- Validate data types and ranges to ensure data integrity.\n\nPerformance Optimization:\n- Use vectorized operations in pandas and numpy for improved performance.\n- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns).\n- Consider using dask for larger-than-memory datasets.\n- Profile code to identify and optimize bottlenecks.\n\nDependencies:\n- pandas\n- numpy\n- matplotlib\n- seaborn\n- jupyter\n- scikit-learn (for machine learning tasks)\n\nKey Conventions:\n1. Begin analysis with data exploration and summary statistics.\n2. Create reusable plotting functions for consistent visualizations.\n3. Document data sources, assumptions, and methodologies clearly.\n4. Use version control (e.g., git) for tracking changes in notebooks and scripts.\n\nRefer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs.\n"},"items":[{"name":"AGENTS.md","path":"AGENTS.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/AGENTS.md","title":"AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# SvelteKit Coding Agent Guide\n\nThis guide is for AI coding agents working in the SvelteKit monorepo.\n\n**Important:** Read and follow [`CONTRIBUTING.md`](./CONTRIBUTING.md) as well - it contains essential information about testing, code structure, and contribution guidelines that applies here.\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# Initial setup (takes 3-4 minutes, set 10+ min timeout)\npnpm install --frozen-lockfile\n\n# Format code (~15 seconds)\npnpm run format\n\n# Lint (takes 2-3 minutes, set 5+ min timeout)\npnpm run lint\n\n# Type checking (takes 3-4 minutes, set 8+ min timeout)\npnpm run check\n```\n\n### Testing Commands\n\n```bash\n# Unit tests only (fastest - ~6 seconds)\npnpm -F @sveltejs/kit test:unit\n\n# Run a single unit test file\npnpm vitest run path/to/test.spec.js\n\n# Integration tests (10-30 minutes, set 60+ min timeout)\npnpm test:kit\n\n# A single integration test suite (name of suite found in packages/kit/test/apps/*/package.json)\npnpm -F {name-of-suite} test\n\n# Run single Playwright test (must use workdir - no pnpm -F shorthand)\ncd packages/kit/test/apps/basics && npx playwright test --grep \"test name\"\n\n# Other package tests (5-15 minutes, set 30+ min timeout)\npnpm test:others\n```\n\n### Pre-submission Checklist\n\nBefore opening a PR, **all of these must pass** (see also the [PR template](./.github/PULL_REQUEST_TEMPLATE.md)):\n\n1. `pnpm run format` - Auto-format code\n2. `pnpm run lint` - Check code style (don't cancel early)\n3. `pnpm run check` - Type checking (don't cancel early)\n4. `pnpm -F @sveltejs/kit test:unit` - Run unit tests\n5. For @sveltejs/kit changes: `pnpm -F @sveltejs/kit prepublishOnly` - Generate types\n6. Run `pnpm changeset` to document changes (prefix with `fix`, `feat`, `breaking`, or `chore`)\n\n## Code Style Examples\n\nThe coding style guidelines are in `CONTRIBUTING.md`. Here are additional examples:\n\n### Imports\n\n```javascript\n// JSDoc type imports at the top\n/** @import { Handle, RequestEvent } from '@sveltejs/kit' */\n\n// Named imports (no default exports)\nimport { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n```\n\n### Functions\n\n```javascript\n// Exported named functions (no default exports)\nexport function coalesce_to_error(err) {\n\t// Implementation\n}\n\n// JSDoc for all parameters and return types\n/**\n * @param {unknown} error\n * @returns {Error}\n */\nexport function coalesce_to_error(error) {\n\t// Implementation\n}\n\n// Use arrow functions for callbacks\nconst handler = (event) => {\n\t/* ... */\n};\n```\n\n### Error Handling\n\n```javascript\n// Type checking with instanceof\nif (error instanceof HttpError || error instanceof SvelteKitError) {\n\t// Handle\n}\n\n// Graceful fallbacks\nconst status = error?.status ?? 500;\n\n// Optional chaining and nullish coalescing\nconst content_type = request.headers.get('content-type')?.split(';', 1)[0];\n```\n\n### TypeScript/JSDoc\n\n- Use JSDoc annotations for all function parameters and return types\n- Complex types: `/** @type {Array<{ type: string, subtype: string }>} */`\n- Type casting when needed: `/** @type {Error} */ (err)`\n- Enable strict mode: `checkJs: true`, `strict: true` in tsconfig.json\n\n### Formatting (via oxfmt)\n\n- **Tabs for indentation** (not spaces)\n- **Single quotes** for strings\n- **No trailing commas**\n- **100 character line width**\n- Files are auto-formatted by `pnpm run format`\n\n### Comments\n\n````javascript\n// JSDoc with usage examples for public APIs\n/**\n * Sequence multiple handle functions\n *\n * @example\n * ```js\n * export const handle = sequence(first, second);\n * ```\n *\n * @param {...Handle} handlers\n * @returns {Handle}\n */\n\n// Inline comments for clarifications\n// no match equals invalid header — ignore\n````\n\n## Key Packages\n\n- `@sveltejs/kit` - Main framework (`packages/kit/`)\n- `adapter-*` - Platform adapters (node, cloudflare, netlify, vercel, static, auto)\n- `@sveltejs/package` - Package building utilities\n- `@sveltejs/enhanced-img` - Enhanced image component\n\n## Troubleshooting\n\n- **Browser tests fail**: `pnpm playwright install chromium`\n- **Build failures**: Ensure `pnpm install --frozen-lockfile` completed\n- **Type errors**: Run `pnpm -F @sveltejs/kit prepublishOnly`\n- **Lint issues**: Run `pnpm run format` first\n","isInternal":false,"tokens":1117,"sizeBytes":4191},{"name":"CLAUDE.md","path":"CLAUDE.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/CLAUDE.md","title":"Claude Agent Guidelines & System Prompt","category":"claude-rule","format":"markdown","content":"AGENTS.md","isInternal":false,"tokens":3,"sizeBytes":9},{"name":"copilot-instructions.md","path":".github/copilot-instructions.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/.github/copilot-instructions.md","title":"GitHub Copilot Instructions","category":"copilot-instructions","format":"markdown","content":"../AGENTS.md","isInternal":false,"tokens":4,"sizeBytes":12},{"name":"README.md","path":"packages/adapter-auto/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-auto/README.md","title":"adapter-auto Documentation","category":"plugin-manifest","format":"markdown","content":"# adapter-auto\n\nAutomatically chooses the SvelteKit adapter for your current environment, if possible.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-auto)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md).\n","isInternal":false,"tokens":74,"sizeBytes":312},{"name":"README.md","path":"packages/adapter-bun/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-bun/README.md","title":"adapter-bun Documentation","category":"plugin-manifest","format":"markdown","content":"# @sveltejs/adapter-bun\n\nSvelteKit adapter that builds a standalone server for the [Bun](https://bun.com/) runtime.\n\n```sh\nbun add -D @sveltejs/adapter-bun\n```\n\n```js\nimport adapter from '@sveltejs/adapter-bun';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport { defineConfig } from 'vite';\n\nexport default defineConfig({\n  plugins: [sveltekit({ adapter: adapter() })]\n});\n```\n\nBuild with `bun run --bun build`, then run the default output with `bun ./build`.\n\nSee the [adapter-bun documentation](https://svelte.dev/docs/kit/adapter-bun) for configuration,\nenvironment variables, compiled executables, proxy setup, and the Bun-specific platform API.\n\n## Changelog\n\n[View the package changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-bun/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","isInternal":false,"tokens":219,"sizeBytes":806},{"name":"README.md","path":"packages/adapter-cloudflare/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-cloudflare/README.md","title":"adapter-cloudflare Documentation","category":"plugin-manifest","format":"markdown","content":"# adapter-cloudflare\n\n[Adapter](https://svelte.dev/docs/kit/building-your-app) for building SvelteKit applications on [Cloudflare Workers](https://developers.cloudflare.com/workers/) with [static assets](https://developers.cloudflare.com/workers/static-assets/) or [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/functions/).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-cloudflare)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-cloudflare/CHANGELOG.md).\n","isInternal":false,"tokens":139,"sizeBytes":627},{"name":"README.md","path":"packages/adapter-netlify/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-netlify/README.md","title":"adapter-netlify Documentation","category":"plugin-manifest","format":"markdown","content":"# adapter-netlify\n\nA SvelteKit adapter that creates a Netlify app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-netlify)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-netlify/CHANGELOG.md).\n","isInternal":false,"tokens":73,"sizeBytes":282},{"name":"README.md","path":"packages/adapter-node/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-node/README.md","title":"adapter-node Documentation","category":"plugin-manifest","format":"markdown","content":"# @sveltejs/adapter-node\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-node)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","isInternal":false,"tokens":97,"sizeBytes":371},{"name":"README.md","path":"packages/adapter-static/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-static/README.md","title":"adapter-static Documentation","category":"plugin-manifest","format":"markdown","content":"# @sveltejs/adapter-static\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-static)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n","isInternal":false,"tokens":178,"sizeBytes":724},{"name":"README.md","path":"packages/adapter-vercel/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/adapter-vercel/README.md","title":"adapter-vercel Documentation","category":"plugin-manifest","format":"markdown","content":"# adapter-vercel\n\nA SvelteKit adapter that creates a Vercel app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-vercel)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-vercel/CHANGELOG.md).\n","isInternal":false,"tokens":74,"sizeBytes":278},{"name":"README.md","path":"packages/enhanced-img/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/enhanced-img/README.md","title":"enhanced-img Documentation","category":"plugin-manifest","format":"markdown","content":"# `@sveltejs/enhanced-img`\n\nA Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time.\n\n**WARNING**: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/images)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/enhanced-img/CHANGELOG.md).\n\n## Acknowledgements\n\nWe'd like to thank the author of `svelte-preprocess-import-assets`, which this code is partially based off of. We'd also like to thank the authors of `vite-imagetools` which is used in `@sveltejs/enhanced-img`.\n","isInternal":false,"tokens":175,"sizeBytes":707},{"name":"README.md","path":"packages/kit/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/kit/README.md","title":"kit Documentation","category":"plugin-manifest","format":"markdown","content":"# The fastest way to build Svelte apps\n\nThis is the [SvelteKit](https://svelte.dev/docs/kit) framework and CLI.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md).\n","isInternal":false,"tokens":130,"sizeBytes":476},{"name":"README.md","path":"packages/kit/test/apps/async/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/kit/test/apps/async/README.md","title":"async Documentation","category":"plugin-manifest","format":"markdown","content":"# sv\n\nEverything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```sh\n# create a new project in the current directory\nnpx sv create\n\n# create a new project in my-app\nnpx sv create my-app\n```\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```sh\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```sh\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.\n","isInternal":false,"tokens":215,"sizeBytes":859},{"name":"README.md","path":"packages/kit/test/apps/options-2/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/kit/test/apps/options-2/README.md","title":"options-2 Documentation","category":"plugin-manifest","format":"markdown","content":"This app exists to test options that are equivalent with the ones specified in the other `options` test app.\n","isInternal":false,"tokens":22,"sizeBytes":109},{"name":"README.md","path":"packages/kit/test/apps/prerendered-app-error-pages/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/kit/test/apps/prerendered-app-error-pages/README.md","title":"prerendered-app-error-pages Documentation","category":"plugin-manifest","format":"markdown","content":"Please do not edit this app unless you're absolutely sure it's not going to affect the tests.\n","isInternal":false,"tokens":20,"sizeBytes":94},{"name":"README.md","path":"packages/package/README.md","rawUrl":"https://raw.githubusercontent.com/sveltejs/kit/HEAD/packages/package/README.md","title":"package Documentation","category":"plugin-manifest","format":"markdown","content":"# The fastest way to build Svelte packages\n\n[Build Svelte packages](https://svelte.dev/docs/kit/packaging) in correctly packaged format.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit/packaging) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/package/CHANGELOG.md).\n","isInternal":false,"tokens":134,"sizeBytes":515},{"name":".cursorrules","path":".cursorrules (pandas-scikit-learn-guide-cursorrules-prompt-file.mdc)","rawUrl":"https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/pandas-scikit-learn-guide-cursorrules-prompt-file.mdc","title":"Awesome Cursorrules: pandas scikit learn guide","category":"cursor-rule","format":"markdown","content":"---\ndescription: \"Cursor rules for Pandas development with scikit-learn guide integration.\"\nglobs: **/*\nalwaysApply: false\n---\nYou are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.\n\nKey Principles:\n- Write concise, technical responses with accurate Python examples.\n- Prioritize readability and reproducibility in data analysis workflows.\n- Use functional programming where appropriate; avoid unnecessary classes.\n- Prefer vectorized operations over explicit loops for better performance.\n- Use descriptive variable names that reflect the data they contain.\n- Follow PEP 8 style guidelines for Python code.\n\nData Analysis and Manipulation:\n- Use pandas for data manipulation and analysis.\n- Prefer method chaining for data transformations when possible.\n- Use loc and iloc for explicit data selection.\n- Utilize groupby operations for efficient data aggregation.\n\nVisualization:\n- Use matplotlib for low-level plotting control and customization.\n- Use seaborn for statistical visualizations and aesthetically pleasing defaults.\n- Create informative and visually appealing plots with proper labels, titles, and legends.\n- Use appropriate color schemes and consider color-blindness accessibility.\n\nJupyter Notebook Best Practices:\n- Structure notebooks with clear sections using markdown cells.\n- Use meaningful cell execution order to ensure reproducibility.\n- Include explanatory text in markdown cells to document analysis steps.\n- Keep code cells focused and modular for easier understanding and debugging.\n- Use magic commands like %matplotlib inline for inline plotting.\n\nError Handling and Data Validation:\n- Implement data quality checks at the beginning of analysis.\n- Handle missing data appropriately (imputation, removal, or flagging).\n- Use try-except blocks for error-prone operations, especially when reading external data.\n- Validate data types and ranges to ensure data integrity.\n\nPerformance Optimization:\n- Use vectorized operations in pandas and numpy for improved performance.\n- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns).\n- Consider using dask for larger-than-memory datasets.\n- Profile code to identify and optimize bottlenecks.\n\nDependencies:\n- pandas\n- numpy\n- matplotlib\n- seaborn\n- jupyter\n- scikit-learn (for machine learning tasks)\n\nKey Conventions:\n1. Begin analysis with data exploration and summary statistics.\n2. Create reusable plotting functions for consistent visualizations.\n3. Document data sources, assumptions, and methodologies clearly.\n4. Use version control (e.g., git) for tracking changes in notebooks and scripts.\n\nRefer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs.\n","tokens":530,"sizeBytes":2840}],"systemPromptSnippet":"<yakaai_skills repo=\"sveltejs/kit\">\n<!-- File: AGENTS.md (Tokens: ~1117 | Category: root-instruction) -->\n# SvelteKit Coding Agent Guide\n\nThis guide is for AI coding agents working in the SvelteKit monorepo.\n\n**Important:** Read and follow [`CONTRIBUTING.md`](./CONTRIBUTING.md) as well - it contains essential information about testing, code structure, and contribution guidelines that applies here.\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# Initial setup (takes 3-4 minutes, set 10+ min timeout)\npnpm install --frozen-lockfile\n\n# Format code (~15 seconds)\npnpm run format\n\n# Lint (takes 2-3 minutes, set 5+ min timeout)\npnpm run lint\n\n# Type checking (takes 3-4 minutes, set 8+ min timeout)\npnpm run check\n```\n\n### Testing Commands\n\n```bash\n# Unit tests only (fastest - ~6 seconds)\npnpm -F @sveltejs/kit test:unit\n\n# Run a single unit test file\npnpm vitest run path/to/test.spec.js\n\n# Integration tests (10-30 minutes, set 60+ min timeout)\npnpm test:kit\n\n# A single integration test suite (name of suite found in packages/kit/test/apps/*/package.json)\npnpm -F {name-of-suite} test\n\n# Run single Playwright test (must use workdir - no pnpm -F shorthand)\ncd packages/kit/test/apps/basics && npx playwright test --grep \"test name\"\n\n# Other package tests (5-15 minutes, set 30+ min timeout)\npnpm test:others\n```\n\n### Pre-submission Checklist\n\nBefore opening a PR, **all of these must pass** (see also the [PR template](./.github/PULL_REQUEST_TEMPLATE.md)):\n\n1. `pnpm run format` - Auto-format code\n2. `pnpm run lint` - Check code style (don't cancel early)\n3. `pnpm run check` - Type checking (don't cancel early)\n4. `pnpm -F @sveltejs/kit test:unit` - Run unit tests\n5. For @sveltejs/kit changes: `pnpm -F @sveltejs/kit prepublishOnly` - Generate types\n6. Run `pnpm changeset` to document changes (prefix with `fix`, `feat`, `breaking`, or `chore`)\n\n## Code Style Examples\n\nThe coding style guidelines are in `CONTRIBUTING.md`. Here are additional examples:\n\n### Imports\n\n```javascript\n// JSDoc type imports at the top\n/** @import { Handle, RequestEvent } from '@sveltejs/kit' */\n\n// Named imports (no default exports)\nimport { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n```\n\n### Functions\n\n```javascript\n// Exported named functions (no default exports)\nexport function coalesce_to_error(err) {\n\t// Implementation\n}\n\n// JSDoc for all parameters and return types\n/**\n * @param {unknown} error\n * @returns {Error}\n */\nexport function coalesce_to_error(error) {\n\t// Implementation\n}\n\n// Use arrow functions for callbacks\nconst handler = (event) => {\n\t/* ... */\n};\n```\n\n### Error Handling\n\n```javascript\n// Type checking with instanceof\nif (error instanceof HttpError || error instanceof SvelteKitError) {\n\t// Handle\n}\n\n// Graceful fallbacks\nconst status = error?.status ?? 500;\n\n// Optional chaining and nullish coalescing\nconst content_type = request.headers.get('content-type')?.split(';', 1)[0];\n```\n\n### TypeScript/JSDoc\n\n- Use JSDoc annotations for all function parameters and return types\n- Complex types: `/** @type {Array<{ type: string, subtype: string }>} */`\n- Type casting when needed: `/** @type {Error} */ (err)`\n- Enable strict mode: `checkJs: true`, `strict: true` in tsconfig.json\n\n### Formatting (via oxfmt)\n\n- **Tabs for indentation** (not spaces)\n- **Single quotes** for strings\n- **No trailing commas**\n- **100 character line width**\n- Files are auto-formatted by `pnpm run format`\n\n### Comments\n\n````javascript\n// JSDoc with usage examples for public APIs\n/**\n * Sequence multiple handle functions\n *\n * @example\n * ```js\n * export const handle = sequence(first, second);\n * ```\n *\n * @param {...Handle} handlers\n * @returns {Handle}\n */\n\n// Inline comments for clarifications\n// no match equals invalid header — ignore\n````\n\n## Key Packages\n\n- `@sveltejs/kit` - Main framework (`packages/kit/`)\n- `adapter-*` - Platform adapters (node, cloudflare, netlify, vercel, static, auto)\n- `@sveltejs/package` - Package building utilities\n- `@sveltejs/enhanced-img` - Enhanced image component\n\n## Troubleshooting\n\n- **Browser tests fail**: `pnpm playwright install chromium`\n- **Build failures**: Ensure `pnpm install --frozen-lockfile` completed\n- **Type errors**: Run `pnpm -F @sveltejs/kit prepublishOnly`\n- **Lint issues**: Run `pnpm run format` first\n\n<!-- File: CLAUDE.md (Tokens: ~3 | Category: claude-rule) -->\nAGENTS.md\n\n<!-- File: .github/copilot-instructions.md (Tokens: ~4 | Category: copilot-instructions) -->\n../AGENTS.md\n\n<!-- File: packages/adapter-auto/README.md (Tokens: ~74 | Category: plugin-manifest) -->\n# adapter-auto\n\nAutomatically chooses the SvelteKit adapter for your current environment, if possible.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-auto)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md).\n\n<!-- File: packages/adapter-bun/README.md (Tokens: ~219 | Category: plugin-manifest) -->\n# @sveltejs/adapter-bun\n\nSvelteKit adapter that builds a standalone server for the [Bun](https://bun.com/) runtime.\n\n```sh\nbun add -D @sveltejs/adapter-bun\n```\n\n```js\nimport adapter from '@sveltejs/adapter-bun';\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport { defineConfig } from 'vite';\n\nexport default defineConfig({\n  plugins: [sveltekit({ adapter: adapter() })]\n});\n```\n\nBuild with `bun run --bun build`, then run the default output with `bun ./build`.\n\nSee the [adapter-bun documentation](https://svelte.dev/docs/kit/adapter-bun) for configuration,\nenvironment variables, compiled executables, proxy setup, and the Bun-specific platform API.\n\n## Changelog\n\n[View the package changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-bun/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n\n<!-- File: packages/adapter-cloudflare/README.md (Tokens: ~139 | Category: plugin-manifest) -->\n# adapter-cloudflare\n\n[Adapter](https://svelte.dev/docs/kit/building-your-app) for building SvelteKit applications on [Cloudflare Workers](https://developers.cloudflare.com/workers/) with [static assets](https://developers.cloudflare.com/workers/static-assets/) or [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/functions/).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-cloudflare)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-cloudflare/CHANGELOG.md).\n\n<!-- File: packages/adapter-netlify/README.md (Tokens: ~73 | Category: plugin-manifest) -->\n# adapter-netlify\n\nA SvelteKit adapter that creates a Netlify app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-netlify)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-netlify/CHANGELOG.md).\n\n<!-- File: packages/adapter-node/README.md (Tokens: ~97 | Category: plugin-manifest) -->\n# @sveltejs/adapter-node\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-node)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n\n<!-- File: packages/adapter-static/README.md (Tokens: ~178 | Category: plugin-manifest) -->\n# @sveltejs/adapter-static\n\n[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-static)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n\n<!-- File: packages/adapter-vercel/README.md (Tokens: ~74 | Category: plugin-manifest) -->\n# adapter-vercel\n\nA SvelteKit adapter that creates a Vercel app.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/adapter-vercel)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-vercel/CHANGELOG.md).\n\n<!-- File: packages/enhanced-img/README.md (Tokens: ~175 | Category: plugin-manifest) -->\n# `@sveltejs/enhanced-img`\n\nA Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time.\n\n**WARNING**: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release.\n\n## Docs\n\n[Docs](https://svelte.dev/docs/kit/images)\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/enhanced-img/CHANGELOG.md).\n\n## Acknowledgements\n\nWe'd like to thank the author of `svelte-preprocess-import-assets`, which this code is partially based off of. We'd also like to thank the authors of `vite-imagetools` which is used in `@sveltejs/enhanced-img`.\n\n<!-- File: packages/kit/README.md (Tokens: ~130 | Category: plugin-manifest) -->\n# The fastest way to build Svelte apps\n\nThis is the [SvelteKit](https://svelte.dev/docs/kit) framework and CLI.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md).\n\n<!-- File: packages/kit/test/apps/async/README.md (Tokens: ~215 | Category: plugin-manifest) -->\n# sv\n\nEverything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).\n\n## Creating a project\n\nIf you're seeing this, you've probably already done this step. Congrats!\n\n```sh\n# create a new project in the current directory\nnpx sv create\n\n# create a new project in my-app\nnpx sv create my-app\n```\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```sh\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```sh\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.\n\n<!-- File: packages/kit/test/apps/options-2/README.md (Tokens: ~22 | Category: plugin-manifest) -->\nThis app exists to test options that are equivalent with the ones specified in the other `options` test app.\n\n<!-- File: packages/kit/test/apps/prerendered-app-error-pages/README.md (Tokens: ~20 | Category: plugin-manifest) -->\nPlease do not edit this app unless you're absolutely sure it's not going to affect the tests.\n\n<!-- File: packages/package/README.md (Tokens: ~134 | Category: plugin-manifest) -->\n# The fastest way to build Svelte packages\n\n[Build Svelte packages](https://svelte.dev/docs/kit/packaging) in correctly packaged format.\n\nThe quickest way to get started is via the [sv](https://npmjs.com/package/sv) package:\n\n```sh\nnpx sv create my-app\ncd my-app\nnpm install\nnpm run dev\n```\n\nSee the [documentation](https://svelte.dev/docs/kit/packaging) to learn more.\n\n## Changelog\n\n[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/package/CHANGELOG.md).\n\n<!-- File: .cursorrules (pandas-scikit-learn-guide-cursorrules-prompt-file.mdc) (Tokens: ~530 | Category: cursor-rule) -->\n---\ndescription: \"Cursor rules for Pandas development with scikit-learn guide integration.\"\nglobs: **/*\nalwaysApply: false\n---\nYou are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.\n\nKey Principles:\n- Write concise, technical responses with accurate Python examples.\n- Prioritize readability and reproducibility in data analysis workflows.\n- Use functional programming where appropriate; avoid unnecessary classes.\n- Prefer vectorized operations over explicit loops for better performance.\n- Use descriptive variable names that reflect the data they contain.\n- Follow PEP 8 style guidelines for Python code.\n\nData Analysis and Manipulation:\n- Use pandas for data manipulation and analysis.\n- Prefer method chaining for data transformations when possible.\n- Use loc and iloc for explicit data selection.\n- Utilize groupby operations for efficient data aggregation.\n\nVisualization:\n- Use matplotlib for low-level plotting control and customization.\n- Use seaborn for statistical visualizations and aesthetically pleasing defaults.\n- Create informative and visually appealing plots with proper labels, titles, and legends.\n- Use appropriate color schemes and consider color-blindness accessibility.\n\nJupyter Notebook Best Practices:\n- Structure notebooks with clear sections using markdown cells.\n- Use meaningful cell execution order to ensure reproducibility.\n- Include explanatory text in markdown cells to document analysis steps.\n- Keep code cells focused and modular for easier understanding and debugging.\n- Use magic commands like %matplotlib inline for inline plotting.\n\nError Handling and Data Validation:\n- Implement data quality checks at the beginning of analysis.\n- Handle missing data appropriately (imputation, removal, or flagging).\n- Use try-except blocks for error-prone operations, especially when reading external data.\n- Validate data types and ranges to ensure data integrity.\n\nPerformance Optimization:\n- Use vectorized operations in pandas and numpy for improved performance.\n- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns).\n- Consider using dask for larger-than-memory datasets.\n- Profile code to identify and optimize bottlenecks.\n\nDependencies:\n- pandas\n- numpy\n- matplotlib\n- seaborn\n- jupyter\n- scikit-learn (for machine learning tasks)\n\nKey Conventions:\n1. Begin analysis with data exploration and summary statistics.\n2. Create reusable plotting functions for consistent visualizations.\n3. Document data sources, assumptions, and methodologies clearly.\n4. Use version control (e.g., git) for tracking changes in notebooks and scripts.\n\nRefer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs.\n</yakaai_skills>"}