You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/ai/10-introduction/10-overview.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ To get the most out of the MCP server we recommend including the following promp
18
18
19
19
> [!NOTE] This is already setup for you when using `npx sv add mcp`
20
20
21
+
<!-- prettier-ignore-start -->
22
+
````markdown
21
23
You are able to use the Svelte MCP server, where you have access to comprehensive Svelte 5 and SvelteKit documentation. Here's how to use the available tools effectively:
22
24
23
25
## Available Svelte MCP Tools:
@@ -42,5 +44,7 @@ You MUST use this tool whenever writing Svelte code before sending it to the use
42
44
Generates a Svelte Playground link with the provided code.
43
45
After completing the code, ask the user if they want a playground link. Only call this tool after user confirmation and NEVER if code was written to files in their project.
44
46
47
+
````
48
+
<!-- prettier-ignore-end -->
45
49
46
50
If your MCP client supports it, we also recommend using the [svelte-task](prompts#svelte-task) prompt to instruct the LLM on the best way to use the MCP server.
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/ai/30-capabilities/.generated/prompts.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,22 @@ This prompt should be used whenever you are asking the model to work on a Svelte
5
5
<details>
6
6
<summary>Copy the prompt</summary>
7
7
8
-
```md
8
+
<!-- prettier-ignore-start -->
9
+
````markdown
9
10
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!
10
11
<available-docs>
11
12
13
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/overview
14
+
- title: Local setup, use_cases: use title and path to estimate use case, path: ai/local-setup
15
+
- title: Remote setup, use_cases: use title and path to estimate use case, path: ai/remote-setup
16
+
- title: Tools, use_cases: use title and path to estimate use case, path: ai/tools
17
+
- title: Resources, use_cases: use title and path to estimate use case, path: ai/resources
18
+
- title: Prompts, use_cases: use title and path to estimate use case, path: ai/prompts
19
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/plugin
20
+
- title: Subagent, use_cases: use title and path to estimate use case, path: ai/subagent
21
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/opencode-plugin
22
+
- title: Subagent, use_cases: use title and path to estimate use case, path: ai/opencode-subagent
23
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/skills
@@ -204,6 +207,7 @@ This is the task you will work on:
204
207
</task>
205
208
206
209
If you are not writing the code into a file, once you have the final version of the code ask the user if it wants to generate a playground link to quickly check the code in it and if it answer yes call the `playground-link` tool and return the url to the user nicely formatted. The playground link MUST be generated only once you have the final version of the code and you are ready to share it, it MUST include an entry point file called `App.svelte` where the main component should live. If you have multiple files to include in the playground link you can include them all at the root.
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/ai/30-capabilities/30-prompts.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,22 @@ This prompt should be used whenever you are asking the model to work on a Svelte
12
12
<details>
13
13
<summary>Copy the prompt</summary>
14
14
15
-
```md
15
+
<!-- prettier-ignore-start -->
16
+
````markdown
16
17
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!
17
18
<available-docs>
18
19
20
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/overview
21
+
- title: Local setup, use_cases: use title and path to estimate use case, path: ai/local-setup
22
+
- title: Remote setup, use_cases: use title and path to estimate use case, path: ai/remote-setup
23
+
- title: Tools, use_cases: use title and path to estimate use case, path: ai/tools
24
+
- title: Resources, use_cases: use title and path to estimate use case, path: ai/resources
25
+
- title: Prompts, use_cases: use title and path to estimate use case, path: ai/prompts
26
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/plugin
27
+
- title: Subagent, use_cases: use title and path to estimate use case, path: ai/subagent
28
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/opencode-plugin
29
+
- title: Subagent, use_cases: use title and path to estimate use case, path: ai/opencode-subagent
30
+
- title: Overview, use_cases: use title and path to estimate use case, path: ai/skills
@@ -211,7 +214,8 @@ This is the task you will work on:
211
214
</task>
212
215
213
216
If you are not writing the code into a file, once you have the final version of the code ask the user if it wants to generate a playground link to quickly check the code in it and if it answer yes call the `playground-link` tool and return the url to the user nicely formatted. The playground link MUST be generated only once you have the final version of the code and you are ready to share it, it MUST include an entry point file called `App.svelte` where the main component should live. If you have multiple files to include in the playground link you can include them all at the root.
Copy file name to clipboardExpand all lines: apps/svelte.dev/content/docs/ai/50-opencode-plugin/opencode-plugin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ OpenCode has a [plugin system](https://opencode.ai/docs/plugins/) that allows de
7
7
8
8
## Installation
9
9
10
-
To install the plugin in OpenCode you can edit your [OpenCode config]() (either the global or the local one), adding `@sveltejs/opencode` to the list of plugins.
10
+
To install the plugin in OpenCode you can edit your [OpenCode config](https://opencode.ai/docs/config/) (either the global or the local one), adding `@sveltejs/opencode` to the list of plugins.
0 commit comments