terrakube-ops

terrakube-ops is a skill for Claude Code from dryvist/claude-code-plugins. It costs 66 tokens per session (1,298 once invoked), scanned A, original, Apache-2.0.

A guide for operating self-hosted Terrakube, a service that runs OpenTofu or Terraform plans and applies on a remote executor. It covers login, state inspection, workspace locking, offline mirrors, and token rotation.

In plain words
What is it for?
Use it to log in, run and observe remote plans or applies, inspect state and outputs, recover workspace locks, and handle common execution issues.
Why use it?
It explains where infrastructure commands run and helps avoid mistakes such as applying only selected resources or getting stuck on a workspace lock.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the homelab-ops plugin — 9 skills shipped together

Good fit Use it to log in, run and observe remote plans or applies, inspect state and outputs, recover workspace locks, and handle common execution issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dryvist/claude-code-plugins/terrakube-ops
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dryvist/claude-code-plugins --skill terrakube-ops
Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins

Made for: Claude Code.

Or install homelab-ops, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terrakube-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/terrakube-ops/github.svg)](https://agentmods.dev/skills/dryvist/claude-code-plugins/terrakube-ops)
Your own site
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/terrakube-ops"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/terrakube-ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terrakube-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/dryvist/claude-code-plugins/terrakube-ops"><img src="https://agentmods.dev/badge/skills/dryvist/claude-code-plugins/terrakube-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01298
Opus 5.5 $0.00026 $0.00519
Sonnet 5.5 $0.00013 $0.00260
Haiku 4.5 $0.00007 $0.00130

Measured 1mo ago against content hash caedb0ddaecc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terrakube-ops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

homelab-ops/skills/terrakube-ops/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terrakube operations

Terrakube is a self-hosted remote-execution platform for OpenTofu/Terraform — plans and applies run on its own executor, not on the operator's machine or in CI. This skill is the generic operating model; your own workspace names, hostnames, and credential source stay in your own inventory.

Canonical workflow

tofu login <terrakube-hostname>   # once per machine — opens a browser SSO flow
tofu plan                         # runs remotely; CLI streams the live plan log
tofu apply                        # same remote workspace, same run
tofu state list                   # inspect state / outputs afterward
tofu output

tofu plan/apply from the CLI and starting a run from the Terrakube web UI both drive the same remote executor and the same job log — pick whichever is convenient; they're interchangeable.

Local tofu init -backend=false + tofu validate catches syntax errors without contacting any provider — run that first, it's free and instant compared to a remote plan.

Targeted applies

Targeted applies (-target=...) are allowed through the gated path:

  • Run them through the Terrakube Plan and apply (targeted) template, with the targets passed as the job's targetAddrs (or TARGET_ADDRS through a gated converge script). Never run a hand-built CLI -target apply that skips the approval gate.
  • The plan must show zero destroys and zero replaces unless the operator approved those exact resources.
  • A targeted run leaves everything outside its targets unreconciled. Run a full plan afterward to see what remains.

For state surgery, prefer moved/removed blocks over -target or manual state edits.

Workspace locking and recovery

Terrakube owns one run queue and one lock per workspace — a second run simply queues behind the active one; independent workspaces don't share a lock.

  • Cancel a genuinely stuck run from the workspace UI, not by force-unlocking blind.
  • Confirm the executor has actually stopped before force-cancelling or unlocking — cancelling a run that's still writing state is how corruption happens.
  • Prefer fixing forward (revert the config change in git, plan/apply again) over restoring an older state version. When state genuinely is corrupted, preserve the current state version before restoring an older one — you may need to diff them later.

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +7 lines · -2 tokens per session caedb0ddaecc
  2. 2mo ago Changed · -28 tokens per session 2fb6ab30b205
  3. 3mo ago First seen · 118 lines · 96 tokens per session scan A f4040833decb

Subscribe to this mod's changes

terrakube-ops is a skill published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 18d ago), licensed Apache-2.0. It adds 66 tokens to every session and 1,298 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

terrakube-ops compared with skills from other repositories

terrakube-ops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terrakube-opsdryvist/claude-code-pluginsSkill318d agoApache-2.0A66Claude Code
event-driven-architecturetravisjneuman/.claudeSkill116yesterdayMITA50Claude Code
agent-cloud-architecttravisjneuman/.claudeSkill116yesterdayMITA75Claude Code
devops-cloudtravisjneuman/.claudeSkill116yesterdayMITA38Claude Code
edge-computingtravisjneuman/.claudeSkill116yesterdayMITA63Claude Code
cloudflare-ops0xDarkMatter/claude-modsSkill8610d agoMITA100Claude Code
hono-ops0xDarkMatter/claude-modsSkill8610d agoMITA61Claude Code