hsk-cli
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hsk-cli" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-24f59ebb9fefa5b09910c5cc7cb036e0a9d84cb9573c0ac5bc45e70461589c2d. Verify the upstream source and version against https://skillhub.cn/skills/user_b22a52ba/hsk-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Peanut Hull HSK-CLI public release tool: a command-line tool for publishing HSK-related content to the public network.
Introduction source: third_party · user_b22a52ba · 2.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: hsk-cli
description: 花生壳HSK-CLI公网发布工具。一句话将本地文件/网页发布为公网链接。两种模式:(1) 静态网站托管 - HTML报告/周报/网页一键分享到公网,关机后仍可访问24小时
(2) 内网端口映射 - 本地HTTP服务转发到公网。支持单文件、目录、前端项目构建部署。适用于:用户要求"发布到公网""生成公网链接""分享网页""内网穿透""暴露本地服务""HSK""花生壳""wx-gzh-link"。触发关键词:公网链接、发布到公网、内网穿透、端口映射、文件托管、HSK-CLI、花生壳、分享网页、wx-gzh-link、暴露端口、外网访问。
version: 2.0.0
tags:
- hsk
slug: hsk-cli
displayName: Hsk Cli
summary: 花生壳HSK-CLI公网发布工具HSK-CLI — 零配置公网发布
已安装 @aweray/hsk-cli v0.4.4,全局可用 hsk-cli 命令。
快速判断
| 用户意图 | 命令 |
|---|---|
| 分享文件/网页到公网 | hsk-cli host <路径> --format json |
| 部署前端项目 | hsk-cli deploy --format json |
| 本地服务转公网 | hsk-cli tunnel --ip 127.0.0.1 --port <PORT> --format json |
| 微信文章转公网链接 | 见下方「微信文章发布流程」 |
微信文章 → 公网链接(wx-gzh-link 模式)
将微信公众号文章保存为本地HTML后用HSK-CLI发布:
# 1. 用浏览器打开微信文章并保存完整HTML(含图片等资源)
# 2. 发布到公网
hsk-cli host ./saved-article.html --format json
对于多篇微信文章或网页合集:
# 创建包含多篇文章的HTML目录后
hsk-cli host ./articles-dir --entry-file index.html --format json
文件托管(首选)
hsk-cli host <路径> --format json
- 单文件或目录(目录自动打包zip)
- 目录无 index.html 时须指定
--entry-file - 更新已有资源:
--resource-id <id> - 复用检测:
--reuse
前端项目部署
hsk-cli deploy --format json # 自动 npm run build → 上传
hsk-cli deploy --no-build --build-dir dist # 跳过构建直接上传
内网穿透(动态服务)
hsk-cli tunnel --ip 127.0.0.1 --port 3000 --format json # 前台
hsk-cli tunnel --ip 127.0.0.1 --port 3000 --detach # 后台
hsk-cli tunnel list # 查看后台隧道
hsk-cli tunnel stop --all # 停止全部
状态检测
hsk-cli status --format json
valid: true→ 链接仍有效valid: false→ 重新host --reuse或tunnel --reuse
错误处理
| 现象 | 应对 |
|---|---|
| 客户端未下载 | hsk-cli download |
| 上传失败 | 检查网络/文件大小 |
| 端口无效 | 端口范围 1-65535 |
| macOS网络权限 | 系统设置→隐私→本地网络 |
沙盒中 --open 无响应 |
跳过 --open,直接告诉用户链接 |
沙盒注意事项
- 本灵犀环境为沙盒,不要用
--open(浏览器打不开) - 不要用
--detach(进程会被kill) - 隧道不通时改用
host文件托管
其他命令
| 命令 | 用途 |
|---|---|
hsk-cli download |
预下载客户端二进制 |
hsk-cli update |
更新客户端 |
hsk-cli platform |
检测平台信息 |
hsk-cli --version |
查看版本 |
Current listing version
2.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供花生壳HSK-CLI公网发布工具,支持静态网站托管、内网端口映射、前端项目部署等多种实用功能
- 解决用户'发布到公网''生成公网链接''内网穿透'等明确需求,属于高价值/高频刚需场景
Highlights
- 触发关键词覆盖全面,包括公网链接、发布到公网、内网穿透、端口映射、文件托管、HSK-CLI、花生壳、分享网页、wx-gzh-link、暴露端口、外网访问等
- 边界清晰,能有效区分不同使用场景
Areas to improve
-
版本号不一致 Reported severity: Minor
frontmatter中version字段为2.0.0,但description中提到的已安装版本为v0.4.4
Recommendation: 统一版本号信息,避免用户混淆
Highlights
- 文档结构清晰,包含快速判断表格、各模式使用示例、错误处理、沙盒注意事项等
- frontmatter完整,有明确的出口条件和端到端示例
Highlights
- 工具来源明确(@aweray/hsk-cli v0.4.4),参数说明清晰
- 覆盖主要异常情况(客户端未下载、上传失败、端口无效、macOS网络权限、沙盒限制等)
- 针对沙盒环境有特殊说明,提高执行成功率
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.