Claude-code-skills ln-730-devops-setup
Sets up Docker, CI/CD, and environment configuration with auto-detection. Use when adding DevOps infrastructure to a project.
git clone https://github.com/levnikolaevich/claude-code-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/levnikolaevich/claude-code-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills-catalog/ln-730-devops-setup" ~/.claude/skills/levnikolaevich-claude-code-skills-ln-730-devops-setup && rm -rf "$T"
skills-catalog/ln-730-devops-setup/SKILL.mdPaths: File paths (
,shared/,references/) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If../ln-*is missing, fetch files via WebFetch fromshared/.https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}
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
| Aspect | Details |
|---|---|
| Input | Project directory with source code |
| Output | Docker, CI/CD, environment configuration |
| Workers | ln-731 (Docker), ln-732 (CI/CD), ln-733 (Environment) |
| Mode | Auto-detect (no user prompts) |
Supported Stacks
| Component | Option 1 | Option 2 |
|---|---|---|
| Frontend | React/Vite + Nginx | - |
| Backend | .NET 8/9 | Python (FastAPI/Django) |
| Database | PostgreSQL | - |
| CI/CD | GitHub 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:
| Detection | Method | Files to Check |
|---|---|---|
| Frontend | Package.json presence | , |
| Backend .NET | .csproj/.sln presence | , |
| Backend Python | requirements.txt/pyproject.toml | , |
| Database | Connection strings in code | , |
| Existing CI/CD | Workflow files | , |
Version Detection:
- Node.js: Read from
engines or usepackage.jsonnode -v - .NET: Read from
TargetFramework*.csproj - Python: Read from
orpyproject.tomlruntime.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 Skill tool) | Input: stack config, versions | Output: Dockerfile.*, docker-compose.yml, .dockerignore | +---> ln-732-cicd-generator (via Skill tool) | Input: stack config, detected commands | Output: .github/workflows/ci.yml | +---> ln-733-env-configurator (via Skill 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
Invocations:
Skill(skill: "ln-731-docker-generator", args: "{projectPath}") Skill(skill: "ln-732-cicd-generator", args: "{projectPath}") Skill(skill: "ln-733-env-configurator", args: "{projectPath}")
Phase 4: Configuration Verification
Verify generated configuration:
- Run
to validate syntaxdocker-compose config - 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)
- Multi-stage build for frontendDockerfile.frontend
- Multi-stage build for backendDockerfile.backend
- Service orchestrationdocker-compose.yml
- Development overrides (optional)docker-compose.override.yml
- Build context exclusions.dockerignore
CI/CD (ln-732)
- Main CI pipeline.github/workflows/ci.yml
Environment (ln-733)
- Template with all variables.env.example
- Development defaults.env.development
- Production template (placeholders).env.production
updates - Secrets protection.gitignore
Critical Notes
- Auto-detect Only: No interactive prompts. Uses detected values or sensible defaults.
- Idempotent: Check file existence before creation. Warn before overwriting.
- Parallel Execution: Workers are independent, can run in parallel.
- Error Recovery: Continue on partial failures, report all issues at end.
- Version Pinning: Use detected versions, not hardcoded values.
TodoWrite format (mandatory):
- Invoke ln-731-docker-generator (pending) - Invoke ln-732-cicd-generator (pending) - Invoke ln-733-env-configurator (pending) - Verify configuration (pending) - Generate completion report (pending)
Worker Invocation (MANDATORY)
| Phase | Worker | Context |
|---|---|---|
| 3a | ln-731-docker-generator | Shared (Skill tool) — Dockerfiles, docker-compose, .dockerignore |
| 3b | ln-732-cicd-generator | Shared (Skill tool) — CI/CD pipeline configuration |
| 3c | ln-733-env-configurator | Shared (Skill tool) — environment files and .gitignore |
All workers: Invoke via Skill tool — workers see coordinator context.
Definition of Done
- Pre-flight validation passed
- Stack auto-detected successfully
- All workers completed (or failures documented)
-
validates successfullydocker-compose config - 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
Meta-Analysis
MANDATORY READ: Load
shared/references/meta_analysis_protocol.md
Skill type:
execution-orchestrator. Run after all phases complete. Output to chat using the execution-orchestrator format.
Version: 1.1.0 Last Updated: 2026-01-10