Guidelines for using Nx tools, generators, and task execution in the monorepo workspace.
This skill provides guidelines for working with the Nx monorepo workspace, including generators, tasks, and workspace tools.
You are in an Nx workspace using Nx 21.2.0 and npm as the package manager.
You have access to the Nx MCP server and the tools it provides. Always use these tools when working with Nx-related tasks.
nx_workspace tool first to gain an understanding of the workspace architecturenx_docs tool to get relevant, up-to-date docsnx_docs instead of assuming things about Nx configurationnx_workspace tool to get any errorsnx_visualize_graph toolWhen the user wants to generate something, follow this flow:
nx_workspace tool and nx_project_details tool if applicablenx_generators tool to see what's availablenx_available_plugins to see if a plugin could helpnx_generator_schema tool to understand generator optionsnx_docs tool to learn more about a specific generator or technologynx_open_generate_ui tool with the selected optionsnx_read_generator_log tool to see what was generatedWhen the user wants help with tasks or commands (test, build, lint, etc.), follow this flow:
nx_current_running_tasks_details tool to get the list of tasks (includes completed, stopped, or failed tasks)nx_current_running_task_output tool to get the terminal output for that task/commandnx run <taskId> to rerun in the terminal. This ensures the task runs in the Nx context the same way it originally executednx_current_running_task_output to get the output to verifynx_workspace to understand structure before generating or modifying codenx_docs for configuration questionsnx run <taskId> for rerunning tasks to maintain Nx contextnx_visualize_graph to help understand project or task dependencies