← 返回
未分类

Shipcheck

Pre-ship safety net. Scan an npm package, OpenClaw skill folder, or git repo BEFORE publishing to catch personal info leaks (absolute home paths, emails, int...
预发布安全网:在发布前扫描 npm 包、OpenClaw 技能文件夹或 Git 仓库,以捕获个人信息泄露(绝对路径、邮箱、内部信息等)
symbolstar
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 259
下载
💾 0
安装
1
版本
#latest#publishing#security

概述

shipcheck — pre-publish PII & secret check

shipcheck is a best-effort pre-publish safety net. Run it before npm publish,

clawhub publish, or pushing a repo public to catch the stuff you'll regret shipping:

absolute /Users// paths, internal IPs, Tailscale hostnames, API keys, internal

project codenames, and soft natural-language personal leaks in markdown.

It is NOT:

  • a replacement for manual review
  • a full secret scanner (gitleaks / trufflehog cover more)
  • a security audit

It is one more pair of eyes before you hit publish.

When to use this skill

Trigger this skill when the user is about to publish or push something public:

  • npm publish / npm publish --dry-run
  • clawhub publish ./my-skill ...
  • git push to a brand-new public repo
  • "check leaks", "is it safe to share?", "扫一下个人信息", "发布前体检"

Install

npm i -g @symbolstar/shipcheck
# or one-shot
npx -y @symbolstar/shipcheck

Run

npm package (default mode)

Scans only files that would actually be published — resolves package.json.files,

.npmignore, .gitignore statically (does not invoke npm pack).

cd /path/to/npm-package
shipcheck

Skill folder / generic repo

shipcheck --scan-mode=dir ./path/to/skill-or-repo

Common flags

shipcheck --scan-mode=dir|npm     # default: npm
shipcheck --allow <id>            # acknowledge a finding by id
shipcheck --config ./shipcheck.config.json

What it catches

CategoryExamplesSeverity
--------------------------------------------------------------------------------------------------------------------------------
secretsAWS keys, GitHub PAT (ghp_/gho_/ghu_/ghs_/ghr_), OpenAI sk-…, Anthropic sk-ant-…, Google AIza…, Slack xox[bp]-…, JWT, PEM/SSH private keys (~30 rules)critical
identityEmails, China mobile + E.164, /Users// & /home// absolute paths, SSH fingerprinthigh
infraRFC1918 IPs, Tailscale CGNAT 100.64/10, .tail.ts.net, .lan/*.local, private git remoteshigh
businessUser-defined forbidden_terms from shipcheck.config.json (codenames, internal product names…)medium
softNLChinese first-person personal context in *.md (我家 / 我老板 / 我同事 + 关系词)info
binaries*.png/.jpg/.mp4/.zip/.pdf > 50 KB inside the publish setwarn

Recommended workflow

# 1. Run it
shipcheck                       # or: shipcheck --scan-mode=dir .

# 2. Triage findings
#    - real leak → fix the file
#    - false positive → add to shipcheck.config.json allow / forbidden_terms

# 3. Re-run until 0 critical / high
shipcheck

# 4. Publish
npm publish    # or: clawhub publish ./skill --slug ...

Exit codes

CodeMeaning
----------------------------------------------------------------------
0No findings, or only allow-listed / info / warn
1One or more critical / high / medium findings — do not ship

Use the exit code in CI or prepublishOnly:

{
  "scripts": {
    "prepublishOnly": "shipcheck && npm run build && npm test"
  }
}

Configuration (optional)

shipcheck.config.json in the project root:

{
  "forbidden_terms": ["AcmeInternalCodename", "ProjectStarfish"],
  "allow": [
    "rule:identity.absolute-home:fixtures/golden/01/setup.md#L12"
  ],
  "scanMode": "npm"
}

Links

  • npm:
  • source: _(public mirror — main dev on local repo)_
  • author: SymbolStar

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-21 14:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Agent Token Usage UI (deprecated)

symbolstar
已废弃— 已合并到 `agent-token-usage` 技能 (v0.2.0+)。请改用安装 `agent-token-usage`,并运行 `bash apply-ui.sh` 以打开 📊 按钮。此包...
★ 0 📥 354

Echo

symbolstar
对本地已安装的 OpenClaw ControlUI 进行补丁,使助手回复结束时在浏览器标签页中播放一段短促的 Web‑Audio 两音“叮咚”提示音。
★ 0 📥 425

magpie

symbolstar
通过本地 magpie 守护进程查询 A 股行情、资金流向、K 线、自选股、警报规则及龙虎榜。适用于用户询问...
★ 0 📥 274