nx-tools

Extract Nx workspace metadata via a Python CLI with JSON output.

2|Updated Aug 25, 2025
One-click install
npx skills add https://github.com/bsamiee/Parametric_Forge --skill nx-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nx-tools
Source: https://github.com/bsamiee/Parametric_Forge/tree/main/.claude/skills/nx-tools
Command: npx skills add https://github.com/bsamiee/Parametric_Forge --skill nx-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Queries Nx workspace metadata, project configurations, affected detection, generator schemas, and dependency graphs via a unified Python CLI.

Core Features & Use Cases

  • Zero-arg defaults for quick access to workspace state.
  • Command surface for workspace, project, graph, and docs inspection.
  • Consistent output formatting for automation pipelines.

Quick Start

List all projects: nx-tools workspace

Frequently Asked Questions about nx-tools

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

FAQPage Schema
How do I query Nx workspace metadata and list all projects in my monorepo?

Nx workspace metadata queries extract project lists and configurations through a Python CLI. Run `nx-tools workspace` with zero arguments to display all projects in your Nx monorepo instantly, outputting structured JSON for automation.

Can I identify which projects are affected by my changes in an Nx monorepo?

Affected detection in Nx workspaces identifies which projects changed relative to a baseline. The `affected` command analyzes your dependency graph to return only impacted projects, enabling CI optimization and faster build pipelines.

How do I visualize and inspect dependency graphs in an Nx workspace?

Dependency graph inspection reveals project interconnections and architecture patterns in monorepos. The `graph` command outputs workspace dependencies as JSON, exposing relationships for impact analysis and architectural review.

What Nx generators are available and how do I discover their schemas?

Generator discovery exposes available code generation templates and their configuration schemas in Nx workspaces. The `generators` and `schema` commands return structured metadata on generator inputs, allowing you to programmatically explore and invoke them.

Does nx-tools work with monorepos using the Nx toolchain?

Yes, nx-tools targets monorepos built with Nx. It extracts workspace metadata, project configurations, and dependency graphs from Nx-managed workspaces, supporting teams using the Nx toolchain for scale and optimization.

Can I automate Nx workspace queries in CI/CD pipelines with consistent JSON output?

Workspace automation via nx-tools uses consistent JSON formatting across all commands. The unified CLI with zero-arg defaults and standardized output integrates into shell scripts and CI systems for reproducible, programmatic workspace analysis.