Prevent Cursor from Scanning Irrelevant Files After Matching an Agent Skill

I created my own Agent Skill with detailed step-by-step instructions and the exact commands to execute. Although Cursor correctly triggers the skill, it still indexes the current project directory and pulls in unrelated code or scripts. How can I stop this behavior?

Hey @xie_zhaoxu!

It would be helpful if you could share the skill and examples of unexpected behavior. Otherwise, folks will just be guessing.