ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming, embeddings, image generation,…
pnpm workspace protocol, filtering, catalogs, shared dependencies, publishing, and CI/CD for monorepo management
$ npx -y skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/shared-monorepo-pnpm-workspacesContext preview
The summary Claude sees to decide when to auto-load this skill.
pnpm workspace protocol, filtering, catalogs, shared dependencies, publishing, and CI/CD for monorepo management
name: shared-monorepo-pnpm-workspaces description: pnpm workspace protocol, filtering, catalogs, shared dependencies, publishing, and CI/CD for monorepo management
> **Quick Guide:** pnpm 10.x workspaces for monorepo management. `pnpm-workspace.yaml` defines workspace packages. `workspace:*` protocol for internal linking. `catalog:` protocol for dependency version synchronization. `--filter` for targeted commands. Shared `tsconfig` and tooling config across packages. Changesets for versioning and publishing. Strict dependency isolation by default.
---
<critical_requirements>
> **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants)
**(You MUST use `workspace:*` protocol for ALL internal package dependencies -- never hardcode versions)**
**(You MUST use `--frozen-lockfile` in CI -- pnpm enables this by default in CI environments)**
**(You MUST define workspace packages in `pnpm-workspace.yaml` at the repository root)**
**(You MUST put pnpm-specific settings in `pnpm-workspace.yaml` -- NOT `.npmrc` (pnpm v10 change))**
**(You MUST use `catalog:` protocol when sharing dependency versions across 3+ packages)**
**(You MUST use `--filter` for targeted commands instead of `pnpm -r` when only specific packages changed)**
</critical_requirements>
---
**Auto-detection:** pnpm-workspace.yaml, pnpm workspaces, workspace protocol, workspace:\*, catalog:, pnpm filter, pnpm recursive, pnpm monorepo, pnpm-lock.yaml, .npmrc pnpm, pnpm catalogs, pnpm publish
**When to use:**
**When NOT to use:**
**Key patterns covered:**
**Detailed resources:**
---
<philosophy>
pnpm workspaces provide strict, efficient monorepo management with content-addressable storage. Unlike npm/yarn, pnpm creates a non-flat `node_modules` where packages can only access their declared dependencies -- this strictness catches missing dependency declarations early. The workspace protocol (`workspace:*`) ensures internal packages always link locally, while catalogs (`catalog:`) centralize version management to eliminate version drift.
**Core principles:**
**When to use pnpm workspaces:**
**When NOT to use:**
</philosophy>
---
<patterns>
The `pnpm-workspace.yaml` file at the repository root defines which directories contain workspace packages. Every pnpm workspace MUST have this file.
# pnpm-workspace.yaml packages: - "apps/*" - "packages/*"
In pnpm v10, settings moved from `.npmrc` to this file:
# pnpm-workspace.yaml (v10+) packages: - "apps/*" - "packages/*" linkWorkspacePackages: true saveWorkspaceProtocol: rolling disallowWorkspaceCycles: true
**Why good:** Single source of truth for workspace definition and settings
See [examples/core.md](examples/core.md) for full workspace setup, directory structure, and all settings.
---
The workspace protocol ensures internal packages always resolve to the local workspace version, never from the registry.
| Protocol | During Development | After `pnpm publish` | | ------------- | ---------------------- | ---
The official skills marketplace for Agents Inc. 150+ 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?
Repo: agents-inc/skills
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming, embeddings, image generation,…
LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking, virtual keys, and production…
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client patterns
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and…
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning, deployments, and training
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling, embeddings, image generation,…