<< All versions

Skill v1.0.1

currentAutomated scan100/100
monkilabs/opencastle/deployment-infrastructure

+2 new

──Details
PublishedAugust 29, 2026 at 06:38 AM
Content Hashsha256:a814ae3514508688...
Git SHAf297837635b1
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 44 lines · 2.2 KB

version: "1.0.1" name: deployment-infrastructure description: "Configures deployment pipelines, manages environment variables, schedules cron jobs, applies security headers, implements caching strategies. Use when working with Docker, Vercel, AWS, Dockerfile, nginx.conf, or platform deployment configs."


Deployment Infrastructure

See .opencastle/stack/deployment-config.md 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, feature/* and 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 TypeCache-Control
Hashed assets (JS, CSS), images, fontspublic, max-age=31536000, immutable
Favicon / manifestpublic, max-age=86400
SSG HTMLpublic, max-age=0, must-revalidate
API responsesprivate, no-cache
ISR pagespublic, 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 categorized Features / Fixes / Breaking. 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. Prefer platform rollback (promote last good deploy) over git revert -m 1 HEAD && git push; re-run the curl -sI check before calling it resolved.

← v1.0.0All versions