AgentSkillsCN

extend-ephemeral

延长临时命名空间的保留期限。适用于测试耗时较长、需要更多调试时间,或演示/测试环节持续过长时使用。

SKILL.md
--- frontmatter
name: extend-ephemeral
description: Extend the duration of an ephemeral namespace reservation. Use when tests are taking longer, need more debug time, or demo/testing session running long.

Extend Ephemeral Namespace

Extend reservation duration for an existing ephemeral namespace.

Inputs

InputTypeDefaultPurpose
namespacestring-Namespace to extend (lists yours if not specified)
durationstring1hTime to add (e.g., 1h, 2h, 4h)
list_onlyboolfalseJust list namespaces without extending

Workflow

1. Load Persona

  • persona_load("devops")

2. List Namespaces

  • bonfire_namespace_list(mine=true) — list YOUR ephemeral namespaces only
  • Parse output for ephemeral-xxxxx pattern

3. Select Namespace

  • If namespace provided: use it
  • If only one namespace: use it
  • If multiple: ask user to specify

4. Get Details (if not list_only)

  • bonfire_namespace_describe(namespace="{{ selected_ns }}") — extract expiry, owner

5. Extend

  • bonfire_namespace_extend(namespace="{{ selected_ns }}", duration="{{ duration }}")

6. Error Recovery

  • "no route to host" → vpn_connect(), kube_login("ephemeral")
  • "unauthorized" → kube_login("ephemeral")
  • "namespace not found" → namespace expired; reserve new with bonfire_namespace_reserve()

7. Memory

  • memory_session_log("Extended ephemeral namespace", "{{ namespace }} + {{ duration }}")

Output

Report previous expiry, new expiry, and commands for release/describe when done.