ops-deployment
Build pipeline, verification, and deployment scripts.
When & Why to Use This Skill
This Claude skill automates the end-to-end DevOps lifecycle, providing robust scripts for build pipelines, server bootstrapping, and secure deployment. It ensures build integrity through cryptographic proofs and simplifies infrastructure setup with automated Nginx and environment configurations, making it an essential tool for streamlining production releases.
Use Cases
- Automating the initial setup and hardening of fresh Ubuntu 22.04 servers with Node.js, Docker, and Nginx.
- Implementing a 'Build Proof' mechanism to cryptographically verify the integrity of build artifacts before they reach production.
- Generating secure, production-ready Nginx reverse proxy configurations with optimized SSL/TLS settings and security headers.
- Standardizing the deployment workflow for Next.js applications, including secure environment variable initialization and automated service orchestration.
| name | ops-deployment |
|---|---|
| description | Build pipeline, verification, and deployment scripts. |
Ops & Deployment
This skill guides the agent through the custom build and deployment process.
Build System
Build Proof
The system uses a "Build Proof" mechanism to ensure integrity.
- Command:
npm run build - Trigger: This automatically triggers
scripts/generate-build-proof.mjs. - Output: Generates a cryptographic proof of the build artifacts.
Infrastructure Setup
Bootstrapping
- Script:
bootstrap-ubuntu22.sh - Usage: Run this on a fresh Ubuntu 22.04 LTS server to install dependencies (Node, Nginx, Docker, etc.) and harden the system.
Nginx Configuration
- Script:
generate-nginx-config.mjs - Purpose: Generates a secured Nginx configuration file.
- Features:
- Sets up reverse proxy to the Next.js app.
- Configures SSL/TLS settings.
- Applies security headers.
Environment Setup
- Script:
setup-env.js - Purpose: Initializes environment variables securely.
- Security: Checks for required secrets and prevents startup if
server-configis invalid.
Deployment Flow
- Bootstrap: Run
bootstrap-ubuntu22.sh(once). - Env: Run
node scripts/setup-env.js. - Build: Run
npm run build(creates build proof). - Config: Run
node scripts/generate-nginx-config.mjs. - Start: Start the application service.