/sota-skills:sota-devsecopsfrom SOTA Engineering Skills
Applies 2026 state-of-the-art DevSecOps and software supply chain security for building or auditing CI/CD pipelines, GitHub Actions, SBOM generation, SAST/secret-scanning gates, dependency management, container builds, registries, IaC (Terraform), GitOps, and deployment strategy.
Ships in SOTA Engineering Skills. 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.
This skill encodes the 2026 state of the art for securing the path from source code to running workload: pipeline hardening, dependency and artifact supply chain, build integrity, analysis gates, IaC/deployment security, and runtime policy enforcement. It is defensive: every rule exists to prevent a real, named class of compromise (token theft, workflow injection, dependency confusion, tag mutation, state leakage, bypassable gates).
Two operating modes. Pick one explicitly at the start of the task.
Use when creating or extending pipelines, Dockerfiles, Terraform, GitOps configs, or dependency tooling.
rules/09 §2). A scanner whose job
is continue-on-error: true is documentation, not a control.gh attestation verify, cosign verify
in CD). Unverified attestations are dead weight.Coverage: every rules/ file's Audit checklist applies in AUDIT mode. Mark one not applicable only with its reason in the report — never skip a file because the thing it checks for is absent, since that absence may be the finding.
Use when reviewing existing pipelines, workflows, Dockerfiles, IaC, or dependency posture.
Process: enumerate workflows/build files/IaC; for each, walk the relevant Audit checklist at the end of every rules file; report findings in the format below; do not report style nits as security findings.
| Severity | Meaning | Examples |
|---|---|---|
| Critical | Remote compromise of pipeline, secrets, or artifacts is achievable now by an external party | pull_request_target checking out PR head with secrets; script injection from PR title into run:; long-lived cloud admin keys in repo secrets used by fork-triggered workflow; unauthenticated registry push |
| High | Compromise achievable by a contributor, or a single upstream event away | Actions pinned to mutable tags; no branch protection on default branch; CI token with write-all; no lockfile / unfrozen installs; Terraform applies from un-reviewed plans with admin creds |
| Medium | Weakens defense in depth or detection | Missing SBOM/provenance; scanners non-blocking; no drift detection; mutable image tags in deploy manifests; no secret-scanning push protection |
| Low | Hygiene, hardening headroom | Missing .dockerignore; unpinned dev-only tooling; verbose CI logs; missing CODEOWNERS on workflows |
Severity is judged by reachability: who can trigger the path (anonymous > fork PR author > org member > admin) and what it yields (secrets/artifact write > code exec in CI > info leak).
[SEVERITY] <short title>
File: <path>:<line>
Issue: <what is wrong, one or two sentences>
Attack path: <who exploits it and how — concrete, not theoretical>
Fix: <exact config change, with snippet when short>
Rule: <rules file # and section>
End every audit with: counts per severity, the top 3 fixes by risk reduction per effort, and an explicit list of what was OUT of scope (org settings, registry config, runner infra you could not see).
| File | Read this when... |
|---|---|
| rules/01-pipeline-security.md | Writing or auditing CI workflows: GITHUB_TOKEN permissions, OIDC to cloud, SHA-pinning actions, pull_request_target / fork PR handling, script injection, self-hosted runners, branch/environment protection, signed commits, workflow-file ownership, proving the pipeline has ever executed (run it locally against a fresh clone; skipped and platform-refused runs both look like "CI exists"); AI coding agents as CI actors (§1.5a) — and why §1.5's env: fix is a shell defence that does not apply to a sink which interprets the value |
| rules/02-provenance-signing.md | Artifact integrity: SLSA levels, build provenance, in-toto attestations, Sigstore/cosign keyless signing, GitHub artifact attestations, npm/PyPI trusted publishing, release and tag integrity, verification at deploy time |
| rules/03-dependencies.md | Anything touching package manifests or lockfiles: frozen installs, dependency review gates, dependency confusion and registry scoping, typosquatting and malicious-package indicators, SBOM (CycloneDX/SPDX), vuln scanning with osv-scanner/grype, VEX and triage discipline, Renovate/Dependabot strategy (including a pin no bot can parse, which is a freeze rather than a pin), vendoring |
| rules/10-inert-dependencies.md | The declared-but-not-reached sweep: a dependency, module or plugin that is installed, pinned, scanned and never runs. Reachability from a real entrypoint rather than import presence; the per-ecosystem tools and the blind spot each one has; deletion-as-proof (no tool's silence is evidence); the leverage ratio; upstream health fetched from a live primary source and reported as dates, not adjectives; the four-bucket classification and the do-not-reimplement list; and why "unused" is an absence claim that needs two independent methods |
| rules/04-build-containers.md | Dockerfiles and build systems: hermetic/reproducible builds, multi-stage builds, build secrets, base image strategy (distroless/Chainguard, digest pinning), image scanning, registry security, immutable tags |
| rules/05-analysis-gates.md | The scanners themselves: SAST (Opengrep/CodeQL), secret scanning and push protection, IaC scanning (checkov/trivy/tfsec), DAST, license compliance, and flaky-test discipline; the PR gate stack; workflow SAST (§5.9): zizmor as a required check over workflows, action.yml, dependabot.yml and pre-commit config — the invocation that gates, why its SARIF mode and its official action's default exit 0 on findings, offline vs online, and the pre-commit hook's fixture trap |
| rules/09-gates-that-hold.md | A warning on a PASSING run may have no path to a human — pre-commit discards a passing hook's output entirely (rules/11 §4) · Whether any of it actually gates — a property of the pipeline, not the scanner. What SSDF/CRA/Scorecard/SLSA do and don't require (all want a record the scan ran, none want evidence it could have failed, so a negative control is a house rule); required checks and bypass patterns; a gate whose scope shrank under an innocent refactor; a gate only gates if failing it makes the artifact unconsumable — build to a candidate identifier the deploy watcher provably cannot match, promote by same-digest retag after the last gate; a verdict that dies with the executor (/dev/termination-log, budgeted from the container count) so the operator gets a cause instead of exit code 1; and reproducing the gate's exact invocation rather than a convenient equivalent |
| rules/11-after-the-gate-fails.md | Re-running a failed check destroys the evidence of why it failed (§4a) · The sibling of rules/09: that file asks whether a gate can fail and whether failing matters; this one starts after it went red. A verdict that lives only in a garbage-collected log does not exist (§4, /dev/termination-log and its per-container byte budget), reproducing the gate's own invocation rather than an equivalent (§5: the pre-commit hook that passes locally and fails in CI), a bespoke watcher inheriting the publishing conventions of what it watches (§6), and archiving a red run's log before anything re-runs — a fixed log path is a single-slot buffer, and a list of "unexplained intermittent failures" is often a list of runs whose evidence was overwritten |
| rules/06-iac-deployment.md | Terraform and delivery: state security, plan/apply separation with review, saved-plan apply, drift detection, GitOps (Flux/Argo) security model, progressive delivery (canary/blue-green/flags), rollback readiness, build-once-promote-many environment parity |
| rules/07-runtime-ops.md | Runtime enforcement and operations: admission control for signed images (Kyverno/policy-controller), policy as code (OPA/Kyverno) with tests, Pod Security, incident-ready CI/CD audit logging, deployment traceability, backup/restore testing, break-glass; pruning, stopping or restarting a shared container runtime (§7.7): a podman machine stop ends every co-tenant's containers and their in-memory state, so list what runs and whose it is first |
| rules/08-registry-security.md | Securing the container/artifact registry as infrastructure: the registry as a tier-0 supply-chain trust anchor; no anonymous push/pull and least-privilege robot/CI accounts (Zot accessControl, Harbor robots, cloud IAM); immutable tags and digest pinning to defeat tag mutation; OCI referrers for signature/SBOM/scan storage; scan-on-push and continuous re-scan; pull-through cache and image-layer dependency confusion; retention/GC that won't break running deploys; registry HA/backup; network hardening (no anonymous internet exposure, no hostNetwork, TLS) |
| rules/12-scm-ci-platform-governance.md | Org-level SCM/CI settings no workflow file contains: forking of private repos and who may change visibility, org-wide (secure-method) 2FA, the fork-PR approval policy for outside contributors, and the fallback when a self-hosted runner serves a public repo — read with an owner token, since null means not visible; runner groups as the privilege boundary (labels only route), review policy as an enforced setting (last-push approval, risk-tiered reviewers), least-privilege CI administration, settings as code scanned for drift, and keeping CI plugins and workflow scanners current |
| rules/13-vulnerability-remediation.md | After a scanner reports: priority inputs the advisory lacks (workload privilege, environment, data classification), reachability beyond Go, choosing a scanner by its advisory sources; fixing a vulnerable transitive (find the parent, bump it, override last and documented); suppression discipline; interim mitigation when a fix exists but cannot be taken; backporting a fix; reporting what you find upstream privately; software no SCA tool can see |
| rules/14-sbom-component-inventory.md | What an SBOM must contain (PURL, supplier, licence, dependency edges, serial, run ID, subject metadata), the CI gate that fails an incomplete one, SBOMs as sensitive data (access control, scrubbing internal URLs and build paths before sharing), supplier SBOMs for procured software, and patched or forked components (distinct version, recorded pedigree) |
| rules/15-dependency-adoption.md | Taking in a new dependency, action or CI plugin: the language-neutral selection checklist, confirming origin and chain of custody (provenance attestations, trusted publishing), reading a high-risk dependency's source on adoption and its published diff on upgrade, and hardening the security-relevant defaults of what you consume |
| rules/16-fast-ci-without-blind-spots.md | When CI is slow: measure before you optimise, then cut it without making a required check pass unrun · per-job and per-step timing and the critical path (§16.1); caching keyed on what determines it, where a restore-keys match is not a hit, and when a runner may reuse a gate's own pass (§16.2); shared compiler, image-layer and remote build caches, which only trusted CI may write (§16.2a); change-scoping, where path filters leave a required check Pending and a job skipped by if: reports Success (§16.3); sharding under one always() aggregator that keeps the required name and proves every unit ran once (§16.4); cancelling superseded PR runs and timeout-minutes on every job (§16.5); and measuring equivalence before and after (§16.6) |
When a task spans stages (most do), read every matching file. For a full pipeline audit, read all of them.
Violations of these are at minimum High in AUDIT mode and must never be introduced in BUILD mode:
permissions: block in every workflow, starting from contents: read
(or {}), elevating per job only. Never rely on org/repo default token permissions.sub-claim conditions scoped to repo + ref/environment.pull_request_target
(or workflow_run) must not check out or execute PR head content; treat fork artifacts
as hostile input.run: scripts. PR titles, branch names,
issue bodies, commit messages go through env: indirection, quoted.npm ci, --frozen-lockfile,
--require-hashes, --locked). A build that resolves versions at build time is not
reproducible and not reviewable.continue-on-error, no || true, no unprotected default branch, no "admins bypass".:latest.If the user asks for something that violates a non-negotiable, implement the secure alternative and explain the delta; only comply after they acknowledge the risk explicitly.
rules/01-pipeline-security.md (opens in a new tab)rules/02-provenance-signing.md (opens in a new tab)rules/03-dependencies.md (opens in a new tab)rules/04-build-containers.md (opens in a new tab)rules/05-analysis-gates.md (opens in a new tab)rules/06-iac-deployment.md (opens in a new tab)rules/07-runtime-ops.md (opens in a new tab)rules/08-registry-security.md (opens in a new tab)rules/09-gates-that-hold.md (opens in a new tab)rules/10-inert-dependencies.md (opens in a new tab)rules/11-after-the-gate-fails.md (opens in a new tab)rules/12-scm-ci-platform-governance.md (opens in a new tab)rules/13-vulnerability-remediation.md (opens in a new tab)rules/14-sbom-component-inventory.md (opens in a new tab)rules/15-dependency-adoption.md (opens in a new tab)rules/16-fast-ci-without-blind-spots.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
devsecops, supply-chain-security, ci-cd-security, pipeline-hardening, sbom, sast
npx claudepluginhub martinholovsky/sota-skills --plugin sota-skills43 skills in this plugin
/sotaMaster router for the SOTA engineering skills library. Use this skill whenever the user asks to build, design, implement, refactor, harden, optimize, review, or audit an application, service, or codebase and the request spans more than one domain — or when you are unsure which specific sota-* skill applies. Also use when working on a codebase you do not own: reviewing a pull request or diff, responding to code review, evaluating someone else's patch, or preparing an upstream contribution — including mid-session, once you are already reading source, a diff, or CI config. It maps the task (build or audit mode) to the right domain and language skills (Rust, Go, C/C++, JVM, Python, JS/TS, .NET/C#, PHP, Ruby, Swift). Trigger keywords: SOTA, best practices, audit my code, security review, compliance, hardening, prod readiness, code quality, pull request, PR review, review comment, maintainer feedback, patch, diff, upstream, contribute, merge request./sota-api-designState-of-the-art API design and audit guidance (2026) covering REST/HTTP, GraphQL, gRPC, WebSockets/SSE/realtime, webhooks, versioning/evolution, and API security/operations. Use when designing or building any API surface (endpoints, schemas, protos, realtime channels, webhook senders/receivers) AND when auditing/reviewing existing APIs for correctness, evolvability, security, and operational robustness. Not for browser UI, rendering, or client-framework concerns — use sota-web-frameworks or sota-frontend-design. Trigger keywords: API, REST, GraphQL, gRPC, endpoint, websocket, SSE, realtime, WebRTC, webhook, versioning, OpenAPI, pagination, idempotency, rate limit, problem+json, protobuf, deprecation./sota-architectureState-of-the-art software and system architecture rules (2026) for both building and auditing. Use when designing, building, refactoring, or extending system architecture — boundaries, DDD, hexagonal/clean architecture, event-driven design, CQRS, sagas, messaging, caching, sharding, multi-tenancy, resilience, scalability, 12-factor/cloud-native — AND when auditing existing architecture for quality (design review, anti-patterns like distributed monolith or shared database, reliability/scalability assessment). Trigger keywords: architecture, system design, microservices, monolith, serverless, bounded context, DDD, aggregate, hexagonal, clean architecture, event-driven, Kafka, NATS, JetStream, messaging, pub/sub, stream, consumer, queue, saga, outbox, idempotency, CQRS, resilience, circuit breaker, retry, timeout, backpressure, caching, sharding, partitioning, multi-tenant, 12-factor, cloud-native, feature flag, ADR, scalability, anti-pattern, design review, architecture audit./sota-async-concurrencyState-of-the-art rules for writing and auditing asynchronous and concurrent code across runtimes (Python asyncio, JS/Node, Go, Rust, JVM). Use when building anything with async/await, threads, processes, event loops, task groups, channels, or queues — and when auditing existing code for race conditions, deadlocks, leaked tasks, blocked event loops, missing cancellation, or backpressure failures. Not for latency/throughput profiling and optimization — use sota-performance. Trigger keywords: async, await, concurrency, parallelism, threads, race condition, deadlock, event loop, channels, queues, semaphore, mutex, cancellation, timeout, backpressure, task group, goroutine, tokio, asyncio./sota-c-cppState-of-the-art C and C++ engineering rules that Claude applies when writing or auditing C/C++. Covers modern idioms (RAII, value semantics, smart pointers, C++23), memory safety (lifetimes, bounds, sanitizers, hardening flags), undefined behavior, security (SEI CERT C/C++, MISRA, integer/buffer/format-string, injection), concurrency (C/C++ memory model, atomics, data races), build/tooling/CI (CMake, clang-tidy, cppcheck, ASan/UBSan/TSan, vcpkg/Conan, supply chain), and performance. Trigger keywords - C, C++, RAII, smart pointer, unique_ptr, shared_ptr, undefined behavior, UB, buffer overflow, use-after-free, sanitizer, ASan, UBSan, TSan, valgrind, CMake, clang-tidy, cppcheck, MISRA, CERT C, memory safety, std::thread, atomics, std::move. Use for BOTH building C/C++ libraries/systems and reviewing or auditing them. Owns firmware's LANGUAGE layer; does NOT own its SYSTEMS layer — ISRs, DMA coherency, MMIO, RTOS scheduling, priority inversion, WCET, linker scripts — unowned library-wide./sota-cli-uxState-of-the-art CLI and developer-tool UX guidance (2026) covering command and flag design, output and interaction (stdout/stderr, --json, TTY detection, exit codes, prompts), runtime behavior and lifecycle (signals, dry-run, idempotency, XDG paths, completions, telemetry), and distribution (packaging, checksums, docs). Use when designing or building any command line tool, subcommand, TUI, or developer tool — in any framework (argparse, click, typer, clap, cobra, oclif, commander) — AND when auditing an existing CLI for usability, scriptability, and compatibility. Not for shell-script correctness or security — use sota-shell-scripting. Trigger keywords: CLI, command line tool, flags, subcommands, terminal output, TUI, developer tool, argparse, clap, cobra, exit code, shell completion, man page, stdin, stdout.Other plugins' skills for the same job