CtrlK
BlogDocsLog inGet started
Tessl Logo

nx-workspace-patterns

Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.

Install with Tessl CLI

npx tessl i github:wshobson/agents --skill nx-workspace-patterns
What are skills?

83

Does it follow best practices?

Agent success when using this skill

Validation for skill structure

SKILL.md
Review
Evals

Evaluation results

100%

20%

CI Pipeline for Monorepo Build Optimization

CI pipeline with affected commands

Criteria
Without context
With context

Full git history checkout

100%

100%

nrwl/nx-set-shas action

0%

100%

Affected lint command

100%

100%

Affected test command

100%

100%

Affected build command

100%

100%

Parallel=3 for lint

100%

100%

Parallel=3 for test

100%

100%

Parallel=3 for build

100%

100%

E2e parallel=1

100%

100%

NX_CLOUD_ACCESS_TOKEN env var

0%

100%

Triggers on main branch

100%

100%

Without context: $0.2933 · 54s · 16 turns · 17 in / 2,867 out tokens

With context: $0.4553 · 1m 22s · 21 turns · 20 in / 3,563 out tokens

100%

32%

Optimize Nx Workspace Build Caching

nx.json caching and target configuration

Criteria
Without context
With context

defaultBase=main

0%

100%

cacheableOperations list

80%

100%

Parallel count

0%

100%

Build dependsOn upstream

100%

100%

Build cache enabled

100%

100%

Test jest.preset.js input

100%

100%

Production input excludes tests

100%

100%

Production excludes config files

100%

100%

sharedGlobals includes tsconfig.base

100%

100%

React app style=css

0%

100%

React app bundler=webpack

0%

100%

React linter=eslint

100%

100%

Without context: $0.2095 · 45s · 11 turns · 11 in / 2,496 out tokens

With context: $0.5805 · 1m 49s · 27 turns · 271 in / 5,482 out tokens

98%

8%

Enforce Architecture Boundaries in Nx Monorepo

Module boundary enforcement and project tagging

Criteria
Without context
With context

enforceBuildableLibDependency

100%

100%

type:app constraint

0%

80%

type:feature constraint

100%

100%

type:ui constraint

100%

100%

type:data-access constraint

100%

100%

type:util constraint

100%

100%

scope:web constraint

100%

100%

scope:api constraint

100%

100%

scope:shared constraint

100%

100%

Tags format

100%

100%

Library type naming

100%

100%

nx enforce-module-boundaries rule

100%

100%

Without context: $0.2523 · 57s · 13 turns · 13 in / 3,313 out tokens

With context: $0.3771 · 1m 20s · 17 turns · 310 in / 4,278 out tokens

Evaluated
Agent
Claude Code

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.