skill-publish-sync

Publishes local Skills to ClawHub, Tencent SkillHub, and Lenovo Open Platform with gitignore filtering.

636|91|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/cat-xierluo/legal-skills --skill skill-publish-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-publish-sync
Source: https://github.com/cat-xierluo/legal-skills/tree/main/skills/skill-publish-sync
Command: npx skills add https://github.com/cat-xierluo/legal-skills --skill skill-publish-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @lenovo-open/skill-cli, and includes scripts (resource) components.

What problem does it solve?

Publishing locally developed Skills to multiple public marketplaces involves repetitive manual steps: filtering sensitive files, injecting platform-specific metadata, tracking versions, and avoiding duplicate or conflicting releases. This Skill automates the entire multi-platform publishing workflow for ClawHub, Tencent SkillHub, and Lenovo Open Platform.

Core Features & Use Cases

  • Multi-platform publishing: Sync Skills to ClawHub (MIT-0 enforced), Tencent SkillHub (no license restriction), and Lenovo Open Platform, each with its own independent allowlist file.
  • Safe publish preparation: The prepare-publish.sh script builds a filtered temporary directory using git ls-files and .gitignore rules, excluding credentials, databases, logs, and local config files before upload.
  • Incremental sync with records: Compares SKILL.md frontmatter versions against sync-records.yaml to publish only updated Skills, and records per-platform status, git hash, and publish IDs.
  • Use Case: After updating a legal-analysis Skill to v1.2.0, run the single-skill workflow to verify the allowlist, inject the SkillHub displayName into a temporary copy, publish with a changelog, and record the result.

Quick Start

Publish my updated skill to Tencent SkillHub using the skill-publish-sync workflow and update the sync records.

Frequently Asked Questions about skill-publish-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish a Skill to Tencent SkillHub from the command line?

Run prepare-publish.sh with --platform skillhub to build a filtered temp directory and inject slug/displayName from allowlist-skillhub.yaml, then run skillhub publish on that directory with --version and --changelog. The skillhub CLI must be version 2026.7.29 or newer.

How do I sync Skills to multiple platforms like ClawHub and SkillHub?

Maintain three independent allowlist files (allowlist-clawhub.yaml, allowlist-skillhub.yaml, allowlist-lenovo.yaml) listing which Skills go to each platform. The same Skill may appear in multiple files, and sync-records.yaml tracks per-platform version and status.

Can I publish a CC-BY-NC licensed Skill to ClawHub?

No. ClawHub mandates MIT-0 for all published Skills and does not support per-skill license overrides, so CC-BY-NC Skills conflict with its terms. Publish those Skills to Tencent SkillHub or Lenovo Open Platform instead, which impose no license restrictions.

Why does skillhub publish fail with a rate limit error?

Tencent SkillHub throttles consecutive publish requests, returning a too-frequent-requests error. Publish serially with a 12-15 second sleep between Skills, and retry failed ones individually after 30-60 seconds rather than rerunning the whole batch.

How are sensitive files excluded when publishing a Skill?

The prepare-publish.sh script copies only git-tracked files via git ls-files, honoring root and skill-level .gitignore rules, and additionally excludes .env files, databases, logs, and output directories. Local real config YAML files are gitignored so only .example templates are uploaded.