nx-workspace-patterns

nx-workspace-patterns is a skill for Claude Code from wshobson/agents. It costs 35 tokens per session (495 once invoked), scanned A, original, MIT.

A guide to organizing and tuning Nx workspaces, where multiple applications and shared libraries live in one repository. Nx can track project relationships and run work only for projects affected by a change.

In plain words
What is it for?
Use it to create an Nx workspace, define project boundaries, configure shared libraries, improve CI with affected commands, add caching, or migrate to Nx.
Why use it?
It helps keep shared code and dependencies organized while avoiding unnecessary builds and tests in large repositories.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the developer-essentials plugin — 11 skills, 1 agent shipped together

Good fit Use it to create an Nx workspace, define project boundaries, configure shared libraries, improve CI with affected commands, add caching, or migrate to Nx.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wshobson/agents/nx-workspace-patterns
About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 41,247 stars · on GitHub · sethhobson.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wshobson/agents --skill nx-workspace-patterns
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Claude Code.

Or install developer-essentials, the plugin that ships this one along with the rest of its 11 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nx-workspace-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/wshobson/agents/nx-workspace-patterns/github.svg)](https://agentmods.dev/skills/wshobson/agents/nx-workspace-patterns)
Your own site
<a href="https://agentmods.dev/skills/wshobson/agents/nx-workspace-patterns"><img src="https://agentmods.dev/badge/skills/wshobson/agents/nx-workspace-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nx-workspace-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/wshobson/agents/nx-workspace-patterns"><img src="https://agentmods.dev/badge/skills/wshobson/agents/nx-workspace-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00495
Opus 5.5 $0.00014 $0.00198
Sonnet 5.5 $0.00007 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 1mo ago against content hash fe6d0cd7db8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nx-workspace-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/developer-essentials/skills/nx-workspace-patterns/SKILL.md · 70 lines

What it actually says

Nx Workspace Patterns

Production patterns for Nx monorepo management.

When to Use This Skill

  • Setting up new Nx workspaces
  • Configuring project boundaries
  • Optimizing CI with affected commands
  • Implementing remote caching
  • Managing dependencies between projects
  • Migrating to Nx

Core Concepts

1. Nx Architecture

workspace/
├── apps/              # Deployable applications
│   ├── web/
│   └── api/
├── libs/              # Shared libraries
│   ├── shared/
│   │   ├── ui/
│   │   └── utils/
│   └── feature/
│       ├── auth/
│       └── dashboard/
├── tools/             # Custom executors/generators
├── nx.json            # Nx configuration
└── workspace.json     # Project configuration

2. Library Types

Type Purpose Example
feature Smart components, business logic feature-auth
ui Presentational components ui-buttons
data-access API calls, state management data-access-users
util Pure functions, helpers util-formatting
shell App bootstrapping shell-web

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Best Practices

Do's

  • Use tags consistently - Enforce with module boundaries
  • Enable caching early - Significant CI savings
  • Keep libs focused - Single responsibility
  • Use generators - Ensure consistency
  • Document boundaries - Help new developers

Don'ts

  • Don't create circular deps - Graph should be acyclic
  • Don't skip affected - Test only what changed
  • Don't ignore boundaries - Tech debt accumulates
  • Don't over-granularize - Balance lib count
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 70 lines · 35 tokens per session scan A fe6d0cd7db8c

Subscribe to this mod's changes

nx-workspace-patterns is a skill published in the GitHub repository wshobson/agents (41,247 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 495 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

principle-outcome-oriented-execution

Apply during planned rewrites and migrations with explicit phase boundaries. Converge on the target architecture; don't preserve smooth intermediate states with throwaway compatibility code.

michael-denyer/pstack-claude · 39 tokens

product-brief

Extract a product idea through guided questions and generate a PRD. Use when the user says 'write a PRD', 'spec this feature', 'turn this idea into a brief'. Not for a non-product initiative like hiring or partnerships (use initiative-kickoff once shipped); not for checking existing projects' status (use…

davekilleen/Dex · 75 tokens

account-plan

Create or update strategic account plan.

davekilleen/Dex · 9 tokens

triage

Route orphaned inbox files and pull scattered - [ ] tasks into the right project/person/goal using current priorities. Use when the user says 'clean up my inbox', 'triage', 'sort out these notes'. Also use proactively when 00-Inbox/ is piling up. Not for updating notes from meetings; use process-meetings.

davekilleen/Dex · 77 tokens

file-todos

This skill should be used when managing the file-based todo tracking system in the todos/ directory. It provides workflows for creating todos, managing status and dependencies, conducting triage, and integrating with slash commands and code review processes.

davekilleen/Dex · 49 tokens

todoist-setup

Connect Todoist so Dex reads and updates your Todoist tasks two ways. Use when the user says 'I use Todoist', 'sync Todoist', or pastes a todoist.com link. Not for Things 3 (things-setup) or Trello (trello-setup); not for Jira tickets (atlassian-setup).

davekilleen/Dex · 76 tokens