Skip to content
Cloud & Infrastructure
Skill

/flux-controller-patch-releases

Run the upstream Flux controller patch release procedure for helm-controller, image-automation-controller, image-reflector-controller, kustomize-controller, notification-controller, source-controller, and source-watcher. Use when preparing a new controller patch release from a

From plugin
agent-skills
2456 skills2 agents1 MCP

Claude Code

$ npx -y skills add fluxcd/agent-skills --skill flux-controller-patch-releases --agent claude-code

SKILL.md

flux-controller-patch-releases.SKILL.md
name: flux-controller-patch-releases
description: >
  Run the upstream Flux controller patch release procedure for helm-controller,
  image-automation-controller, image-reflector-controller, kustomize-controller,
  notification-controller, source-controller, and source-watcher. Use when
  preparing a new controller patch release from a release series branch,
  drafting changelog entries, tagging releases, and opening the follow-up
  changelog PRs back to main.
license: Apache-2.0

Flux Controller Patch Releases

Use this skill for upstream Flux controller patch releases only. Do not use it for `flux2`, `pkg`, or other non-controller repos.

Supported controllers:

  • `helm-controller`
  • `image-automation-controller`
  • `image-reflector-controller`
  • `kustomize-controller`
  • `notification-controller`
  • `source-controller`
  • `source-watcher`

Important rules

  • **Go deep until you block, then switch.** Drive one controller all the way

through every step you can do locally — branch, changelog commit, version bump commit, push, open PR — before switching to the next. Only move on when you hit something you cannot progress (CI running, PR awaiting review, tag workflow running). The moment something unblocks (PR merged, CI green, workflow finished), come back to it immediately — do not finish the current controller's local work first if an earlier one is ready to advance.

  • **Never block the conversation on long-running operations.** CI checks,

release workflow runs, tag-triggered workflows, and similar waits must be watched in the background so the user can keep steering and so you can pick up any other controller the moment it unblocks. When a background watch completes, report the result and proceed.

  • **Always quote PR/issue links as full URLs** (e.g.

`https://github.com/fluxcd/helm-controller/pull/1465`), never the `<owner>/<repo>#<number>` shorthand — full URLs are clickable from the user's terminal, the shorthand is not.

  • **Start background watches on every PR immediately after opening it.** Kick

off `gh pr checks <num> -R fluxcd/<repo> --watch` in the background as soon as the PR is created so CI status lands in the conversation the moment it finishes. Do the same for tag-triggered release workflows (`gh run watch <id> -R fluxcd/<repo>` in the background). Do not wait until "everything is pushed" to start watching — start watching the first PR while you prepare the second. Note that `gh pr checks --watch` can finish early, reporting success on a set of checks that does not yet include a run it just re-triggered, so restart the watch (and re-read `gh pr checks <num>`) after any amend or force-push.

  • **Also start a background approval watch per PR.** `gh pr checks --watch`

only covers CI; it does not fire on maintainer approval. Poll the review state in the background so you are notified the moment it flips to APPROVED + CLEAN:

  while :; do
    state=$(gh pr view <num> -R fluxcd/<repo> --json mergeStateStatus,reviewDecision --jq '.reviewDecision+" "+.mergeStateStatus')
    case "$state" in "APPROVED CLEAN") echo "$state"; break;; esac
    sleep 30
  done

Run this in the background; when it exits, merge the PR and proceed. The session's git user opens these PRs, so they cannot approve them: request a review from a maintainer with `gh pr edit <num> -R fluxcd/<repo> --add-reviewer <login>`, so the approval watch has a reviewer to fire on.

  • Every git commit must use `-s` (sign-off). Never include Co-Authored-By

lines, your own name, or any AI attribution in commit messages, PR titles, or PR descriptions. This applies to all PRs, including PRs that update this skill file itself.

  • Always wait for CI to go green before merging any PR.
  • You cannot approve your own PRs. If a PR was opened by the git user driving

the session, ask a maintainer to approve it (or confirm it is already approved) before merging.

  • **Merge release PRs yourself** (controller release PRs, changelog cherry-pick

PRs) as soon as CI is green **and** a maintainer has approved. No need to ask the user to click merge — act on it immediately so the next step (tag push, etc.) unblocks. This applies only to PRs opened with the user's account during this session.

  • **Review feedback on release PRs is applied by amending**, not by adding

new commits. A release PR must stay at exactly two commits (`Add changelog entry for vX.Y.Z` and `Release vX.Y.Z`). When the fix belongs in the changelog, amend the changelog commit; when it belongs in the release bump, amend that one. Use `git reset --soft HEAD~2` + re-commit, or an interactive rebase, then `git push --force-with-lease`.

  • **After applying a review fix, reply `Fixed, thanks!` on the thread and

resolve it.** Reply via `gh api repos/<owner>/<repo>/pulls/<n>/comments/<cid>/replies -f body='Fixed, thanks!'` and resolve via the GraphQL `resolveReviewThread` mutation. Find thread IDs with `gh api graphql -f query='{ repository(owner:"<o>",name:"<r>") { pullRequest(number:<n>) { reviewThreads(first:50) { nodes { id isResolved comments(first:1){nodes{databaseId body}} } } } } }'`.

  • Do **not** watch CI on the skill-update PR continuously — it only needs to

merge at the very end of the procedure, so check CI right before merging rather than keeping a watch open throughout the session.

  • Tags must be annotated and signed (`git tag -s -m ...`). Never create

release tags through the GitHub API — that produces lightweight tags which break `git tag -v` verification.

  • Strictly follow the git commands documented in the release flow below. Do

not invent substitutions or skip steps — each step has a reason.

  • **Do not declare a controller "done" until every step in the Release Flow

below has been executed for it**, including the final changelog cherry-pick PR back to `main` (step 11) *and that PR being merged*. Merging the release PR and tagging is *not* the

Read more
@fluxcd
Ships withagent-skills

A collection of reusable skills that give AI Agents expertise in Flux CD, Kubernetes, and GitOps best practices for generating manifests, answering Flux questions, auditing repository structure, security, operational readiness, and debugging live cluster

2456 skills2 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
245
Star history of fluxcd/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

commit-assisted-by

commit-assisted-by

Add an `Assisted-by: <agent-name>/<model-id>` git trailer to commits made during an AI-assisted coding session. Trigger on any…

@fluxcd@fluxcdInstall Skill
gitops-cluster-debug

gitops-cluster-debug

Debug and troubleshoot Flux CD on live Kubernetes clusters via the Flux MCP server — inspects Flux resource status, events and…

@fluxcd@fluxcdInstall Skill
gitops-knowledge

gitops-knowledge

Flux CD and Flux Operator expert — answers questions and generates schema-validated YAML for all Flux CRDs (not repo auditing or…

@fluxcd@fluxcdInstall Skill
gitops-repo-audit

gitops-repo-audit

Audit and validate Flux CD GitOps repositories by scanning local repo files (not live clusters) — runs Kubernetes schema…

@fluxcd@fluxcdInstall Skill

More skills from other plugins.

container

container

Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…

@apple@appleInstall Skill
agent-advisor

agent-advisor

Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…

@aws@awsInstall Skill
agents-sdk
Auto-invoked

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

@cloudflare@cloudflareInstall Skill

Questions about flux-controller-patch-releases.

Which coding agents can use flux-controller-patch-releases?
flux-controller-patch-releases installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.