Add Xquik MCP Cursor rule#317
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughA new Cursor rule file ChangesXquik MCP X Research Rule and Registration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@rules/xquik-mcp-x-research.mdc`:
- Line 3: The glob pattern `globs: **/*` on line 3 is invalid YAML because the
`**` sequence is interpreted as an alias indicator, and the pattern is too broad
as it matches every file in every directory. Fix this by either properly quoting
the pattern as `'**/*'` if a universal pattern is truly needed, or better yet,
narrow it to specific file extensions relevant to the X/Twitter research rule
following the repository's documented format (e.g., patterns like **/*.ts,
**/*.tsx for TypeScript files). Refer to the repository's README for the correct
documented format for glob patterns in this rule file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4ab986fc-f791-4b8b-8a39-0bff64e6a33c
📒 Files selected for processing (2)
README.mdrules/xquik-mcp-x-research.mdc
| @@ -0,0 +1,54 @@ | |||
| --- | |||
| description: "Use the Xquik MCP server for public X/Twitter research in Cursor." | |||
| globs: **/* | |||
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
cat -n rules/xquik-mcp-x-research.mdc | head -20Repository: PatrickJS/awesome-cursorrules
Length of output: 764
🏁 Script executed:
# Check YAML parsing with Python
python3 - <<'PY'
import yaml
# Test if unquoted **/* is valid YAML
test_cases = [
"globs: **/*",
"globs: '**/*'",
"globs: \"**/*\""
]
for test in test_cases:
yaml_str = f"---\n{test}\n---"
try:
result = yaml.safe_load(yaml_str)
print(f"✓ Valid: {test} → {result}")
except Exception as e:
print(f"✗ Invalid: {test} → {e}")
PYRepository: PatrickJS/awesome-cursorrules
Length of output: 761
🏁 Script executed:
# Check if there are other .mdc files to understand the glob pattern convention
find . -name "*.mdc" -type f | head -10Repository: PatrickJS/awesome-cursorrules
Length of output: 553
🏁 Script executed:
# Check how other rules format their globs field
rg -A 3 "^globs:" rules/*.mdc | head -40Repository: PatrickJS/awesome-cursorrules
Length of output: 2531
🏁 Script executed:
# Look for any documentation or schema about rule format
fd -e md -e txt -e json | xargs rg -l "globs|cursor.*rule" 2>/dev/null | head -10Repository: PatrickJS/awesome-cursorrules
Length of output: 112
🏁 Script executed:
# Check if there's a README or docs explaining the format
ls -la | grep -i readme
cat README.md | grep -A 20 -B 5 "globs\|frontmatter" 2>/dev/null | head -40Repository: PatrickJS/awesome-cursorrules
Length of output: 1761
Quote and narrow the glob pattern to match the documented format.
globs: **/* is invalid YAML (the ** is interpreted as an alias indicator) and too broad—it matches every file in every directory. According to the repository's README, the correct format specifies file extensions or patterns, like globs: **/*.ts, **/*.tsx. For an X/Twitter research rule, consider a scoped pattern (e.g., globs: **/* with proper quoting as '**/*' if truly universal, but narrower patterns are preferred) to ensure the rule only activates where intended.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@rules/xquik-mcp-x-research.mdc` at line 3, The glob pattern `globs: **/*` on
line 3 is invalid YAML because the `**` sequence is interpreted as an alias
indicator, and the pattern is too broad as it matches every file in every
directory. Fix this by either properly quoting the pattern as `'**/*'` if a
universal pattern is truly needed, or better yet, narrow it to specific file
extensions relevant to the X/Twitter research rule following the repository's
documented format (e.g., patterns like **/*.ts, **/*.tsx for TypeScript files).
Refer to the repository's README for the correct documented format for glob
patterns in this rule file.
|
Addressed the CodeRabbit glob note in Validation rerun:
|
Summary
Adds a Cursor Project Rule for using the Xquik MCP server for public X/Twitter research. It documents the remote MCP config, says to call
explorebeforexquik, and keeps write/account endpoints opt-in.Contribution Type
rules/*.mdcruleValue To Cursor Users
This gives Cursor users a reusable rule for current public X/Twitter research tasks without guessing social data. It points agents to the live MCP tool list and keeps collection narrow.
Added Or Changed Files
rules/xquik-mcp-x-research.mdc: New Cursor rule with setup and agent guardrails.README.md: Adds the rule in Database and API.Quality Checklist
react-typescript.mdc.rules/*.mdcfiles include frontmatter with a non-emptydescription, relevantglobs, andalwaysApply: falseunless the rule is universal.Notes For Maintainers
Duplicate checks: target README/code search, PR search, and issue search returned no existing Xquik entry.
Validation run:
npm testnpm run check:awesome-listnpm run check:readme-hygienenpm run check:rule-hygienenpm run check:repo-securitygit diff --checkSummary by CodeRabbit