Synthèse automatique
Ce skill guide un agent qui travaille dans un workspace Nx : il impose l'usage des outils du serveur Nx MCP pour explorer le workspace, générer du code et diagnostiquer les tâches en échec.
Points forts
- Impose une découverte préalable du workspace via `nx_workspace` avant toute réponse, ce qui évite les suppositions sur l'architecture du monorepo
- Décrit un flux de génération complet et ordonné (schéma du générateur, UI, puis lecture du fichier de log) plutôt qu'une commande improvisée
- Fournit une méthode concrète de dépannage : lister les tâches, lire la sortie terminal, puis relancer avec `nx run <taskId>` pour rester dans le contexte Nx
- Renvoie systématiquement à `nx_docs` pour la configuration et les bonnes pratiques, limitant les réponses inventées
Limites
- Le fichier est généré automatiquement et fige la version (Nx 21.2.2 avec npm), donc les instructions peuvent diverger après une mise à jour
- Suppose que le serveur Nx MCP est installé et exposé à l'agent ; sans lui, la majorité des consignes sont inapplicables
- Le flux de génération dépend d'une interaction de l'utilisateur dans l'interface Nx Console et d'un fichier de log, ce qui ne convient pas à un enchaînement 100 % automatisé
- La liste des commandes courantes est volontairement déléguée à AGENTS.md et n'est pas incluse ici
À utiliser dès qu'un agent doit intervenir dans un monorepo Nx : ajouter une librairie ou une app, comprendre le graphe de projets, ou débloquer une tâche build/test/lint en échec.
À éviter dans un dépôt qui n'est pas un workspace Nx, ou si le serveur Nx MCP n'est pas disponible pour l'agent.
Analyse de sécurité
SûrThe skill provides guidelines for using Nx MCP tools and running standard Nx tasks like build, test, and lint. It does not instruct destructive commands, data exfiltration, or obfuscated actions. The 'nx run' command is a legitimate workspace task runner and is not inherently risky.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Add a new React library called feature-billing to this workspace, placed under libs/feature-billing and tagged with scope:feature.The build for the api project is failing — can you look at the task output and tell me what's wrong?Explain how the projects in this workspace depend on each other and show me the graph.name: nx description: Nx workspace commands and guidelines for running tasks, generators, and using Nx MCP tools disable-model-invocation: false
// This file is automatically generated by Nx Console
You are in an nx workspace using Nx 21.2.2 and npm as the package manager.
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:
General Guidelines
- When answering questions, use the nx_workspace tool first to gain an understanding of the workspace architecture
- 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
- If the user needs help with an Nx configuration or project graph error, use the 'nx_workspace' tool to get any errors
- 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
Generation Guidelines
If the user wants to generate something, use the following flow:
- 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
- get the available generators using the 'nx_generators' tool
- decide which generator to use. If no generators seem relevant, check the 'nx_available_plugins' tool to see if the user could install a plugin to help them
- get generator details using the 'nx_generator_schema' tool
- you may use the 'nx_docs' tool to learn more about a specific generator or technology if you're unsure
- decide which options to provide in order to best complete the user's request. Don't make any assumptions and keep the options minimalistic
- open the generator UI using the 'nx_open_generate_ui' tool
- wait for the user to finish the generator
- read the generator log file using the 'nx_read_generator_log' tool
- use the information provided in the log file to answer the user's question or continue with what they were doing
Running Tasks Guidelines
If the user wants help with tasks or commands (which include keywords like "test", "build", "lint", or other similar actions), use the following flow:
- Use the 'nx_current_running_tasks_details' tool to get the list of tasks (this can include tasks that were completed, stopped or failed).
- 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
- 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
- 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 - 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.
Commands
- Targets are defined in project.json of each lib or app, but these can also be inferred based on each project config
- To run a command, use
nx run [project][:target]. - For the canonical list of common commands (test / lint / typecheck / build / storybook), see the
Commandssection ofAGENTS.md— not duplicated here.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/nx-workspace-commands-and-guidelines-mstwizc2/download' --output '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md.part' && mv '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md.part' '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md' && test -s '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/nx' && cp -R '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2' '.claude/skills/nx'Cursor
test -f '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md' && test -s '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/nx' && cp -R '.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2' '.cursor/skills/nx'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2'openskills read 'nx-workspace-commands-and-guidelines-mstwizc2'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/nx-workspace-commands-and-guidelines-mstwizc2/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.