ankraio/ankra-cli/ankra-stacks-addons
Claude Code and agent skill by ankraio/ankra-cli
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Compose Ankra Stacks from Helm addons, raw Kubernetes manifests, variables, and dependency edges that control deployment order, plus deploy waves between stacks and in-place addon changes. Use when the user is designing or editing an Ankra stack, adding a Helm addon, ordering resources with parents or stacks with deploy waves, changing an addon's version or values, or factoring configuration into variables.
Install
npx vskill@latest install ankraio/ankra-cli/ankra-stacks-addonsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ankraio/ankra-cli/ankra-stacks-addons.
Ankra Stacks & Addons
A Stack is Ankra's reusable unit of deployment: it bundles Helm addons, raw manifests, variables, and the dependency edges between them. Stacks live inside a cluster (and, with GitOps, in a Git repo).
Recommended path
- Golden path: GitOps as the source of truth - see
ankra-platform-principles. Write the stack into the cluster's YAML in the GitOps repository,ankra cluster validate,ankra cluster draftto review, merge, and let the Ankra engine reconcile. - Pin every chart version, put per-environment values in variables, seal secrets with SOPS (
ankra-sops-secrets), and protect any stack holding data into a backup vault (ankra-backups). - The same stack on several clusters becomes a stack profile (
ankra-stack-profiles); the surrounding file isankra-import-cluster, the repositoryankra-gitops. - Avoid:
helm install/kubectl applybeside a stack, floating chart versions, and copy-pasted values per cluster. Ingress is Traefik (installed by Ankra), not ingress-nginx.
Building blocks
- Addon — a Helm release:
chart_name,chart_version,registry_name+registry_url(the olderrepository_urlis a legacy alias),namespace, andconfiguration.values. Optionalagents_md(inline markdown) oragents_md_from_file(path) attaches an AGENTS.md of operational learnings, stored next to the addon in the GitOps repo. - Manifest — raw Kubernetes YAML (namespaces, ConfigMaps, CRDs, RBAC, anything Helm does not own). Also takes optional
agents_md/agents_md_from_file. Itsnameis its identity: renaming one deletes what it owned. - Variable — a named value substituted into manifests/addon values as
${{ ankra.NAME }}, so the same stack works across environments. - Parents — dependency edges. A resource deploys only after every parent has succeeded.
AGENTS.md semantics: omit the field to preserve what is stored, set "" to clear it, and editing it never redeploys anything. Content is plain markdown (never encrypted — no secrets). Use it to record durable operational learnings after non-obvious operations so future agents benefit.
Deployment order via parents
Order is a graph, not a list. Declare what each resource needs; every parent is a kind + name pair:
The shorthand `- manifest: <name>` does not work - it parses to an empty parent and the edge is silently dropped while validation still passes. Check what was stored with ankra cluster stacks list <stack> -o json.
Edit parents after the fact with the CLI instead of re-applying everything:
Between stacks, use deploy_wave: <n> on the stack: wave N starts only after every lower wave succeeded (for example networking 1, platform 2, applications 3). Within a stack, parents still decide.
Variables over hardcoding
Promote anything environment-specific (domains, replica counts, storage classes, sizes) to a variable and reference it as ${{ ankra.NAME }}, rather than baking literals into addon values. Scopes, most specific wins: stack (variables: in the stack YAML, or ankra cluster stacks variables set <stack> <name> <value>), cluster (ankra cluster variables set), organisation (ankra org variables set). Built-ins include ${{ ankra.cluster_domain }} and ${{ ankra.stack_name }}. An unresolved variable reaches the cluster as a literal, so check it is set on every target.
Design rules
- Small, focused stacks. One concern per stack (logging, monitoring, ingress) beats a single mega-stack — easier to reason about, reorder, and clone.
- Namespace first. The namespace manifest is a parent of everything deployed into it.
- Pin chart versions. Exact
chart_versioneverywhere; never floating in production. - Test before prod. Roll a stack out to development, then promote the same definition to production.
- Values are a contract. Keep
configuration.valuesminimal and intentional; rely on chart defaults otherwise. - Stable manifest names. Never rename a manifest that owns a namespace or volumes.
Inspecting and changing
addons upgrade --namespace is a destructive Helm reinstall and asks for confirmation. On a GitOps cluster these CLI changes are committed back to the repository; prefer editing the file in a pull request so the change is reviewed.
Re-running a stack
ankra cluster stacks redeploy <stack> re-runs the deployment jobs of the members a redeploy picks, and lists what it started and what it skipped. --force is only for a manifest whose apply failed with conflict with "<manager>": it overwrites those fields on the live objects for that one redeploy, cannot be undone, asks for confirmation (--yes without a terminal), and needs clusters.write on top of stacks.deploy. See ankra-troubleshooting before reaching for it.
Taking a stack off the cluster and back
ankra cluster stacks uninstall <stack> --cluster <cluster> takes every add-on, manifest and application in the stack off the cluster while the stack stays declared in Ankra and in Git; ankra cluster stacks install <stack> --cluster <cluster> deploys it again with what it declares now. Uninstall is not a pause: data goes exactly as a delete treats it (what a chart or operator removes with its workload is gone, and install does not bring it back), so back the stack up first (see ankra-backups). Both name the cluster with --cluster and never use the shared ankra cluster select. Uninstall needs stacks.delete and asks first (--yes without a terminal); install needs stacks.deploy. A refusal (offline cluster, open draft, a member still deploying, an uninstall still running) changes nothing and exits 8 with the platform's reason. To remove a stack from Git as well, ankra cluster stacks delete is the verb instead.
One stack, many clusters
The moment a stack would be copy-pasted to a second cluster and edited, stop and capture it as a stack profile instead: every per-cluster difference becomes a parameter, and the two clusters cannot drift apart silently. ankra cluster stacks clone <stack> --to <cluster> is the one-off route (it lands as a draft on the target and strips encrypted values, which must be reconfigured there; ankra cluster stacks deploy-draft <stack> deploys it); a profile is the durable one. See ankra-stack-profiles. A clone copies configuration only unless --with-data is passed, which carries the stack's data through a backup vault - see ankra-backups.
Related skills
ankra-import-clusterfor the surrounding ImportCluster document and every field.ankra-stack-profilesfor reusing a stack across a fleet, with parameters.ankra-helm-registriesfor private chart sources.ankra-gitopsfor storing stacks in Git.ankra-troubleshootingwhen a resource deploys before its dependency.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/embedded/skills/ankra-stacks-addons/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ankraio/ankra-cli/ankra-stacks-addons)