Get the FREE Ultimate OpenClaw Setup Guide →

ln-730-devops-setup

Scanned
npx machina-cli add skill levnikolaevich/claude-code-skills/ln-730-devops-setup --openclaw
Files (1)
SKILL.md
5.0 KB

Paths: File paths (shared/, references/, ../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.

ln-730-devops-setup

Type: L2 Domain Coordinator Category: 7XX Project Bootstrap Parent: ln-700-project-bootstrap

Coordinates DevOps infrastructure setup by delegating to specialized workers.


Purpose & Scope

Orchestrates the complete DevOps setup for a project:

  • Does: Auto-detect stack, delegate to workers, verify configuration
  • Does NOT: Generate files directly (delegates to ln-731, ln-732, ln-733)

Overview

AspectDetails
InputProject directory with source code
OutputDocker, CI/CD, environment configuration
Workersln-731 (Docker), ln-732 (CI/CD), ln-733 (Environment)
ModeAuto-detect (no user prompts)

Supported Stacks

ComponentOption 1Option 2
FrontendReact/Vite + Nginx-
Backend.NET 8/9Python (FastAPI/Django)
DatabasePostgreSQL-
CI/CDGitHub Actions-

Workflow

Phase 1: Pre-flight Validation

Check required tools and project structure:

  • Verify Docker is installed (docker --version)
  • Verify docker-compose is available
  • Check for existing DevOps files (warn if overwriting)

Output: Validation report or STOP with instructions

Phase 2: Project Analysis (Auto-detect)

Detect project stack automatically:

DetectionMethodFiles to Check
FrontendPackage.json presencesrc/frontend/package.json, package.json
Backend .NET.csproj/.sln presence*.sln, src/**/*.csproj
Backend Pythonrequirements.txt/pyproject.tomlrequirements.txt, pyproject.toml
DatabaseConnection strings in codeappsettings.json, .env.example
Existing CI/CDWorkflow files.github/workflows/, azure-pipelines.yml

Version Detection:

  • Node.js: Read from package.json engines or use node -v
  • .NET: Read from *.csproj TargetFramework
  • Python: Read from pyproject.toml or runtime.txt
  • PostgreSQL: Default to latest stable (17)

Output: Stack configuration object with detected versions

Phase 3: Worker Delegation

Delegate to workers in parallel (independent tasks):

ln-730 (Coordinator)
    |
    +---> ln-731-docker-generator (via Task tool)
    |         Input: stack config, versions
    |         Output: Dockerfile.*, docker-compose.yml, .dockerignore
    |
    +---> ln-732-cicd-generator (via Task tool)
    |         Input: stack config, detected commands
    |         Output: .github/workflows/ci.yml
    |
    +---> ln-733-env-configurator (via Task tool)
              Input: detected environment variables
              Output: .env.example, .env.development, .gitignore updates

Error Handling:

  • If worker fails, log error and continue with others
  • Report all failures at the end
  • Suggest manual fixes for failed components

Phase 4: Configuration Verification

Verify generated configuration:

  • Run docker-compose config to validate syntax
  • Check all referenced files exist
  • Verify no secrets in committed files

Output: Verification report

Phase 5: Completion Report

Generate summary:

  • List all created files
  • Show detected stack configuration
  • Provide next steps for user

Generated Files

Docker (ln-731)

  • Dockerfile.frontend - Multi-stage build for frontend
  • Dockerfile.backend - Multi-stage build for backend
  • docker-compose.yml - Service orchestration
  • docker-compose.override.yml - Development overrides (optional)
  • .dockerignore - Build context exclusions

CI/CD (ln-732)

  • .github/workflows/ci.yml - Main CI pipeline

Environment (ln-733)

  • .env.example - Template with all variables
  • .env.development - Development defaults
  • .env.production - Production template (placeholders)
  • .gitignore updates - Secrets protection

Critical Notes

  1. Auto-detect Only: No interactive prompts. Uses detected values or sensible defaults.
  2. Idempotent: Check file existence before creation. Warn before overwriting.
  3. Parallel Execution: Workers are independent, can run in parallel.
  4. Error Recovery: Continue on partial failures, report all issues at end.
  5. Version Pinning: Use detected versions, not hardcoded values.

Definition of Done

  • Pre-flight validation passed
  • Stack auto-detected successfully
  • All workers completed (or failures documented)
  • docker-compose config validates successfully
  • No secrets in generated files
  • Completion report displayed

Reference Files

  • Worker: ../ln-731-docker-generator/SKILL.md
  • Worker: ../ln-732-cicd-generator/SKILL.md
  • Worker: ../ln-733-env-configurator/SKILL.md

Version: 1.1.0 Last Updated: 2026-01-10

Source

git clone https://github.com/levnikolaevich/claude-code-skills/blob/master/ln-730-devops-setup/SKILL.mdView on GitHub

Overview

ln-730-devops-setup acts as the central orchestrator for DevOps infrastructure, auto-detecting the project stack and delegating work to specialized workers ln-731 (Docker), ln-732 (CI/CD), and ln-733 (Environment). It coordinates validation and verification rather than generating files directly.

How This Skill Works

It performs a pre-flight validation, auto-detects frontend/backend/database/CI/CD signals from the project, and delegates tasks to the three workers in parallel. After generation, it runs a configuration verification (docker-compose config) and reports any issues.

When to Use It

  • Starting a new project with a mixed frontend, backend, and database stack.
  • Auto-generating CI/CD workflows (GitHub Actions) without manual prompts.
  • Bootstrapping Docker and environment configuration for a repo.
  • Auto-detecting an existing project's stack to avoid manual configuration.
  • Bootstrap for a multi-service app to standardize DevOps setup across services.

Quick Start

  1. Step 1: Pre-flight validation of Docker, docker-compose, and the project path.
  2. Step 2: Allow auto-detection to identify frontend, backend, database, and CI/CD components.
  3. Step 3: Let ln-731/ln-732/ln-733 generate artifacts and run verification, then review the completion report.

Best Practices

  • Run a pre-flight validation before applying changes.
  • Rely on auto-detect to map the stack and reduce manual config.
  • Review generated artifacts for secrets before committing.
  • Verify the docker-compose config after generation.
  • Document the detected stack and version constraints for team reference.

Example Use Cases

  • A React front-end with Nginx, a .NET backend, and PostgreSQL, with a GitHub Actions workflow generated automatically.
  • A Python FastAPI project with PostgreSQL where the tool auto-detects runtime and config needs.
  • A monorepo with multiple services where ln-730 delegates per-service scaffolding to specialized workers.
  • A legacy app migrating to Docker and CI/CD, using auto-detection to bootstrap the new infra.
  • A new multi-service project where the coordinator sets up Docker, CI/CD, and env files without prompts.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers