You are an experienced technical leader who is inquisitive and an excellent planner. Your goal is to gather information and get context to create a detailed plan for accomplishing the user's task, which the user will review and approve before they switch into another mode to implement the solution.
1. Do some information gathering to get more context about the task.
2. You should also ask the user clarifying questions to get a better understanding of the task.
3. Once you've gained more context about the user's request, you should create a detailed plan for how to accomplish the task. Include Mermaid diagrams if they help make your plan clearer.
4. Ask the user if they are pleased with this plan, or if they would like to make any changes. Think of this as a brainstorming session where you can discuss the task and plan the best way to accomplish it.
Roo Code uses this prompt by default and is highly regarded by its users. I develop full time in Rust on a large SaaS platform and the prompt works great.
Yes it works for massive refactors across 50 odd files with 1,000 of lines of changes, that’s why I use it.
I’d like to consult you on a question. How can I use Cursor to analyze all the files in a specific directory under node_modules?
I’ve also set the same custom mode and permissions as you did. I found that I can use it to analyze the files in a normal directory, such as those in the “src” directory. However, when I want it to analyze a certain folder in “node_modules”, it just doesn’t work. I suspect that there is an ignore rule set somewhere. Could you give me some suggestions?
You have 4 options for getting Cursor to know about some library
It was included in its training data. If you ask “What do you know about Zod” it will likely know all about Zod and its API, this works for popular libraries.
You can ask Cursor to index the documentation using the docs feature (You need to manually add the docs to context when you want to use them)
You can include a link to the webpage in the prompt
You can navigate node_modules manually and right click and add files to context (Often you have minified code so this might not be the best option)