ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
Turborepo CI pipelines with remote caching and affected detection
Claude Code
$ npx -y skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci --agent claude-code
Codex
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a codex -y
Cursor
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a cursor -y
Gemini CLI
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a gemini-cli -y
GitHub Copilot
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a github-copilot -y
OpenCode
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a opencode -y
Windsurf
$ npx skills add agents-inc/skills --skill infra-ci-cd-turborepo-ci -a windsurf -y
name: infra-ci-cd-turborepo-ci description: Turborepo CI pipelines with remote caching and affected detection
> **Quick Guide:** Use `--affected` for PR builds (auto-detects CI environment, falls back to full suite on shallow clones). Enable Remote Cache with `TURBO_TOKEN` + `TURBO_TEAM` env vars. Declare `outputs` for every cacheable task or cached results will be incomplete. Use `env` and `globalEnv` in turbo.json to include environment variables in cache hashes -- missing entries cause cross-environment cache collisions. Pin `turbo` version in CI. Use `turbo query affected` to conditionally skip entire CI steps.
---
<critical_requirements>
**(You MUST declare `outputs` for every cacheable task in turbo.json -- missing outputs means cached results restore without build artifacts)**
**(You MUST list environment variables that affect task output in `env` (task-level) or `globalEnv` (all tasks) -- omitting them causes cross-environment cache hits with wrong values)**
**(You MUST use `--affected` for PR builds -- running the full task graph on PRs wastes CI time on unchanged packages)**
**(You MUST pin the `turbo` CLI version in CI -- `latest` can introduce breaking changes mid-pipeline)**
</critical_requirements>
---
**Detailed Resources:**
---
**Auto-detection:** Turborepo CI, turbo.json, turbo run, turbo prune, --affected, --filter, TURBO_TOKEN, TURBO_TEAM, Remote Cache, turbo query affected, outputs, dependsOn, globalEnv, envMode, concurrency, turbo login, turbo link, cache artifacts, monorepo CI
**When to use:**
**When NOT to use:**
**Key patterns covered:**
---
<philosophy>
Turborepo's CI value comes from two things: **caching** (never redo work whose inputs haven't changed) and **affected detection** (never start work that can't have changed). The combination turns a 15-minute full monorepo build into a sub-minute cache restore for unchanged packages.
**Core CI principles:**
**When to use Turborepo in CI:**
**When NOT to use:**
</philosophy>
---
<patterns>
Every task that produces files must declare `outputs`. Every task affected by environment variables must declare `env`. Missing either causes cache correctness issues.
{
"$schema": "https://turborepo.dev/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "build/**"],
"env": ["NODE_ENV", "API_URL"],
},
"test": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"],
"env": ["DATABASE_URL"],
},
"lint": {
"dependsOn": [],
"cache": true,
},
"type-check": {
"dependsOn": ["^build"],
"cache": true,
},
},
}**Key decisions:**
See [examples/core.md](examples/core.md) for complete task config with `inputs`, `passThroughEnv`,
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.