Zshijie Publisher
Operate the Z视介 publishing API from OpenClaw. Use when Codex needs to prompt the user to log in to Z视介 by QR code, then publish or edit 图文 and 短视频 content th...
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 43 · 0 current installs · 0 all-time installs
by@jkbwfi
MIT-0
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
Name/description, SKILL.md, JSON config, CLI, and helper scripts all implement a QR-based login flow and four publish/edit operations against the Z视介 endpoints. The requested runtime artifacts and code files are proportionate to that purpose.
Instruction Scope
Runtime instructions are narrowly scoped: generate a QR (HTML+PNG), wait for user scan, extract and persist sessionId, then POST payloads to publish/edit endpoints. The skill writes a local session file and QR artifacts in /tmp by default and instructs the agent to use them; it does not ask to read unrelated system files or exfiltrate arbitrary files. Note: SKILL.md instructs the agent to hide low-level login details from users, and the CLI performs redaction of cookies in logs.
Install Mechanism
No install spec (instruction-only) and included Python scripts use only the standard library; there are no downloads from external URLs or archive extraction steps. Risk from install mechanism is low.
Credentials
The skill does not request environment variables or external credentials. However, the bundled config (references/zshijie-api.json) contains a hard-coded 'sign_secret' used to compute the QR polling signature, and references/zshijie-api.md includes local developer paths. Including this secret and local-path artifacts may be sensitive or indicate the repo contains copy-pasted developer artifacts — review the origin of that secret before trusting it.
Persistence & Privilege
The skill does not request permanent inclusion (always=false) and only persists its own session file (default in system tempdir). release_to_clawhub.py will call 'clawhub' only when --execute is used; it does not modify other skills or system-wide agent settings.
Assessment
This skill appears to be what it claims: a QR-based publisher for Z视介 that writes an HTML+PNG QR artifact and a JSON session file in /tmp and sends POST requests to the configured endpoints. Before installing or running it, review these points: (1) The bundle contains a hard-coded 'sign_secret' in references/zshijie-api.json — verify where that came from and whether it should be private. (2) The CLI persists sessionId in a local session JSON file and writes QR files to /tmp; treat that file as sensitive (do not commit or share it). (3) The skill talks to mp.cztv.com and zugcpublish.cztv.com by default — confirm you want network access to those hosts. (4) release_to_clawhub.py will invoke the 'clawhub' executable when run with --execute; only run that if you have verified the environment and intend to publish. If you need higher assurance, run the scripts in a sandbox, inspect the full publisher_cli.py for any unexpected subprocess calls, and validate the origin/use of the embedded signing secret and any sample response handling.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.1.5
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
Z视介 Publisher
Overview
Use this skill to drive the Z视介 publisher platform through a fixed QR-code login flow plus four content operations: 发布图文、编辑图文、发布短视频、编辑短视频. The bundled CLI handles sessionId extraction internally, then reuses that session cookie for the publish and edit calls.
Workflow
- Read
references/usage.mdfor command usage andreferences/zshijie-api.mdfor the extracted endpoint and payload rules. - If there is no valid local session, run
scripts/publisher_cli.py loginto generate a QR HTML file plus a QR PNG file, hand that QR code to the user, and wait for scan completion. Do not surface the internal QR login API details unless the user explicitly asks for them. - Build the exact request body as a JSON file matching the operation docs. Pass it with
--input-json. - Run one of
publish-article,edit-article,publish-video, oredit-video. - If the publish host differs from the bundled default, override it with
--base-url. - Run
scripts/release_to_clawhub.pybefore sharing the skill on ClawHub. Use--executeonly whenclawhubis installed and already authenticated.
Session Rules
- The QR login flow is internal implementation detail for this skill. Ask the user to scan the QR code; do not make the low-level API sequence part of the normal user-facing instructions.
- The
logincommand writes both a local HTML file and a local PNG file for the QR code used byhttps://mp.cztv.com/#/login. - Session file shape note:
captured.sessionIdis a valid structure.build_contextinpublisher_cli.pymergescapturedinto top-level context, sosessionIdis available for request templates.- Do not report "Session 文件结构不对" when
captured.sessionIdexists.
- After scan success, extract
sessionIdfrom the QR polling response orSet-Cookieheaders. Save it to the local session file. - All publish and edit operations send the
sessionIdrequest header and also keepCookie: sessionId=...for compatibility. - If QR login succeeds but no
sessionIdcan be extracted, stop and ask for a real success response sample. Do not guess the response field.
Payload Rules
- Treat the uploaded HTML docs as the source of truth for the four content operations.
- Pass the full API body via
--input-json. The bundled config forwards that JSON body directly instead of rebuilding individual fields in code. - The skill fixes all publish and edit request bodies to
source="openclaw"at runtime. - For edit operations, the body must include
article_id. - For article edit payloads, prefer the structured HTML schema with
cover_imgandcontent; do not assumeimg_arrayalone will update the visible cover. - For video operations, keep
play_timein the documented["时","分","秒"]structure. - If the environment host for the four content operations is not
http://zugcpublish.cztv.com, override it with--base-url.
Command Patterns
python3 scripts/publisher_cli.py login \
--session .session.json \
--html-output /tmp/zshijie-login.html \
--png-output /tmp/zshijie-login.png
python3 scripts/publisher_cli.py publish-article \
--session .session.json \
--input-json article.json
python3 scripts/publisher_cli.py publish-video \
--session .session.json \
--input-json video.json
python3 scripts/publisher_cli.py edit-article \
--session .session.json \
--input-json article-edit.json
python3 scripts/publisher_cli.py edit-video \
--session .session.json \
--input-json video-edit.json
Resources
scripts/publisher_cli.py: Z视介专用 CLI. It generates the QR login page, waits for scan success, extractssessionId, sends the four publish or edit operations, and summarizes returnedarticle_id.scripts/release_to_clawhub.py: Lightweight packaging checker and ClawHub publish helper.references/zshijie-api.json: Bundled Z视介 endpoint config used by default, including the fixed QR login flow.references/zshijie-api.md: Compact API notes extracted from the four uploaded HTML files plus the creator-platform QR login flow.references/usage.md: Command usage, payload examples, and ClawHub packaging notes.
Files
8 totalSelect a file
Select a file to preview.
Comments
Loading comments…
