Source profileQuality 84/100

lidge-jun/codexclaw/plugins/codexclaw/skills/dev-devops/SKILL.md

cxc-dev-devops

Use it for deployment and engineering tasks; the detail page covers purpose, installation, and practical steps.

Source repository stars
9
Declared platforms
0
Static risk flags
1
Last source update
2026-08-03
Source checked
2026-08-04

Decision brief

What it does—and where it fits

Backend handoff rule: When a deploy/SRE gate needs app behavior, dev-backend implements the hook (health handler, readiness dependency check, trace/span/log fields, migration compatibility, shutdown hook). dev-devops defines the operational gate, rollout/rollback behavior, alert…

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/lidge-jun/codexclaw --skill "plugins/codexclaw/skills/dev-devops"
    Safe inspection promptEditorial

    Inspect the Agent Skill "cxc-dev-devops" from https://github.com/lidge-jun/codexclaw/blob/ecc644e7742dc516ea91777414baf3da1859a162/plugins/codexclaw/skills/dev-devops/SKILL.md at commit ecc644e7742dc516ea91777414baf3da1859a162. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Modular References

      Read package-release.md for package publishing, registry auth, npm/PyPI trusted publishing, Bun-to-npm release decisions, and downstream package channels. Read cross-platform-release.md when a release claim depends on OS-local behavior that CI may not prove. Read homebrew.md for…

      Read package-release.md for package publishing, registry auth, npm/PyPI trusted publishing, Bun-to-npm release decisions, and downstream package channels. Read cross-platform-release.md when a release claim depends on O…When release, registry-auth, provider-doc, service-status, image/platform version, or package-manager behavior depends on current external evidence, read the active search skill and follow its source-fetch and evidence-…
    2. 02

      §1 Container Builds

      For canonical Dockerfile templates, read references/docker.md §1.

      For canonical Dockerfile templates, read references/docker.md §1.CRITICAL/HIGH findings → block push. No exceptions. Read references/docker.md §4 for scan/SBOM/sign command examples, and ../dev-security/references/supply-chain-sbom.md for deeper SBOM/signing policy.
    3. 03

      §1.1 Dockerfile Rules (STRICT)

      For canonical Dockerfile templates, read references/docker.md §1.

      For canonical Dockerfile templates, read references/docker.md §1.
    4. 04

      §1.2 Image Security (STRICT)

      CRITICAL/HIGH findings → block push. No exceptions. Read references/docker.md §4 for scan/SBOM/sign command examples, and ../dev-security/references/supply-chain-sbom.md for deeper SBOM/signing policy.

      CRITICAL/HIGH findings → block push. No exceptions. Read references/docker.md §4 for scan/SBOM/sign command examples, and ../dev-security/references/supply-chain-sbom.md for deeper SBOM/signing policy.
    5. 05

      §1.3 Anti-Patterns

      Review the “§1.3 Anti-Patterns” section in the pinned source before continuing.

      Review and apply the “§1.3 Anti-Patterns” source section.

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 290

    The documentation includes network, browsing, or remote request actions.

    Dependencies: `curl -s http://<dep>/health | jq .`

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score84/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars9SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    lidge-jun/codexclaw
    Skill path
    plugins/codexclaw/skills/dev-devops/SKILL.md
    Commit
    ecc644e7742dc516ea91777414baf3da1859a162
    License
    NOASSERTION
    Collected
    2026-08-04
    Default branch
    main
    View the original SKILL.md

    Dev-DevOps — Production Infrastructure & Delivery

    Backend handoff rule: When a deploy/SRE gate needs app behavior, dev-backend implements the hook (health handler, readiness dependency check, trace/span/log fields, migration compatibility, shutdown hook). dev-devops defines the operational gate, rollout/rollback behavior, alert policy, and release proof. This skill owns deployment strategy, rollback proof, observability operations, health/readiness operational gates, SLOs, incident response, and infrastructure/runtime delivery.

    Build reliable, secure, and automated infrastructure and delivery pipelines. This skill is a routing role that activates by change-surface: whenever the work primarily touches containers, CI/CD, deployment, cloud/runtime infrastructure, Kubernetes, IaC, release engineering, or SRE operations, use this skill and then load the relevant references.

    C0/C1 work (small local patches): See dev §0.0 Work Classifier + §0.1 Patch Fast-Path before reading references.

    dev is canonical: dev §0.2 Rule Classes, §3 Verification Gate, and §5 Safety Rules apply to all work governed by this skill.

    Severity mapping: CRITICAL/HIGH ⇒ STRICT; MEDIUM ⇒ DEFAULT (aligned with dev §0.2).

    Modular References

    FileWhen to ReadWhat It Covers
    references/docker.mdContainer build/deployMulti-stage builds, distroless, Docker Scout/Trivy, BuildKit secrets, SBOM/Cosign
    references/package-release.mdPackage publishing / release authnpm/PyPI trusted publishing, Bun-to-npm, registry auth model, downstream distribution table
    references/cross-platform-release.mdCross-platform release proofCI matrix vs local OS proof, Windows App/RDP prompts, desktop verification boundaries
    references/homebrew.mdHomebrew distributionFormula vs Cask, audit/test, livecheck, artifact trust, install/uninstall proof
    references/platform-engineering.mdPlatform / DORA / provider routingDORA capabilities, platform guardrails, provider table rows, SLSA handoff
    references/kubernetes.mdK8s deploymentGateway API (v1.6+), Kustomize overlays, HPA/VPA, Helm, ArgoCD GitOps
    references/ci-cd-deploy.mdDeploy pipelineGHA reusable workflows, deploy strategies, rollback, GitOps, progressive delivery
    references/iac.mdInfrastructure codeOpenTofu/Terraform modules, Pulumi, state encryption, blast radius isolation
    references/sre-foundations.mdOperations/incidentsSLO/SLI/error budget, burn-rate alerting, incident response, blameless postmortem
    references/edge-serverless.mdEdge/serverless workEdge request shaping, auth at edge, Cloudflare Workers, Vercel Edge, edge AI triage
    references/ml-infra.mdML infrastructureGPU cluster mgmt, model registry, scaling, edge inference, MLOps platform patterns

    Read package-release.md for package publishing, registry auth, npm/PyPI trusted publishing, Bun-to-npm release decisions, and downstream package channels. Read cross-platform-release.md when a release claim depends on OS-local behavior that CI may not prove. Read homebrew.md for Formula/Cask distribution work. Read platform-engineering.md for broader DevOps capability refresh, DORA, provider routing, and platform guardrails. Read docker.md + ci-cd-deploy.md first for containerized deploy workflows. For K8s-specific work, add kubernetes.md. For SRE/on-call, add sre-foundations.md.

    When release, registry-auth, provider-doc, service-status, image/platform version, or package-manager behavior depends on current external evidence, read the active search skill and follow its source-fetch and evidence-status rules instead of relying on stale memory or copied snippets.


    §1 Container Builds

    §1.1 Dockerfile Rules (STRICT)

    RuleDetail
    Multi-stageSeparate build and runtime stages; final image has no build tools
    Base imagePin version + SHA256 digest: node:22-slim@sha256:abc...
    DistrolessPrefer gcr.io/distroless/* for runtime; no shell, no package manager
    Non-rootUSER nonroot:nonroot (distroless) or create dedicated user
    Dependency-first copyCOPY package.json bun.lock ./ → install → COPY . . for layer caching
    BuildKit secretsRUN --mount=type=secret,id=token ... — never use ARG for secrets
    .dockerignore.git, node_modules, .env*, *.log, dist/, coverage/, __pycache__/

    For canonical Dockerfile templates, read references/docker.md §1.

    §1.2 Image Security (STRICT)

    CRITICAL/HIGH findings → block push. No exceptions. Read references/docker.md §4 for scan/SBOM/sign command examples, and ../dev-security/references/supply-chain-sbom.md for deeper SBOM/signing policy.

    §1.3 Anti-Patterns

    BannedSymptomFix
    FROM node:latestIrreproducible buildsPinned version + digest
    USER root in final stageAttack surfaceNon-root user
    COPY . . as first instructionCache invalidation on every changeDependency files first
    ARG SECRET=xxxExposed in image historyBuildKit --mount=type=secret
    No scan before pushVulnerable images in prodTrivy/Scout CI gate
    apt-get install without cleanupBloated image--no-install-recommends && rm -rf /var/lib/apt/lists/*

    §2 Deploy Pipeline

    §2.1 Pipeline Stages (DEFAULT)

    [dev-testing §5]  lint → typecheck → test → contract → e2e
    [dev-devops]      build-image → scan → push-registry → deploy-staging → smoke → promote → deploy-prod
    

    §2.2 GHA Reusable Workflows (DEFAULT)

    # .github/workflows/ci.yml (caller)
    jobs:
      build:
        uses: org/templates/.github/workflows/build-test.yml@v2
        with:
          service: payments
        secrets: inherit
    
    RuleDetail
    workflow_callCentral CI template, max 10-level nesting
    PermissionsCaller cannot escalate; downgrade only
    Environmentenvironment: production + required reviewers + prevent self-review
    PromoteDigest-based (image@sha256:...), never mutable tags

    §2.3 Deploy Strategies (DEFAULT)

    StrategyToolWhenRisk
    Rolling updateK8s DeploymentStateless, low riskLow
    Blue-greenArgo Rollouts blueGreen:Instant rollback, no DB migrationMedium
    CanaryArgo Rollouts canary: steps:Traffic % control, metric-based promoteMedium
    ProgressiveFlaggerAuto analysis + rollback, A/B testingMedium-High
    Feature flagLaunchDarkly / UnleashCode-level gradual rolloutLow

    §2.4 Rollback Rules (STRICT)

    • Every deployment must be rollback-capable within 5 minutes
    • Digest-based promote only — mutable tags are banned
    • DB migrations: forward-only + backward-compatible (expand-contract pattern)
    • Post-rollback: automatic Slack/PagerDuty notification

    §2.5 Secret Management (STRICT)

    Rule (DEVOPS-AUTH-01): Prefer OIDC, workload identity federation, trusted publishing, or other short-lived credential flows before static long-lived tokens. When static tokens are unavoidable, scope narrowly, store in the managed secret system, and rotate on schedule or incident.

    SourceUsage
    GHA Secrets / Vault / AWS SMCI pipeline secrets
    External Secrets OperatorK8s → Vault/AWS SM sync
    .env filesNever committed — generated in CI
    Rotation90-day cycle or immediate on incident

    §2.6 GitOps (DEFAULT)

    • Actions = CI, ArgoCD = CD — separation of concerns
    • Actions updates deploy repo (image digest PR/commit) → ArgoCD reconciles
    • Self-heal: ArgoCD auto-reverts drift
    • Environment protection: GitHub Environments for prod approval gate

    §2.7 Release Proof Contract (STRICT)

    Rule (DEVOPS-RELEASE-PROOF-01): A release claim must name the artifact digest, workflow/builder identity, deploy target/environment, smoke-test evidence, and rollback evidence. Keep the proof at router level; detailed package, platform, and SLSA mechanics live in package-release.md, cross-platform-release.md, and platform-engineering.md.


    §3 Kubernetes Basics

    §3.1 Minimum Viable K8s (DEFAULT)

    ResourcePurpose
    DeploymentPod template + replica management
    ServiceInternal networking
    HTTPRoute (Gateway API)External traffic routing — not Ingress
    ResourceQuotaRequest/limit enforcement
    ProbesLiveness + readiness + startup
    NamespaceEnvironment isolation (dev/staging/prod)

    §3.2 Gateway API (v1.6+, verified 2026-07-02 — TCPRoute/UDPRoute GA in v1.6)

    Gateway API is the successor for new routing while Ingress remains GA but feature-frozen. Role separation: platform team owns GatewayClass + Gateway, app team owns HTTPRoute.

    apiVersion: gateway.networking.k8s.io/v1
    kind: HTTPRoute
    metadata:
      name: payments-route
    spec:
      parentRefs:
        - name: shared-gateway
      hostnames: ["payments.example.com"]
      rules:
        - matches:
            - path: { type: PathPrefix, value: /api }
          backendRefs:
            - name: payments-svc
              port: 8080
    

    §3.3 Scaling (DEFAULT)

    MechanismScopeWatch
    HPACPU/memory + custom metricsDon't combine with VPA on same metric
    VPARequest auto-tuningUse Off mode for recommendations only
    PDBDisruption budgetminAvailable: 50% or maxUnavailable: 1

    §3.4 Anti-Patterns

    BannedFix
    Ingress (new projects)Gateway API HTTPRoute
    No resource limitsAlways set requests + limits
    image: app:latestSHA digest or pinned SemVer
    Single replica in prodMinimum 2 + PDB
    Secrets in ConfigMapK8s Secret + External Secrets Operator
    Annotation-based routingGateway API native fields

    §4 Infrastructure as Code

    §4.1 OpenTofu/Terraform Rules (DEFAULT)

    RuleDetail
    StateRemote backend required (S3+DynamoDB / TF Cloud / OpenTofu)
    EncryptionOpenTofu native state/plan encryption via KMS
    Blast radiusSeparate state per app/layer/env
    ModulesPurpose-built (vpc, iam, ecs-service), typed I/O
    Applyplan → PR review → apply; auto-apply staging only
    VersionsPin provider + module versions explicitly

    §4.2 Tool Selection (HEURISTIC)

    ToolBest For2026 Status
    OpenTofu (HCL)Open-source/licensing-neutral IaC default (MPL-2.0, Linux Foundation)✅ Recommended for OSS neutrality
    Terraform / HCP Terraform (BSL)Vendor support or HashiCorp platform integration✅ Active (check BSL competitive-use terms)
    Pulumi (TS/Python)Teams preferring programming languages✅ Active
    AWS CDKAWS-only infrastructure✅ Active (AWS only)
    CDKTF❌ Deprecated 2025-12-10; repo archived/read-only, no further fixes

    §4.3 Anti-Patterns

    BannedFix
    Local state fileRemote backend required
    Manual console changesAll changes via code
    Hardcoded valuesVariables + tfvars
    Monolithic main.tfModular decomposition
    CDKTF (new projects)OpenTofu or Pulumi
    Unpinned provider versionsExplicit version constraints

    §5 SRE Foundations

    §5.1 SLO/SLI (DEFAULT)

    SLIMeasurementTypical SLO
    AvailabilitySuccess requests / total99.9% (28-day rolling)
    Latencyp50/p95/p99 response timep99 < 500ms
    Error rate5xx / total< 0.1%
    FreshnessData update delay< 5min (pipelines)

    SLIs measure user experience, not infrastructure metrics. "CPU is fine ≠ users are fine."

    Error budget = 1 − SLO (99.9% → 0.1% budget).

    DORA 2025 (verified 2026-07-02): AI acts as an amplifier — returns depend on the underlying sociotechnical system. For AI-agent-heavy delivery invest in golden paths, guardrails, observability, provenance, and review gates.

    §5.2 Error Budget Policy (DEFAULT)

    Budget StateAction
    Normal (>50%)Continue releases, routine monitoring
    Accelerated burn (20–50%)Heightened alerts, slow releases, reliability triage
    Exhausted (≤0%)Feature freeze — security/bugfix only; VP exception required

    Single incident consuming >20% → mandatory postmortem. Two consecutive window misses → architecture review.

    §5.3 Incident Response (DEFAULT)

    1. DetectTriage (S1/S2/S3) → StabilizeFixPostmortem
    2. Roles: IC, Primary Responder, Comms Lead, Scribe
    3. Mitigation first, diagnosis second during active incidents
    4. All S1/S2 → mandatory blameless postmortem within 5 business days
    5. Status updates: S1 every 15min, S2 every 30min

    §5.4 Runbook Template (HEURISTIC)

    ## [Service] — [Symptom]
    ### Diagnosis
    1. Logs: `kubectl logs -l app=<name> --tail=100`
    2. Metrics: Grafana → [dashboard URL]
    3. Dependencies: `curl -s http://<dep>/health | jq .`
    ### Emergency Mitigation
    1. Rollback: `argocd app rollback <app>`
    2. Traffic block: ...
    ### Root Fix
    1. ...
    ### Escalation
    - Owner: @team-sre
    - PagerDuty: [policy]
    

    §5.5 Anti-Patterns

    BannedFix
    Infrastructure-only SLIsUser-experience-based SLIs
    SLO without consequencesError budget policy with freeze gate
    Too many SLIs (>5 per service)2-4 meaningful SLIs
    Page on every deviationBurn-rate multi-window alerting
    Blame individualsBlameless postmortem, system improvement
    No error budget policyDefine 3-stage policy (normal/accelerated/exhausted)

    §6 Cross-References

    TopicCanonical OwnerWhat dev-devops defers
    Test strategy & CI test stagesdev-testing §5Test pyramid, coverage gates
    Backend observability code patternsdev-backend observability.mdOTel SDK setup, structured logging
    Security hardening (app-layer)dev-securityOWASP, auth, input validation
    SBOM/signing depthdev-security references/supply-chain-sbom.mdSupply-chain evidence policy beyond image scan gates
    Architecture module boundariesdev-architectureCoupling taxonomy, barrel discipline
    Scaffolding conventionsdev-scaffoldingFile naming, project structure
    Frontend build/bundledev-frontendVite/webpack config, SSR

    dev-devops owns: container builds, deploy pipelines, K8s manifests, IaC modules, SRE/incident response, edge infra, ML infra. DevOps owns operational scan execution and release gates; dev-security owns security policy, severity thresholds, and required evidence. dev-backend owns: application-layer observability code, API design, health check implementation. Overlap: observability alerting rules (dev-devops §5) ↔ observability code instrumentation (dev-backend observability.md). Cross-ref both.

    Pre-flight Checklist

    Before submitting infrastructure changes:

    • Dockerfile is multi-stage with distroless/slim final image and non-root user
    • Image scanned (Trivy/Scout) with CRITICAL/HIGH gate — no unresolved findings
    • SBOM generated and attestation signed (Cosign) for production images
    • Deploy pipeline uses digest-based promotion, never mutable tags
    • K8s manifests have resource requests/limits, probes, PDB, and use Gateway API (not Ingress)
    • IaC uses remote state, pinned versions, and modular decomposition
    • Secrets are managed through Vault/AWS SM/GHA Secrets — no .env commits, no ARG secrets
    • SLO/SLI defined with error budget policy and burn-rate alerting
    • Rollback plan documented and tested — <5min rollback capability confirmed
    • Runbook exists for critical failure scenarios

    Alternatives

    Compare before choosing

    Computed 9618,447

    teng-lin/notebooklm-py

    notebooklm

    Complete API for Google NotebookLM - full programmatic access including features not in the web UI. Create notebooks, add sources, generate all artifact types, download in multiple formats. Activates on explicit /notebooklm or intent like "create a podcast about X"

    Computed 961,066

    TencentCloudBase/CloudBase-AI-Toolkit

    cloudbase-agent-python

    Build production-ready AI agent backends using the CloudBase Agent Python SDK — create agents with LangGraph/CrewAI/LlamaIndex, serve them via FastAPI with AG-UI protocol streaming + OpenAI-compatible endpoints, add tools (bash, filesystem, MCP, code execution), memory (in-memory, TDAI, MySQL, MongoDB), observability (OpenTelemetry/Langfuse), and middleware (auth, logging). Use this skill when the user wants to create an AI agent server, build a chatbot backend, set up human-in-the-loop workflow

    Computed 95237,532

    affaan-m/ECC

    mle-workflow

    Production machine-learning engineering workflow for data contracts, reproducible training, model evaluation, deployment, monitoring, and rollback. Use when building, reviewing, or hardening ML systems beyond one-off notebooks.

    Computed 9532,606

    K-Dense-AI/scientific-agent-skills

    simpy

    Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.