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-clientIs 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-mcplocally; 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
| Situation | Skill |
|---|---|
| No binary / first setup | zeronews-install-client |
| Probe only, no download | zeronews-install-client probe branch — no upgrade |
| Install task + binary exists | zeronews-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 reset | zeronews-install-client after zeronews-reset-client |
Prerequisites
zeronews --workdir {WORKDIR} status --json→login: truewhen usingdevice download-resolve/device upgrade- Resolve target
client_id:- This machine: from
status --jsonor inspect - Another device:
show devices --json→ numbered picker when id unknown
- This machine: from
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_urlif 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_urlper platform (see UPGRADE-ON-INSTALL.md) — noservice restart; client self-handles. Thenreloadorstartonly if not running.
Re-run download-resolve after success until latest or report failure.
Step 3: Verify
zeronews-inspect-clientorstatus --jsonforversionandrunning- 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
- Install-triggered auto upgrade: UPGRADE-ON-INSTALL.md
- ACCOUNT-CLI-JSON.md
- MCP-SKILLS-PARITY.md
How can the creator link this skill?
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>