/cursor-pack:cursor-debug-bundlefrom cursor-pack
Debug AI suggestion quality issues in Cursor: diagnose context problems, model hallucinations, and prompt ambiguity to fix wrong code generation.
Ships in cursor-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Collect a minimal, redacted reproduction for a Cursor issue involving context, rules, indexing, model behavior, or extensions. Debug material may contain proprietary code or prompts, so scope and retention matter as much as reproducibility.
Diagnose and fix AI suggestion quality issues in Cursor. Covers why AI generates wrong code, how to improve context, and systematic debugging workflows.
When AI suggestions are wrong, the cause is almost always one of these:
┌─ Context Problems (80% of issues) ───────────────────────┐
│ 1. Missing context: AI doesn't have the relevant code │
│ 2. Wrong context: AI has stale or irrelevant files │
│ 3. Too much context: context window overflow │
│ 4. No project rules: AI doesn't know your conventions │
└──────────────────────────────────────────────────────────┘
┌─ Model Problems (15% of issues) ─────────────────────────┐
│ 5. Wrong model for the task │
│ 6. Model hallucinating APIs or patterns │
└──────────────────────────────────────────────────────────┘
┌─ Prompt Problems (5% of issues) ─────────────────────────┐
│ 7. Ambiguous or vague instructions │
│ 8. Conflicting requirements in prompt │
└──────────────────────────────────────────────────────────┘
Symptom: Generated code uses React.createClass, old Express syntax, or deprecated patterns.
Root cause: Model training data includes old code. No project rules specifying versions.
Fix:
# .cursor/rules/stack-versions.mdc
---
description: "Tech stack version pinning"
globs: ""
alwaysApply: true
---
# Stack Versions (ALWAYS use these)
- React 19 with Server Components (NOT class components)
- Next.js 15 App Router (NOT Pages Router)
- TypeScript 5.7 strict mode
- Prisma 6 (NOT Sequelize or TypeORM)
- Tailwind CSS 4 (NOT styled-components)
- Node.js 22 (ESM, NOT CommonJS require())
Symptom: Generated code uses different naming, structure, or patterns than your codebase.
Root cause: AI does not have your existing code as context.
Fix: Reference your existing patterns explicitly:
@src/api/users/route.ts
Create src/api/products/route.ts following the EXACT same patterns:
same error handling, same response format, same validation approach.
Symptom: AI calls functions or uses imports that do not exist in your project or in the library.
Root cause: Model confuses similar libraries or invents plausible-sounding APIs.
Fix:
@Docs context: @Docs Prisma gives the AI real API documentationnpm run build immediately after applying@Files to show the actual module interface: @src/lib/database.tsSymptom: You ask for one thing, AI does something different.
Root cause: Context window overflow -- your instructions get pushed out by file contents.
Fix:
@ references -- each consumes context budget@Files instead of @Codebase to reduce context volumeSymptom: Tab keeps suggesting the same wrong pattern.
Root cause: Tab has limited context compared to Chat/Composer.
Fix:
Esc (trains the model)When AI output is consistently wrong:
Step 1: Check context
- Open Chat, look at context pills at top
- Are the right files included?
- Are stale files adding noise?
Step 2: Check rules
- @Cursor Rules in chat -- what rules are active?
- Do rules conflict with each other?
- Are glob patterns matching the right files?
Step 3: Test with minimal context
- Start new chat
- Add ONLY the most relevant file: @src/the-file.ts
- Ask your question with explicit constraints
- If this works, the issue was context pollution
Step 4: Test with different model
- Switch from Sonnet to Opus or GPT-5
- If better model gives better results, the task needs more reasoning power
Step 5: Check indexing
- Is the codebase indexed? (status bar shows "Indexed")
- Is the relevant file excluded by .cursorignore?
- Run Cmd+Shift+P > "Cursor: Resync Index"
Cmd+Shift+P > Developer: Toggle Developer Tools
Check the Console tab for:
Enable verbose output: Cursor Settings > search "log level" > set to "Debug"
Logs location:
~/Library/Application Support/Cursor/logs/~/.config/Cursor/logs/1. Note Cursor version: Help > About
2. Note model used (from Chat/Composer header)
3. Copy the exact prompt that produced wrong output
4. Copy the wrong output
5. List active extensions: Cmd+Shift+P > "Extensions: Show Installed"
6. Note if Privacy Mode is on (affects model behavior)
7. Report at forum.cursor.com or github.com/getcursor/cursor/issues
.cursor/rules/ for outdated or conflicting rules| Condition | Safe response |
|---|---|
| Bundle contains proprietary code or credentials | Stop distribution, remove the material, rotate exposed secrets, and recreate a minimal redacted reproducer. |
| Issue cannot reproduce | Record the exact environment delta and keep the issue open for additional evidence. |
| Debugging changes global settings | Revert after the test or use a disposable profile. |
For a bad-context report, create a new chat with one sanitized file and a short non-sensitive request. Record the Cursor version, active rules, selected model, expected and observed behavior, then attach only redacted material approved for the support channel.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
30 skills in this plugin
/cursor-advanced-composerAdvanced Cursor Composer techniques: agent mode, parallel agents, complex refactoring, and multi-step
orchestration. Triggers on "advanced composer", "composer patterns", "multi-file generation",
"composer refactoring", "agent mode", "parallel agents".
/cursor-ai-chatMaster Cursor AI Chat with @-mentions, inline edit, and conversation patterns. Triggers on "cursor chat",
"cursor ai chat", "ask cursor", "cursor conversation", "chat with cursor", "Cmd+L", "inline edit".
/cursor-api-key-managementConfigure BYOK API keys for OpenAI, Anthropic, Google, Azure, and custom models in Cursor.
Triggers on "cursor api key", "cursor openai key", "cursor anthropic key", "own api key cursor",
"BYOK cursor", "cursor azure key".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin cursor-packOther plugins' skills for the same job