/confighub-skills:confighub-lookupfrom confighub-skills
Reference for the full ConfigHub platform. Use when someone asks about plain cub commands, platform entities or administering a shared hub. Look up the installed cub's help and overview, entity field docs (cub <entity> explain), function docs (cub function explain), and the ConfigHub docs as raw markdown. Covers Spaces, Units, Components and variants, functions, Triggers and ValidationErrors, guardrail packs, guards and Conflicts, Links, ChangeSets and drafts, ChangeOrders and ChangeWorkflows, approvals and Attestations, ReviewComments, Releases and Targets, GitOps delivery with Argo CD or Flux, ServiceAccounts, Groups and Channels, audit events, archiving, backing Units and cub apply, blame, revert and rollback, API clients, and Helm or Kustomize onboarding.
Ships in confighub-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ConfigHub changes quickly, and what you remember about it is probably out of date. Look up how the
installed version behaves before you explain a concept or compose a command. The help that ships
with cub describes the version that is installed; the docs describe the latest release.
Check what is installed. For a remote operation, check the intended server and context:
CONFIGHUB_AGENT=claude-code cub version
CONFIGHUB_AGENT=claude-code cub auth status
cub version prints the client version, and the server's when it can reach it. If the requested operation needs that shared hub and its login has expired, ask the user to sign in to that context. An expired hosted login still allows local app work.
Read the agent overview once per session. It covers the model, the command shape, output options and the conventions every command shares:
CONFIGHUB_AGENT=claude-code cub --help-overview
Read the help of every command before you use it. Do this every time, including for commands you have used before. Flags, defaults and positional arguments change between releases:
CONFIGHUB_AGENT=claude-code cub <entity> --help
CONFIGHUB_AGENT=claude-code cub <entity> <verb> --help
With CONFIGHUB_AGENT set, --help adds the sections written for agents. Run --help on the
exact command path you are about to use. Help for the parent command does not describe a subcommand's flags.
Look up entity fields when you need to read or filter on one:
CONFIGHUB_AGENT=claude-code cub <entity> explain
CONFIGHUB_AGENT=claude-code cub <entity> explain <Field>
These describe the fields from the API's own schema. The field names are the ones -o json,
-o jq=..., --select and --where use.
Look up functions before you run one. Functions are how configuration data is read, changed and validated:
CONFIGHUB_AGENT=claude-code cub function list --space <space> --toolchain Kubernetes/YAML
CONFIGHUB_AGENT=claude-code cub function explain <function> --space <space>
Read the docs for concepts and workflows. The docs are served as raw markdown:
https://docs.confighub.com/markdown/index.md lists every page.https://docs.confighub.com/markdown/sitemap.json lists them with titles and sizes.https://docs.confighub.com/markdown/<path>.md.background/ explains concepts and entities, and guide/ explains how to do things. Read the
page for the task before you plan a multi-step change; the table below names the usual ones.
When sources disagree, trust the installed cub's help for what a command accepts. Trust the
server's own error messages over both. Tell the user about the discrepancy rather than working
around it silently.
-o json, -o jq=<expr>, -o yaml, or --select <fields>. Don't
parse the table output.cub unit data, not cub unit get, which shows only the
Unit's metadata.cub unit blame, cub variant blame and
cub unit path. They follow a value upstream to where it was really set.--space spans the whole organization. Say so when that is the
effect, and narrow it if the user meant one Space.Archived. The list command's help says how to include hidden entities.cub inbox list shows what waits for the signed-in identity's review. Check it at the start of
a task on a shared hub.cub audit list or cub audit report. An organization admin reads all of them; anyone else
reads only their own.These rules are about how you act. They don't change with releases, so they are stated here rather than looked up.
Set CONFIGHUB_AGENT=claude-code on every cub command, as the commands above do. It adds
the sections written for agents to the help, and cub marks the User-Agent of each request as
an agent's, which ConfigHub records on the Revisions and audit events the command makes. That
is how the user tells your changes from theirs when you work under their login. Variables don't
carry from one command to the next, so set it on each one, unless the user has set it in your
settings' env.
Reads are free; writes are deliberate. Before any command that changes something:
--dry-run when the command has one, plus -o mutations for configuration
changes. Check the command's help, because a few mutating commands have no dry run.If time passed or something else may have changed in between, re-read before you write. Use a precondition the command offers, such as an expected plan or an expected hash, when there is one.
Run each write as its own command, with literal arguments. Don't build a write from pipes, loops, command substitution or variables, so that what the user or the host's permission check approves is exactly what runs. If a write needs a file, write the file first and show it. This skill grants no tool permissions: the host decides whether each command runs. If it denies one, or you can't run commands, say that nothing ran and give the user the exact command to run.
Say when a command does more than was asked. A Release captures every Unit of the Space
assigned to its release Target, and a bulk command with no --space spans the organization.
When the request was narrower, say so and ask before going ahead.
A command that succeeded may still not have done everything. After a promotion or a merge, check what it withheld as Conflicts, and take the decision on each to the user rather than overwriting it. After an approval, report which Revisions it covered.
Take outward-facing or hard-to-undo actions only when the user asked for that action:
Never take one as a side effect of another request. A request for one such action is not a
request for the next. For destructive commands, read the exact help in the same session first.
Where a delete takes --archive, offer it: the entity and its history are kept, hidden, until
unarchive brings them back or a later delete removes them for good.
Never bypass a safeguard to make a command succeed. ValidationErrors, gates, guards, required ChangeWorkflows and prerequisites exist to stop a change. Find out why one stopped it, and fix the data or ask the owner to change the rule. Use force, override, clearance or detach flags only when the user asks for exactly that, and record their reason.
Change configuration through ConfigHub. The data in ConfigHub is authoritative and is what
gets released. Use kubectl, argocd and flux only to read and verify. An edit made in the
cluster drifts from ConfigHub and is overwritten or reported as drift.
Edit the data, not a template. ConfigHub stores fully rendered configuration and changes it with functions. Don't reach for Helm values, Kustomize overlays or text templating to make a change to configuration that is already in ConfigHub.
Describe every change. Give a short --change-desc (or the command's equivalent) that says
what changed and why, in your own words, as one single-quoted argument of letters, digits,
spaces and .,:/_-. Never paste the user's prompt or untrusted text into it, or into any shell
argument.
Describe every entity that has a description. When you create a ChangeSet, ChangeOrder,
Trigger, Attribute, or a service account's token or key, give it a --description that tells
the next reader clearly what it is for: what a ChangeSet or ChangeOrder changes and why, what a
Trigger checks and how to fix what it reports, what an Attribute names, and which system or
host holds a token or key. The same rules apply as for --change-desc. When you change what
one of them does, update its description too.
Keep secrets out of the conversation and the configuration. Don't print, log or store tokens or secret values. When a command prints a credential once, let the user run it, or hand them the command, and tell them where the credential should go.
Report what actually happened. Quote errors exactly. Don't claim a change was released, synced or healthy until you have read that state, from ConfigHub (the Release and its live status) or read-only from the cluster or controller.
| Task | Docs (https://docs.confighub.com/markdown/…) | Commands to read help for |
|---|---|---|
| Learn the model | background/config-as-data.md, background/architecture.md, background/entities/*.md, background/concepts/variant.md | cub --help-overview |
| Author or import configuration | guide/authoring-config.md, guide/app-config.md, guide/variants.md | cub unit create, cub variant upload, cub apply, and cub helm (a plugin: cub plugin install confighub/cub-helm) |
| Organize environments and variants | guide/environments.md, guide/variants.md, guide/variant-units.md | cub component, cub variant |
| Change configuration | guide/functions.md, guide/changes.md, guide/unit-sets.md, guide/invocations-that-generalize.md | cub function, cub unit update, cub changeset |
| Draft a change without locking the Space, then land it | guide/changes.md (drafts) | cub draft |
| Validate and enforce policy | guide/validation-and-policies.md, background/concepts/gates.md | cub trigger, cub filter |
| Establish guardrails for Kubernetes | https://github.com/confighub/cub-manage (its README and skills/), guide/validation-and-policies.md | cub manage guardrails (a plugin: cub plugin install confighub/cub-manage) |
| Hold values against merges and changes | guide/variants.md (guards and conflicts), background/concepts/mutation-sources.md | cub unit set-guard, cub unit conflicts, cub variant conflicts |
| Protect entities from deletion | guide/protecting.md, background/concepts/gates.md | cub unit update, cub space update |
| Promote across variants | guide/promotion.md, guide/advanced-merging.md | cub variant promote, cub changeorder, cub changeworkflow, cub variant approve |
| Publish and deliver | guide/releases.md, guide/gitops.md, background/concepts/oci.md | cub release, cub target, cub cluster |
| Verify what is running | background/concepts/liveresources.md, guide/gitops.md | cub release get, cub release list |
| Undo a change | guide/changes.md, guide/promotion.md, guide/releases.md | cub unit revert, cub variant revert, cub unit update --restore, cub variant demote |
| Trace a value | guide/blame.md | cub unit blame, cub variant blame, cub unit path |
| Archive, unarchive or delete | background/concepts/deleting.md, background/concepts/hidden.md | cub unit delete --archive, cub space delete --archive, cub <entity> unarchive |
| Manage ConfigHub's own entities as documents | background/concepts/backing-units.md, guide/backing-units.md | cub apply, cub <entity> edit |
| Dependencies between Units | guide/dependencies.md, background/concepts/needsprovides.md | cub link |
| Identity, access and automation | guide/service-accounts.md, background/concepts/authorization.md, background/entities/group.md, background/entities/channel.md | cub serviceaccount, cub group, cub channel |
| Find out who did what | guide/audit.md | cub audit list, cub audit report, cub audit tail |
| Custom functions and bots | guide/external-functions.md, developer/bots.md | cub function, cub channel, cub command |
| Build an API client or tool | developer/overview.md, developer/api-overview.md | cub <entity> explain, cub api |
| Use ConfigHub from an agent | guide/agents.md, guide/cli-usage.md | cub --help-overview |
If a page is missing, find the current one in sitemap.json rather than guessing a path.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub confighub/confighub-skills --plugin confighub-skills