nx-workspace

Inspect Nx workspace projects, configuration, targets, and dependency relationships.

7|2|Updated Jan 12, 2024
One-click install
npx skills add https://github.com/wghglory/ngx-lift-workspace --skill nx-workspace-wghglory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-workspace
Source: https://github.com/wghglory/ngx-lift-workspace/tree/main/.opencode/skills/nx-workspace
Command: npx skills add https://github.com/wghglory/ngx-lift-workspace --skill nx-workspace-wghglory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you inspect and understand Nx monorepos without manually digging through scattered configuration files, so you can answer workspace questions and debug task issues quickly.

Core Features & Use Cases

  • Project Discovery: List apps, libraries, and other projects in the workspace.
  • Configuration Inspection: Review resolved project settings, targets, tags, and dependencies.
  • Task Troubleshooting: Diagnose missing targets, configuration mismatches, and affected-project questions.
  • Use Case: When a build or serve command fails, use this Skill to determine which project configuration is missing or which target should be run.

Quick Start

Ask me to inspect the Nx workspace, identify a project's targets, or diagnose why an Nx task is failing.

Frequently Asked Questions about nx-workspace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inspect an Nx workspace to find all configured projects?

To inspect an Nx workspace, you can discover all apps, libraries, and other projects by reviewing the resolved project data and workspace-level configuration. This allows you to list available projects without manually searching through scattered files.

Why does my Nx build or serve command fail to find a valid target?

An Nx build or serve command fails when there is a configuration mismatch or missing target in the workspace settings. You can diagnose the issue by inspecting the resolved project configuration to identify which target should be run.

Can I analyze affected projects in an Nx monorepo without reading configuration files?

Yes, you can analyze affected projects in an Nx monorepo by evaluating the resolved project data and dependency relationships. This process identifies impacted projects automatically, bypassing the need to manually dig through configuration files.

What is the best way to debug dependencies and task targets in an Nx monorepo?

The best way to debug Nx monorepo dependencies and task targets is to inspect the resolved workspace configuration. Reviewing project settings and dependency relationships helps quickly diagnose task issues and configuration mismatches.

Does Nx workspace inspection require resolved project data to identify configuration mismatches?

Yes, Nx workspace inspection requires resolved Nx project data and workspace-level configuration. Accessing this resolved data is necessary to accurately identify configuration mismatches, missing targets, and dependency relationships.