nx-workspace-patterns

nx-workspace-patterns is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 55 tokens per session (1,238 once invoked), scanned A, original, MIT.

A set of patterns for organizing Nx, a tool for managing JavaScript and TypeScript monorepos. A monorepo keeps multiple apps and shared libraries in one repository.

In plain words
What is it for?
Use it to structure Nx workspaces, enforce boundaries between apps and libraries, configure caching, and run only affected projects in continuous integration.
Why use it?
Large workspaces can run unnecessary CI tasks, allow unwanted dependencies between projects, or become difficult to understand. These patterns make project relationships and task execution more predictable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to structure Nx workspaces, enforce boundaries between apps and libraries, configure caching, and run only affected projects in continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantheon-org/tekhne/workspace-patterns
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 pantheon-org/tekhne --skill workspace-patterns
Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne

Made for: Claude Code, Codex.

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/pantheon-org/tekhne/workspace-patterns/github.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/workspace-patterns)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/workspace-patterns"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/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/pantheon-org/tekhne/workspace-patterns"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/workspace-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 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
  • 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.00055 $0.01238
Opus 5 $0.00028 $0.00619
Sonnet 5 $0.00011 $0.00248
Haiku 4.5 $0.00006 $0.00124

Measured 9d ago against content hash 1d1d833b25b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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.

skills/repository-mgmt/nx/workspace-patterns/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nx Workspace Patterns

Navigation hub for Nx workspace architecture and operations.

When to Use

  • You are structuring or refactoring an Nx monorepo.
  • You need dependency boundaries enforced by tags and lint rules.
  • You need reliable affected-command CI and caching performance.

When Not to Use

  • The repository is single-project with no monorepo coordination needs.
  • The task is framework-specific build setup unrelated to Nx graph and task orchestration.

Workflow

  1. Structure workspace domains (apps/, libs/, tools/).
  2. Define tags and project graph conventions.
  3. Configure target pipelines and caching defaults.
  4. Enforce module boundaries and verify violations fail with nx lint --skip-nx-cache.
  5. Integrate affected commands in CI with explicit base/head strategy.

Constraint Guidelines

Hard Constraints

  • MUST tag projects consistently for scope/type-based constraints.
  • MUST configure targetDefaults for build/test/lint dependency flow.
  • MUST use affected commands in CI for scalable execution.

Flexible Choices

  • CAN choose tag vocabulary (scope:*, type:*, platform:*) if consistent.
  • CAN choose cache backend (Nx Cloud or self-hosted) by org constraints.
  • CAN choose library granularity based on team ownership and release cadence.

Fallback Behaviors

Missing Config Fallback
no explicit tags allow broad deps temporarily with warning and migration plan
no target defaults tasks run independently with reduced optimization
no CI base/head default to main branch and document tradeoff

Quick Commands

nx graph
nx affected -t lint,test,build --base=origin/main --parallel=3
nx show project my-app --web
nx reset
rg -n "@nx/enforce-module-boundaries|depConstraints" .

Configuration Examples

nx.json targetDefaults

{
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "inputs": ["production", "^production"],
      "cache": true
    },
    "test": {
      "dependsOn": ["build"],
      "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
      "cache": true
    },
    "lint": {
      "inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
      "cache": true
    }
  }
}

Read the full file on GitHub · 177 lines

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. 9d ago First seen · 177 lines · 55 tokens per session scan A 1d1d833b25b4

Subscribe to this mod's changes

nx-workspace-patterns is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,238 once invoked, about $0.0003 per session on Opus 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

nx-monorepo

Provides comprehensive Nx monorepo management guidance for TypeScript/JavaScript projects. Use when creating Nx workspaces, generating apps/libraries/components, running affected commands, setting up CI/CD, configuring Module Federation, or implementing NestJS backends within Nx.

giuseppe-trisciuoglio/developer-kit · 55 tokens

turborepo-monorepo

Provides comprehensive Turborepo monorepo management guidance for TypeScript/JavaScript projects. Use when creating Turborepo workspaces, configuring turbo.json tasks, setting up Next.js/NestJS apps, managing test pipelines (Vitest/Jest), configuring CI/CD, implementing remote caching, or optimizing build performance…

giuseppe-trisciuoglio/developer-kit · 76 tokens

nx-workspace

Configure, explore, and optimize Nx monorepo workspaces. Use when setting up Nx, exploring workspace structure, configuring project boundaries, analyzing affected projects, optimizing build caching, or implementing CI/CD with affected commands. Keywords — nx, monorepo, workspace, projects, targets, affected. Do NOT…

tech-leads-club/agent-skills · 87 tokens

azure-devops

Expert knowledge for Azure DevOps development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing agent pools, work item processes, analytics/OData reports, org limits, or…

MicrosoftDocs/Agent-Skills · 110 tokens

google-cloud-slo-alert-configuration

Configures PromQL-based Service Level Objective (SLO) alerting policies for Google Cloud resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.

google/skills · 62 tokens

bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

wshobson/agents · 36 tokens