Skip to content

Commit 30dc2eb

Browse files
committed
Update generate-summaries.ts
1 parent ae92b84 commit 30dc2eb

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

packages/mcp-server/scripts/generate-summaries.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,39 @@ Here is the documentation page content to analyze:
8787
8888
`;
8989

90-
const DISTILLED_PROMPT = `TODO`;
90+
const DISTILLED_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.
121+
122+
Here is the documentation you must condense:`;
91123

92124
const program = new Command();
93125

0 commit comments

Comments
 (0)