<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
ambray/signalman/signalman-terminate-cloud-vm
──Details
PublishedOctober 23, 2026 at 10:31 AM
Content Hashsha256:a7ab20ee846a0bd0...
Git SHAc00ef45a2e70
──Files
Files (1 file, 3.4 KB)
SKILL.md3.4 KBactive
SKILL.md · 86 lines · 3.4 KB

version: "1.0.0" name: signalman-terminate-cloud-vm description: 'Terminate an ephemeral cloud VM previously provisioned by Signalman. Idempotent — terminating an already-terminated handle returns success, not an error. Trigger on "kill that EC2 box", "tear down the Azure VM", "destroy <handle>", or any "clean up the test VM" variant. Refuses untagged instances (only Signalman-managed handles can be terminated through this path). For bulk past-TTL cleanup, use signalman-reap-cloud-instances instead. CLI parity: signalman cloud terminate.' allowed-tools: mcp__signalman__signalman_cloud_terminate, mcp__signalman__signalman_cloud_status, Bash


Terminate an ephemeral cloud VM

This skill drives signalman_cloud_terminate, the MCP entry point onto CloudBackend.terminateInstance. The call is idempotent by contract: terminating a stale or already-terminated handle returns success. This is intentional — the cost-reaper depends on it so repeat sweeps don't error on race-deletions.

What you need from the user

The full handle returned by signalman_cloud_provision:

  • provider — aws or azure
  • id — vendor instance id (i-0abc..., Azure resource id, ...)
  • name — friendly name the VM was provisioned under
  • region — provider-specific region

If the user only knows the friendly name, list instances via signalman_cloud_list filtered by tag and pick the matching handle before calling terminate.

How to invoke

jsonc
// signalman_cloud_terminate
{
"provider": "aws",
"id": "i-0abc1234def567890",
"name": "scenario-checkout-flow",
"region": "us-east-1"
}

Expected response envelope

Success (including the idempotent case):

jsonc
{ "ok": true, "value": null }

Error envelope (isError: true):

jsonc
{ "ok": false, "error": { "code": "terminate_failed", "message": "..." } }

Error codes you may see

codeWhat happenedWhat to tell the user
terminate_failedVendor rejected the terminate call (not the same as "already gone"). Usually a permissions or vendor-side state error.Surface the message; the operator must investigate.
auth_failedVendor credentials missing or rejected.Operator fixes env / IAM.
unsupported_providerThe provider isn't registered on this host.Use signalman_cloud_backends to verify wiring.

Note: instance_not_found is not an error here by design — the backend swallows it as a successful idempotent terminate.

What NOT to do

  • Never call terminate in a tight loop "to make sure". The

contract guarantees idempotency; spamming the vendor is wasteful.

  • Never terminate a handle the user didn't authorise just because

it appeared in signalman_cloud_list. The cost-reaper is the designated automation for past-TTL cleanup; an interactive agent should only terminate what the operator named.

  • Never retry on terminate_failed without surfacing the cause —

it usually indicates a permissions drift or a vendor-side state the operator should know about.

Follow-up suggestions

  • After success, optionally call signalman_cloud_status once with

the handle — you should see state: "terminated" (or "unknown" if the vendor garbage-collected the record).

  • If the operator is tearing down a whole scenario, also consider

whether any HCL stacks were applied — those need signalman_stack_destroy, not VM terminate.

All versions