ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
Nx monorepo build system — workspace configuration, project graph, task pipelines, caching, generators, plugins, and release management
Claude Code
$ npx -y skills add agents-inc/skills --skill shared-monorepo-nx --agent claude-code
Codex
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a codex -y
Cursor
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a cursor -y
Gemini CLI
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a gemini-cli -y
GitHub Copilot
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a github-copilot -y
OpenCode
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a opencode -y
Windsurf
$ npx skills add agents-inc/skills --skill shared-monorepo-nx -a windsurf -y
name: shared-monorepo-nx description: Nx monorepo build system — workspace configuration, project graph, task pipelines, caching, generators, plugins, and release management
> **Quick Guide:** Nx 22 for monorepo orchestration and build intelligence. Project graph for dependency analysis. Task pipelines with topological ordering and `dependsOn`. Local computation caching + Nx Cloud remote caching for massive speed gains. Inferred tasks (Project Crystal) auto-detect targets from tool config files. `nx affected` runs only what changed. `nx release` for versioning, changelogs, and publishing. Generators scaffold code, executors run tasks.
---
<critical_requirements>
**(You MUST enable caching with `"cache": true` on cacheable targets — builds, tests, linting — and set `"cache": false` or omit for side-effect tasks like `serve`)**
**(You MUST define `dependsOn: ["^build"]` in targetDefaults for build tasks to ensure topological ordering across the project graph)**
**(You MUST declare `inputs` and `outputs` for cached targets so Nx knows what to hash and what to restore)**
**(You MUST use inferred tasks (Project Crystal) as the default — only add `project.json` targets when overriding inferred configuration)**
**(You MUST use `nx affected -t <target>` in CI to only run tasks for changed projects and their dependents)**
</critical_requirements>
---
**Auto-detection:** Nx workspace, nx.json, project.json, nx generate, nx affected, nx graph, nx release, @nx/ plugins, Nx Cloud, inferred tasks, Project Crystal, nx migrate, targetDefaults, namedInputs, nx run-many, nx serve
**When to use:**
**When NOT to use:**
**Key patterns covered:**
**Additional resources:**
---
<philosophy>
Nx is a build intelligence platform for monorepos. Unlike simple task runners, Nx understands the structure of your codebase through the **project graph** — a directed acyclic graph of projects and their dependencies. This graph enables intelligent task scheduling, fine-grained caching, and affected analysis.
Nx's core value proposition: **never run a task that has already been computed, and never run more tasks than necessary.**
**Key principles:**
**When to use Nx:**
**When NOT to use Nx:**
</philosophy>
---
<patterns>
The `nx.json` file is the central configuration for task behavior, caching, plugins, and workspace-wide defaults.
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"production": [
"default",
"!{projectRoot}/**/*.spec.ts",
"!{projectRoot}/**/*.test.ts"
]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/dist"],
"cache": true
}
},
"plugins": [
{ "plugin": "@nx/vite/plugin", "options": { "buildTargetName": "build" } }
]
}**Why good:** `namedInputs` exclude test files from build cache keys, `dependsOn: ["^build"]` e
The official skills marketplace for Agents Inc. 230+ skills covering everything from React and Prisma to Redis, ElevenLabs, and infrastructure tooling. Pick the skills that match your stack and install them via Claude Code. Need more control?
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking,…
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client…
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output,…
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning,…
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.