zeronews-share-files
Share a local directory through ZeroNews with `file_share` on `zeronews add`. Use when asked to publish a folder or remote file browsing—not for mapping a generic HTTP port (use expose-service). Requires login and a running client before `add`.
How do I install this agent skill?
npx skills add https://github.com/sixtea/zeronews-skills --skill zeronews-share-filesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates sharing local directories over the internet using the ZeroNews CLI tool. It includes mandatory security gates, requiring authentication and password protection for all shared folders. While it requests running outside of a sandbox to function, this is necessary for its core purpose of network tunneling and file access.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Share Files
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.
Feature-focused wrapper: zeronews add … --feature=file_share.
MCP mapping: add_tunnel with tunnel_kind=lfs / file_share + root_path + admin_password + optional bw.
Workflow
Step 0: Gate (always first)
Same as zeronews-expose-service:
login: trueand client running (preferzeronews-inspect-client).- Not configured →
zeronews-configure-client. - Not running →
zeronews-manage-client-serviceorzeronews start. login_pending→ finish login beforeadd.
Do not ask for root_path until the gate passes.
Step 1: Collect share settings
Ask only what is still unknown:
- absolute local directory (
root_path) - admin_password (≥ 8 characters; required on create)
- optional public domain, or server allocation
- optional bandwidth
--bw=NMbps (same as expose; default often 1 Mbps if omitted)
Do not ask for a local app port for LFS; file_share does not use the expose port-discovery flow.
Step 2: Create the tunnel
zeronews --workdir {WORKDIR} add https --feature=file_share --feature-config '{...}'
Add --domain=… and --bw=… only when the user asked.
Minimum feature config:
{
"file_share": {
"root_path": "/absolute/path",
"admin_password": "<at least 8 characters>"
}
}
See ../zeronews-expose-service/references/FEATURE-CONFIGS.md for supported shapes.
If an admin password is set but the client has not been upgraded, the public URL may still serve anonymous read-only. Do not promise password-gated login on an old client.
After accept, do not reload/restart unless the user asked for repair; wait for the endpoint.
Safety rules
- absolute
root_pathonly - never omit
admin_passwordon create - do not use
--feature=file_sharewithout the JSON block above - gate before
add(Step 0)
Handoff
- HTTP port / generic tunnel →
zeronews-expose-service - webhook →
zeronews-expose-webhook
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-share-files">View zeronews-share-files on skillZs</a>