zeronews-manage-platform-domains
Add a ZeroNews platform subdomain, list account domains and ports, delete ports or empty domains. Use when the user wants a random subdomain, a new zeronews.cc-style prefix, to clean up domains in the console, or delete a port mapping—not for exposing a local HTTP port (use expose-service).
How do I install this agent skill?
npx skills add https://github.com/sixtea/zeronews-skills --skill zeronews-manage-platform-domainsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides instructions for managing ZeroNews platform domains and ports using the zeronews CLI. It implements safety protocols including input validation for subdomains and a mandatory two-step confirmation process for all deletion operations.
- Socketpass
No alerts
- Snykfail
Risk: CRITICAL · 2 issues
What does this agent skill do?
Manage Platform Domains
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.
Account-level domains and ports (console-equivalent), via CLI --json.
MCP mapping: list_account_domains, add_domain, delete_domain, delete_port.
Reference: ACCOUNT-CLI-JSON.md · CLI-JSON-PATHS.md · DELETE-CONFIRMATION.md · subdomain rules: SUBDOMAIN-PREFIX.md
Prerequisites
login: trueon{WORKDIR}— elsezeronews-configure-client- Mutations need user confirmation for delete port and delete domain
Workflow
Step 1: List domains (read-only)
zeronews --workdir {WORKDIR} show domains --json
Optional pagination (same as MCP list_account_domains):
--workspace-id {ID}--page N--size N
Parse list rows per CLI-JSON-PATHS.md: domain items[].id, nested items[].ports[].id for delete port.
Show numbered list: domain name, port count, each port’s public target if present.
Step 2: Add platform domain
When the user wants a new subdomain but did not give a prefix:
- Do not invent a prefix silently.
- Offer four random 8-character prefixes (
a-z,0-9) plus let them type a custom prefix — see SUBDOMAIN-PREFIX.md. - After they choose, validate
^[a-z0-9]{6,12}$.
zeronews --workdir {WORKDIR} add domain --subdomain {PREFIX} --json
Optional: --workspace-id per CLI help.
On errors such as no entitlement or no available domain, report CLI message; do not retry with random prefixes without user consent.
Step 3: Delete port
When port_id is unknown, list domains and nested ports (Step 1), numbered picker.
Then follow DELETE-CONFIRMATION.md: separate explicit confirm, then:
zeronews --workdir {WORKDIR} delete port {PORT_ID} --json
Step 4: Delete domain
Only when the domain has no ports left (delete ports first).
After picker + explicit confirmation (DELETE-CONFIRMATION), run:
zeronews --workdir {WORKDIR} delete domain {DOMAIN_ID} --json
If CLI says ports remain, list them and hand off to Step 3.
Output
Return created subdomain/domain ids from --json, or deletion result fields.
Safety rules
- every delete port / delete domain: picker then second-step confirm — DELETE-CONFIRMATION.md
- never pass placeholder tokens like
__custom_input__to CLI - adding a domain does not by itself map a local port — user may still need
zeronews-expose-service
Handoff
- map local app to public URL →
zeronews-expose-service - account tunnels list/delete →
zeronews-manage-account-tunnels
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-manage-platform-domains">View zeronews-manage-platform-domains on skillZs</a>