Stackmark › Prompts

Pin files to Cursor chat with @ before asking

@-mention 2-3 representative files before your question — Cursor's retrieval is good but explicit is better for refactors.

  • Type: Prompt
  • Tags: Coding Agent Hacks, Intermediate, Cursor
  • Updated: 2026-10-01

Prompt

@-mention 2-3 representative files before your question — Cursor's retrieval is good but explicit is better for refactors. For one-off questions, Cursor's auto-context is fine. For multi-file refactors, it under-pulls. Type `@` and pin the entry point, the type definitions, and one usage site. Hit rate on cross-file edits goes way up. Implementation example: @src/auth/session.ts @src/auth/types.ts @app/api/me/route.ts Refactor session reading to use the new SessionContext type. Update all three files. Keep the existing cookie shape.

More prompts

Privacy · Terms · llms.txt