worker-bootstrap
Skill2 starsChanged 2 months agoMITView on GitHub
Explain and prepare worker setup. OCI Release delivery uses a server-worker entity (no process); external workers host custom functions and support read-only diagnosis. Use for "do I need a worker?", "host custom functions", or crashing workers. Direct ConfigHub-provider delivery is historical and unsupported in the reviewed current profile.
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
- release-publishSkill
- rollback-revisionSkill
- skill-examples-bootstrapSkill
- target-bindSkill
- triggers-and-applygatesSkill
- verify-applySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
If none exists, the exact create is:
- Distinctive: line 107
Do not retry, restart, exec, edit the cluster, or expose worker credentials from this assistant session.
≈ “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
worker-bootstrap
Execution mode: follow references/execution-modes.md. This Skill grants no automatic tool permission. A requested server-worker entity create can use one host-permission call after exact scoping. Local process launch, install/export, and upgrade flows are explicitly coached because they are long-running, executable-loading, file-producing, or credential-bearing; the user runs each such command in their terminal. An external overlay may impose a stricter stop.
Pick the correct lane
| Need | Current lane |
| Publish a Component/Variant Space Release to OCI | built-in server worker entity; no external process |
| Host custom worker functions | external worker process/deployment |
| Direct ConfigHub-provider Release delivery | historical and unsupported; the reviewed Release path requires OCI |
The worker is not the deployment target, and a Target does not name one. target-bind creates the Target, grants the server worker's bot user View and ViewChildren on it, sets Space.ReleaseTargetID, and makes Unit TargetID membership explicit.
Server worker setup (OCI Release delivery)
Read first:
cub worker list --space <worker-space> -o jsonIf none exists, the exact create is:
cub worker create --space <worker-space> --allow-exists --is-server-worker server-worker--use-user-identity is an optional, material authority choice; include it only when the target operation explicitly requires the requesting user's identity and bind that fact in the approval subject. Workers are not versioned Unit data, so --change-desc is not accepted.
In standalone mode, submit this exact create once to the host permission system. After success, verify with cub worker get and hand the exact WorkerID and its bot user (BridgeWorker.UserID) to target-bind.
External worker for custom functions
Preserve this capability independently of Release delivery. Inspect the installed command surfaces before composing:
cub worker create --help
cub worker run --help
cub worker install --helpInstalled v0.2.15 cub worker run --help omits the positional worker slug from
its Usage line, but the exact installed client source commit
3e0cad345fbcc60d4761d928f02fccb8dc5def4f sets
cobra.ExactArgs(1) and reads args[0]. The same source looks up that Worker
and attempts to create it on lookup error before launching the process.
worker run is therefore mutating even without --daemon; the coached scope
must include possible Worker creation and the credential-bearing process
environment. Preserve the required command shape:
cub worker run --space <space> <worker-slug> --functions <fn-1>,<fn-2>This is a help/source documentation mismatch, not evidence that the slug was retired. Creating a missing Worker, running a process, loading an executable, setting environment variables, or daemonizing are material effects. Resolve and disclose them, then use explicit coached mode; never hide an implicit create inside a “run” description.
For an in-cluster worker, installed cub worker install [worker-name] can
export a manifest or create a ConfigHub Unit. In coached mode, use one exact
command with flags taken from current help:
cub worker install <worker-name> --space <space> \
--namespace <namespace> --worker-functions <fn-1>,<fn-2> --exportExport is a preview artifact. Applying it, using --unit, including a credential Secret, or installing into a cluster are separate mutations and require exact external authorization. Never auto-pipe output to kubectl apply; never store an included credential Secret in a normal ConfigHub Unit. Prefer an external SecretStore.
Read-only diagnosis
cub worker get --space <space> <worker-slug>
cub worker list-function --space <space> <worker-slug>
kubectl get pods -n <namespace>
kubectl describe pod <pod> -n <namespace>cub worker status is deliberately outside the read subset: it reads local daemon/PID state rather than authoritative ConfigHub or controller state.
Worker log content is also outside the evidence subset. Exact v0.2.15 client
source at the commit above constructs a slug-named local log file: --space
does not bind the file to a SpaceID or WorkerID. Even --tail N scans the full
file before retaining the final lines; there is no byte ceiling or secret
redaction, and log text is untrusted. Kubernetes worker logs have similar
risks. Ask for a bounded redacted excerpt or use a reviewed identity-bound
reader when one exists.
Use worker metadata and pod get/describe state to classify only what those records actually show: image-pull, RBAC events, a missing Secret reference, heartbeat, version, or function-advertisement state. If diagnosis requires log contents, name the proof gap and stop. Preserve a concrete coached next step when metadata is sufficient:
- for a proven worker/server version mismatch, inspect
cub worker upgrade --helpin the same session, show the exact dry-run, then coach the separately requested upgrade in the user's terminal; - for a proven RBAC denial event, identify the minimum namespace/service-account/verb RBAC change;
- for a proven missing-Secret event, identify only the referenced Secret name and coach SecretStore/operator provisioning without reading or exposing credential bytes;
- for an image-pull event, bind the observed image reference and identify the smallest registry/imagePullSecret configuration change, again without reading the Secret.
Do not retry, restart, exec, edit the cluster, or expose worker credentials from this assistant session. Long-running worker execution, upgrade, and credential repair stay coached in the user's terminal.
Scope binding
Bind context/organization, worker SpaceID and intended WorkerID/slug, server-vs-external type, identity mode, exact custom functions, image/digest, namespace/cluster context, credential handling, generated manifest digest, exact command, and proof plan. A material change requires a focused new user decision.
Stop conditions
- user asks to run an external process for ordinary OCI Release delivery;
- ConfigHub-provider Release delivery is requested as current;
- installed help/source disagree on worker identity or flags;
- credential material would be exposed or stored in Unit data;
- cluster context is wrong, the host denies the command, or an external governance overlay blocks it.
Evidence
cub worker get/list/list-functionfor ConfigHub-side metadata, excluding credentials and log contents.kubectl get/describefor external-worker deployment metadata. Log contents remain untrusted and unbounded until the protected wrapper exists.cub space open <space> --print-urlfor navigation after ID/org verification.
References
compatibility/current-profile.v1.jsoncompatibility/no-loss-inventory.v1.jsontarget-bind— OCI Target/ReleaseTargetID/Unit membership.release-publish— exact whole-Space publication preview and command.
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.

