Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform
.claude/skills/amariahak-ankra-cli-rules-and-best-practices-for-managing-kubernetes-clusters-via-the-ankr/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 124% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 77% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 82% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 82% | 0% |
Ankra CLI rules and best practices for managing Kubernetes clusters via the Ankra platform
Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/ankra-cli.mdc.
Ankra is a Kubernetes cluster management platform. Its CLI (ankra) lets you manage organisations, clusters, add-ons, stacks, Helm releases, credentials, and tokens from the terminal.
ankra login~/.ankra.yaml; override with --config <path>--base-url or ANKRA_BASE_URL--token or ANKRA_API_TOKEN (prefer env var in CI)ankra logoutyaml# ~/.ankra.yaml example base_url: https://api.ankra.io token: ${ANKRA_API_TOKEN}
bashankra org list # List accessible organisations ankra org switch <org-name> # Switch active organisation ankra org create <name> # Create a new organisation ankra org invite <email> # Invite a user to the current org ankra org members # List members of the current org
bashankra cluster list # List all clusters in the org ankra cluster select <name> # Set the active cluster context ankra cluster info # Show details about the active cluster ankra cluster provision # Provision a new cluster ankra cluster deprovision # Deprovision (destroy) the active cluster ankra cluster reconcile # Reconcile cluster to desired state ankra delete cluster <name> # Delete a named cluster
ankra cluster info before destructive operationsankra cluster reconcile after config changes before assuming state is correctbashankra cluster addons list # List installed add-ons ankra cluster addons available # List available (installable) add-ons ankra cluster addons settings <addon> # Show current settings for an add-on ankra cluster addons update <addon> # Update add-on configuration ankra cluster addons uninstall <addon> # Uninstall an add-on
bashankra cluster stacks list # List stacks in the cluster ankra cluster stacks create <name> # Create a new stack ankra cluster stacks delete <name> # Delete a stack ankra cluster stacks rename <old> <new> # Rename a stack ankra cluster stacks clone <src> <dst> # Clone a stack ankra cluster stacks history <name> # View stack change history
clone over create when replicating an existing working stackhistory before rolling back to understand what changedbashankra cluster manifests list # List deployed manifests ankra cluster operations list # List in-progress or recent operations ankra cluster operations cancel <id> # Cancel a running operation
bashankra cluster agent status # Check agent health ankra cluster agent token # Retrieve agent bootstrap token ankra cluster agent upgrade # Upgrade the in-cluster agent
agent status if cluster commands seem unresponsivebashankra cluster helm releases # List Helm releases in the cluster ankra cluster helm uninstall <release> # Uninstall a Helm release ankra helm registries # List configured Helm registries ankra helm credentials # List Helm registry credentials
bashankra cluster hetzner create # Create a Hetzner-backed cluster ankra cluster hetzner scale # Scale the cluster node count ankra cluster hetzner upgrade # Upgrade Kubernetes version ankra cluster hetzner workers # Manage worker node groups ankra cluster hetzner node-group # Node group management
bashankra charts list # List available charts ankra charts search <term> # Search charts ankra charts info <chart> # Detailed chart information
bashankra credentials list # List stored credentials ankra credentials get <name> # Retrieve a credential ankra credentials validate <name> # Validate a credential ankra credentials delete <name> # Delete a credential ankra credentials hetzner --name <n> --token <t> # Store Hetzner API token ankra credentials ovh ... # Store OVH credentials ankra credentials upcloud ... # Store UpCloud credentials
ANKRA_API_TOKEN env varankra credentials validate <name>bashankra tokens list # List API tokens ankra tokens create --name <name> # Create a new API token ankra tokens revoke <id> # Revoke a token (keeps record) ankra tokens delete <id> # Permanently delete a token
bashankra chat # Start AI-powered troubleshooting session
Use ankra chat when facing ambiguous errors — it provides contextual guidance.
| Flag | Env Var | Description | |------|---------|-------------| | --base-url <url> | ANKRA_BASE_URL | Override API base URL | | --token <token> | ANKRA_API_TOKEN | API authentication token | | --config <path> | — | Path to config file (default ~/.ankra.yaml) |
ANKRA_API_TOKEN in CI pipelines; never hard-code tokens--token for one-off scripts where env var injection is not possibleankra cluster select before cluster-scoped commands in scriptsjq for structured processing where JSON output is availableankra cluster operations list in CI to poll for async operation completionset -euo pipefail to shell scripts using the Ankra CLIbashankra login ankra org switch my-org ankra cluster hetzner create ankra cluster select my-new-cluster ankra cluster agent status ankra cluster addons available ankra cluster addons update some-addon ankra cluster reconcile
bashankra cluster select my-cluster ankra charts search my-app ankra charts info my-app ankra cluster stacks create my-stack ankra cluster manifests list
bashankra tokens create --name ci-token-new # Update CI secret with new token ankra tokens revoke <old-token-id> ankra credentials validate my-cloud-cred
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 12,004 | 8,159 | -32% | 1 | 1 | 0% | 2,420 | 3,381 | +40% | 0 | 0 | — |
case-02 | fail→pass | 17,840 | 4,021 | -77% | 1 | 1 | 0% | 1,087 | 2,439 | +124% | 0 | 0 | — |
case-03 | fail→pass | 13,759 | 6,728 | -51% | 1 | 1 | 0% | 3,100 | 2,949 | -5% | 0 | 0 | — |
case-04 | pass→pass | 4,086 | 3,808 | -7% | 1 | 1 | 0% | 833 | 2,326 | +179% | 0 | 0 | — |
case-05 | pass→pass | 7,023 | 7,465 | +6% | 1 | 1 | 0% | 1,547 | 3,215 | +108% | 0 | 0 | — |
case-06 | pass→pass | 8,144 | 5,696 | -30% | 1 | 1 | 0% | 1,529 | 2,732 | +79% | 0 | 0 | — |
case-07 | fail→pass | 6,618 | 3,880 | -41% | 1 | 1 | 0% | 1,310 | 2,314 | +77% | 0 | 0 | — |
case-08 | fail→pass | 6,108 | 2,556 | -58% | 1 | 1 | 0% | 1,171 | 2,132 | +82% | 0 | 0 | — |
case-09 | fail→pass | 6,025 | 2,450 | -59% | 1 | 1 | 0% | 1,140 | 2,079 | +82% | 0 | 0 | — |
case-15 | fail→pass | 4,695 | 1,953 | -58% | 1 | 1 | 0% | 856 | 1,981 | +131% | 0 | 0 | — |
case-10 | fail→pass | 9,261 | 4,397 | -53% | 1 | 1 | 0% | 1,687 | 2,489 | +48% | 0 | 0 | — |
case-11 | fail→pass | 7,501 | 3,425 | -54% | 1 | 1 | 0% | 1,580 | 2,302 | +46% | 0 | 0 | — |
case-12 | fail→pass | 7,210 | 2,757 | -62% | 1 | 1 | 0% | 1,439 | 2,138 | +49% | 0 | 0 | — |
case-13 | fail→pass | 16,246 | 6,828 | -58% | 1 | 1 | 0% | 2,986 | 2,857 | -4% | 0 | 0 | — |
case-14 | fail→pass | 7,597 | 2,464 | -68% | 1 | 1 | 0% | 1,034 | 2,134 | +106% | 0 | 0 | — |
case-16 | fail→pass | 6,180 | 1,830 | -70% | 1 | 1 | 0% | 1,068 | 1,878 | +76% | 0 | 0 | — |
case-17 | fail→pass | 6,478 | 3,538 | -45% | 1 | 1 | 0% | 1,253 | 2,273 | +81% | 0 | 0 | — |
case-18 | fail→pass | 11,172 | 3,540 | -68% | 1 | 1 | 0% | 1,596 | 2,122 | +33% | 0 | 0 | — |
case-19 | fail→pass | 11,461 | 3,596 | -69% | 1 | 1 | 0% | 2,256 | 2,326 | +3% | 0 | 0 | — |
case-20 | fail→pass | 9,680 | 4,530 | -53% | 1 | 1 | 0% | 2,024 | 2,556 | +26% | 0 | 0 | — |
case-21 | fail→pass | 5,733 | 2,513 | -56% | 1 | 1 | 0% | 963 | 2,067 | +115% | 0 | 0 | — |
case-22 | fail→pass | 6,231 | 2,600 | -58% | 1 | 1 | 0% | 1,199 | 2,114 | +76% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +82 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.