You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/instructions/nx.instructions.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
applyTo: '**'
2
+
applyTo: "**"
3
3
---
4
4
5
5
// This file is automatically generated by Nx Console
@@ -9,12 +9,14 @@ You are in an nx workspace using Nx 21.4.0 and pnpm as the package manager.
9
9
You have access to the Nx MCP server and the tools it provides. Use them. Follow these guidelines in order to best help the user:
10
10
11
11
# General Guidelines
12
+
12
13
- When answering questions, use the nx_workspace tool first to gain an understanding of the workspace architecture
13
14
- For questions around nx configuration, best practices or if you're unsure, use the nx_docs tool to get relevant, up-to-date docs!! Always use this instead of assuming things about nx configuration
14
15
- If the user needs help with an Nx configuration or project graph error, use the 'nx_workspace' tool to get any errors
15
16
- To help answer questions about the workspace structure or simply help with demonstrating how tasks depend on each other, use the 'nx_visualize_graph' tool
16
17
17
18
# Generation Guidelines
19
+
18
20
If the user wants to generate something, use the following flow:
19
21
20
22
- learn about the nx workspace and any specifics the user needs by using the 'nx_workspace' tool and the 'nx_project_details' tool if applicable
@@ -29,12 +31,11 @@ If the user wants to generate something, use the following flow:
29
31
- use the information provided in the log file to answer the user's question or continue with what they were doing
30
32
31
33
# Running Tasks Guidelines
34
+
32
35
If the user wants help with tasks or commands (which include keywords like "test", "build", "lint", or other similar actions), use the following flow:
36
+
33
37
- Use the 'nx_current_running_tasks_details' tool to get the list of tasks (this can include tasks that were completed, stopped or failed).
34
38
- If there are any tasks, ask the user if they would like help with a specific task then use the 'nx_current_running_task_output' tool to get the terminal output for that task/command
35
39
- Use the terminal output from 'nx_current_running_task_output' to see what's wrong and help the user fix their problem. Use the appropriate tools if necessary
36
40
- If the user would like to rerun the task or command, always use `nx run <taskId>` to rerun in the terminal. This will ensure that the task will run in the nx context and will be run the same way it originally executed
37
-
- If the task was marked as "continuous" do not offer to rerun the task. This task is already running and the user can see the output in the terminal. You can use 'nx_current_running_task_output' to get the output of the task to verify the output.
38
-
39
-
40
-
41
+
- If the task was marked as "continuous" do not offer to rerun the task. This task is already running and the user can see the output in the terminal. You can use 'nx_current_running_task_output' to get the output of the task to verify the output.
0 commit comments