flux-ghcr-image-automation

flux-ghcr-image-automation is a skill for Codex from AnthonyPoschen/agent-skills. It costs 83 tokens per session (1,076 once invoked), scanned A, original, MIT.

A guide for connecting GitHub Actions, the GitHub Container Registry (GHCR), and FluxCD so new container images update Kubernetes workloads.

In plain words
What is it for?
It helps build, review, debug, and fix image automation involving GitHub Actions, GHCR, Flux image resources, Kubernetes deployments, tags, and digests.
Why use it?
It helps trace an image from the Git commit that built it through Flux's discovery, Git update, deployment, and pod rollout steps.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps build, review, debug, and fix image automation involving GitHub Actions, GHCR, Flux image resources, Kubernetes deployments, tags, and digests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthonyposchen/agent-skills/flux-ghcr-image-automation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnthonyPoschen/agent-skills --skill flux-ghcr-image-automation
Clone the repo
git clone --depth 1 https://github.com/AnthonyPoschen/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flux-ghcr-image-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation/github.svg)](https://agentmods.dev/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation)
Your own site
<a href="https://agentmods.dev/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation"><img src="https://agentmods.dev/badge/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flux-ghcr-image-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation"><img src="https://agentmods.dev/badge/skills/anthonyposchen/agent-skills/flux-ghcr-image-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,076 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.01076
Opus 5 $0.00042 $0.00538
Sonnet 5 $0.00017 $0.00215
Haiku 4.5 $0.00008 $0.00108

Measured 11d ago against content hash f72d9a51967b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

flux-ghcr-image-automation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flux-ghcr-image-automation/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flux GHCR Image Automation

Goal

Create a reliable GitOps image release loop:

  1. GitHub Actions builds and pushes a container image to GHCR.
  2. Flux image-reflector-controller discovers the new tag or digest.
  3. Flux image-automation-controller commits the selected image reference back to Git.
  4. Flux kustomize-controller applies that commit and rolls the Kubernetes workload.

Prefer traceable, orderable image tags over mutable-only latest deployments. The operator should be able to answer "which Git commit produced this running pod?" from the image tag.

When Starting

Inspect the repo and cluster shape before editing:

  • .github/workflows/*.yml
  • Dockerfile
  • kustomization/**
  • any ImageRepository, ImagePolicy, ImageUpdateAutomation, Deployment, and Flux Kustomization resources
  • the current branch name and default branch
  • whether the Flux app Kustomization uses targetNamespace

If a live cluster is available and the user is debugging a rollout, inspect live state before changing files:

flux get images all -n <image-resource-namespace>
kubectl get kustomization -A -o wide
kubectl describe imageupdateautomation <name> -n <namespace>
kubectl get deploy <name> -n <namespace> -o yaml
kubectl get gitrepository -A -o wide

Design Rules

  • Do not rely on plain sha-* tags for "latest commit" selection. SHA strings identify commits but do not sort by time.
  • Prefer branch, short SHA, and timestamp tags for branch builds:
<branch>-<short-git-sha>-<unix-timestamp>
  • Configure Flux ImagePolicy to filter the branch tag pattern, extract the timestamp, and use numerical ordering.
  • Keep Flux image update commits from triggering fresh image builds by ignoring the manifest paths that Flux mutates, commonly kustomization/**.
  • Keep the inline Flux setter comment on every image field Flux should update.
  • Make the image setter comment reference the namespace where the ImagePolicy actually exists after Flux applies the manifests.
  • When a Flux Kustomization has targetNamespace, remember that namespaced resources without an explicit namespace may land in that target namespace.
  • Set ImageUpdateAutomation.spec.sourceRef.namespace when the referenced GitRepository is in a different namespace.
  • Keep ImageUpdateAutomation.update.path pointed at the directory that contains the file with the image setter comment.

Read the full file on GitHub · 124 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 124 lines · 83 tokens per session scan A f72d9a51967b

Subscribe to this mod's changes

flux-ghcr-image-automation is a skill published in the GitHub repository AnthonyPoschen/agent-skills (2 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,076 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nextjs-deployment

Provides comprehensive patterns for deploying Next.js applications to production. Use when configuring Docker containers, setting up GitHub Actions CI/CD pipelines, managing environment variables, implementing preview deployments, or setting up monitoring and logging for Next.js applications. Covers standalone output…

giuseppe-trisciuoglio/developer-kit · 71 tokens

devops

DevOps - Docker, CI/CD, cloud infra, monitoring.

sipyourdrink-ltd/bernstein · 16 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens

devops-deployment

Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.

yonatangross/orchestkit · 44 tokens

devops-infrastructure

Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions, planning deployments, setting up monitoring, or when asked about containers, pipelines, Terraform, or production infrastructure.

CloudAI-X/claude-workflow-v2 · 57 tokens

devops-automator

Expert DevOps engineer for CI/CD, IaC, Kubernetes, and deployment automation. Activate on: CI/CD, GitHub Actions, Terraform, Docker, Kubernetes, Helm, ArgoCD, GitOps, deployment pipeline, infrastructure as code, container orchestration. NOT for: application code (use language skills), database schema (use…

curiositech/some_claude_skills · 87 tokens