Compress Next.js quickstart prompt for Cursor deeplink limit#3169
Merged
Compress Next.js quickstart prompt for Cursor deeplink limit#3169
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
375cbec to
e7f4450
Compare
e7f4450 to
561d272
Compare
Cursor's 8,000 char limit applies to URL-encoded text. The previous prompt was 10,805 encoded, always exceeding the limit. Compressed to 5,467 encoded chars while preserving all grader keywords. Updated for Core 3: <Show> replaces <SignedIn>/<SignedOut>, ClerkProvider moves inside <body>. Also adds a CI check that validates quickstart prompts stay under the encoded limit (warns on other prompts like upgrade guides).
561d272 to
9010bf9
Compare
- Fail CI by default when any prompt exceeds the 8000 char limit - Add EXCLUDED_PROMPTS array for explicitly bypassing the check - Measure full deeplink URL length instead of just encoded content - Improve output with colored status and accurate summary counts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ca10089 to
02b1eb1
Compare
Contributor
|
I updated the prompt deeplink length check to be stricter and more flexible. 02b1eb1
|
manovotny
approved these changes
Mar 5, 2026
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.


Summary
prompts/nextjs-quickstart.mdfrom 10,805 → 4,969 URL-encoded chars (limit is 8,000)scripts/check-prompt-deeplink-length.tsCI check that fails if any prompt inprompts/exceeds the 8,000 encoded char limitlint:check-prompt-deeplink-lengthscript and CI workflow stepRelated
Context
Cursor's "Open in Cursor" deeplink has an 8,000 char limit on the URL-encoded text. The previous prompt was 7,375 raw chars but 10,805 encoded — always exceeding the limit and causing "Invalid text for prompt" errors.
Test plan
pnpm run lint:check-prompt-deeplink-lengthpasses locally