release-publish
Skill2 starsChanged 2 months agoMITView on GitHub
Preview, publish, inspect, withdraw, or delete whole-Space OCI Releases. Use for apply/deploy/publish, pending/ChangeSet changes, preview, tagged selection, get/list, historical cancel questions, withdraw, or delete. Discloses EffectiveReleaseSet and provider races. Not data edits/rollback.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- KalarisLabs/Skill-Doctortheir own version, first seen Sep 13, 2026
- polyant-ai/polyanttheir own version, first seen May 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- KalarisLabs/Skill-Doctor★ 13same name
- polyant-ai/polyant★ 9same 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 repository15 other files it gives its agents.
- app-configSkill
- confighub-coreSkill
- cub-applySkill
- cub-mutateSkill
- cub-querySkill
- importSkill
- incident-managementSkill
- kubernetes-resourcesSkill
- promote-releaseSkill
- rollback-revisionSkill
- skill-examples-bootstrapSkill
- target-bindSkill
- triggers-and-applygatesSkill
- verify-applySkill
- worker-bootstrapSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 171
Before submitting any withdrawal, verify the destructive verb and flags from the installed client in the same session:
- Distinctive: line 177
Only after that check and the dependency inventory, the separately submitted command is:
- Very specific: line 192
After execution, verify the retained record has the same immutable IDs/digests and Published=false.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
release-publish
Execution mode: follow references/execution-modes.md. This Skill grants no automatic tool permission. After a fresh whole-Space scope preview, standalone use submits one requested publish or lifecycle mutation to the host permission system. Scope expansion, incomplete Target membership, failed gates, or missing destructive preconditions still require a stop; an external overlay may impose a stricter stop before Bash.
This skill preserves ordinary-language apply/deploy jobs while using the only current delivery contract: Component → Variant Space → immutable OCI Release → Argo CD/Flux pull → runtime. The retired cub-apply trigger families route here; they are retained explicitly in compatibility/no-loss-inventory.v1.json.
Current Release contract
cub release publish <space-slug>:
- reads
Space.ReleaseTargetIDand requires Use permission on that Target; - bundles the EffectiveReleaseSet: every Unit in that Space whose
Unit.TargetID == Space.ReleaseTargetID; - captures each effective Unit at head unless
--revision <tag-slug>is supplied, in which case the server selects the highest Revision currently carrying that mutable TagID; - checks ValidationErrors; and
- creates one immutable Release with a ConfigHub
ReleaseID, bundleDigest, OCIManifestDigest,UnitCount, andPublished=true.
It has no Unit, Filter, ChangeSet, cross-Space selector, or dry-run flag. A ChangeSet groups/reviews/restores revisions but does not narrow publication. The current profile uses OCI Space Releases; older bridge/per-Unit delivery is historical context only and must not be offered as executable fallback.
Preserve the job without hiding a scope change
| Prior intent | Current disposition |
| apply one Unit / Unit list / Filter | compare the requested set with the whole EffectiveReleaseSet; ask the user to accept the newly disclosed scope or use a dedicated Variant Space |
| apply every pending Unit | identify pending heads, then disclose every effective Unit captured, including unchanged heads |
| apply a ChangeSet | verify its closed revisions, then preview the complete destination Space Release |
| dry-run apply | emit a read-only publication preview; never call it a server dry-run |
| apply a specific revision | use a complete revision Tag only after every effective Unit resolves to an exact tagged RevisionID/DataHash |
| cancel an in-flight Unit apply | historical per-Unit behavior; immutable Release publication has no equivalent cancellation job |
| direct ConfigHub/bridge delivery | unsupported by the reviewed current Release path, which accepts OCI only |
Never convert a narrow request into a broader publish silently. Say: “Your request selected N Units; the supported Release command would capture M Units in Space S. That is a different scope.” Ask the user to accept that changed scope, then rebuild from fresh reads and submit one publish call to the host permission system.
Build a fully enumerated publication preview (read-only)
1. Bind identity and profile
cub auth status
cub release publish --help
cub space get <variant-space> -o jsonRecord context/organization, SpaceID, slug, Component/Variant labels,
ReleaseTargetID, and the installed profile. The current reviewed identity is
cub v0.2.15 with server v0.2.21. If a different version is installed, check
its help instead of assuming flag compatibility; the mismatch limits stronger
semantic claims but does not by itself block an ordinary requested publish.
2. Resolve the Release Target
cub target get <release-target-id> --space <target-space> -o jsonBind TargetID, owning Space, slug, and the bot user granted View and ViewChildren on it (the identity the controller pulls as). Stop on a missing or ambiguous Target.
3. Compute the EffectiveReleaseSet
cub unit list --space <variant-space> \
--select "TargetID,HeadRevisionNum,ValidationErrors,ToolchainType,DestroyGates" -o jsonSelect only Units whose TargetID exactly equals Space.ReleaseTargetID. Record excluded Units too. For every effective Unit at head:
cub revision get --space <variant-space> -o json <unit-slug> <head-revision-num>Bind UnitID, slug, TargetID, head/selected RevisionNum, RevisionID, DataHash, ToolchainType, ValidationErrors, and DestroyGates. A non-empty ValidationError is a concrete stop until the owning policy is satisfied.
4. Optional tagged Release
cub tag get --space <variant-space> <tag-slug> -o json
cub revision list --space <variant-space> --tag <tag-slug> -o json <unit-slug>For each effective Unit choose the highest matching Revision, then read and bind
the expected TagID → UnitID/RevisionID/RevisionNum/DataHash mapping. A Tag is
mutable metadata on Revision rows: it can be removed from one Revision and
added to another. Publication resolves it at execution, so even a complete
pre-read is not an immutable content pin. Installed v0.2.15 help says a Unit
without the Tag falls back to its head; exact v0.2.21 server source is not
available here. Disclose missing coverage and the documented fallback. Stop
only if the user's intent requires a tag-only set with no head fallback; an
ordinary explicitly accepted tagged publish can proceed and its result must be
inspected.
5. Emit the scope preview
The preview contains:
- context/organization and exact compatibility profile;
- SpaceID/slug/Component/Variant;
- ReleaseTargetID, Target identity, and the puller's bot user;
- ordered EffectiveReleaseSet with every UnitID/slug/TargetID/head/selected RevisionNum/RevisionID/DataHash/toolchain/gate;
- excluded Units and the user's originally requested subset;
- optional TagID/slug, complete-coverage proof, and expected per-Unit TagID-to-RevisionID/RevisionNum/DataHash mapping;
- any side effect documented by current help or observed from the current server; the older auto-tag behavior is historical evidence, not a current assertion without observation;
- exact command and controller/runtime proof plan.
Any material change to identity, target, membership, head/revision/hash, TagID mapping, gate, command, side effect, or proof plan requires a focused new decision before submission.
6. Name the execution-CAS gap
A fresh pre-read does not bind the eventual server operation. Installed help
exposes no expected Space version, TargetID, tag mapping, ordered
UnitID/RevisionID/DataHash manifest, or preview digest. --revision <tag> is
therefore a mutable selector, not a content pin.
Therefore the preview is not atomically bound to execution. In standalone mode, refresh it immediately before the one publish call, disclose the race, and submit it to the host permission system; do not claim that the preview itself was an authoritative or immutable execution subject. Stronger governance needs server-side expected-target/expected-manifest preconditions or another operation that the provider verifies atomically.
Release prerequisites and approvals
A publish with --revision ChangeOrder:<slug> is a Release for that ChangeOrder and records it in Release.ChangeOrderID. When the ChangeOrder has a ChangeWorkflow, the ReleasePrerequisites of the Stage the Space belongs to must hold, typically required approvals. They are evaluated inside the publish transaction over the revisions the Release bundles, so they bind to exactly what ships; a refusal (HTTP 422) names the requirement and the revision that falls short and leaves no Release behind. Any other --revision form, including Before:ChangeOrder:, is not for the ChangeOrder and is not gated this way.
Record a missing approval with cub variant approve <variant-space> --change-order <app>-base/<change> as its own host-permission call, report the revisions its response covers, then refresh the preview before publishing. Approval and publication remain separate calls; see promote-release for who may approve and what counts.
Publication command shape
cub release publish <variant-space>
cub release publish --revision <tag-slug> <variant-space>Neither form removes the execution race. The untagged form selects current heads; the tagged form uses a mutable Tag mapping and, per installed help, falls back to head where the Tag is absent. Refresh immediately before execution, then make exactly one selected publish call through the host permission system. Do not claim the earlier preview was atomically pinned.
Read existing Releases
Prefer immutable selectors:
cub release get --space <variant-space> <release-id>
cub release get --space <variant-space> --oci-reference sha256:<manifest-digest>
cub release get --space <variant-space> --bundle-digest sha256:<bundle-digest>
cub release list --space '*' --where "Digest = 'sha256:<bundle-digest>'" -o json--oci-reference latest is weaker discovery only. Keep Digest (bundle) and ManifestDigest (OCI manifest) distinct. The public Release resource has no TargetID, and cub release get/list do not expose the server's stored OCI Manifest. The server-generated manifest committed by ManifestDigest does contain annotations["com.confighub.target.id"], but proving the historical Target therefore requires a trusted publication receipt that captures that manifest/annotation or a digest-addressed registry read through a reviewed catalog action. Space.ReleaseTargetID shows only the Space's current binding and must not be misreported as proof of the Target used by an older Release. Without the manifest attestation, say that the historical Target is unproven.
After separately operated publication, immediately capture a governed receipt containing the actual ReleaseID/Digest/ManifestDigest, the digest-matching OCI manifest and its com.confighub.target.id annotation, and exact UnitID/RevisionID/RevisionNum/DataHash membership recovered from Revision.Releases. A pre-publish Target read is not a substitute for the post-publish manifest target because publish lacks expected-target CAS. Route that receipt to verify-apply. A successful publish is not controller or runtime convergence, and Release UnitCount is not a manifest.
Withdrawal (destroy-class)
Withdrawal takes an immutable-content Release out of service but retains its record with Published=false; deletion permanently removes the Release row and stored bundle. Locate and bind the exact global ReleaseID first, including SpaceID, Digest, ManifestDigest, Published, UnitCount, the attested historical Target, the historical member manifest, and current DestroyGates:
cub release list --space '*' --where "ReleaseID = '<release-id>'" -o json
cub release get --space <actual-space> <release-id> -o json
cub revision list --space <actual-space> \
--where "Releases ? '<release-id>'" \
--select "RevisionID,RevisionNum,DataHash,Releases" -o jsonReleases is a UUID-keyed map; the ? predicate tests exact key membership. Reconstruct the original members by selecting only Revisions whose Releases map contains the ReleaseID. Compare their exact UnitID/RevisionID/RevisionNum/DataHash set with the governed publication receipt. A same UnitCount is insufficient: a retargeted member can be replaced by another Unit without changing the count. Missing/deleted Revision rows or a missing receipt are an explicit historical-manifest proof gap.
Before submitting any withdrawal, verify the destructive verb and flags from the installed client in the same session:
cub release withdraw --helpOnly after that check and the dependency inventory, the separately submitted command is:
cub release withdraw <release-id>The CLI resolves the Release's actual Space by globally unique ID. Current help says withdrawal checks DestroyGates for Units in the Release bundle. Exact v0.2.21 implementation is not source-reviewed here, so inventory the historical members and current gate state, submit only the exact ReleaseID, and inspect the result. Older current-target-membership behavior remains historical evidence, not a current claim. Never clear a gate as an implicit sub-step. Bind identity, availability impact, consumers, rollback/republish plan, command, and proof plan before the host-permission call.
After execution, verify the retained record has the same immutable IDs/digests
and Published=false; do not expect not-found. For permanent deletion, verify
cub release delete --help in the same session before offering the separate
destroy-class command cub release delete <release-id>. Require a verified
withdrawal first, retained manifest/member/digest evidence, explicit retention
authorization, consumer proof, and a not-found/blob-unavailable postcondition.
The exact v0.2.21 delete implementation is not source-reviewed, so do not claim
that gates are either enforced or bypassed. Never describe deletion as
withdrawal or rely on surviving Revision linkage as the only audit record.
Stop conditions
- narrower intent differs from the EffectiveReleaseSet;
- missing/changed ReleaseTargetID, Unit membership, head/revision/hash, TagID mapping, auto-tag side effect, or gate state;
- any bridge/per-Unit deploy request presented as current;
- incomplete tag coverage when the user requires tag-only selection without the documented head fallback;
- historical Release receipt/member reconstruction is missing for a historical-membership claim or destructive lifecycle action;
- historical Target is inferred from current Space state rather than attested by the digest-matching OCI manifest;
- withdrawal consumer impact is unknown or a DestroyGate is present;
- deletion is still published or lacks a prior withdrawal receipt and retained manifest evidence;
- the host denies the command or an external governance overlay blocks it; or
- a requested controller/runtime claim cannot bind to the immutable Release (publication itself may still succeed; name the proof gap).
GUI handoff
cub component open <component> --variant <variant> --print-urlcub space open <variant-space> --print-urlcub unit open <unit> --space <variant-space> --revisions --print-url
Navigation URLs do not replace organization/object-ID verification.
References
compatibility/current-profile.v1.json— exact static profile and known gaps.compatibility/no-loss-inventory.v1.json— current and replaced triggers/capabilities/evals.references/changesets.md— grouping/restore and native approval separation.target-bind— ReleaseTargetID and exact Unit membership.verify-apply— Release/controller/runtime proof.
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.

