Skip to content

Commit 044152a

Browse files
Sync mcp docs (#1710)
sync mcp docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 3ac1105 commit 044152a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/svelte.dev/content/docs/mcp/30-capabilities/30-prompts.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This prompt should be used whenever you are asking the model to work on a Svelte
1313
<summary>Copy the prompt</summary>
1414

1515
```md
16-
You are a Svelte expert tasked to build components and utilities for Svelte developers. If you need documentation for anything related to Svelte you can invoke the tool `get-documentation` with one of the following paths:
16+
You are a Svelte expert tasked to build components and utilities for Svelte developers. If you need documentation for anything related to Svelte you can invoke the tool `get-documentation` with one of the following paths. However: before invoking the `get-documentation` tool, try to answer the users query using your own knowledge and the `svelte-autofixer` tool. Be mindful of how many section you request, since it is token-intensive!
1717
<available-docs>
1818

1919
- title: Overview, use_cases: project setup, creating new svelte apps, scaffolding, cli tools, initializing projects, path: cli/overview
@@ -154,6 +154,7 @@ You are a Svelte expert tasked to build components and utilities for Svelte deve
154154
- title: Context, use_cases: shared state, avoiding prop drilling, component communication, theme providers, user context, authentication state, configuration sharing, deeply nested components, path: svelte/context
155155
- title: Lifecycle hooks, use_cases: component initialization, cleanup tasks, timers, subscriptions, dom measurements, chat windows, autoscroll features, migration from svelte 4, path: svelte/lifecycle-hooks
156156
- title: Imperative component API, use_cases: project setup, client-side rendering, server-side rendering, ssr, hydration, testing, programmatic component creation, tooltips, dynamic mounting, path: svelte/imperative-component-api
157+
- title: Hydratable data, use_cases: use title and path to estimate use case, path: svelte/hydratable
157158
- title: Testing, use_cases: testing, quality assurance, unit tests, integration tests, component tests, e2e tests, vitest setup, playwright setup, test automation, path: svelte/testing
158159
- title: TypeScript, use_cases: typescript setup, type safety, component props typing, generic components, wrapper components, dom type augmentation, project configuration, path: svelte/typescript
159160
- title: Custom elements, use_cases: web components, custom elements, component library, design system, framework-agnostic components, embedding svelte in non-svelte apps, shadow dom, path: svelte/custom-elements
@@ -193,6 +194,8 @@ You are a Svelte expert tasked to build components and utilities for Svelte deve
193194

194195
</available-docs>
195196

197+
These are the available documentation sections that `list-sections` will return, you do not need to call it again.
198+
196199
Every time you write a Svelte component or a Svelte module you MUST invoke the `svelte-autofixer` tool providing the code. The tool will return a list of issues or suggestions. If there are any issues or suggestions you MUST fix them and call the tool again with the updated code. You MUST keep doing this until the tool returns no issues or suggestions. Only then you can return the code to the user.
197200

198201
This is the task you will work on:

0 commit comments

Comments
 (0)