skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
sixtea/zeronews-skills130 installs

zeronews-manage-account-tunnels

List, delete, enable, disable, or change bandwidth (standard) on account tunnels via show tunnels and tunnel <id> enable|disable|set-bw. Use for account-wide tunnel ops—not local endpoints only (use inspect-client).

How do I install this agent skill?

npx skills add https://github.com/sixtea/zeronews-skills --skill zeronews-manage-account-tunnels
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides management capabilities for account-wide network tunnels using the zeronews CLI. It includes strong safety guidelines such as mandatory user confirmation for deletions. However, it requires execution outside of sandbox environments and processes external account data, which presents a surface for indirect prompt injection.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Manage Account Tunnels

Local execution (mandatory)

All zeronews CLI, install scripts, Docker, browser login, and local port discovery must run on the user's computer, not in an Agent sandbox or remote-only workspace.

  • Shell from the IDE: disable sandbox (full local permissions); 不要沙箱中执行,都在用户本地电脑中执行。
  • With MCP: run zeronews-mcp locally; use MCP tools instead of sandbox CLI against workdir.
  • If the agent cannot run on the user's machine, say so—do not fake install/login/expose.

Full rules: LOCAL-EXECUTION.md.

Operate account-wide tunnels via the control plane CLI. This is not the same as local /api/v1/endpoints — see ACCOUNT-CLI-JSON.md and zeronews-inspect-client references.

MCP mapping: list_account_tunnels, delete_tunnel, enable_tunnel, disable_tunnel, set_tunnel_bandwidth (+ picker / user_confirmed delete flow).

Prerequisites

  1. zeronews --workdir {WORKDIR} status --json → login: true (hand off to zeronews-configure-client if not).
  2. Mutations: zeronews --workdir {WORKDIR} … --json

Shared command reference: ACCOUNT-CLI-JSON.md · CLI-JSON-PATHS.md · DELETE-CONFIRMATION.md · label hints: PICKER-LABELS.md

Workflow

Step 1: Gate

If not logged in, stop and configure first. Do not delete or toggle tunnels without a valid session.

Step 2: List (read-only)

zeronews --workdir {WORKDIR} show tunnels --json

Optional pagination (match CLI help / MCP):

  • --workspace-id {ID}
  • --page N
  • --size N

Parse list rows per CLI-JSON-PATHS.md: items[] first, else page.items[]. Each row needs id for mutations.

Present results as a numbered list. Each line should help the user recognize the tunnel:

  • public URL / subdomain
  • type / feature (e.g. HTTPS, LFS)
  • enabled vs disabled
  • optional local ip:port summary
  • short id token

If total exceeds one page, say so and offer another --page or ask the user for an id.

Step 3: Pick target (when id unknown)

When the user did not give a tunnel id:

  1. Run list (Step 2).
  2. Filter to what they described (domain, disabled only, etc.).
  3. Show numbered choices; user replies with 序号 or id.
  4. Do not pick for them.

Selecting an option is only Step 1 of delete — see DELETE-CONFIRMATION.md.

Step 4: Delete — explicit confirmation (mandatory)

Before delete tunnel only (enable/disable use Step 4b):

  1. Restate id + public label in plain language.
  2. Ask whether to 确认删除 (separate question — not the same message as the picker).
  3. Run CLI only after explicit yes / 确认删除 / 是,删除.

Never delete immediately after the user picks a list number. Never skip confirmation because the user said «删 xxx」without confirming the resolved id.

Step 4b: Enable / disable (not delete)

Before tunnel <id> disable when impact is unclear, confirm with the user. tunnel <id> enable or tunnel <id> set-bw may proceed when intent and Mbps are clear. set-bw is standard tunnels only (not LFS / cloud_native).

Step 5: Execute

Delete

zeronews --workdir {WORKDIR} delete tunnel {TUNNEL_ID} --json

Enable / disable

zeronews --workdir {WORKDIR} tunnel {TUNNEL_ID} enable --json
zeronews --workdir {WORKDIR} tunnel {TUNNEL_ID} disable --json
zeronews --workdir {WORKDIR} tunnel {TUNNEL_ID} set-bw {MBPS} --json

Deleting removes the tunnel for the account; it may not be bound to this device. Caller must be logged in as the owning account (same rules as MCP delete_tunnel).

Output

Return CLI JSON summary: ok/error, tunnel id, and any message fields from --json stdout.

Safety rules

  • confirm before every delete (picker ≠ confirm) — DELETE-CONFIRMATION.md
  • prefer disable over delete when the user only asked to «停掉» or «暂时关闭»
  • one mutating command at a time
  • do not use show tunnels to discover arbitrary local app ports (use expose-service + LOCAL-LISTENERS)

Handoff

  • create new local mapping → zeronews-expose-service / zeronews-share-files / zeronews-expose-webhook
  • «本机现在在服务什么」→ zeronews-inspect-client (endpoints)

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/sixtea/zeronews-skills/zeronews-manage-account-tunnels">View zeronews-manage-account-tunnels on skillZs</a>