Skip to content

Conversation

paoloricciuti
Copy link
Member

So this solves an itch I have: a lot of clients don't support prompts, and it's a shame people can't use them because of that... However, a lot of clients either allow you to create your own prompt, or you could copy and paste the prompt when needed (or create a snippet with it).

Initially, I included the prompt in the docs, but including it in the prompt means that it can get outdated fast. But we can prevent that with a SCRIPT!

This pr introduces a script that reads the prompts folder and writes the docs based on some variables that are exported directly from the prompt file...this makes all the information about a prompt contained in the prompt file, and that information is also used to generate the text for the docs.

I've also included a GitHub action that generates the docs and opens a pr every time there's a new commit on main that includes a change in the prompt folder and opens a PR to keep the docs up to date AND i've included a snippet to quickly generate a prompt file.

This does make the setup a bit more complex, but the docs look very nice with a Copy the prompt details that allow the user to copy that.

WDYT? Should we do this?

Copy link

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 0360d00

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/mcp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mcp Ready Ready Preview Comment Oct 10, 2025 10:31am

@svelte-docs-bot
Copy link

@paoloricciuti paoloricciuti merged commit 7d7547f into main Oct 10, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant