Add AI Quickstart prompts - #625
Draft
bean1352 wants to merge 2 commits into
Draft
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an AI Quickstart section to all 10 client SDK references, plus a discovery version on the docs home page for projects that haven't picked an SDK yet. Without these, agents tend to invent their own approach instead of following what our docs and Agent Skills recommend.
Each prompt tells the agent to install the Agent Skills (
npx skills add powersync-ja/agent-skills), points it at that SDK's.mdreference, and makes it ask about the source database, PowerSync Service instance, table and row scoping, and auth before writing any code.The prompt body is one snippet (
snippets/ai-quickstart.mdx) withsdk,slugandquestionprops, so the four shared questions are edited in one place. Also adds a pointer from the AI Tools page and fixes a typo in the home page card (Convex, should be Codex).Testing
Pasted the JavaScript Web prompt into a blank Vite + React + Supabase app. The agent installed the skills, asked all five questions before writing code, used Sync Streams rather than legacy Sync Rules, and produced a schema, Supabase connector and multi-tab setup that built cleanly.
AI note
I used Claude Opus 5 to draft the prompts and run the eval above in a throwaway app.