release-acceptance
Skill759 starsChanged 21 days agoMITView on GitHub
Use when asked to run the acceptance tests of a kuik v3 release (also called a smoke test) on a pre-production or other cluster where kuik is already installed, for example "validate kuik 3.0.0-alpha.3 on preprod", "smoke test the release on our cluster" or "run the acceptance tests".
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- oevery/rsptheir own version, first seen Nov 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- oevery/rsp★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- acceptance-scenariosSkill
- decision-noteSkill
- e2e-specSkill
- pull-requestSkill
- release-notesSkill
- test-outlineSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Existing workloads: never touch, restart or roll out an existing workload, kuik's own pods included.
- Very specific: line 23
kuik config: when kuik is managed by GitOps (Flux, Argo CD), never kubectl edit, patch or helm upgrade it.
- Distinctive: line 39
Ask the user for anything missing:
- Very specific: line 48
only if a scenario needs an ImageMirror that copies for real: --mirror-prefix, a registry path the user dedicates to the test.
- Very specific: line 57
Run task acceptance-approve, alone, from the top of the working copy.
- Very specific: line 66
Read git log --oneline <previous>..v<version> and the release notes (gh release view v<version>).
- Very specific: line 67
Run every scenario of scenarios.md whose Since is not newer than the version under test.
- Very specific: line 69
Add, for what the release changes, what to look at and what to try beyond the scenarios: their Explore variants first, then your own.
- Distinctive: line 83
When something is off, find out why with reads (the inspect logs, the spec, the code at the tag) before you report it: say whether it is a …
- Distinctive: line 87
Write the report where step 1 said.
- Distinctive: line 95
not shipped yet in this version.
- Distinctive: line 97
STOP. The test objects stay in place: Ask the user whether they accept the results or want to look at something first.
- Distinctive: line 101
Only once the user has accepted the results:
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
kuik release acceptance on a shared cluster
Overview
Accepts one kuik v3 release on a cluster that runs real workloads. The program test/acceptance/ applies the fixtures and prints what the cluster holds; it never decides. You judge: you compare what it prints with what docs/v3/ says, look for what nobody wrote a check for, and report (note 0015). Read the README first (its commands and its guard), then scenarios.md: the user stories you run, each with what to prepare, what to expect and how to check it. They are the floor every run covers, not the ceiling: a run that only ticks them found nothing an e2e spec would not.
You run the scenarios; you do not write them. New ones are drafted per release with the user by the acceptance-scenarios skill, before this run.
The cluster is not a test cluster: every rule below protects the workloads already on it.
Hard rules
- Existing workloads: never touch, restart or roll out an existing workload, kuik's own pods included. If a test ever needs one, name that specific workload ahead and wait for the user's explicit approval.
- The tasks only: the cluster is reached through the tasks of the Reference, one per Bash call, alone: no pipe, redirection or
grep/cutafter it, or the hook asks every time. Filter with--grepand--metrics, a regex in single quotes, and read a long output as it is.acceptance-checkandacceptance-inspectonly read;acceptance-setup,-applyand-deletewrite test objects only, through the program's guard. The shared settings allow all five: run them without asking. A command outside the tasks is a read-only diagnosis, one per call, always with--context, and never reads a Secret's data. The one exception, without GitOps only: thehelm upgradethat switches the verbosity for the test (step 2) and the one that restores it (step 7), which the outbound hook asks for. - The guard is reviewed code: never edit
test/acceptance/during a run, scenarios and fixtures included. A change to the program (Go code, Taskfile) runs on a cluster only once the user has approved it, withtask acceptance-approveafter your explanation (step 4). A branch of new scenarios and fixtures, written beforehand by theacceptance-scenariosskill, needs no approval: each fixture goes through the guard oforigin/main. A scenario worth keeping goes to the report (step 6). - Cleanup waits for the user: the test objects stay until the user says the results are accepted, so they can look at the cluster too. Never clean up on your own initiative;
acceptance-cleanupasks for permission again. - kuik config: when kuik is managed by GitOps (Flux, Argo CD), never
kubectl edit,patchorhelm upgradeit; a config change is a GitOps change the user makes. - Kubeconfig: passed as
--kubeconfig <path> --context <name>, or asKUBECONFIG=<path> kubectl --context <name> ...for a diagnosis. Never open, cat or print the file, never copy it. - Unexpected result: investigate with reads, report it. Do not fix anything on the cluster.
Reference
| Item | Value |
| Tasks | Commands: acceptance-check, -setup, -inspect, -apply, -delete (allowed), -approve and -cleanup (ask); each followed by -- --kubeconfig <path> --context <name> |
| Test objects | what the guard lets through; anything else is refused before a write |
| Exploration files | write the YAML of acceptance-apply in your scratchpad, never in the repository; the report says what you tried |
Workflow
1. Inputs
Ask the user for anything missing:
- the version under test (for example
3.0.0-alpha.3); - the kubeconfig path and the context to use;
- the kuik namespace and Helm release name (defaults
kuik-system/kube-image-keeper); - whether kuik is managed by GitOps (Flux, Argo CD): if it is, never change kuik's config with kubectl or helm;
- where to write the report: by default a Markdown report in the conversation (see step 6). The user, or their own memory, may name another destination;
- for the real pull (test 11): a private repository holding a copy of
quay.io/nginx/nginx-unprivileged:1.31.6-alpine, and the name of a docker config Secret in the kuik namespace that can pull it. The user creates that Secret; never create, read or print it. Without them, test 11 is skipped and reported as not tested. --public-repo: a repository holding a copy ofnginx-unprivileged:1.31.6-alpine, pulled anonymously by the test pods, when a real ImageAlternative or ImageMirror of the cluster covers the defaultquay.io/nginx/nginx-unprivileged(list them with a read-onlyKUBECONFIG=<path> kubectl --context <name> get imagealternatives,imagemirrors). On a cluster whose egress IP is shared, prefer a registry without an anonymous pull quota;- only if a scenario needs an ImageMirror that copies for real:
--mirror-prefix, a registry path the user dedicates to the test. Never guess one: a test mirror deletes the tags of this cluster it finds under its path.
The previous tag is the latest v3.* tag before the version (git tag --list 'v3.*').
2. The installation
First, the approval: every acceptance task asks while the program differs from origin/main unapproved. git fetch origin --tags, then list what the working copy changes beyond origin/main, the fixtures and the Markdown files left out: git diff --stat origin/main -- . ':(exclude,glob)test/acceptance/fixtures/*.yaml' ':(exclude,glob)**/*.md' and the untracked files. When it lists nothing, go on: the tasks run without asking. Otherwise the user approves the program once for the whole run:
- Read the diff, and each untracked source file in full (an untracked
.gofile intest/acceptanceis compiled into the program, while the diff and the approval list show only its name). Never open an untracked file that may hold a secret (a kubeconfig,.env, a key, a token): name it to the user, who checks it and removes it from the tree. Then explain the changes to the user, one line per change: what it does, and whether it touches the guard, a skip rule, what the program writes to the cluster or the credentials it reads. Name any reference outside the working copy (areplaceoruseto a local path ingo.modorgo.work, a script the Taskfile calls outside the tree): the approval does not cover what it points to. Detailed, clear and concise: the user approves on that explanation, so leave nothing out and add nothing. - Run
task acceptance-approve, alone, from the top of the working copy. The hook asks the user, listing the changed and new files; on a refusal, stop the run. - Any code change afterwards voids the approval: the hook asks again at the next task. Explain the new change and approve again.
Then task acceptance-check -- --kubeconfig <path> --context <name> --kuik-version <version>. Judge it against test 1 of scenarios.md and tell the user what you see. A broken installation stops the run there. Note the Helm verbosity values as they are, empty included: an empty process value inherits the root verbosity, and step 7 restores it empty.
If any process does not log at debug, switch them all for the test: the webhook logs there why a candidate was dropped (Candidate failed its check), the secret syncer each pull Secret it applies, the reconciler each status it writes. Without them, what you observe cannot be explained. Without GitOps, set the root verbosity and any process value that is not empty (the user accepts or refuses it at the permission prompt; on a refusal, go on at the current level): KUBECONFIG=<path> helm --kube-context <name> upgrade <release> oci://quay.io/enix/charts/kube-image-keeper --version <version> -n <ns> --reuse-values --set verbosity=debug (add --set <process>.verbosity=debug for each non-empty one). It restarts the kuik pods only. With GitOps, the user makes the change: stop until they say it is done.
3. The plan
- Read
git log --oneline <previous>..v<version>and the release notes (gh release view v<version>); opendocs/v3/or the code only where a commit is unclear. - Run every scenario of
scenarios.mdwhose Since is not newer than the version under test;setupskips the fixtures of the others. - Coverage: when the release adds a behaviour a user can observe (a field, a reason, an event, a metric, a chart value) that no scenario covers, tell the user what is missing, propose to run the
acceptance-scenariosskill first, and STOP: the run goes on only once the scenarios are merged or the user says to go without them. - Add, for what the release changes, what to look at and what to try beyond the scenarios: their Explore variants first, then your own. They are explorations with
acceptance-applyon top of the base objects, never a change totest/acceptance/. - Show the plan in a few lines, then go on to step 4 in the same turn.
4. Setup
task acceptance-setup -- --kubeconfig <path> --context <name> --kuik-version <version>, with --private-repo and --pull-auth for tests 11 and 13, --mirror-prefix for test 14, and --public-repo from step 1, passed again to every acceptance-apply. It skips, with a line, every fixture whose since is newer than the version. It prints the time it started, the rewrite counters of the test CRs before any test pod existed (keep them: test 3 compares with them), and every object it created, fixture by fixture. It waits for nothing kuik does, except the pull Secret of test 11 before its pod.
5. Evaluate and explore
Give kuik a minute, then task acceptance-inspect -- --kubeconfig <path> --context <name>. Narrow it with --grep and --metrics when you dig into one test.
- The floor: for each scenario, run its Do actions and its Check commands, and compare what they print with They expect, and with the spec section each point links when they differ. A status written a few seconds after a pod is not a failure: inspect again before you conclude.
- Look further: read the whole output, not only the lines you expected. Signs that deserve a closer look: a status that contradicts the events or the pod annotations, a counter that does not add up across replicas, a log line at
infoor above you cannot explain, an event repeating, a Secret nobody asked for, a delay much longer than the others. - Explore: try what the floor does not cover, one change at a time, then inspect. Directions: change an object (
rewritePolicy, an alternative's order, a selector), a pod kuik must treat differently (several containers, an init container, a digest-pinned image,imagePullPolicy: Alwayson a mirrored image), a dependency that disappears (the placeholder Secretkuik-test-quay-creds, an injected pull Secret: does it come back?). Pick by what the release touched. Keep each change inside the test objects; the program refuses the rest. - When something is off, find out why with reads (the inspect logs, the spec, the code at the tag) before you report it: say whether it is a bug, a behaviour the spec allows, or something not shipped in this version.
6. Report
Write the report where step 1 said. The default is Markdown in the conversation:
- the version, the context, the date, and whether any existing workload was touched;
- a test table, one row per scenario run: #, Test, Expected, Observed, Verdict;
- found while exploring: what you tried, what you saw, your verdict and why, with the spec section;
- scenarios to add: the findings worth checking on every release, each as a one-line user story with its spec link, for the next run of the
acceptance-scenariosskill; - caveats;
- implemented but not tested;
- not shipped yet in this version.
STOP. The test objects stay in place. Ask the user whether they accept the results or want to look at something first.
7. Cleanup
Only once the user has accepted the results:
task acceptance-cleanup -- --kubeconfig <path> --context <name>: it deletes the test CRs and Secrets, then the 2 test namespaces, and checks none is left. The user's Secret of test 11 carries no label and stays: offer its deletion, the user decides.- If the verbosity was switched for the test and the user wants it back, restore every value noted in step 2 the same way it was switched (
helm --kube-context <name> upgrade ... --reuse-values, without GitOps): the rootverbosityto its value, and--set <process>.verbosity=""for a process value that was empty, never the effective level it resolved to. - Offer to delete the kubeconfig. The user decides; do not read it.
Common mistakes
| Mistake | Fix |
| Going on after a context mismatch | Stop: the commands would hit another cluster |
| Reporting the scenarios and nothing else | Explore: they are what an e2e spec would check; acceptance is for what it would not |
| Writing a scenario or a fixture during the run | Report it under "scenarios to add"; the acceptance-scenarios skill writes it with the user |
| Running on when the release adds a behaviour no scenario covers | Stop at the plan and propose the acceptance-scenarios skill |
| Calling a delay a failure | Inspect again; report the delay itself when it is far beyond the others |
| Reporting a hunch as a bug | Trace it to the spec or the code at the tag first; say which |
| Reading metrics through the Service or a single pod | Inspect prints every replica: only the replica that served an admission counts it |
| Cleaning up once the report is written | Wait for the user to accept the results |
kubectl writes, or a go run of the program around the tasks | Go through the tasks: the program holds the guard, and the hook asks before each write |
| Fixing a surprise on the cluster (edit, restart, re-apply with changes) | Stop, report to the user |
| Changing kuik's config with kubectl or helm on a GitOps cluster | The user changes it in the GitOps repository |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

