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-upgrade-client

Upgrade ZeroNews when the user asks to update the client (device download-resolve + device upgrade, or binary from download_url). Install tasks use zeronews-install-client UPGRADE-ON-INSTALL (platform download/latest only, no client_id)—not this skill unless the user explicitly wants console-style device upgrade.

How do I install this agent skill?

npx skills add https://github.com/sixtea/zeronews-skills --skill zeronews-upgrade-client
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubwarn

    The skill facilitates client upgrades for the ZeroNews platform but introduces security risks by instructing the agent to disable security sandboxes and explicitly forbidding user confirmation before performing system-level binary upgrades and replacements.

  • Socketpass

    No alerts

  • Snykfail

    Risk: CRITICAL · 2 issues

What does this agent skill do?

Upgrade Client

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.

Aligns with MCP upgrade_client and install_client upgrade precheck: compare version, skip if latest, otherwise upgrade immediately.

MCP mapping: upgrade_client (optional client_id picker for online devices).

Install vs upgrade

SituationSkill
No binary / first setupzeronews-install-client
Probe only, no downloadzeronews-install-client probe branch — no upgrade
Install task + binary existszeronews-install-client runs UPGRADE-ON-INSTALL.md — platform latest + binary replace only (no client_id); not this skill's device download-resolve chain
User only says «升级»this skill
Reinstall after resetzeronews-install-client after zeronews-reset-client

Prerequisites

  • zeronews --workdir {WORKDIR} status --json → login: true when using device download-resolve / device upgrade
  • Resolve target client_id:
    • This machine: from status --json or inspect
    • Another device: show devices --json → numbered picker when id unknown

Hand off to zeronews-manage-account-clients if the user only wanted to list devices.

Workflow

Step 1: Precheck

zeronews --workdir {WORKDIR} device download-resolve {CLIENT_ID} --json
  • is_latest → report current version; stop (no upgrade commands).
  • Upgrade available → note current_version, target_version, download_url if present.
  • Precheck fails → report error; for install-triggered flow, fall back to steps in UPGRADE-ON-INSTALL (official binary / install script).

Step 2: Upgrade (no confirmation)

Do not ask «是否要升级» / «confirm upgrade» — proceed after precheck shows not latest.

Briefly inform the user what will run (current → target; client may restart). Then:

zeronews --workdir {WORKDIR} device upgrade {CLIENT_ID} --json

If remote upgrade fails or target offline:

  • Replace binary from precheck download_url per platform (see UPGRADE-ON-INSTALL.md) — no service restart; client self-handles. Then reload or start only if not running.

Re-run download-resolve after success until latest or report failure.

Step 3: Verify

  • zeronews-inspect-client or status --json for version and running
  • Install-path upgrade: do not call manage-client-service restart — see UPGRADE-ON-INSTALL.md.

Output

Return: client_id, versions before/after, commands run, verification result.

Safety rules

  • no upgrade confirmation prompts (picker for which device is OK when id unknown)
  • do not upgrade without a resolved target id (except install path using local machine id from status)
  • one upgrade chain at a time

References

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-upgrade-client">View zeronews-upgrade-client on skillZs</a>