diff --git a/apps/web/src/routes/cli/+page.svelte b/apps/web/src/routes/cli/+page.svelte index 67263fc1..407d32e2 100644 --- a/apps/web/src/routes/cli/+page.svelte +++ b/apps/web/src/routes/cli/+page.svelte @@ -9,6 +9,7 @@ 'btca config resources add --name convex --type git --url https://github.com/get-convex/convex-js --branch main'; const QUICK_START_CMD = 'btca ask --resource convex --question "How do I create a Convex mutation and use it in a React app?"'; + const CURSOR_RULE_CMD = `mkdir -p .cursor/rules && curl -fsSL "https://btca.dev/rule" -o .cursor/rules/better_context.mdc && echo "Rule file created."`; const commands = [ { @@ -157,7 +158,31 @@ Project setup -

+ +

+
Add Cursor rules
+

+ Use this command to pull the Cursor rules into your project. +

+
+
+
+ {#if shikiStore.highlighter} + {@html shikiStore.highlighter.codeToHtml(CURSOR_RULE_CMD, { + theme: shikiTheme, + lang: 'bash', + rootStyle: 'background-color: transparent; padding: 0; margin: 0;' + })} + {:else} +
{CURSOR_RULE_CMD}
+ {/if} +
+ +
+
+
+

Copy this prompt into your AI coding agent to generate a tailored btca.config.jsonc for your repo.