Generate Cursor deeplinks (prompt/command/rule and MCP install links) using the repo generator and the project output contract...
This skill standardizes how to create Cursor deeplinks (per this repo’s conventions), including:
.cursor/commands/*.md in the current project after approval).cursor/rules/*.mdc in the current project after approval)Primary reference in this repo: doc/cursor-deeplinks.md
Preferred generator: scripts/cursor-deeplink-gen.py
Use the generator script to avoid encoding mistakes and to verify the 8,000 char URL limit (post-encoding):
python3 scripts/cursor-deeplink-gen.py prompt --text "Create a README for this repo" --md
python3 scripts/cursor-deeplink-gen.py command --name "run-all-tests" --text "Run the full test suite and fix failures" --md
python3 scripts/cursor-deeplink-gen.py rule --name "python-style" --text "Prefer ruff/black; avoid implicit Any." --md
python3 scripts/cursor-deeplink-gen.py mcp-install --name postgres --config-file mcp.json --md
When asked to produce a deeplink, return:
https://cursor.com/link/...cursor://anysphere.cursor-deeplink/...Cursor supports two equivalent bases:
https://cursor.com/linkcursor://anysphere.cursor-deeplinkSupported paths and params:
/prompttext=<promptText>/commandname=<commandName>, text=<commandContent>.cursor/commands/ in the current project after approval./rulename=<ruleName>, text=<ruleContent>.cursor/rules/ in the current project after approval./mcp/installname=<serverName>, config=<base64(JSON.stringify(transportConfig))>transportConfig is the per-server object (e.g. {"command":"npx","args":[...]}), not the whole mcp.json mapping.Notes:
config must be base64 of the stringified JSON. Base64 output must be safe for query params (must be URL-encoded; + becomes %2B).python3 scripts/cursor-deeplink-gen.py prompt --text "Write a short changelog entry for the last commit" --md
python3 scripts/cursor-deeplink-gen.py command --name "audit-config" --text "Review mcp.json for risky settings and propose fixes." --md
python3 scripts/cursor-deeplink-gen.py rule --name "cursor-deeplinks" --text "When asked for a deeplink, output WEB+APP links + expected result + safety note." --md
python3 scripts/cursor-deeplink-gen.py mcp-install --name "github" --config-file mcp.json --md
doc/cursor-deeplinks.mdhttps://cursor.com/docs/integrations/deeplinks.mdhttps://cursor.com/docs/context/mcp/install-links.md