deployment-infrastructure

deployment-infrastructure is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 52 tokens per session (580 once invoked), scanned A, original, MIT.

A set of instructions for deploying web applications and managing the infrastructure around them, including Docker, cloud platforms, environment variables, scheduled jobs, security headers, and caching.

In plain words
What is it for?
Use it to configure deployment workflows, validate environment variables, protect cron endpoints, set cache rules, and prepare Docker, Vercel, AWS, or nginx deployments.
Why use it?
It helps prevent configuration mistakes, exposed secrets, unauthorized scheduled jobs, broken CI/CD pipelines, and inefficient browser or CDN caching.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure deployment workflows, validate environment variables, protect cron endpoints, set cache rules, and prepare Docker, Vercel, AWS, or nginx deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monkilabs/opencastle/deployment-infrastructure
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add monkilabs/opencastle --skill deployment-infrastructure
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deployment-infrastructure

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/deployment-infrastructure/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/deployment-infrastructure)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/deployment-infrastructure"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/deployment-infrastructure/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deployment-infrastructure

Your own site · 80×15
<a href="https://agentmods.dev/skills/monkilabs/opencastle/deployment-infrastructure"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/deployment-infrastructure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00580
Opus 5.5 $0.00021 $0.00232
Sonnet 5.5 $0.00010 $0.00116
Haiku 4.5 $0.00005 $0.00058

Measured 1mo ago against content hash c4ea003d99b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deployment-infrastructure scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Gate a release on lint + test + build all exiting 0 and no draft PRs, then semver-tag with a changelog in the **technical-writing** format. Verify with `curl -sI https://example.com | grep -E 'HTTP|Strict'` — homepage 20
src/orchestrator/skills/deployment-infrastructure/SKILL.md · 43 lines

What it actually says

Deployment Infrastructure

See .opencastle/stack/deployment-config.md, when the project has one, for full architecture, env vars, cron jobs, caching headers.

Environment Variables

Precedence: .env (committed defaults) → .env.local (git-ignored) → .env.production / .env.preview → platform-injected (highest). Gitignore .env.local, .env.*.local.

Validate the whole environment with one Zod schema at startup, not at point of use. SCREAMING_SNAKE_CASE; PUBLIC_*/NEXT_PUBLIC_* is browser-exposed, SECRET_*/*_SECRET server-only.

CI/CD Pipeline

main → production, every other branch (feat/*, fix/*, …) → preview, all automatic. Stages in order: install (always --frozen-lockfile in CI) → lint → test → production build → deploy.

Cron route handlers must return 401 unless the authorization header equals Bearer ${process.env.CRON_SECRET}.

Caching Strategy

Set per-asset via framework headers() config or CDN rules — never a blanket no-store.

Asset Type Cache-Control
Hashed assets (JS, CSS), images, fonts public, max-age=31536000, immutable
Favicon / manifest public, max-age=86400
SSG HTML public, max-age=0, must-revalidate
API responses private, no-cache
ISR pages public, s-maxage=3600, stale-while-revalidate=86400

Security Headers

Load security-hardening skill for full CSP inventory and header configuration.

Release & Rollback

Gate a release on lint + test + build all exiting 0 and no draft PRs, then semver-tag with a changelog in the technical-writing format. Verify with curl -sI https://example.com | grep -E 'HTTP|Strict' — homepage 200, headers correct.

A failed release gets rolled back immediately, not patched forward: the platform's instant rollback (e.g. Vercel or Netlify, promote the last good deploy) first, then a revert PR (git revert, on a branch) so main matches what runs. Re-run the curl -sI check before calling it resolved.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed c4ea003d99b3
  2. 1mo ago Changed · +4 tokens per session 7ef77c708c90
  3. 3mo ago First seen · 43 lines · 48 tokens per session scan A a814ae351450

Subscribe to this mod's changes

deployment-infrastructure is a skill published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 10d ago), licensed MIT. It adds 52 tokens to every session and 580 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

deployment-infrastructure compared with skills from other repositories

deployment-infrastructure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deployment-infrastructuremonkilabs/opencastleSkill8210d agoMITA52Claude Code, Codex
azure-app-service-production-readinessVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A63Claude Code
azure-aks-platform-operatorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A51Claude Code
alibaba-ack-container-platform-operatorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A50Claude Code
aws-ecs-fargate-platform-operatorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A76Claude Code
aws-eks-platform-operatorVincentChuWaiChow/vanguard-frontier-agenticSkill26yesterdayApache-2.0A73Claude Code
azure-aks-governanceAgenticPawan/FullStack-PilotSkill24mo agoMITA87Claude Code