extending-nx-plugins

Extend Nx workspaces with plugins for generators, inferred tasks, and migrations.

1|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/pantheon-org/opencode-plugins --skill extending-nx-plugins
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extending-nx-plugins
Source: https://github.com/pantheon-org/opencode-plugins/tree/main/.opencode/skills/extending-nx-plugins
Command: npx skills add https://github.com/pantheon-org/opencode-plugins --skill extending-nx-plugins

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Nx users often face inconsistencies in workspace tooling and repetitive setup when extending Nx with custom tooling. This Skill provides a structured approach to extend Nx with plugins that introduce generators, inferred tasks, migrations, and presets to standardize workflows across teams.

Core Features & Use Cases

  • Code Generators: Scaffold consistent code patterns across workspaces.
  • Inferred Tasks: Automate task configuration based on project graphs.
  • Migrations & Presets: Share updates and templates across repositories.
  • Use Case: Create a plugin to enforce project structure and automate boilerplate across multiple Nx workspaces.

Quick Start

Install Nx plugin tooling and scaffold a new plugin using the recommended commands. Example: npx create-nx-plugin my-plugin. For an existing workspace, add plugin capabilities with nx add @nx/plugin and generate a new plugin under packages/ or tools/.

Frequently Asked Questions about extending-nx-plugins

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

FAQPage Schema
How do I create a custom Nx plugin for my monorepo?

Create a custom Nx plugin by running `npx create-nx-plugin my-plugin` to scaffold a new plugin, or use `nx add @nx/plugin` in an existing workspace. This enables code generators, task inference, and migrations to standardize monorepo workflows.

What are inferred tasks in Nx and how do they work?

Inferred tasks in Nx automate task configuration based on project graphs within your monorepo. By developing a custom plugin, you can automatically infer and apply build, test, or lint tasks to standardize workflows without manual project.json definitions.

How do I add code generators to an Nx workspace?

Add code generators to an Nx workspace by developing a plugin using Nx Devkit utilities and template-based file generation. This approach scaffolds consistent code patterns across projects, reducing repetitive setup and enforcing standardized project structures.

Can I use Nx plugins to share migrations across multiple repositories?

Yes, Nx plugins support migrations and presets to share updates across repositories. By developing a custom plugin and integrating it with the plugin registry, you can distribute version updates and standardized templates across multiple dependent Nx workspaces.

Does extending Nx with custom plugins require a specific workspace structure?

Extending Nx with custom plugins requires an Nx-based monorepo. You can generate a new plugin directly within an existing workspace under the `packages/` or `tools/` directories using Nx plugin tooling, eliminating the need for a separate repository.

What is the best way to standardize tooling across Nx workspaces?

The best way to standardize tooling across Nx workspaces is creating a custom plugin. Plugins enforce project structure and automate boilerplate through generators, inferred tasks, and presets, ensuring consistent tool configurations across multiple teams and repositories.