/platform-skills:supply-chain [audit|sign|sbom|scan|enforce|slsa] [description or file path]from platform-skills
Secures the software supply chain from source to running container. Covers Cosign keyless signing, SBOM generation (Syft), vulnerability scanning (Trivy/Grype), SLSA Level 2 provenance, and Kyverno/OPA admission enforcement.
Ships in platform-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.
None: SKILL.md is the whole skill.
Secure the software supply chain — from the build pipeline to running containers.
When invoked with no arguments, ask before proceeding:
Q1 — Mode?
What do you need?
1. audit — review an existing CI/CD pipeline for supply chain security gaps
2. sign — set up keyless image signing with Cosign (Sigstore/Rekor, no key management)
3. sbom — generate and attest an SBOM with Syft
4. scan — add a CVE vulnerability gate with Trivy or Grype
5. enforce — write a Kyverno policy to block unsigned images at admission
6. slsa — generate a SLSA Level 2 provenance workflow
Enter 1–6 or mode name:
Q2 — Context (after mode selected, one at a time):
Paste your GitHub Actions workflow file(s) or describe your current CI/CD pipeline:Which container registry? (ECR / GHCR / Docker Hub / other):Which image and registry? (e.g. ghcr.io/org/image):Which scanner preference? Trivy (recommended) or Grype — or no preference:Which registry or image prefix should the policy cover? (e.g. ghcr.io/myorg/*):Which registry and repo? (e.g. ghcr.io/org/image from github.com/org/repo):Then proceed into the relevant mode below.
Review an existing CI/CD pipeline and cluster admission configuration for supply chain security gaps.
Steps:
[CRITICAL] No image signing — any image can be admitted to the cluster
[CRITICAL] No CVE severity gate — vulnerable images pass CI
[HIGH] No SBOM attestation — cannot audit what is running
[MEDIUM] Action versions pinned to tag, not SHA
Reference: references/supply-chain.md → Gap classification, Fix order
Set up keyless image signing with Cosign using Sigstore/Rekor (no key management required).
Steps:
- name: Install Cosign
uses: sigstore/cosign-installer@11086d9f32b178aa24e93c2b86eba3ef4b16b68a # v3.8.1
- name: Sign image
run: |
cosign sign --yes \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}
cosign verify \
--certificate-identity-regexp="https://github.com/<org>/<repo>/.github/workflows/.*" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/<org>/<image>@<digest>
@sha256:…), never the tag — tags are mutableKey rules:
cosign-installer to a full SHA, e.g.: sigstore/cosign-installer@11086d9f32b178aa24e93c2b86eba3ef4b16b68aReference: references/supply-chain.md → Keyless signing, Rekor transparency log
Generate a Software Bill of Materials with Syft and attest it as an OCI artifact alongside the image.
Steps:
- name: Generate SBOM
uses: anchore/sbom-action@61119d458adab75f756bc0b9e4bde25725f86a7a # v0.20.0
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}
format: spdx-json
output-file: sbom.spdx.json
- name: Attest SBOM
run: |
cosign attest --yes \
--predicate sbom.spdx.json \
--type spdxjson \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}
cosign download attestation \
--predicate-type https://spdx.dev/Document \
ghcr.io/<org>/<image>@<digest> | jq '.payload | @base64d | fromjson'
spdx-json format for broadest tooling compatibility; cyclonedx-json is an alternativeReference: references/supply-chain.md → SBOM formats, Syft, Attestation
Add a CVE vulnerability scan with a configurable severity gate that fails the build.
Steps:
- name: Scan image for vulnerabilities
uses: aquasecurity/trivy-action@18f2135c0b15d26b3a4c2efded75e06b6f0e4884 # v0.30.0
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}
format: table
exit-code: '1'
ignore-unfixed: true
vuln-type: os,library
severity: CRITICAL,HIGH
ignore-unfixed: true — skip CVEs with no fix available (reduces noise without reducing security)- name: Scan with Grype
uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}
fail-build: true
severity-cutoff: high
Reference: references/supply-chain.md → Trivy vs Grype, Severity gates
Generate a Kyverno ImageValidatingPolicy that blocks unsigned or unverified images at admission time.
Steps:
apiVersion: policies.kyverno.io/v1
kind: ImageValidatingPolicy
metadata:
name: require-signed-images
spec:
validationActions: [Audit] # switch to [Deny] after all images are signing
matchConstraints:
resourceRules:
- apiGroups: [""]
apiVersions: ["v1"]
operations: ["CREATE", "UPDATE"]
resources: ["pods"]
matchImageReferences:
- glob: "ghcr.io/<org>/*"
validations:
- expression: >
images.containers.map(image, verifyImageSignatures(image, [{"keyless": {
"url": "https://fulcio.sigstore.dev",
"rekor": {"url": "https://rekor.sigstore.dev"},
"identities": [{"issuer": "https://token.actions.githubusercontent.com",
"subjectRegExp": "https://github.com/<org>/.*"}]
}}])).all(e, e > 0)
message: "Image must be signed via Sigstore keyless signing from GitHub Actions"
spec:
validationActions: [Audit] # start here, switch to [Deny] after validation
/platform-skills:kyverno for full ImageValidatingPolicy guidanceReference: references/supply-chain.md → Kyverno enforcement, references/kyverno.md → ImageValidatingPolicy
Generate a GitHub Actions workflow for SLSA Level 2 provenance using slsa-github-generator.
Steps:
jobs:
build:
runs-on: ubuntu-latest
outputs:
digest: ${{ steps.build.outputs.digest }}
permissions:
contents: read
packages: write
steps:
- name: Build and push image
id: build
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
push: true
tags: ghcr.io/<org>/<image>:${{ github.sha }}
provenance:
needs: build
permissions:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@5a775b367a56d5bd118a224a811bba288150a563 # v2.0.0
with:
image: ghcr.io/<org>/<image>
digest: ${{ needs.build.outputs.digest }}
registry-username: ${{ github.actor }}
secrets:
registry-password: ${{ secrets.GITHUB_TOKEN }}
slsa-verifier verify-image \
ghcr.io/<org>/<image>@<digest> \
--source-uri github.com/<org>/<repo> \
--source-branch main
generator_container_slsa3.yml produces L2 provenance by default; L3 requires hermetic builds not available on standard GitHub-hosted runnersReference: references/supply-chain.md → SLSA levels, slsa-github-generator
Signing and SBOMs cover what the pipeline produces. They say nothing about the pipeline itself — an unpinned uses: or a pull_request_target checkout of untrusted code compromises the build before any artifact exists. To audit the workflows that run this supply chain, including unpinned-uses hash-pin policy enforcement, use /platform-skills:zizmor. They also say nothing about whether a credential leaked into the repo that produces this artifact in the first place — for that, live-validate and revoke with /platform-skills:kingfisher.
After completing this task, log errors and learnings via /platform-skills:self-improve log.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
supply-chain, container-security, image-signing, sbom, cve-scanning
Generated from the plugin's indexed repository (nitinjain999/platform-skills) — no native marketplace selected
npx claudepluginhub p/nitinjain999-platform-skills50 skills in this plugin
/ai-governanceGenerate and enforce policy gates for AI coding agents (Copilot, Claude Code) — real-time session hooks that deny protected-path edits and dangerous commands, plus a merge-time backstop for anything that bypasses them. Use when asked to "govern AI agents", "block AI from touching secrets", "add an AI policy gate", or "why did the AI agent hook not fire"./awesome-docsGenerate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle loop, field carousel, timeline phases), guided interview for any doc type (README, architecture guide, runbook, API reference, tutorial, RFC, post-mortem, how-it-works, or custom), converting existing plain Markdown, diffing for stale diagrams, quality auditing, local preview, and multi-platform export. Use when asked to "create a README for X", "write an architecture doc", "animate this guide", "convert my doc to animated", "check if my diagrams are stale", or "export my doc for Confluence"./awsStructured guidance for AWS CloudFront distributions, WAF web ACLs, Lambda@Edge, CloudFront Functions, Firewall Manager multi-account enforcement, and IAM/IRSA patterns. Covers OAC, cache policies, security headers, managed rule groups, rate limiting, FMS FIRST/MIDDLE/LAST ownership model, and production-ready Terraform generation./aws-profileAWS profile management for MCP servers — discover profiles across SSO, Granted, and assumed-role chains, check credential TTL, switch profiles across VS Code and Claude Code MCP configs, and scan AWS Organization accounts./azureAzure identity (Workload Identity, OIDC, Entra ID), resource tagging, AKS platform patterns, RBAC scoping, and production-readiness review — with Terraform generation./backup-drBack up and restore Kubernetes workloads with Velero, and prove recovery works. Covers Velero on EKS via Flux (IRSA, S3 backup location, EBS snapshots), schedules and retention, what a backup does not contain, restore drills that restore a namespace into an isolated copy and measure recovery time, cross-cluster disaster recovery with a read-only backup location, and GameDay pairing with chaos experiments. Use when asked to "set up cluster backups", "test our restore", "what's our recovery time", "restore a deleted namespace", or "plan DR to another cluster". Breaking things on purpose → /platform-skills:chaos. Upgrade rollback by blue/green → /platform-skills:cluster-upgrade.Other plugins' skills for the same job