ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
pnpm workspace protocol, filtering, catalogs, shared dependencies, publishing, and CI/CD for monorepo management
Claude Code
$ npx -y skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces --agent claude-code
Codex
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a codex -y
Cursor
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a cursor -y
Gemini CLI
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a gemini-cli -y
GitHub Copilot
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a github-copilot -y
OpenCode
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a opencode -y
Windsurf
$ npx skills add agents-inc/skills --skill shared-monorepo-pnpm-workspaces -a windsurf -y
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>
**(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` | | ------------- | ---------------------- | ------------------------------------------- | | `workspace:*` | Links to local package | Replaced with exact version (e.g., `1.5.0`) | | `wor
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.