Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

publish-skill-repo

v2.0.1

将当前项目中的 Skill 发布到 GitHub 并同步到 ClawHub。新项目自动走完流程,已有仓库的项目会总结变更、确认提交信息和建议版本号。

0· 54·0 current·0 all-time
byZhou Chang@zhouchang1988

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhouchang1988/publish-skill-repo.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "publish-skill-repo" (zhouchang1988/publish-skill-repo) from ClawHub.
Skill page: https://clawhub.ai/zhouchang1988/publish-skill-repo
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install publish-skill-repo

ClawHub CLI

Package manager switcher

npx clawhub@latest install publish-skill-repo
Security Scan
Capability signals
CryptoCan make purchases
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description describe publishing a Skill to GitHub and ClawHub; the included script and SKILL.md implement exactly that (git init, create LICENSE/workflow, create GitHub repo, set CLAWHUB_TOKEN secret, push, tag, and create a CI step that runs clawhub). There are no unrelated credentials, binaries, or install steps required beyond gh and the ClawHub token.
Instruction Scope
Runtime instructions and the script operate on the repository (SKILL.md, .git, files) and a local ClawHub token file (~/.clawhub/secret_token). The agent/script runs git and gh commands, may create files (.github/workflows/publish-to-clawhub.yml, LICENSE), commit, push, and create tags — all within the stated scope. There is no hidden network exfiltration or access to unrelated system paths in the provided files.
Install Mechanism
This is an instruction-only skill with a helper shell script; there is no installer that downloads arbitrary archives or adds system-wide binaries. The generated workflow uses npm to install a 'clawhub' CLI in CI, which is expected for publishing to ClawHub.
Credentials
Metadata declares no required env vars, but the script expects the GitHub CLI (gh) to be authenticated and reads a local ClawHub token file at ~/.clawhub/secret_token. It then writes that token into the GitHub repository secret CLAWHUB_TOKEN via gh secret set. This behavior is consistent with the purpose, but users should note the skill accesses a local secrets file and will push that secret into GitHub.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or global agent settings. It does perform persistent actions on the target repository (create files, commit, push, create repo/secrets on GitHub), which are appropriate for a publishing tool but are privileged operations that require user consent.
Assessment
This skill appears to do what it says, but it will modify your repository and GitHub account (create repos, commit files, push, create tags, and set repository secrets). Before running: 1) review scripts/publish-skill-repo.sh and the generated workflow to ensure you trust them; 2) back up or test in a throwaway repo; 3) verify your gh CLI is logged into the intended GitHub account; 4) confirm the ClawHub token in ~/.clawhub/secret_token is correct and that you are comfortable it will be stored as the repo secret CLAWHUB_TOKEN; 5) consider running the script manually once to observe behavior (there is no built-in dry-run). If you are unsure, run the script on a non-production repo first and inspect the created .github/workflows/publish-to-clawhub.yml before pushing.

Like a lobster shell, security has layers — review code before you run it.

latestvk97e0xaa08tsxxw4yhrbawpc6h85e2by
54downloads
0stars
1versions
Updated 4d ago
v2.0.1
MIT-0

Publish Skill

将当前项目中的 Skill 发布到 GitHub 仓库并同步到 ClawHub。

前置条件

在执行之前,先检查以下条件是否满足:

  1. 当前目录包含 SKILL.md — 如果没有,提示用户这不是一个 skill 项目
  2. gh CLI 已安装且已登录 — 运行 gh auth status 验证
  3. ClawHub Token 已配置 — 检查 ~/.clawhub/secret_token 文件是否存在(如果仓库已有 CLAWHUB_TOKEN secret 则不需要)

如果前置条件不满足,给出具体提示并停止。

判断项目类型

检查当前项目状态,判断是 新项目 还是 已有项目

  • 如果当前目录没有 .git,或 git remote 没有指向 GitHub → 新项目
  • 如果当前目录有 .git 且 remote 指向 GitHub 仓库 → 已有项目

新项目流程

对于新项目,按以下步骤自动执行:

  1. 运行脚本 scripts/publish-skill-repo.sh <当前目录> 走完整个流程
  2. 脚本会自动完成:git init、创建 LICENSE、创建 workflow、创建 GitHub 仓库、设置 secret、提交推送、创建 v1.0.0 tag
  3. 完成后向用户汇报结果

已有项目流程

对于已有项目,需要用户确认后再执行:

步骤 1:总结变更

检查自上次 tag 以来的变更:

LATEST_TAG="$(git describe --tags --abbrev=0 2>/dev/null || echo '')"
if [[ -n "$LATEST_TAG" ]]; then
  git log "${LATEST_TAG}..HEAD" --oneline
  git diff "${LATEST_TAG}..HEAD" --stat
else
  git log --oneline -20
  git diff --stat
fi

也检查当前是否有未提交的变更:

git status --short
git diff --stat

将变更整理为简洁的中文总结,包含:

  • 提交历史摘要
  • 修改的文件和主要改动
  • 是否有未提交的变更

步骤 2:确认提交信息

基于变更内容,生成建议的 commit message。使用 AskUserQuestion 让用户确认或修改:

  • 展示建议的 commit message
  • 用户可以直接确认,也可以修改

步骤 3:确认版本号

基于变更内容判断版本号升级类型:

变更类型版本升级示例
新功能 / featminorv1.0.0 → v1.1.0
Bug 修复 / fixpatchv1.1.0 → v1.1.1
破坏性变更majorv1.1.0 → v2.0.0
仅文档 / chorepatchv1.1.0 → v1.1.1

使用 AskUserQuestion 让用户确认版本号:

  • 展示建议的版本号
  • 用户可以直接确认,也可以输入自己想要的版本号

步骤 4:执行发布

确认完成后,执行以下操作:

  1. 如果有未提交的变更,用用户确认的 commit message 提交
  2. 推送到远程 main 分支
  3. 创建用户确认的 tag 并推送到远程
  4. 向用户汇报完成结果

如果是已有仓库但缺少 LICENSE、workflow 或 secret,运行 scripts/publish-skill-repo.sh <当前目录> 补齐这些文件,然后再执行发布。

脚本说明

scripts/publish-skill-repo.sh 是底层自动化脚本,也可以由用户直接运行:

./scripts/publish-skill-repo.sh /path/to/your-skill [github-owner] [public|private]

脚本会自动处理幂等性(跳过已存在的文件和配置),可安全重复运行。

Comments

Loading comments...