ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming, embeddings, image generation,…
Infrastructure code review patterns. Use when reviewing CI/CD workflows, Dockerfiles, deployment configs, and IaC. Covers supply-chain pinning, secret exposure, container hygiene, least-privilege permissions, and deployment safety.
$ npx -y skills add agents-inc/skills --skill meta-reviewing-infra-reviewing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/meta-reviewing-infra-reviewingContext preview
The summary Claude sees to decide when to auto-load this skill.
Infrastructure code review patterns. Use when reviewing CI/CD workflows, Dockerfiles, deployment configs, and IaC. Covers supply-chain pinning, secret exposure, container hygiene, least-privilege permissions, and deployment safety.
name: meta-reviewing-infra-reviewing description: Infrastructure code review patterns. Use when reviewing CI/CD workflows, Dockerfiles, deployment configs, and IaC. Covers supply-chain pinning, secret exposure, container hygiene, least-privilege permissions, and deployment safety.
> **Quick Guide:** When a diff touches operational code, grep it for secrets first - hardcoded credentials are always blocking. Verify third-party actions are pinned to SHAs and base images to digests or versions, containers run as non-root, workflow permissions are least-privilege, and secrets never pass through build args, logs, or artifacts. Judge deployment ceremony against what the diff actually deploys.
---
<critical_requirements>
> **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants)
**(You MUST verify no secrets are hardcoded - scan the diff for tokens, API keys, passwords, and connection strings)**
**(You MUST verify third-party CI actions are pinned to full SHA hashes, not mutable tags like `@v4` or `@main`)**
**(You MUST verify secrets never pass through build args, echo/log lines, or uploaded artifacts)**
**(You MUST verify production Dockerfiles the diff adds or changes set a non-root USER and pin their base image)**
**(You MUST verify workflow permissions are declared least-privilege, not inherited write-all)**
</critical_requirements>
---
**Auto-detection:** review workflow, CI PR review, Dockerfile review, pipeline review, deployment config review, GitHub Actions review, IaC review, terraform review
**When to use:**
**When NOT to use:**
**Key patterns covered:**
**Detailed Resources:**
---
<philosophy>
**Operational code fails in production only.** No unit test catches an unpinned action's supply-chain compromise or a leaked deploy key; the review is frequently the only gate this code passes through. Security findings here are cheap to fix pre-merge and brutally expensive after.
**When reviewing infrastructure code:**
**When NOT to flag:**
**Core principles:**
</philosophy>
---
<patterns>
Every external reference resolves to something immutable.
## Pinning Review For EACH external reference the diff adds or changes: - [ ] Third-party GitHub Actions pinned to a full commit SHA (comment may carry the version) - [ ] First-party actions (actions/\*) at minimum major-version pinned - [ ] Base images pinned to a digest or a specific version tag - never `latest` - [ ] Dependency installs in CI use the lockfile (`npm ci`, `bun install --frozen-lockfile`), and the lockfile is committed - [ ] Terraform/Pulumi providers and modules carry version constraints
# Must Fix: mutable tag - the action's owner (or their attacker) can rewrite v4 tomorrow - uses: some-org/deploy-action@v4 # Good: immutable SHA, human-readable version alongside - uses: some-org/deploy-action@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v4.1.2
**Why this matters:** A mutable tag is remote code execution deferred: whoever controls that ref controls your CI, with your secrets in scope. Tag-rewriting attacks on popular actions are documented, recurring events.
---
Secrets reach the process that needs them and nothing else.
## Secret Review - [ ] No literal tokens, keys, passwords, or connection strings anywhere in the diff - [ ] Secrets arrive via the platform's secret store (secrets context, env from vault) - not committed files - [ ] No secret passes through a Docker build arg (build args persist in image history) - [ ] No echo/printf/debug line pri
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,…