/forgewright:devopsfrom forgewright
Generates local-first CI/CD pipelines, Dockerfiles, deployment scripts, and infrastructure config. Handles build/release gates, packaging, and operational automation.
Ships in forgewright. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
On-demand references: Read
.production-grade.yamlonly when applicable to the active task (cross-cutting protocols are pipeline-owned).
Pipeline context: Cross-cutting interaction, input validation, and configuration come from
PIPELINE_CONTEXTand.production-grade.yamlwhen present.
| Mode | Behavior |
|---|---|
| Express | NON-TECHNICAL USER (Autonomous): Zero-config. Default to Vercel (Frontend) and Railway (Backend/DB) for instant PaaS deployment. Auto-generate vercel.json or railway.toml. DO NOT ask for infra choices. |
| Standard | Surface 1-2 critical decisions — container registry choice, CI provider (if not specified in architecture), monitoring stack. |
| Thorough | Surface all major decisions. Show Dockerfile strategy, CI pipeline design, monitoring architecture before implementing. Ask about deployment strategy (blue-green, canary, rolling). |
| Meticulous | Surface every decision. Walk through each Terraform module. Review CI pipeline stages. User approves monitoring alert thresholds. |
If .forgewright/codebase-context.md exists and mode is brownfield:
Full DevOps pipeline generator: from infrastructure design to production-ready deployment with monitoring and security. Canonical CI/CD automation lives in project-owned local scripts (scripts/ci/, scripts/) alongside infrastructure and Docker artifacts; planning notes live in .forgewright/devops/.
Local-first rule: hosted CI providers are adapters, never the source of truth. If a hosted adapter is explicitly requested, it must invoke the same local commands instead of duplicating pipeline logic.
Read .production-grade.yaml at startup. Use these overrides if defined:
paths.terraform — default: infrastructure/terraform/paths.kubernetes — default: infrastructure/kubernetes/paths.ci_cd — default: scripts/ci/paths.monitoring — default: infrastructure/monitoring/After Phase 1 (Assessment), Phases 2-4 and Phases 5-6 can run as two parallel groups:
Group 1 (infrastructure artifacts — independent):
Execute sequentially: Generate Terraform IaC following Phase 2. Write to infrastructure/terraform/.
Execute sequentially: Generate provider-neutral local CI/CD pipelines following Phase 3. Write canonical logic to scripts/ci/ and scripts/; hosted adapters only when explicitly requested.
Execute sequentially: Generate container orchestration following Phase 4. Write Dockerfiles and K8s manifests.
Group 2 (after Group 1 — needs infrastructure context):
Execute sequentially: Generate monitoring + observability following Phase 5. Write to infrastructure/monitoring/.
Execute sequentially: Generate security infrastructure following Phase 6. Write to infrastructure/security/.
Execution order:
digraph devops {
rankdir=TB;
"Triggered" [shape=doublecircle];
"Phase 1: Assessment" [shape=box];
"Phase 2: IaC" [shape=box];
"Phase 3: CI/CD" [shape=box];
"Phase 4: Containers" [shape=box];
"Phase 5: Monitoring" [shape=box];
"Phase 6: Security" [shape=box];
"User Review" [shape=diamond];
"Suite Complete" [shape=doublecircle];
"Triggered" -> "Phase 1: Assessment";
"Phase 1: Assessment" -> "Phase 2: IaC";
"Phase 2: IaC" -> "User Review";
"User Review" -> "Phase 2: IaC" [label="revise"];
"User Review" -> "Phase 3: CI/CD" [label="approved"];
"Phase 3: CI/CD" -> "Phase 4: Containers";
"Phase 4: Containers" -> "Phase 5: Monitoring";
"Phase 5: Monitoring" -> "Phase 6: Security";
"Phase 6: Security" -> "Suite Complete";
}
Ask the user only for material unknowns that cannot be resolved from the workspace (batch into 2–3 structured questions max):
Generate infrastructure/terraform/ (or paths.terraform from config):
terraform/
├── modules/
│ ├── networking/ # VPC, subnets, security groups, NAT
│ ├── compute/ # ECS/EKS/GKE/AKS clusters
│ ├── database/ # RDS/Cloud SQL/Azure SQL, Redis
│ ├── messaging/ # SQS/Pub-Sub/Service Bus
│ ├── storage/ # S3/GCS/Blob, CDN
│ ├── monitoring/ # CloudWatch/Cloud Monitoring/Azure Monitor
│ ├── security/ # IAM, KMS, WAF, secrets
│ └── dns/ # Route53/Cloud DNS/Azure DNS
├── environments/
│ ├── dev/
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── terraform.tfvars
│ │ └── backend.tf
│ ├── staging/
│ └── prod/
├── global/ # Shared resources (IAM, DNS zones)
└── README.md
validation blocks on all input variablesenvironment, service, team, cost-center, managed-by=terraformGenerate provider blocks and modules for each target cloud:
| Resource | AWS | GCP | Azure |
|---|---|---|---|
| Compute | ECS Fargate / EKS | Cloud Run / GKE | Container Apps / AKS |
| Database | RDS Aurora | Cloud SQL | Azure SQL |
| Cache | ElastiCache Redis | Memorystore | Azure Cache Redis |
| Queue | SQS + SNS | Pub/Sub | Service Bus |
| Storage | S3 + CloudFront | GCS + Cloud CDN | Blob + Front Door |
| Secrets | Secrets Manager | Secret Manager | Key Vault |
| DNS | Route 53 | Cloud DNS | Azure DNS |
| WAF | AWS WAF | Cloud Armor | Azure WAF |
Present IaC design to user for approval before proceeding.
Generate canonical CI/CD automation at scripts/ci/ (or paths.ci_cd from config) plus deployment scripts:
scripts/ci/
├── local-ci.* # quality/security/compat/review control plane
├── security.* # dependency and local automation security gates
├── contract-check.* # API/schema compatibility gates
└── scheduler.* # optional OS-native periodic execution
scripts/
├── build.sh
├── deploy.sh
├── rollback.sh
└── smoke-test.sh
If the user explicitly requests GitHub Actions, GitLab CI, CircleCI, Jenkins, etc., generate a thin adapter that invokes these local commands. Never maintain a second copy of pipeline logic in provider YAML.
Generate configs for the selected strategy:
Generate git workflow documentation to docs/contributing/ and enforce local commit/release checks with project-owned hooks/scripts:
Choose based on team size and release cadence:
| Strategy | Best For | How It Works |
|---|---|---|
| Trunk-Based (Recommended) | Teams with CI/CD, continuous delivery | Short-lived feature branches (< 1 day), merge to main, deploy from main |
| Feature-branch flow | Small teams, simple releases | Feature branches from main, optional review, merge to main, deploy via local release command |
| Gitflow | Scheduled releases, multiple version support | develop → release/* → main, hotfix branches, version tags |
Document branch policy in docs/contributing/branch-policy.md and enforce what can be enforced locally (no force push, commit format, required local verification receipts). Remote branch-protection settings are optional defense-in-depth when the chosen Git host supports them; never make local release correctness depend on them.
Enforce Conventional Commits locally through the repository commit-msg hook and the same commitlint configuration used by manual/local CI runs.
vMAJOR.MINOR.PATCHscripts/release.sh for the canonical local release processGenerate container artifacts at project root and infrastructure/:
services/<service-name>/
└── Dockerfile # Per-service, multi-stage (co-located with service code)
docker-compose.yml # Local development (project root)
docker-compose.test.yml # Integration test environment (project root)
.dockerignore # (project root)
Dockerfile standards:
USER appuser)HEALTHCHECK).dockerignore excluding .git, node_modules, __pycache__, etc.Generate Kubernetes manifests at infrastructure/kubernetes/ (or paths.kubernetes from config):
infrastructure/kubernetes/
├── base/
│ ├── namespace.yaml
│ ├── deployment.yaml
│ ├── service.yaml
│ ├── ingress.yaml
│ ├── hpa.yaml
│ ├── pdb.yaml
│ └── networkpolicy.yaml
├── overlays/
│ ├── dev/
│ ├── staging/
│ └── prod/
└── kustomization.yaml
infrastructure/helm/ # (if requested)
└── <service>/
├── Chart.yaml
├── values.yaml
├── values-prod.yaml
└── templates/
K8s standards:
minAvailable: 1 minimumGenerate infrastructure/monitoring/ (or paths.monitoring from config):
monitoring/
├── prometheus/
│ ├── prometheus.yml
│ ├── alerts/
│ │ ├── availability.yml
│ │ ├── latency.yml
│ │ ├── saturation.yml
│ │ └── errors.yml
│ └── recording-rules.yml
├── grafana/
│ ├── dashboards/
│ │ ├── overview.json
│ │ ├── per-service.json
│ │ ├── infrastructure.json
│ │ └── business-metrics.json
│ └── datasources.yml
├── logging/
│ ├── fluentbit.conf # Log collection and forwarding
│ └── log-format.md # Structured logging standard
├── tracing/
│ └── otel-collector.yaml # OpenTelemetry Collector config
└── alerting/
├── pagerduty.yml
├── slack.yml
└── escalation-policy.md
Note: SLO thresholds (SLI/SLO/SLA definitions) are defined by SRE (see sre skill output). DevOps provides the monitoring infrastructure; SRE defines the service level objectives.
Note: Operational runbooks are written by SRE. See SRE output at docs/runbooks/. DevOps ensures alerting configs link to the appropriate runbook paths.
timestamp, level, service, trace_id, messagedocs/runbooks/)Generate infrastructure/security/:
security/
├── scanning/
│ ├── sast-config.yml # Semgrep/CodeQL rules
│ ├── dependency-scan.yml # Snyk/Trivy config
│ ├── container-scan.yml # Image vulnerability scanning
│ └── iac-scan.yml # tfsec/checkov config
├── secrets/
│ ├── secrets-policy.md # Secrets management standard
│ └── external-secrets.yaml # External Secrets Operator config
├── network/
│ ├── waf-rules.tf # WAF rule sets
│ ├── security-groups.tf # Network access control
│ └── tls-config.md # TLS 1.3 minimum, cert management
├── iam/
│ ├── service-roles.tf # Per-service IAM roles
│ ├── ci-cd-roles.tf # Pipeline execution roles
│ └── break-glass.md # Emergency access procedures
├── compliance/
│ ├── checklist.md # SOC2/HIPAA/GDPR checklist
│ └── data-classification.md # PII/PHI data handling
└── incident-response/
├── playbook.md # Incident response process
└── post-mortem-template.md # Blameless post-mortem format
infrastructure/
├── terraform/
│ ├── modules/
│ │ ├── networking/
│ │ ├── compute/
│ │ ├── database/
│ │ ├── messaging/
│ │ ├── storage/
│ │ ├── monitoring/
│ │ ├── security/
│ │ └── dns/
│ ├── environments/
│ │ ├── dev/
│ │ ├── staging/
│ │ └── prod/
│ └── global/
├── kubernetes/
│ ├── base/
│ └── overlays/
├── helm/ # (optional)
├── monitoring/
│ ├── prometheus/
│ ├── grafana/
│ ├── logging/
│ ├── tracing/
│ └── alerting/
└── security/
├── scanning/
├── secrets/
├── network/
├── iam/
├── compliance/
└── incident-response/
scripts/ci/
├── local-ci.*
├── security.*
├── contract-check.*
└── scheduler.*
scripts/
├── build.sh
├── deploy.sh
├── rollback.sh
└── smoke-test.sh
services/<service-name>/
└── Dockerfile # Per-service Dockerfiles co-located with service code
docker-compose.yml # Project root
docker-compose.test.yml # Project root
.forgewright/devops/
├── deployment-plan.md # Deployment planning notes
├── infrastructure-assessment.md # Infrastructure assessment documents
└── decisions.md # DevOps decision log
| Mistake | Fix |
|---|---|
| Same Terraform state for all envs | Separate state per environment, shared modules |
| Secrets in environment variables | Use cloud Secrets Manager + External Secrets Operator |
| No rollback strategy | Blue-green or canary with automated rollback triggers |
| Monitoring without alerting | Every dashboard metric needs an alert threshold and runbook link |
| Over-permissive IAM | Start with zero permissions, add as needed, review quarterly |
| Skipping staging | Staging must mirror prod topology, use same IaC modules |
| Docker images as root | Always USER nonroot, read-only filesystem where possible |
| Alert fatigue | SLO-based alerting (SLOs from SRE), aggregate similar alerts, escalation tiers |
| Generating SLO definitions | SLOs are the SRE's responsibility — DevOps provides monitoring infra only |
| Writing operational runbooks | Runbooks belong to SRE at docs/runbooks/ — DevOps links alerts to runbook paths |
sre), app-store EAS/Fastlane uploads (auto-publish), or game-engine multi-platform asset packaging (build-release-engineer).node scripts/ci/local-ci.mjs or project equivalents) with Schema v2 evidence (VERIFY.md) and reclaim all started containers/processes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub buiphucminhtam/forgewright --plugin forgewright93 skills in this plugin
/3d-spatial-engineerUse for 3D spatial layouts, scene-graph coordinate transforms, greybox blockouts, culling volumes, static batching, and LOD optimization across 3D game engines./accessibility-engineerUse for web WCAG 2.1/2.2 AA accessibility audits, ARIA semantics, keyboard navigation, focus management, contrast verification, and automated axe-core remediation./ai-behavior-engineerUse for game AI and NPC decision systems: finite state machines, behavior trees, utility AI, GOAP, perception, navigation, tactical steering, and encounter tuning./ai-engineerUse for production AI/ML application systems, LLM API integrations, RAG retrieval pipelines, structured outputs, model serving, prompt/tool orchestration, and AI reliability checks./animation-engineerUse for game animation systems: 2D spritesheets, smear frames, pivot stability, Spine/Rive/Skeleton2D, 3D rigs/blend trees/IK/montages, procedural springs, combat frame data, and hitstop./api-designerUse for designing REST, GraphQL, gRPC, or AsyncAPI contracts, OpenAPI schemas, pagination, versioning, idempotency, error envelopes, and rate-limiting policies.Other plugins' skills for the same job