← 返回
未分类

skill-quick-publish

One-click skill publishing automation covering duplicate check, Bear notes sync, and GitHub push. Use when publishing a new or updated skill to ClawHub and G...
一键技能发布自动化,涵盖重复检查、Bear笔记同步和GitHub推送。在向ClawHub和GitHub发布新技能或更新技能时使用。
terrycarter1985 terrycarter1985 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 284
下载
💾 0
安装
1
版本
#latest

概述

Skill Quick Publish

Automate the full skill publishing pipeline: duplicate check → Bear dev-log sync → GitHub push → ClawHub publish.

Prerequisites

  • clawhub CLI installed and authenticated (clawhub whoami)
  • git CLI available with push access to target repo
  • (Optional) grizzly CLI for Bear notes sync on macOS

Workflow

Run the main orchestrator script:

bash SKILL_DIR/scripts/publish.sh <skill-path> [options]

Options

FlagDescriptionDefault
----------------------------
--repo GitHub repo to push to(required or set SKILL_GH_REPO)
--branch Target branchmain
--skip-bearSkip Bear notes syncfalse
--skip-githubSkip GitHub pushfalse
--dry-runPreview all steps without executingfalse
--changelog Changelog message for ClawHub publish"Automated publish"
--version Version for ClawHub publishAuto from SKILL.md or 0.1.0

Environment Variables

  • SKILL_GH_REPO — Default GitHub repo (e.g., user/skills)
  • SKILL_BEAR_TAG — Bear note tag for dev logs (default: skill-dev)
  • GRIZZLY_TOKEN_FILE — Path to Bear API token (default: ~/.config/grizzly/token)

Steps in Detail

1. Duplicate Check

Validates skill name uniqueness against:

  • Locally installed skills (~/.openclaw/skills/)
  • ClawHub registry (clawhub search)

Exits with error if a conflicting skill exists, unless --force is passed.

2. Bear Notes Sync

Creates or appends a dev-log note in Bear:

  • Title: [Skill Dev]
  • Tag: value of SKILL_BEAR_TAG
  • Content: timestamp, version, changelog summary

On non-macOS or when grizzly is unavailable, prints a structured log line to stdout instead (so the pipeline continues).

3. GitHub Push

Commits and pushes the skill directory to the configured GitHub repo:

  1. Clones/pulls the target repo to a temp directory
  2. Copies skill files into the repo under skills//
  3. Commits with message: feat(skill): publish v
  4. Pushes to the target branch

4. ClawHub Publish

Runs clawhub publish with the skill path, slug, name, version, and changelog.

Error Handling

  • Each step logs on success, on failure
  • The pipeline stops on the first failure unless --continue-on-error is set
  • Bear sync failure is non-fatal by default (warns and continues)

Examples

# Full publish
bash scripts/publish.sh ./my-skill --repo user/skills --version 1.0.0

# Dry run
bash scripts/publish.sh ./my-skill --repo user/skills --dry-run

# Skip Bear and GitHub, only ClawHub
bash scripts/publish.sh ./my-skill --repo user/skills --skip-bear --skip-github

# Using env var for repo
SKILL_GH_REPO=user/skills bash scripts/publish.sh ./my-skill

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-08 13:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,161 📥 931,330
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,516 📥 571,300
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 865 📥 342,607