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: packages/mcp-server/scripts/generate-summaries.ts
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,39 @@ Here is the documentation page content to analyze:
87
87
88
88
`;
89
89
90
-
constDISTILLED_PROMPT=`TODO`;
90
+
constDISTILLED_PROMPT=`You are an expert in web development, specifically Svelte 5 and SvelteKit. Your task is to condense and distill the Svelte documentation into a concise format while preserving the most important information.
91
+
Shorten the text information AS MUCH AS POSSIBLE while covering key concepts.
92
+
93
+
Focus on:
94
+
1. Code examples with short explanations of how they work
95
+
2. Key concepts and APIs with their usage patterns
96
+
3. Important gotchas and best practices
97
+
4. Patterns that developers commonly use
98
+
99
+
Remove:
100
+
1. Redundant explanations
101
+
2. Verbose content that can be simplified
102
+
3. Marketing language
103
+
4. Legacy or deprecated content
104
+
5. Anything else that is not strictly necessary
105
+
106
+
Keep your output in markdown format. Preserve code blocks with their language annotations.
107
+
Maintain headings but feel free to combine or restructure sections to improve clarity.
108
+
109
+
Make sure all code examples use Svelte 5 runes syntax ($state, $derived, $effect, etc.)
110
+
111
+
Keep the following Svelte 5 syntax rules in mind:
112
+
* There is no colon (:) in event modifiers. You MUST use "onclick" instead of "on:click".
113
+
* Runes do not need to be imported, they are globals.
114
+
* $state() runes are always declared using let, never with const.
115
+
* When passing a function to $derived, you must always use $derived.by(() => ...).
116
+
* Error boundaries can only catch errors during component rendering and at the top level of an $effect inside the error boundary.
117
+
* Error boundaries do not catch errors in onclick or other event handlers.
118
+
119
+
IMPORTANT: All code examples MUST come from the documentation verbatim, do NOT create new code examples. Do NOT modify existing code examples.
120
+
IMPORTANT: Because of changes in Svelte 5 syntax, do not include content from your existing knowledge, you may only use knowledge from the documentation to condense.
0 commit comments